/* =========================================================
   277 Paint Co. LLC — site styles
   Brand colors sampled from the logo:
   navy #0f2a5f, blue #1e5895, red #d8262c, gold #f5a623.
   Navy is dominant. Gold and red are accents only.
   Inter and Fraunces are self-hosted (Google Fonts families)
   to keep typography refined without a third-party request.
   ========================================================= */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --navy: #0f2a5f;
  --navy-2: #13306b;
  --navy-deep: #0a1e45;
  --royal: #1e5895;
  --red: #d8262c;
  --accent: #f5a623;
  --accent-2: #ea5901;
  --accent-ink: #0f2a5f;
  --accent-text: #8a4a10;
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --ink: #1a1f2b;
  --muted: #4f5665;
  --line: #e3e7ee;
  --danger: #b42318;
  --success: #1f7a4d;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(15,42,95,.04), 0 10px 30px rgba(15,42,95,.06);
  --container: 1200px;
  --util-h: 40px;
  --header-h: 76px;
  --chrome-h: calc(var(--util-h) + var(--header-h));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--chrome-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.02em; font-weight: 600; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2vw, 2.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
ul, ol { padding: 0; margin: 0; list-style: none; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 4px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: 4px; font-weight: 650; font-size: .95rem; letter-spacing: .02em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; line-height: 1.2; text-align: center; font-family: inherit; }
.btn-sm { padding: .65rem 1.1rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ffb534; color: var(--accent-ink); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* ---------- Sticky chrome: utility + header ---------- */
.site-chrome { position: sticky; top: 0; z-index: 50; }
.util-bar { background: var(--navy-deep); color: #d5dbe8; font-size: .8rem; border-bottom: 0; box-shadow: inset 0 2px 0 var(--accent); }
.util-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--util-h); }
.util-locale { margin: 0; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; color: #9aa6bf; }
.util-links { display: flex; align-items: center; gap: 1.25rem; }
.util-links a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; text-decoration: none; font-weight: 550; min-height: 32px; }
.util-links a:hover { color: var(--accent); }
.util-links svg { flex-shrink: 0; }
.util-email-short { display: none; }

.site-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); }
.site-chrome.is-scrolled .site-header { box-shadow: 0 8px 24px rgba(15,42,95,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; color: var(--navy); }
.logo { display: block; height: 58px; width: auto; }
.logo-on-dark { background: #fff; padding: .35rem .55rem; border-radius: 6px; height: 68px; }
@media (max-width: 560px) { .logo { height: 48px; } .logo-on-dark { height: 56px; } }

.nav-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav ul { display: flex; gap: 1.35rem; }
.site-nav ul a { text-decoration: none; font-weight: 550; font-size: .9rem; letter-spacing: .01em; color: var(--ink); padding: .4rem 0; position: relative; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .2s ease; }
.site-nav ul a:hover, .site-nav ul a:focus-visible { color: var(--navy); }
.site-nav ul a:hover::after, .site-nav ul a:focus-visible::after { right: 0; }

@media (max-width: 940px) {
  :root { --header-h: 68px; }
  .util-locale { display: none; }
  .util-bar-inner { justify-content: flex-end; }
  .util-email-full { display: none; }
  .util-email-short { display: inline; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 1.25rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(15,42,95,.12); display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .header-cta { width: 100%; padding: .9rem 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(86vh, 820px); display: flex; align-items: flex-end; color: #eef1f6; overflow: hidden; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media { z-index: -2; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 42%; }
@media (max-width: 700px) {
  .hero-media img { object-position: 52% 38%; }
}
.hero-overlay { z-index: -1; background:
  linear-gradient(180deg, rgba(10,30,69,.28) 0%, rgba(10,30,69,.18) 34%, rgba(10,30,69,.78) 100%),
  linear-gradient(90deg, rgba(10,30,69,.88) 0%, rgba(10,30,69,.58) 42%, rgba(10,30,69,.22) 72%, rgba(10,30,69,.12) 100%); }
.hero-inner { position: relative; padding: 8rem 0 5rem; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: var(--royal); margin: 0 0 1rem; }
.eyebrow::before { content: ""; display: block; width: 36px; height: 2px; background: var(--accent); margin-bottom: .7rem; }
.hero .eyebrow, .eyebrow-light { color: var(--accent); }
.hero .eyebrow::before, .eyebrow-light::before { background: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.25rem); font-weight: 600; margin: 0 0 .35em; }
.slogan { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 1rem + 1.1vw, 1.7rem); color: #fff; margin: 0 0 1.1rem; font-weight: 500; }
.hero-lede { color: #d9deea; max-width: 38rem; margin: 0 0 1.75rem; font-size: 1.05rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 700px) {
  .hero { min-height: 92vh; }
  .hero-inner { padding: 6.5rem 0 3.5rem; }
  .hero-overlay { background:
    linear-gradient(180deg, rgba(10,30,69,.20) 0%, rgba(10,30,69,.42) 32%, rgba(10,30,69,.78) 62%, rgba(10,30,69,.90) 100%),
    linear-gradient(90deg, rgba(10,30,69,.62) 0%, rgba(10,30,69,.28) 50%, rgba(10,30,69,.10) 100%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 7vw, 7rem) 0; }
.section-head { margin-bottom: 2.75rem; max-width: 40rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { margin-inline: auto; }
.section-lede { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem 1.5rem; display: flex; flex-direction: column; min-height: 100%; }
.card-icon { width: 48px; height: 48px; color: var(--navy); margin-bottom: 1.15rem; }
.card-icon svg { width: 48px; height: 48px; }
.card h3, .service-also h3 { margin-bottom: .45rem; }
.card p, .service-also p { color: var(--muted); flex: 1; }
.card-link { margin-top: 1.1rem; font-weight: 650; font-size: .92rem; text-decoration: none; color: var(--navy); }
.card-link:hover { color: var(--royal); }
.service-also { margin-top: 1.25rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; padding: 1.4rem 1.6rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.service-also .card-icon { margin: 0; }
.service-also .card-link { margin-top: 0; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; }
  .service-also { grid-template-columns: auto 1fr; }
  .service-also .card-link { grid-column: 2; margin-top: 0; }
}

/* ---------- Featured interior band ---------- */
.featured-work { display: grid; grid-template-columns: 1.05fr .95fr; min-height: min(78vh, 760px); background: var(--navy-deep); color: #d9deea; }
.featured-media { min-height: 520px; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.featured-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 5.5rem); }
.featured-copy h2 { color: #fff; }
.featured-copy p { max-width: 32rem; }
.featured-copy .btn { align-self: flex-start; margin-top: 1rem; }
@media (max-width: 900px) {
  .featured-work { grid-template-columns: 1fr; min-height: 0; }
  .featured-media { min-height: 62vw; max-height: 640px; }
}

/* ---------- Why ---------- */
.why { background: var(--paper-2); }
.why-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.why-grid li { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.5rem; }
.why-grid li:nth-child(4) { grid-column: 2 / span 2; }
.why-grid li:nth-child(5) { grid-column: 4 / span 2; }
.why-grid h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.why-grid p { color: var(--muted); }
.why-cta { text-align: center; margin-top: 2.25rem; }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-grid li, .why-grid li:nth-child(4), .why-grid li:nth-child(5) { grid-column: auto; }
}
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { background: var(--paper); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 2.25rem; }
.gallery-filters button { appearance: none; font: inherit; font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; min-height: 40px; }
.gallery-filters button:hover { border-color: var(--navy); }
.gallery-filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.ba-compare { margin: 0 0 2.5rem; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ba-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ba-card button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ba-card img { width: 100%; height: auto; aspect-ratio: 20 / 9; object-fit: cover; object-position: center; }
.ba-card figcaption { display: flex; flex-direction: column; gap: .25rem; padding: .85rem 1rem 1rem; text-align: left; }
.ba-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.ba-card figcaption span.ba-text { color: var(--ink); font-size: .95rem; }
@media (max-width: 700px) { .ba-pair { grid-template-columns: 1fr; } }

.gallery-group { margin-top: 2.5rem; }
.gallery-group:first-of-type { margin-top: 0; }
.gallery-group h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.gallery-item button:hover img { transform: scale(1.03); }
.gallery-item .thumb-wrap { overflow: hidden; background: var(--navy); display: block; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; display: block; transition: transform .35s ease; }
.gallery-item-portrait img { aspect-ratio: 3 / 4; object-position: 50% 55%; }
.gallery-item figcaption { padding: .8rem 1rem 1rem; font-size: .95rem; color: var(--ink); }
.gallery-note { text-align: center; color: var(--muted); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gallery-item img, .gallery-item button:hover img { transition: none; transform: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1.25rem; }
.lightbox[hidden] { display: none !important; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 40, .9); }
.lightbox-dialog { position: relative; z-index: 1; width: min(100%, 1100px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; }
.lightbox-figure { margin: 0; }
.lightbox-figure img { width: 100%; height: auto; max-height: min(78vh, 900px); object-fit: contain; background: #0e1424; border-radius: 6px; }
.lightbox-figure figcaption { color: #e9edf5; text-align: center; margin-top: .8rem; font-size: 1rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  font-size: 1.8rem; line-height: 1; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox-close { position: absolute; top: -52px; right: 0; font-size: 2rem; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); color: var(--accent-ink); }
.lightbox-prev[disabled], .lightbox-next[disabled] { opacity: .3; cursor: default; }
.lightbox-prev[disabled]:hover, .lightbox-next[disabled]:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 640px) {
  .lightbox-dialog { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .lightbox-figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox-prev, .lightbox-next { justify-self: center; }
  .lightbox-close { top: auto; bottom: auto; right: .25rem; }
}

/* ---------- Process ---------- */
.process { background: var(--paper-2); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.process-grid li { padding: 0 2rem; border-left: 1px solid var(--line); }
.process-grid li:first-child { border-left: 0; padding-left: 0; }
.process-num { display: block; font-family: var(--font-display); font-size: 2.25rem; font-weight: 600; color: var(--accent); letter-spacing: -.02em; margin-bottom: .6rem; line-height: 1; }
.process-grid h3 { margin-bottom: .45rem; }
.process-grid p { color: var(--muted); }
@media (max-width: 800px) {
  .process-grid { gap: 1.75rem; }
  .process-grid li { border-left: 0; border-top: 1px solid var(--line); padding: 1.75rem 0 0; }
  .process-grid li:first-child { border-top: 0; padding-top: 0; }
}

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 5; object-position: center 15%; border-radius: var(--radius); }
.about-photo figcaption { margin-top: .75rem; font-weight: 650; color: var(--navy); font-size: .95rem; }
.about-role { font-weight: 650; color: var(--navy); margin: 0 0 .75rem; }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }

/* ---------- Commercial / partner ---------- */
.partner { background: var(--navy); color: #d9deea; padding: clamp(4rem, 7vw, 6.5rem) 0; }
.partner h2 { color: #fff; }
.partner-inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.partner-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.partner-tags li { border: 1px solid rgba(255,255,255,.25); color: #fff; padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; }
.partner-ctas { display: flex; flex-direction: column; gap: .8rem; align-items: stretch; }
@media (max-width: 800px) { .partner-inner { grid-template-columns: 1fr; } }

/* ---------- Areas ---------- */
.areas { background: var(--navy-deep); color: #d9deea; }
.areas h2 { color: #fff; }
.areas .section-lede { color: #b8c2d6; }
.area-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem .9rem; max-width: 52rem; margin: 0 auto 1.5rem; }
.area-list li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; padding: .55rem 1rem; border-radius: 4px; font-weight: 550; letter-spacing: .02em; }
.areas-note { text-align: center; color: #b8c2d6; margin: 0; }
.areas-note a { color: #fff; }
.areas-note a:hover { color: var(--accent); }

/* ---------- Estimate form ---------- */
.estimate { background: var(--paper-2); }
.estimate-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.estimate-email { color: var(--muted); margin-top: 1.25rem; font-weight: 550; }
.estimate-email a { color: var(--navy); font-weight: 700; text-decoration: none; }
.estimate-email a:hover { color: var(--royal); text-decoration: underline; }
.estimate-form, .thanks { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: flex; flex-direction: column; min-width: 0; border: 0; margin: 0; padding: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; color: var(--navy); padding: 0; }
.req { color: var(--danger); }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #cfd5df; border-radius: 4px; padding: .75rem .85rem; width: 100%; min-height: 48px; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input[type="file"] { padding: .6rem; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(245,166,35,.45); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .86rem; margin: .3rem 0 0; min-height: 0; }
.field-error:empty { display: none; }
.hint { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: .6rem 1rem; border: 1.5px solid #cfd5df; border-radius: 4px; font-weight: 550; font-size: .95rem; background: #fff; transition: all .15s; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-legal { font-size: .86rem; color: var(--muted); margin: 1.25rem 0 1rem; }
.form-status { margin: .9rem 0 0; font-weight: 550; font-size: .95rem; }
.form-status.is-error { color: var(--danger); }
.form-status.is-info { color: var(--navy); background: #fff8eb; border: 1px solid #f1d39e; padding: .75rem .9rem; border-radius: 6px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { text-align: center; padding: 3rem 2rem; }
.thanks svg { width: 64px; height: 64px; margin: 0 auto 1rem; fill: none; stroke: var(--success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.thanks:focus { outline: none; }
@media (max-width: 900px) { .estimate-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b8c2d6; padding: 4rem 0 1.5rem; font-size: .96rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2.25rem; }
.footer-slogan { font-family: var(--font-display); font-style: italic; color: #fff; font-size: 1.15rem; margin: 1rem 0 .5rem; }
.footer-h { font-family: var(--font-body); font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin-bottom: .9rem; }
.footer-links li { margin-bottom: .45rem; }
.footer-areas { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.footer-areas li { color: #b8c2d6; }
.footer-links a { text-decoration: none; }
.social { display: flex; gap: 1rem; margin-top: .75rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.75rem; padding-top: 1.25rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveals ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }
