/* ==========================================================================
   Carliez Peinture — stylesheet
   Brand: "piste 1" (ivory, Cahors red, dark brown, stone) · Cormorant Garamond + Jost
   ========================================================================== */

/* ---------- Fonts (self-hosted WOFF2 files in assets/fonts/, see README) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  --ivory: #F4EFE6;
  --brown: #2B2620;
  --red: #6E2230;          /* "Rouge de Cahors", the only accent colour */
  --red-dark: #4A1520;
  --stone: #D9CBB2;
  --stone-light: #EAE2D3;
  --sand: #E3D7C1;
  --cream: #EDE5D7;
  --gold: #CDB287;
  --text-soft: #4A4238;
  --text-muted: #6A5F52;
  --rule: #D3C6AF;
  --footer-text: #CDBDA0;

  /* Colour picked in the finish demonstrator (updated by main.js) */
  --paint: #6E2230;
  --paint-text: #F4EFE6;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --max-width: 1240px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--brown);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brown); color: var(--ivory); padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 16px; color: var(--ivory); }

.eyebrow { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); }
.intro { color: var(--text-soft); font-weight: 300; }
.section-title { font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.section-title--medium { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; }
.accent { color: var(--red); }
.section-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-header .intro { max-width: 420px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 16px 28px;
  border: 0; cursor: pointer; text-decoration: none;
  letter-spacing: 0.04em; font-size: 16px;
}
.btn--red { background: var(--red); color: var(--ivory); }
.btn--red:hover { background: var(--red-dark); color: var(--ivory); }
.btn--dark { background: var(--brown); color: var(--ivory); }
.btn--dark:hover { background: #000; color: var(--ivory); }
.btn--small { padding: 12px 22px; font-size: 15px; }

/* ---------- Site header ---------- */
.site-header { max-width: var(--max-width); margin: 0 auto; padding: 22px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__symbol { height: 62px; width: auto; }
.brand__wordmark { height: 36px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: 15px; }
.nav a:not(.btn) { color: var(--brown); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--red); }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .brand__symbol { height: 48px; }
  .brand__wordmark { height: 28px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px;
    background: transparent; border: 1px solid var(--brown); color: var(--brown); cursor: pointer; font-size: 15px;
  }
  .menu-toggle__bars { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .menu-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--rule); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 16px; }
  /* Inner pages: short nav, always visible */
  .nav.nav--simple { display: flex; width: auto; flex-direction: row; align-items: center; gap: 18px; border-top: 0; }
  .nav.nav--simple a:not(.btn) { padding: 0; border-bottom: 0; }
  .nav.nav--simple .btn { margin-top: 0; }
}

/* ---------- Finish demonstrator ---------- */
.finishes { padding-top: 8px; }
.wall {
  position: relative; height: 640px; overflow: hidden; isolation: isolate;
  background: var(--paint); color: var(--paint-text);
  transition: background-color 0.6s ease, color 0.6s ease;
}
.wall__layer { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.7s ease; pointer-events: none; }
/* Mid-grey textures: overlay keeps the picked colour, unlike multiply, which would darken it */
.wall__layer--photo { --o: .6; object-fit: cover; mix-blend-mode: overlay; }
.wall__layer--photo[data-layer="sanded"] { --o: .5; }
/* Each layer fades in for its finish, at the opacity given by --o */
.wall[data-finish="stucco"]   [data-layer="stucco"],
.wall[data-finish="sanded"]   [data-layer="sanded"],
.wall[data-finish="limewash"] [data-layer="limewash"] { opacity: var(--o); }

.wall__content { position: absolute; inset: 0; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.wall__content > div { display: flex; flex-direction: column; gap: 18px; }
.wall__eyebrow { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; }
.wall__title { font-size: clamp(60px, 9vw, 140px); line-height: 0.92; letter-spacing: -0.01em; }
.wall__caption { max-width: 780px; min-height: 64px; font-size: 20px; line-height: 32px; }
.wall__caption strong { font-weight: 500; }

.controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px 40px; padding-top: 22px; }
.control { display: flex; flex-direction: column; gap: 10px; }
.control__label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }
.control__label span { color: var(--brown); }
.control__options { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 10px 18px; border: 1px solid var(--brown); background: transparent; color: var(--brown); cursor: pointer; font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--brown); color: var(--ivory); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer; border: 1px solid #8F8676; background: var(--c); }
.swatch[aria-pressed="true"] { border: 3px solid var(--brown); }
/* Swatch colour = its data-color value (set here, not in style attributes, for the CSP) */
.swatch[data-color="#6E2230"] { --c: #6E2230; }
.swatch[data-color="#EFE9DC"] { --c: #EFE9DC; }
.swatch[data-color="#DCC7A1"] { --c: #DCC7A1; }
.swatch[data-color="#9DAA98"] { --c: #9DAA98; }
.swatch[data-color="#8FA7B3"] { --c: #8FA7B3; }

@media (max-width: 700px) {
  .wall { height: 520px; }
  .wall__caption { font-size: 17px; line-height: 26px; min-height: 78px; }
}

/* ---------- Tagline ---------- */
.tagline { padding-top: 104px; }
.tagline p { max-width: 980px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.18; }
.tagline em { color: var(--red); }

/* ---------- Trades (stacked coats) ---------- */
.trades { padding-top: 104px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 48px; }
.trades .section-title--medium { max-width: 640px; }
.coats { display: flex; flex-direction: column; }
.coat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; padding: 30px 32px; }
.coat__label { width: 130px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-soft); }
.coat h3 { flex: 1 1 300px; font-weight: 600; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; }
.coat h3 em { font-weight: 500; }
.coat p { flex: 1 1 360px; color: var(--text-soft); }
.coat--1 { background: var(--stone); }
.coat--2 { background: var(--sand); }
.coat--3 { background: var(--cream); }
.coat--4 { background: var(--paint); color: var(--paint-text); transition: background-color 0.6s ease, color 0.6s ease; }
.coat--4 .coat__label, .coat--4 p { color: inherit; }
.coat--5 { background: var(--brown); color: var(--ivory); }
.coat--5 .coat__label { color: var(--gold); }
.coat--5 p { color: var(--stone); }

/* ---------- House tour (cutaway) ---------- */
.band { background: var(--stone-light); }
/* A different tone, so the two bands stay distinct when the before/after section between them is hidden */
.band--stone { background: var(--stone); }
.tour { padding-top: 112px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 40px; }
.tour__titles { display: flex; flex-direction: column; gap: 16px; }
.tour__body { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.tour__plan { flex: 2 1 620px; min-width: 0; }
.house { position: relative; width: 100%; aspect-ratio: 2576 / 1602; background: #F6EEDC; overflow: hidden; }
.house__stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.house__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zone {
  position: absolute; border: 0; margin: 0; padding: 0 0 10px 10px; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: flex-start;
  background: transparent; transition: background-color 0.5s ease, box-shadow 0.5s ease;
}
.zone--center { justify-content: center; }
.zone:hover { background: rgba(110, 34, 48, 0.10); }
.zone:focus-visible { outline: 3px solid var(--brown); outline-offset: -3px; }
.zone[aria-pressed="true"] { background: rgba(110, 34, 48, 0.28); box-shadow: inset 0 0 0 2px var(--red); }
.zone__label { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--brown); background: rgba(255, 255, 255, 0.92); padding: 3px 10px; transition: background-color 0.5s ease, color 0.5s ease; }
.zone[aria-pressed="true"] .zone__label { background: var(--red); color: #fff; }
/* Room positions, in % of the 2576 × 1602 illustration */
.zone--attic    { left: 22%;    top: 18%;   width: 28%;    height: 28.4%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.zone--bedroom  { left: 22.75%; top: 47.8%; width: 14.25%; height: 16.5%; }
.zone--bathroom { left: 37.25%; top: 47.8%; width: 12.25%; height: 16.5%; }
.zone--living   { left: 22.75%; top: 66.7%; width: 26.75%; height: 20.5%; }
.zone--hall     { left: 51.75%; top: 47.8%; width: 15.5%;  height: 39.4%; }
.zone--facade   { left: 68.6%;  top: 31.6%; width: 15.3%;  height: 55.2%; }

.room-panel { flex: 1 1 320px; background: var(--ivory); padding: 36px; display: flex; flex-direction: column; gap: 18px; min-height: 440px; }
.room-panel__name { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }
.room-panel__title { font-weight: 600; font-size: 38px; line-height: 1.05; }
.room-panel__tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.room-panel__tags li { font-size: 14px; border: 1px solid var(--brown); padding: 4px 14px; }
.room-panel__text { color: var(--text-soft); font-weight: 300; font-size: 18px; }
.room-panel__spacer { flex: 1 1 auto; }
.room-panel__figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
/* 130 px high at most widths, as designed; grows with the panel on tablets to avoid a harsh crop */
.room-panel__photo { width: 100%; height: auto; min-height: 130px; aspect-ratio: 1024 / 339; object-fit: cover; background: var(--stone); }
.illustration-note { font-size: 13px; color: var(--text-muted); }

@media (max-width: 700px) {
  /* The illustration bleeds to the screen edges and zooms on the house so zones stay tappable */
  .house { aspect-ratio: 4 / 3; margin: 0 calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); }
  .house__stage { width: 147%; height: 122%; left: -26.5%; top: -9.8%; }
  .zone__label { font-size: 11px; padding: 2px 7px; }
  .zone { padding: 0 0 5px 5px; }
  .room-panel { padding: 28px 24px; min-height: 0; }
}

/* ---------- Before / after slider ---------- */
.before-after { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 32px; }
.compare { --pct: 50%; position: relative; height: 520px; overflow: hidden; background: #BDB3A2; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { position: absolute; inset: 0; background: var(--sand); clip-path: inset(0 0 0 var(--pct)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pct); width: 3px; margin-left: -1.5px; background: var(--brown); }
.compare__tag { position: absolute; bottom: 20px; font-size: 13px; padding: 4px 12px; }
.compare__tag--before { left: 20px; background: var(--ivory); }
.compare__tag--after { right: 20px; background: var(--brown); color: var(--ivory); }
.compare__handle {
  position: absolute; top: 50%; left: var(--pct); width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%; border: 0; padding: 0; background: var(--brown);
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: ew-resize; touch-action: none;
}
.compare.is-animating .compare__after,
.compare.is-animating .compare__line,
.compare.is-animating .compare__handle { transition: all 0.75s cubic-bezier(.45, 0, .25, 1); }
@media (max-width: 700px) { .compare { height: 380px; } }

/* ---------- Projects ---------- */
.projects { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 48px; }
.projects__grid { display: flex; flex-wrap: wrap; gap: 24px; }
.project { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.project--large { flex: 2 1 560px; }
.projects__column { flex: 1 1 320px; display: flex; flex-direction: column; gap: 24px; }
.project__photo { background: var(--stone); }
.project--large .project__photo { height: 520px; background: #CDBDA0; }
.project--h248 .project__photo { height: 248px; }
.project--h200 .project__photo { height: 200px; background: var(--sand); }
.project__title { font-family: var(--serif); font-size: 22px; }
.project--large .project__title { font-size: 26px; }
.project__photo img { width: 100%; height: 100%; object-fit: cover; }
/* --text-muted is below AA on the stone band; the negative margin ties the note to the grid above */
.projects .illustration-note { margin-top: -32px; color: var(--text-soft); }
@media (max-width: 700px) { .project--large .project__photo { height: 320px; } }

/* ---------- Contact ---------- */
.contact { background: var(--red); color: var(--ivory); }
.contact__body { padding: 120px var(--gutter); display: flex; flex-wrap: wrap; gap: 56px; justify-content: space-between; align-items: flex-end; }
.contact__text { flex: 1 1 560px; display: flex; flex-direction: column; gap: 22px; }
.contact__text .eyebrow { color: inherit; }
.contact h2 { font-size: clamp(44px, 6vw, 92px); line-height: 0.98; }
.contact__text p:last-child { max-width: 480px; font-size: 19px; font-weight: 300; }
.contact__links { flex: 0 1 360px; display: flex; flex-direction: column; gap: 12px; }
.contact__links a:not(.btn) { color: inherit; }
/* Lining figures: Cormorant's old-style 0 reads as "o" in a phone number */
.contact__phone { font-family: var(--serif); font-size: 38px; text-decoration: none; font-variant-numeric: lining-nums; }
.contact .btn { margin-top: 8px; background: var(--ivory); color: var(--red); }

/* ---------- Protected phone number and e-mail address (ProtectedContact.astro, reveal.js) ---------- */
.reveal { display: inline-flex; }
/* Zero specificity: the classes passed in (font, size) win */
:where(.reveal__button) { display: inline-flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: 0 0.5em; min-height: 44px; padding: 0; border: 0; background: none; color: var(--red); text-align: left; cursor: pointer; }
.reveal__button:hover { color: var(--red-dark); }
.reveal__action { font-family: var(--sans); font-size: 15px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.reveal__link { display: inline-flex; align-items: center; min-height: 44px; }
.contact__links .reveal__button { color: inherit; }
/* In the legal notice table, the 44 px target spills into the cell padding: rows keep their height and baseline */
.facts .reveal__button, .facts .reveal__link { margin-block: calc((1.7em - 44px) / 2); }
:root:not(.js) [data-reveal] > button { display: none; }
/* The image is drawn with the line height of its context: top-aligned, it sits exactly on the line */
:root:not(.js) .reveal { vertical-align: top; }
.reveal__image { display: block; max-width: 100%; height: auto; }

/* ---------- Site footer ---------- */
.site-footer { background: var(--brown); color: var(--footer-text); }
.site-footer__body { padding: 36px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; }
.site-footer__logo { height: 40px; width: auto; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--ivory); }

/* ---------- Inner pages (quote, legal) ---------- */
.page { padding-top: 32px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 48px; }
.page__title { font-size: clamp(48px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.01em; }
.page__intro { max-width: 420px; font-size: 19px; }
.page__meta { font-size: 14px; color: var(--text-muted); }
.back-link { font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }

/* Quote form */
.quote { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.quote-form { flex: 2 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.step { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.step legend { padding: 0; margin-bottom: 20px; display: flex; align-items: baseline; gap: 14px; }
.step__number { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--red); }
.step__name { font-family: var(--serif); font-weight: 600; font-size: 34px; }
.hint { font-size: 15px; color: var(--text-soft); }
/* Checkbox / radio "chips": real inputs, visually hidden, styled through the span that follows */
.options { display: flex; flex-wrap: wrap; gap: 10px; border: 0; margin: 0; padding: 0; }
.options label { position: relative; }
.options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.options span { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border: 1px solid #8F8676; background: #fff; cursor: pointer; font-size: 15px; font-weight: 500; transition: background-color 0.3s ease, color 0.3s ease; }
.options input:checked + span { background: var(--red); border-color: var(--red); color: var(--ivory); }
.options input:focus-visible + span { outline: 2px solid var(--brown); outline-offset: 2px; }
.options .options__label { border: 0; background: none; padding: 0; min-height: 0; cursor: default; font-weight: 500; margin-right: 6px; }
.options--small label span { min-height: 44px; padding: 8px 18px; font-weight: 400; }
.options--centered { align-items: center; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--brown);
  background: #fff; border: 1px solid #8F8676; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brown); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #8A1F2E; border-width: 2px; }
.error { font-size: 14px; font-weight: 500; color: #8A1F2E; }
.error:empty { display: none; }
.dropzone { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; border: 1px dashed #8F8676; padding: 18px; background: #FBF8F2; font-weight: 400; }
.dropzone input { font: inherit; font-size: 15px; }
.dropzone span { color: var(--text-soft); font-size: 14px; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--brown); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.submit-row .btn { font-size: 17px; padding: 18px 36px; min-height: 52px; }
.submit-row .btn[disabled] { opacity: 0.6; cursor: wait; }
.submit-row__note { font-size: 14px; color: var(--text-muted); }
.alert { padding: 16px 20px; background: #F3E3E2; border-left: 4px solid #8A1F2E; color: var(--brown); }

.quote__aside { flex: 1 1 320px; display: flex; flex-direction: column; gap: 24px; }
.next-steps { background: var(--brown); color: var(--ivory); padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.next-steps h2 { font-size: 30px; line-height: 1.1; }
.next-steps ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.next-steps li { display: flex; gap: 14px; }
.next-steps li b { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; color: #BF969E; }
.next-steps li span { color: var(--footer-text); font-weight: 300; }
.call-box { border: 1px solid var(--rule); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.call-box__title { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.call-box__phone { font-family: var(--serif); font-weight: 600; font-size: 32px; text-decoration: none; font-variant-numeric: lining-nums; }
.call-box__area { font-size: 14px; color: var(--text-muted); }

.thanks { max-width: 820px; margin: 0 auto; padding: 120px var(--gutter) 160px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.thanks__badge { width: 72px; height: 72px; border-radius: 50%; background: var(--red); display: inline-flex; align-items: center; justify-content: center; }
.thanks h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1; }
.thanks p { max-width: 540px; font-size: 19px; font-weight: 300; color: var(--text-soft); }

/* Legal notice */
.legal { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; line-height: 1.7; }
.toc { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--brown); padding-top: 18px; font-size: 15px; position: sticky; top: 24px; }
.toc a { text-decoration: none; min-height: 40px; display: flex; align-items: center; }
.legal__text { flex: 3 1 640px; min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 56px; }
.legal__text article { display: flex; flex-direction: column; gap: 14px; }
.legal__text h2 { font-size: 34px; line-height: 1.15; }
.legal__text p { color: #3F382F; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); border-top: 1px solid var(--rule); }
.facts dt { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); font-weight: 500; }
.facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts small { color: var(--text-muted); font-size: inherit; }
.facts dd, .legal__text p { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .toc { position: static; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
