:root {
  --bg: #f4f0e8;
  --bg-alt: #ebe5d9;
  --surface: #fffdf8;
  --ink: #1d221f;
  --ink-soft: #4a524c;
  --line: #d9d1c2;
  --accent: #b4612a;
  --accent-ink: #ffffff;
  --accent-dark: #924b1d;
  --zip: #5d9b63;
  --deep: #1f2a25;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 30, 20, .06), 0 8px 24px rgba(30, 30, 20, .07);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 600; }
h1 em { font-style: italic; font-weight: 400; color: #f3d9b8; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow.light { color: #f3d9b8; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--bg-alt); }
.section-lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 680px; margin-bottom: 2.5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose p { color: var(--ink-soft); font-size: 1.08rem; }
.prose strong { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); padding: .8em 1.4em; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; white-space: nowrap; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--accent-dark); }
.btn-outline:hover { color: #fff; }
.btn-block { width: 100%; padding: 1em; font-size: 1.05rem; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(244, 240, 232, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.08rem/1 var(--serif); text-decoration: none; color: var(--deep); white-space: nowrap; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: .95rem; color: var(--ink-soft); }
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,20,18,.7) 0%, rgba(15,20,18,.35) 55%, rgba(15,20,18,0) 85%), linear-gradient(180deg, rgba(15,20,18,.1) 0%, rgba(15,20,18,.3) 45%, rgba(15,20,18,.85) 100%); }
.hero-copy { position: relative; padding: 120px 0 72px; }
.hero-copy h1 { max-width: 19ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 620px; color: rgba(255,255,255,.9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Strip */
.strip { background: var(--deep); color: #e9e4d8; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.strip-grid div { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--zip); padding-left: 14px; }
.strip strong { font: 600 1.15rem/1.3 var(--serif); color: #fff; }
.strip span { font-size: .9rem; color: #b9b6aa; }

/* Checks */
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 14px 16px 14px 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--zip); box-shadow: inset 0 0 0 5px #d8ead9; }
.checks strong { display: block; color: var(--ink); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
.timeline > li { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.timeline > li:nth-child(even) .tl-media { order: 2; }
.tl-step { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--zip); display: block; margin-bottom: .8rem; }
.tl-copy p { color: var(--ink-soft); }
.tl-media { display: grid; gap: 12px; }
.gallery-2 { grid-template-columns: 1fr 1fr; }
figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #ddd; box-shadow: var(--shadow); }
figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.gallery-1 figure img { aspect-ratio: 16 / 9; }
figure:hover img { transform: scale(1.03); }
figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(20,25,22,.75); color: #fff; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }

/* Services grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.svc p { color: var(--ink-soft); }
.svc ul { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; font-size: .94rem; }
.svc li { position: relative; padding-left: 20px; }
.svc li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--zip); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 32px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.service { display: flex; flex-direction: column; position: relative; }
.service ul { padding-left: 1.1em; color: var(--ink-soft); margin: 0 0 1.5rem; flex: 1; }
.service li { margin-bottom: .45em; }
.service .tag { color: var(--accent-dark); font-weight: 600; font-size: .95rem; }
.service.featured { border: 2px solid var(--accent); }
.badge { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin: 0; }

/* Calculator */
.calc label { display: block; font-weight: 600; margin-bottom: .5rem; }
.calc-row { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 14px; margin-bottom: 1.4rem; }
.calc-row .unit { color: var(--ink-soft); font-size: 1.3rem; }
.calc-row input { border: 0; outline: 0; font: 600 1.6rem/1 var(--serif); padding: 12px 8px; width: 100%; background: transparent; color: var(--ink); }
.calc-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180,97,42,.18); }
input[type=range] { width: 100%; accent-color: var(--accent); margin-bottom: 1.4rem; }
.calc-result { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; background: var(--deep); color: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 1rem; }
.calc-result strong { font: 700 clamp(1.8rem, 4vw, 2.4rem)/1 var(--serif); color: #f3d9b8; }
.fine { font-size: .82rem; color: var(--ink-soft); margin: 0; }

/* Tools */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tool { background: var(--surface); padding: 28px; }
.tool p { color: var(--ink-soft); margin: 0; }
.ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #e3efe3; color: #2f6a37; font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }

/* Compare */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 600 .82rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); background: var(--bg-alt); }
.compare thead th:last-child { color: var(--accent-dark); }
.compare tbody th { font-weight: 600; }
.compare td:nth-child(2) { color: var(--ink-soft); }
.compare td:last-child { font-weight: 600; background: #fbf3ea; }

/* About */
.about { align-items: center; }
.about img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font: 600 1.12rem/1.4 var(--serif); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 1.6rem/1 var(--sans); color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-soft); padding-right: 40px; }

/* Contact */
.contact { background: var(--deep); color: #fff; }
.contact .section-lede { color: #c9c5b8; }
.contact-img { border-radius: var(--radius); margin-top: 1rem; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; opacity: .92; }
.form { color: var(--ink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180,97,42,.18); }
.field.invalid input { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin: 12px 0 8px; font-weight: 600; }
.form-status.ok { color: #2f6a37; }
.form-status.err { color: #b3261e; }
.form.sent .grid2, .form.sent .field, .form.sent .btn { display: none; }
.form.sent .form-status { font: 600 1.3rem/1.4 var(--serif); }

/* Footer */
.footer { background: #151c19; color: #a9a597; padding: 28px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-bottom: 10px; }
.footer a { color: #e9e4d8; }
.footer .fine { color: #7e7b70; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Responsive */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .timeline > li { grid-template-columns: 1fr; }
  .timeline > li:nth-child(even) .tl-media { order: 0; }
  .cards, .tools { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand span { font-size: .9rem; white-space: normal; line-height: 1.1; }
  .nav-inner { gap: 12px; }
  .strip-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-2 { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .hero-copy { padding: 96px 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
