/* High Desert Homes - site styles */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand palette (from the original site) */
  --cream: #fffced;
  --sand: #f7ebce;
  --stone: #ccc5b5;
  --copper: #b38665;
  --copper-deep: #956744;   /* copper darkened to pass contrast for text and buttons */
  --amber: #d9a76a;
  --navy: #1c203a;
  --ink: #414042;
  --body: #5b5d6f;
  --olive: #615939;
  --olive-dark: #30311d;

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --header-h: 84px;
  --shadow: 0 18px 50px -20px rgba(28, 32, 58, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 400; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

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

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--amber); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em;
  padding: 13px 24px; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-primary { background: var(--copper-deep); color: #fff; }
.btn-primary:hover { background: #7d5536; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

.text-link, .more {
  font-family: var(--font-head); font-weight: 500; color: var(--copper-deep);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.text-link::after, .more::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.text-link:hover::after, a:hover .more::after { width: 30px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-h);
  color: #fff; transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-solid { background: var(--olive-dark); box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.5); --header-h: 70px; }
body:not(.has-hero) .site-header { background: var(--olive-dark); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand img { height: 46px; width: auto; transition: height .35s var(--ease); }
.site-header.is-solid .brand img { height: 40px; }
.primary-nav { margin-left: auto; display: flex; gap: 34px; }
.primary-nav a {
  font-family: var(--font-head); font-size: 0.98rem; text-decoration: none; color: rgba(255, 255, 255, 0.9);
  padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .2s;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #fff; background-size: 100% 1px; }
.header-cta .label-mobile { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }

/* ---------- slide-in "Let's Talk" panel ---------- */
.panel-overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 22, 18, 0.55);
  opacity: 0; transition: opacity .35s var(--ease);
}
.panel-overlay.is-open { opacity: 1; }
.talk-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(440px, 100%);
  background: var(--sand); color: var(--body); padding: 88px 44px 44px; overflow-y: auto;
  transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s linear .45s;
  display: flex; flex-direction: column; gap: 32px;
}
.talk-panel.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.panel-close {
  position: absolute; top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--copper-deep); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.panel-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.panel-nav { display: none; flex-direction: column; gap: 6px; }
.panel-nav a { font-family: var(--font-head); font-size: 1.9rem; color: var(--navy); text-decoration: none; line-height: 1.35; }
.panel-nav a[aria-current="page"] { color: var(--copper-deep); }
.panel-talk h2 { font-size: 2.4rem; margin-bottom: 0.4em; }
.contact-list { margin: 0 0 28px; display: grid; gap: 16px; }
.contact-list dt { font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-deep); }
.contact-list dd { margin: 2px 0 0; color: var(--navy); font-size: 1.1rem; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--stone); }
.contact-list a:hover { border-color: currentColor; }
body.panel-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--olive-dark); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 21, 14, 0.55) 0%, rgba(20, 21, 14, 0) 28%), linear-gradient(20deg, rgba(20, 21, 14, 0.82) 8%, rgba(20, 21, 14, 0.25) 58%, rgba(20, 21, 14, 0) 80%);
}
.hero-content { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(64px, 10vh, 112px); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { max-width: 560px; font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- proof strip ---------- */
.proof { background: var(--olive-dark); color: rgba(255, 255, 255, 0.78); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 34px 28px; border-left: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-direction: column; gap: 4px; }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-num { font-family: var(--font-head); font-size: 1.9rem; color: var(--amber); line-height: 1.2; }
.proof-text { font-size: 0.95rem; line-height: 1.5; }

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-tight-top { padding-top: 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--olive-dark); color: rgba(255, 255, 255, 0.78); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p:last-child { margin-bottom: 0; font-size: 1.1rem; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-row h2 { margin-bottom: 0; }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.service-card {
  grid-column: span 2; display: flex; flex-direction: column; background: #fff; text-decoration: none; color: var(--body);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 rgba(28, 32, 58, 0.06);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.service-card.span-3 { grid-column: span 3; }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.service-card.span-3 img { aspect-ratio: 16 / 10; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card:hover img { transform: scale(1.04); }
.service-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; position: relative; background: #fff; }
.service-body h3 { margin-bottom: 0.35em; }
.service-body p { font-size: 0.98rem; line-height: 1.6; }
.service-body .more { margin-top: auto; }

/* split layouts */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-media-left { grid-template-columns: 1.1fr 1fr; }
.split-media { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-text .btn, .split-text .text-link { margin-top: 10px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--olive-dark); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* values */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.value { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 32px; }
.value-icon { width: 44px; height: 44px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.value p { font-size: 0.98rem; line-height: 1.65; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 26px; }
.step-num { display: block; font-family: var(--font-head); color: var(--copper-deep); font-size: 0.9rem; letter-spacing: 0.18em; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.98rem; line-height: 1.65; }

/* projects */
.project-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(220px, 1fr)); gap: 20px; min-height: 560px; }
.project-card { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; }
.project-lg { grid-row: span 2; }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 21, 14, 0.75) 0%, rgba(20, 21, 14, 0) 55%); }
.project-card:hover img { transform: scale(1.05); }
.project-label { position: absolute; left: 28px; bottom: 24px; z-index: 1; font-family: var(--font-head); font-size: 1.6rem; line-height: 1.2; }
.project-kind { display: block; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); font-weight: 600; margin-bottom: 4px; }

/* testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; background: var(--cream); padding: 40px 36px 34px; border-radius: var(--radius); position: relative; display: flex; flex-direction: column; }
.quote::before { content: "\201C"; font-family: var(--font-head); font-size: 5rem; line-height: 0.6; color: var(--copper); display: block; height: 34px; }
.quote blockquote { margin: 0 0 24px; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.5; color: var(--navy); font-weight: 300; }
.quote figcaption { margin-top: auto; font-weight: 600; color: var(--copper-deep); font-size: 0.95rem; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq details { border-bottom: 1px solid rgba(28, 32, 58, 0.15); }
.faq details:first-child { border-top: 1px solid rgba(28, 32, 58, 0.15); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--font-head); font-size: 1.2rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; color: var(--copper-deep); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-right: 48px; }

/* contact band */
.contact-band { color: rgba(255, 255, 255, 0.85); overflow: hidden; background: var(--olive-dark); }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.contact-band h2 { color: #fff; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-list-light dt { color: var(--amber); }
.contact-list-light dd { color: #fff; }
.contact-list-light a { border-color: rgba(255, 255, 255, 0.35); }
.contact-form { background: var(--cream); color: var(--body); padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-family: var(--font-head); font-size: 0.92rem; color: var(--navy); font-weight: 500; }
.optional { color: var(--body); font-weight: 400; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--stone); border-radius: var(--radius);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--copper-deep); box-shadow: 0 0 0 3px rgba(149, 103, 68, 0.18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 14px 0 0; font-size: 0.95rem; min-height: 1.5em; }
.form-status.is-error { color: #a33a2b; }
.form-status.is-ok { color: #3e6b3a; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; margin: 4px 0 18px; font-size: 0.86rem; line-height: 1.55; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--copper-deep); cursor: pointer; }
.form-consent { font-size: 0.8rem; line-height: 1.55; margin-bottom: 22px; padding-top: 16px; border-top: 1px solid var(--stone); }
.form-consent p { margin-bottom: 0.7em; }
.form-consent p:last-child { margin-bottom: 0; }
.form-consent strong { color: var(--navy); font-weight: 600; }
.check a, .form-consent a { color: var(--copper-deep); text-underline-offset: 2px; }

/* social icons */
.socials { display: flex; gap: 10px; margin-top: 6px; }
.contact-list .socials a, .socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--stone); color: var(--navy); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.socials a:hover { background: var(--copper-deep); border-color: var(--copper-deep); color: #fff; }
.socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.socials svg .dot, .socials svg .fill { fill: currentColor; stroke: none; }
.socials-footer { margin-top: 10px; }
.site-footer .socials a { border-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.85); }
.site-footer .socials a:hover { background: var(--copper-deep); border-color: var(--copper-deep); color: #fff; text-decoration: none; }

/* ---------- inner pages ---------- */
.page-head { background: var(--olive-dark); color: rgba(255, 255, 255, 0.8); padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 80px); }
.page-head h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.75rem); max-width: 18ch; }
.page-head p { max-width: 640px; font-size: 1.1rem; }
.page-head p:last-child { margin-bottom: 0; }
.page-meta { font-size: 0.95rem; color: rgba(255, 255, 255, 0.6); }

/* legal pages */
.legal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 28px); font-size: 0.94rem; line-height: 1.45; }
.legal-toc h2 { font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-deep); margin-bottom: 14px; }
.legal-toc ol { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.legal-toc a { color: var(--body); text-decoration: none; }
.legal-toc a:hover { color: var(--copper-deep); }
.prose { max-width: 740px; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); margin-top: 2.1em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--copper); }
.prose a { color: var(--copper-deep); text-underline-offset: 3px; }
.prose strong { color: var(--navy); font-weight: 600; }
.legal-part { margin-top: clamp(56px, 8vw, 88px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid rgba(28, 32, 58, 0.15); scroll-margin-top: calc(var(--header-h) + 24px); }
.callout { background: var(--sand); border-left: 3px solid var(--copper-deep); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 1.4em; }
.callout p:last-child { margin-bottom: 0; }
.legal-contact { margin: 0; display: grid; gap: 12px; }
.legal-contact dt { font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-deep); }
.legal-contact dd { margin: 0; color: var(--navy); }

/* footer */
.site-footer { background: #23241a; color: rgba(255, 255, 255, 0.7); padding: 72px 0 28px; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 280px; }
.site-footer h2 { font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer a:not(.btn) { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.5); }
.todo { color: var(--amber); }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .service-card img, .project-card img, .talk-panel, .panel-overlay { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card.span-3 { grid-column: span 1; }
  .service-card:first-child { grid-column: span 2; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof-item { padding: 26px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .primary-nav { display: none; }
  .header-cta { margin-left: auto; padding: 11px 18px; }
  .header-cta .label-desktop { display: none; }
  .header-cta .label-mobile { display: inline-flex; align-items: center; gap: 12px; }
  .panel-nav { display: flex; }
  .talk-panel { padding: 84px 32px 36px; }
  .panel-talk h2 { font-size: 1.6rem; }
  .split, .split-media-left, .contact-grid, .faq-wrap { grid-template-columns: 1fr; }
  .value-grid, .steps, .quote-grid { grid-template-columns: 1fr; }
  .steps { gap: 48px; }
  .project-grid { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .project-card { aspect-ratio: 4 / 3; }
  .project-lg { grid-row: auto; }
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; padding: 22px 24px 2px; background: var(--sand); border-radius: var(--radius); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { height: 38px; }
  .hero { min-height: 92vh; }
  .hero-content { padding-bottom: 56px; }
  .hero .lead { font-size: 1.05rem; }
  .actions .btn { flex: 1 1 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card:first-child { grid-column: auto; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item { padding: 22px 14px 22px 0; border-left: 0; }
  .proof-num { font-size: 1.5rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 404 page ---------- */
.hero-404 { align-items: center; min-height: min(100vh, 860px); }
.hero-404 .hero-content { padding-bottom: clamp(56px, 8vh, 96px); }
.hero-404::after {
  background: linear-gradient(180deg, rgba(20, 21, 14, 0.6) 0%, rgba(20, 21, 14, 0.3) 40%, rgba(20, 21, 14, 0.8) 100%), linear-gradient(90deg, rgba(20, 21, 14, 0.78) 0%, rgba(20, 21, 14, 0.15) 75%);
}
.error-code { font-family: var(--font-head); font-weight: 300; font-size: clamp(5.5rem, 18vw, 12rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--amber); margin: 0 0 18px; }
.quick-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; max-width: 560px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-family: var(--font-head); font-size: 0.98rem;
}
.quick-links span { color: rgba(255, 255, 255, 0.6); }
.quick-links a { color: #fff; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.quick-links a:hover { background-size: 100% 1px; }
