/* Vent Sweeper: brand navy #13304D, brand orange #E8692A (from the logo). */
:root {
  --navy: #13304d;
  --navy-deep: #0b1f33;
  --slate: #4c6680;
  --orange: #e8692a;
  --orange-ink: #c24e16;      /* AA contrast with white text */
  --orange-ink-hover: #a8410f;
  --ink: #1b2836;
  --muted: #55657a;
  --line: #dde4ec;
  --tint: #f3f6f9;
  --cream: #fff7f1;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 51, .10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, .18);
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
h1, h2, h3, .h3 { font-family: var(--display); color: var(--navy); line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
h3, .h3 { font-size: 1.55rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.center { text-align: center; }
[hidden] { display: none !important; }
.icon { flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head-spaced { margin-top: 3.5rem; margin-bottom: 1.5rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.15rem; }
.eyebrow { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: var(--orange-ink); margin-bottom: .6rem; }
.eyebrow-light { color: var(--orange); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1.05rem/1.2 var(--font); padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { font-size: 1.15rem; padding: 1rem 1.7rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange-ink); color: #fff; box-shadow: 0 6px 18px rgba(194, 78, 22, .35); }
.btn-primary:hover { background: var(--orange-ink-hover); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--orange-ink); text-decoration: none; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow-light { color: var(--orange); }
.link-arrow-light:hover { color: #fff; }

/* Top bar + header */
.topbar { background: var(--navy-deep); color: #c9d6e3; font-size: .9rem; }
.topbar-inner { padding-block: .45rem; text-align: center; letter-spacing: .02em; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand img { width: 220px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav > ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a { display: block; padding: .6rem .8rem; font-weight: 600; text-decoration: none; color: var(--ink); border-radius: 8px; }
.site-nav > ul > li > a:hover, .site-nav a[aria-current="page"] { color: var(--orange-ink); }
.sub { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .5rem .75rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .98rem; }
.sub a:hover { background: var(--tint); color: var(--orange-ink); }
.nav-actions { display: flex; gap: .6rem; }
.nav-actions .btn { padding: .6rem 1.1rem; font-size: 1rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -8px; }
.nav-toggle-bars::after { top: 8px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 960px) {
  .brand img { width: 180px; }
  /* backdrop-filter would make the fixed menu position inside the header */
  .site-header { backdrop-filter: none; background: #fff; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); top: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 5rem 1.25rem 2rem; gap: 1rem; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 60; }
  .nav-open .site-nav { transform: none; visibility: visible; transition: transform .25s; }
  .nav-toggle { position: relative; z-index: 70; }
  .site-nav > ul { flex-direction: column; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem .75rem; min-width: 0; }
  .sub a { padding: .35rem .5rem; font-size: .95rem; color: var(--muted); }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn-ghost { display: inline-flex; }
}

/* Home hero */
.hero { position: relative; color: #fff; background: var(--navy-deep); overflow: hidden; }
.hero-media, .danger-media { position: absolute; inset: 0; }
.hero-media img, .danger-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 31, 51, .96) 0%, rgba(11, 31, 51, .85) 45%, rgba(11, 31, 51, .35) 100%); }
.hero-inner { position: relative; padding-block: clamp(72px, 11vw, 140px); }
.hero-copy { max-width: 640px; }
.hero h1 { color: #fff; }
.hero .lead { color: #dbe5ee; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.75rem 0; }
@media (max-width: 720px) { .hero-media::after { background: linear-gradient(180deg, rgba(11, 31, 51, .78), rgba(11, 31, 51, .95)); } }

.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .55rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .icon { color: var(--orange-ink); margin-top: .2em; }
.check-list-light { color: #e7eef5; font-weight: 600; }
.check-list-light .icon { color: var(--orange); }

/* Stats */
.stats { background: var(--orange-ink); color: #fff; padding-block: 2.75rem; }
.danger .stats { position: relative; background: rgba(194, 78, 22, .94); }
.danger .stats-source { font-size: .85rem; color: #ffd9c4; }
.stats-title { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); display: flex; align-items: center; gap: .5rem; justify-content: center; text-align: center; }
.stats-title .icon { width: 28px; height: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1.5rem 0 1rem; text-align: center; }
.stat dt { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; }
.stat dd { margin: .35rem 0 0; font-weight: 600; color: #ffe6d8; }
.stats-source { text-align: center; font-size: .85rem; color: #ffd9c4; margin: 0; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; } }

/* Self-check */
.signs-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.signs-intro { position: sticky; top: 110px; }
.signs-result { margin-top: 1.5rem; padding: 1.25rem; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--line); }
.meter { height: 10px; background: #e3e9f0; border-radius: 99px; overflow: hidden; margin-bottom: .9rem; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f2a35d, var(--orange-ink)); border-radius: inherit; transition: width .3s ease; }
.signs-result-text { font-weight: 600; margin-bottom: .8rem; }
.signs-result[data-level="many"] { background: var(--cream); border-color: #f5c8ac; }
.sign-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.sign { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.sign:hover { border-color: #b9c7d6; }
.sign input { position: absolute; opacity: 0; pointer-events: none; }
.sign-box { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid #b9c7d6; display: grid; place-items: center; color: transparent; margin-top: .1rem; transition: all .15s; }
.sign-text { display: grid; gap: .2rem; }
.sign-text strong { font-size: 1.1rem; color: var(--navy); }
.sign-text span { color: var(--muted); }
.sign input:checked ~ .sign-box { background: var(--orange-ink); border-color: var(--orange-ink); color: #fff; }
.sign:has(input:checked) { border-color: var(--orange-ink); background: var(--cream); }
.sign:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 860px) { .signs-grid { grid-template-columns: 1fr; } .signs-intro { position: static; } }

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.service-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .service-card-img img { transform: scale(1.04); }
.service-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { margin-bottom: .4rem; }
.service-card-body p { color: var(--muted); flex: 1; }
@media (max-width: 400px) { .card-grid { grid-template-columns: 1fr; } }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split-reverse .split-media { order: -1; }
.framed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.framed img { width: 100%; }
.split-media { display: grid; gap: 2rem; }
.prose h2 { margin-top: 1.6em; display: flex; align-items: center; gap: .4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .icon { width: 30px; height: 30px; color: var(--orange-ink); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-reverse .split-media { order: 0; } }

.steps-title { margin-top: 2rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.4rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; }
.steps strong { display: block; font-size: 1.15rem; color: var(--navy); }
.steps p { color: var(--muted); margin: .15rem 0 0; }

/* Danger band */
.danger { position: relative; color: #fff; background: var(--navy-deep); overflow: hidden; }
.danger-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(11, 31, 51, .95) 0%, rgba(11, 31, 51, .85) 50%, rgba(11, 31, 51, .45) 100%); }
.danger-inner { position: relative; display: flex; justify-content: flex-end; padding-block: clamp(72px, 10vw, 130px); }
.danger-copy { max-width: 560px; }
.danger h2 { color: #fff; }
.danger p { color: #dbe5ee; font-size: 1.15rem; }
@media (max-width: 720px) { .danger-media::after { background: rgba(11, 31, 51, .86); } }

/* Area links */
.area-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.area-links a { display: flex; align-items: center; gap: .65rem; padding: .95rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--navy); transition: border-color .15s, box-shadow .15s, transform .15s; }
.area-links a:hover { border-color: var(--orange-ink); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--navy); }
.area-links .icon { color: var(--orange-ink); }
.area-links span { display: grid; line-height: 1.25; }
.area-links small { font-weight: 500; color: var(--muted); font-size: .85rem; }

.pill-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-links-center { justify-content: center; margin-top: 1.5rem; }
.pill-links a { display: inline-block; padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pill-links a:hover { border-color: var(--orange-ink); }

/* FAQ */
.faq-list { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.3rem; font-weight: 700; font-size: 1.1rem; color: var(--navy); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 500; color: var(--orange-ink); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item > div { padding: 0 1.3rem 1.1rem; color: var(--muted); }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 70%); color: #fff; padding-block: clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -120px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); background: url('/brand/icon-512.png') center / contain no-repeat; opacity: .07; pointer-events: none; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: #dbe5ee; max-width: 720px; }
.page-hero .lead a, .hero .lead a, .danger a.phone-link { color: #fff; }
.page-hero .hero-actions { margin-bottom: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1rem; font-size: .92rem; color: #aebfd0; }
.crumbs li + li::before { content: '/'; margin-right: .35rem; color: #6f88a1; }
.crumbs a { color: #d6e1ec; text-decoration: none; }
.crumbs a:hover { color: var(--orange); }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; padding-block: clamp(48px, 6vw, 72px); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: #c9d6e3; margin: 0; max-width: 620px; }
.cta-band a.phone-link { color: #fff; font-weight: 700; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Estimate */
.estimate-section { background: linear-gradient(180deg, var(--tint), #fff); }
.estimate-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.estimate-grid-page { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.form-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 3vw, 2.25rem); border-top: 5px solid var(--orange-ink); }
.form-card-compact { box-shadow: var(--shadow); }
.form-card-compact p { color: var(--muted); }
.call-card { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--navy); color: #fff; text-decoration: none; box-shadow: var(--shadow); max-width: 380px; }
.call-card:hover { background: var(--navy-deep); color: #fff; }
.call-card-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--orange-ink); display: grid; place-items: center; flex: none; }
.call-card-icon .icon { width: 26px; height: 26px; }
.call-card span:last-child { display: grid; line-height: 1.25; }
.call-card strong { font-family: var(--display); font-size: 1.9rem; }
.call-card small { color: #b9c9d9; }
.estimate-aside { display: grid; gap: 1.75rem; }
.call-box { background: var(--navy); color: #dbe5ee; border-radius: 18px; padding: 1.75rem; }
.call-box h2 { color: #fff; }
.call-box a.phone-link { color: #fff; }
@media (max-width: 860px) { .estimate-grid, .estimate-grid-page { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; margin-bottom: 1.25rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .95rem; color: var(--navy); }
.req { color: var(--orange-ink); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1.5px solid #c5d1dd; border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(19, 48, 77, .12); }
.has-error input { border-color: #c0262d; }
.field-error { color: #b0242b; font-size: .9rem; font-weight: 600; margin: 0; }
.form-alert { background: #fdecec; color: #8f1d22; border: 1px solid #f3c2c4; padding: .75rem 1rem; border-radius: 10px; font-weight: 600; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: .5rem; }
.hint { font-weight: 500; color: var(--muted); font-size: .88rem; margin-left: .35rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices-check { display: grid; grid-template-columns: 1fr 1fr; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; gap: .55rem; height: 100%; padding: .6rem .95rem; border: 1.5px solid #c5d1dd; border-radius: 10px; font-weight: 500; font-size: .97rem; line-height: 1.3; background: #fff; transition: border-color .15s, background .15s, color .15s; }
.choice span::before { content: ''; flex: none; width: 18px; height: 18px; border: 2px solid #9fb1c3; border-radius: 50%; background: #fff center / 12px no-repeat; transition: inherit; }
.choices-check .choice span::before { border-radius: 5px; }
.choice:hover span { border-color: var(--navy); }
.choice input:checked + span { border-color: var(--orange-ink); background: var(--cream); color: var(--navy); font-weight: 600; }
.choice input:checked + span::before { border-color: var(--orange-ink); background-color: var(--orange-ink); box-shadow: inset 0 0 0 3px #fff; }
.choices-check .choice input:checked + span::before { box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.choice input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 560px) { .choices-check { grid-template-columns: 1fr; } }
.form-note { text-align: center; color: var(--muted); font-size: .88rem; margin: .75rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Thank-you */
.thanks-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--orange-ink); color: #fff; margin-bottom: 1.25rem; }
.thanks-icon .icon { width: 44px; height: 44px; }
.thanks .btn { margin: .3rem; }

/* Estimate / invoice page (/e/..., /i/...) */
.doc-section { background: var(--tint); }
.doc-wrap { max-width: 860px; }
.doc { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 3rem); border-top: 6px solid var(--orange-ink); }
.doc-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.doc-logo { width: 220px; height: auto; margin-bottom: .6rem; }
.doc-from { color: var(--muted); font-size: .95rem; margin: 0; }
.doc-from a { color: var(--navy); font-weight: 700; text-decoration: none; }
.doc-title { text-align: right; }
.doc-title h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.8rem); }
.doc-number { font-weight: 700; color: var(--muted); margin: 0 0 .4rem; }
.doc-badge { display: inline-block; padding: .2rem .8rem; border-radius: 99px; font-weight: 700; font-size: .9rem; background: var(--tint); color: var(--navy); }
.doc-badge-paid, .doc-badge-accepted, .doc-badge-invoiced { background: #e7f5ec; color: #1d7a46; }
.doc-badge-void, .doc-badge-declined { background: #f3e6e6; color: #b0242b; }
.doc-meta { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.5rem 0; }
.doc-meta h2 { font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .3rem; }
.doc-meta p { margin: 0; }
.doc-meta dl { display: grid; grid-template-columns: auto auto; gap: .2rem 1.25rem; margin: 0; }
.doc-meta dt { color: var(--muted); }
.doc-meta dd { margin: 0; font-weight: 700; text-align: right; }
.doc-table-wrap { overflow-x: auto; }
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .6rem .5rem; border-bottom: 2px solid var(--navy); }
.doc-table td { padding: .8rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table td span { display: block; color: var(--muted); font-size: .92rem; }
.doc-table .num, .doc-totals dd { text-align: right; white-space: nowrap; }
.doc-totals { display: grid; grid-template-columns: 1fr auto; row-gap: .35rem; max-width: 340px; margin: 1.25rem 0 0 auto; }
.doc-totals dt { color: var(--muted); text-align: right; padding-right: 2rem; }
.doc-totals dd { margin: 0; font-weight: 600; }
.doc-totals .doc-total { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--navy); border-top: 2px solid var(--navy); padding-top: .4rem; margin-top: .2rem; }
.doc-notes { margin-top: 1.75rem; padding: 1rem 1.2rem; background: var(--tint); border-radius: 10px; }
.doc-pay { margin-top: 1.5rem; padding: 1rem 1.2rem; border: 2px dashed var(--line); border-radius: 10px; }
.doc-pay h2 { font-size: 1.3rem; margin: 0 0 .3rem; }
.doc-pay p { margin: 0; }
.doc-alert { padding: 1rem 1.2rem; border-radius: 10px; background: #fff6e0; border: 1px solid #f0dca8; margin-bottom: 1.25rem; }
.doc .doc-alert { margin: 1.5rem 0 0; }
.doc-alert-ok { background: #e7f5ec; border-color: #b9e0c7; }
.doc-accept { margin-top: 2rem; padding: 1.5rem; background: var(--cream); border-radius: 12px; display: grid; gap: .6rem; justify-items: start; }
.doc-accept h2 { margin: 0; font-size: 1.6rem; }
.doc-accept textarea, .doc-decline textarea { width: 100%; font: inherit; padding: .7rem .9rem; border: 1.5px solid #c5d1dd; border-radius: 10px; }
.doc-decline { margin-top: 1rem; }
.doc-decline summary { cursor: pointer; color: var(--muted); }
.doc-decline form { display: grid; gap: .6rem; justify-items: start; margin-top: .75rem; }
.doc-print { text-align: center; margin: 1.5rem 0 0; }
@media (max-width: 560px) { .doc-title { text-align: left; } .doc-meta dd { text-align: left; } }
@media print {
  .topbar, .site-header, .site-footer, .mobile-bar, .doc-print, .doc-accept, .doc-decline, .doc-alert, .skip-link { display: none !important; }
  body { padding: 0; background: #fff; }
  .doc-section { background: #fff; padding: 0; }
  .doc { box-shadow: none; border-radius: 0; padding: 0; }
}

/* Footer */
.site-footer { background: var(--navy-deep); color: #b9c9d9; padding-top: 4rem; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr .9fr; gap: 2.5rem; }
.footer-brand img { margin-bottom: .75rem; }
.footer-name { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: .4rem; }
.footer-heading { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #d6e1ec; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: .55rem; align-items: center; }
.footer-contact .icon { color: var(--orange); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-block: 1.5rem; font-size: .88rem; color: #8ea4ba; }
.footer-legal p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .65rem .75rem calc(.65rem + env(safe-area-inset-bottom)); background: var(--navy-deep); box-shadow: 0 -8px 24px rgba(0, 0, 0, .2); }
  .mobile-bar .btn { padding: .8rem .5rem; }
  body { padding-bottom: 76px; }
  .nav-open .mobile-bar { display: none; }
  .topbar { display: none; }
}
