/* Tokens */
:root {
  --bg: #F7F3EC;
  --surface: #FFFFFF;
  --text: #1F1B16;
  --muted: #5E554B;
  --accent: #A64B22;
  --accent-dark: #83391A;
  --accent-text: #FFFFFF;
  --plate-bg: #1F1B16;
  --plate-text: #F7F3EC;
  --line: #E4DCCC;
  --stripe-a: #F1EBDF;
  --stripe-b: #E9E1D1;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-card: 14px;
  --radius-btn: 999px;
  --pad-side: clamp(16px, 4vw, 40px);
  --sec-gap: clamp(64px, 9vw, 128px);
  --shadow-soft: 0 1px 2px rgb(31 27 22 / .06), 0 12px 32px rgb(31 27 22 / .08);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  background-image: repeating-linear-gradient(-32deg, var(--stripe-a) 0 220px, var(--stripe-b) 220px 440px);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 3.4vw + 0.9rem, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 68ch; }
ul { padding-left: 1.2em; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--pad-side); }
.wrap-narrow { max-width: 760px; }
.block { padding-block: calc(var(--sec-gap) / 2); }
#top + .block, main > .block:first-child { padding-top: var(--sec-gap); }
.block-intro { color: var(--muted); max-width: 62ch; }
.block-more { margin: 24px 0 48px; }
.lead {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem);
  line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 0.4em;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-line {
  position: absolute; left: 16px; top: -64px; z-index: 60;
  background: var(--plate-bg); color: var(--plate-text);
  padding: 10px 18px; border-radius: var(--radius-btn);
  transition: top 0.2s ease; text-decoration: none;
}
.skip-line:focus { top: 12px; }

/* Header */
.bar {
  position: sticky; top: 12px; z-index: 40;
  margin: 12px var(--pad-side) 0; padding: 10px 14px;
  background: rgb(247 243 236 / 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.bar.is-stuck { background: var(--surface); box-shadow: var(--shadow-soft); }
.bar-in { max-width: 1200px; margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 48px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--text); text-decoration: none; letter-spacing: 0; }
.bar-call { justify-self: end; font-weight: 600; text-decoration: none; color: var(--text); padding: 10px 16px; border-radius: var(--radius-btn); border: 1px solid var(--line); font-size: 0.95rem; white-space: nowrap; }
.bar-call:hover { background: var(--surface); }

/* Drawer */
.menu-btn {
  justify-self: start; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.menu-lines, .menu-lines::before, .menu-lines::after {
  content: ""; display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text);
}
.menu-lines::before { transform: translateY(-7px); }
.menu-lines::after { transform: translateY(5px); }
.drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 50;
  width: min(320px, 86vw); background: var(--surface);
  transform: translateX(-100%); transition: transform 0.32s ease;
  padding: 20px var(--pad-side) 32px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft); overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.drawer-close { border: 1px solid transparent; background: var(--bg); position: relative; justify-self: end; }
.drawer-close::before, .drawer-close::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 22px; height: 2px; border-radius: 2px; background: var(--text);
  transform: translate(-50%, -50%) rotate(45deg);
}
.drawer-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.drawer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu-link { display: block; padding: 12px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 1.05rem; transition: background-color 0.2s ease, color 0.2s ease; }
.menu-link:hover { background: var(--bg); color: var(--accent-dark); }
.menu-link[aria-current="page"] { background: var(--plate-bg); color: var(--plate-text); }
.veil {
  position: fixed; inset: 0; z-index: 45; background: rgb(31 27 22 / 0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.veil.is-open { opacity: 1; visibility: visible; }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 28px; border: 2px solid var(--accent);
  border-radius: var(--radius-btn); background: var(--accent); color: var(--accent-text);
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: border-radius 0.25s ease, background-color 0.25s ease, transform 0.15s ease;
}
.pill:hover { background: var(--accent-dark); border-color: var(--accent-dark); border-radius: 12px; }
.pill:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.pill:active { transform: scale(0.97); border-radius: 12px; }
.pill-dark { background: var(--plate-bg); border-color: var(--plate-bg); color: var(--plate-text); }
.pill-dark:hover { background: #3A332B; border-color: #3A332B; }

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 72px) 0; }
.hero-split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-title {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.4rem);
  line-height: 1.06; letter-spacing: -0.02em;
}
.hero-title .lead-line { display: inline-block; }
html.is-live .lead-line { animation: rise 0.6s ease both; }
html.is-live .lead-line:nth-child(2) { animation-delay: 0.12s; }
@keyframes rise { from { transform: translateY(8px); } to { transform: translateY(0); } }
.hero-sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; max-width: 46ch; }
.hero-photo {
  margin: 0; padding: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft); max-width: 480px; justify-self: center;
}
.hero-photo img { border-radius: calc(var(--radius-card) - 6px); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* Stats slab */
.slab {
  background: var(--plate-bg); color: var(--plate-text);
  border-radius: var(--radius-card); padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-soft);
}
.slab-title { color: var(--plate-text); }
.slab-text { color: #D9D2C6; max-width: 40ch; }
.slab-note { min-width: 0; }
.slab-stats { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 12px; justify-content: start; margin: 0; }
.stat { padding-left: 16px; border-left: 2px solid var(--accent); align-self: stretch; display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; margin: 0; }
.stat-label { margin: 6px 0 0; color: #C8C0B2; font-size: 0.95rem; line-height: 1.4; }

/* Tiles */
.tile-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
.tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgb(31 27 22 / .08), 0 18px 44px rgb(31 27 22 / .12); }
.tile-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-body { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; justify-content: center; gap: 8px; flex: 1; }
.tile-body h3 { margin: 0; }
.tile-body p { margin: 0; color: var(--muted); }

/* Form */
.slab-form { display: grid; grid-template-columns: 1fr; gap: 36px; }
.slab-form .slab-note { max-width: 40ch; }
.slab-form .slab-text { color: #D9D2C6; }
.slab-form .slab-text a { color: #F0A57F; }
.slab-form-body { min-width: 0; }
.lead-form { display: grid; gap: 18px; }
.lead-form .field-input { max-width: 480px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.slab .field-label { color: var(--plate-text); }
.field-input {
  width: 100%; font: 400 1rem/1.5 var(--font-body); color: var(--text);
  background: var(--surface); border: 2px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
  transition: border-color 0.2s ease;
}
.field-input::placeholder { color: #6E655A; }
.field-input:focus { outline: none; border-color: var(--accent); }
.field-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.field-input.is-bad { border-color: #B3362A; }
.field-input.is-bad:focus-visible { outline-color: #B3362A; }
.field-area { resize: vertical; min-height: 120px; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.92rem; color: var(--muted); }
.slab .field-check { color: #D9D2C6; }
.field-check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; }
.field-check a { color: var(--accent); }
.slab .field-check a { color: #F0A57F; }
.form-hint { margin: 0; max-width: none; font-size: 0.95rem; color: var(--muted); }
.slab .form-hint { color: #C8C0B2; }
.form-send { justify-self: end; }
.lead-form.is-sent .form-send { opacity: 0.6; pointer-events: none; }

/* FAQ */
.qa { display: grid; gap: 14px; max-width: 760px; }
.qa-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 4px 22px; box-shadow: 0 1px 2px rgb(31 27 22 / .05); }
.qa-item summary { cursor: pointer; font-weight: 650; font-family: var(--font-head); font-size: 1.15rem; padding: 16px 0; list-style-position: outside; }
.qa-item summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.qa-item p { color: var(--muted); margin: 0 0 18px; }

/* Area list */
.town-list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 20px;
}
.town-list li { padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }

/* Reveal */
html.is-live .fade { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.is-live .fade.is-in { opacity: 1; transform: none; }

/* Footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: var(--sec-gap); padding-top: clamp(40px, 6vw, 72px); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
.foot .brand { font-size: 1.3rem; }
.foot-text { color: var(--muted); font-size: 0.95rem; }
.foot-title { font-family: var(--font-body); font-weight: 700; font-size: 1rem; text-transform: none; margin: 0 0 12px; color: var(--text); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.foot address { font-style: normal; font-size: 0.95rem; color: var(--muted); }
.foot address p { margin: 0 0 8px; max-width: none; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-col ul li span { color: var(--muted); }
.foot-note { border-top: 1px solid var(--line); padding-block: 18px 28px; font-size: 0.9rem; color: var(--muted); }
.foot-note p { margin: 0; max-width: none; }

/* Inner pages */
.page-head { padding-top: clamp(40px, 6vw, 80px); }
.page-head p { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.text-body { max-width: 760px; }
.text-body h2 { font-size: clamp(1.4rem, 1.8vw + 0.8rem, 2rem); margin-top: 1.8em; }
.text-body h3 { margin-top: 1.4em; }
.text-body ol, .text-body ul { margin: 0 0 1.2em; padding-left: 1.4em; }
.text-body li { margin-bottom: 0.5em; }
.text-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; }
.text-body th, .text-body td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); vertical-align: top; }
.text-body th { font-weight: 650; }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 16px; max-width: 760px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 22px 18px 64px; position: relative; box-shadow: 0 1px 2px rgb(31 27 22 / .05); }
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--plate-bg); color: var(--plate-text);
  font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; font-size: 1rem;
}
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 760px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list span { color: var(--muted); }
.done-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-soft); padding: clamp(24px, 4vw, 48px); max-width: 760px; }
.done-box ul { list-style: none; padding: 0; display: grid; gap: 8px; margin-bottom: 1.2em; }
.missing { padding-block: clamp(48px, 10vw, 120px); text-align: center; }
.missing .pill { margin-top: 12px; }

/* Breakpoints */
@media (max-width: 479px) {
  .bar-call { font-size: 0.85rem; padding: 8px 12px; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .stat { border-left: none; border-top: 2px solid var(--accent); padding: 10px 0 0; }
}
@media (max-width: 639px) {
  .block { padding-block: 40px; }
}
@media (min-width: 480px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .hero-photo { padding: 16px; }
}
@media (min-width: 768px) {
  .hero-split { grid-template-columns: 55fr 45fr; gap: 48px; }
  .hero-photo { justify-self: end; }
  .slab-stats { grid-template-columns: 1fr 1.2fr; }
  .slab-form { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .tile-wide { grid-column: span 2; flex-direction: row; align-items: stretch; }
  .tile-wide .tile-photo { width: 50%; aspect-ratio: auto; height: 100%; }
  .slab-form { grid-template-columns: 1fr 1.4fr; align-items: start; }
}
@media (min-width: 1280px) {
  .wrap { padding-inline: 0; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.is-live .fade { opacity: 1; transform: none; }
}
