/* Slab Science — site stylesheet
   Shared by every page of the new site. Plain CSS, no build step.

   Brand source: reference/New Logo Finals/Slab Science Branding/Slab Science Mini Brand Deck.pdf
   - Primary colors: Deep Navy + Grey. Yellow is an accent, used sparingly (and always on the logo's level).
   - Web contrast rules from the deck: never grey or snow text on white; yellow text on white
     only as #D89500 for bold headers (never small body text); slate is OK as text on white.
   - Type: Adrianna Expanded (headlines) → stand-in Archivo Expanded until a webfont license is bought;
     Archivo SemiExpanded (subheads, per deck); Anderson Grotesk (body) → stand-in Archivo
     until its web license is confirmed. All Archivo widths load from one Google Fonts request. */

:root {
  /* Brand palette (Mini Brand Deck, p.3–4) */
  --navy:   #0c1144;   /* primary: text on white, dark sections */
  --grey:   #94958b;   /* primary: backgrounds/accents only, NOT text on white */
  --yellow: #ffc918;   /* accent: buttons (navy text), highlights on navy */
  --gold:   #d89500;   /* yellow-as-text on white: bold headers only */
  --snow:   #f7f7f7;   /* light section background */
  --slate:  #4f6367;   /* secondary text on white; mid-tone sections */
  --white:  #ffffff;

  /* Derived tints (for borders and hovers, built from brand colors) */
  --navy-90:  #1d2357;
  --line:     #dcdcd6;   /* grey at low strength, for borders on white */
  --grey-on-navy: #b9bab2; /* grey lifted slightly for body text on navy (deck: grey text OK on navy) */

  /* Type */
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;  /* stretch 125% = Adrianna stand-in */
  --font-sub:     "Archivo", "Helvetica Neue", Arial, sans-serif;          /* stretch 112.5% = SemiExpanded */
  --font-body:    "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;                    /* echoes the rounded corners of the brand "patch" */
  --shadow: 0 1px 2px rgba(12,17,68,.08), 0 10px 28px rgba(12,17,68,.10);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--navy);
  font: 400 18px/1.6 var(--font-body); font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 104px; } /* keep anchor targets clear of the sticky header */
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; line-height: 1.04; margin: 0; text-wrap: balance; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(32px, 5.2vw, 58px); }
h2 { font-size: clamp(25px, 3.4vw, 38px); }
h3 { font-family: var(--font-sub); font-stretch: 112.5%; font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font: 600 14px/1 var(--font-sub); font-stretch: 112.5%; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.lede { font: 400 clamp(19px, 2.1vw, 22px)/1.55 var(--font-sub); font-stretch: 112.5%; color: var(--slate); max-width: 58ch; }
.muted { color: var(--slate); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1 var(--font-sub); font-stretch: 112.5%; letter-spacing: .06em; text-transform: uppercase;
  padding: 16px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--navy); color: var(--yellow); border-color: var(--yellow); }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header */
.topbar { background: var(--navy); color: var(--grey-on-navy); font-size: 15px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { color: var(--yellow); font-weight: 700; text-decoration: none; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.logo { display: block; flex: none; }
.logo img { width: 128px; height: auto; }   /* brand minimum is 0.91in ≈ 88px */
.topbar-right { display: flex; align-items: center; gap: 6px; }

/* Main navigation: desktop = horizontal with dropdowns; ≤980px = slide-down panel */
.nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav-list > li > a, .dd-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px;
  color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer;
  font: 600 15px/1 var(--font-sub); font-stretch: 112.5%;
}
.nav-list > li > a:hover, .dd-btn:hover, .dd.open .dd-btn { background: var(--snow); }
.nav-list > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 8px 8px 0 0; }
.dd-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.dd { position: relative; }
.dd-menu {
  display: none; list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 40;
}
.dd.open .dd-menu { display: grid; }
@media (hover: hover) and (min-width: 1061px) { .dd:hover .dd-menu { display: grid; } .dd:hover::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; } }
.dd-menu a { display: grid; gap: 2px; padding: 9px 12px; border-radius: 6px; color: var(--navy); text-decoration: none; font-size: 15px; }
.dd-menu a strong { font: 700 15px/1.2 var(--font-sub); font-stretch: 112.5%; }
.dd-menu a span { font-size: 13px; color: var(--slate); }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: var(--snow); }
.nav-cta { margin-left: 8px; }
.nav-list > li > a.btn { padding: 12px 18px; font-size: 14px; white-space: nowrap; border-radius: 999px; box-shadow: none; }
.nav-list > li > a.btn-primary { background: var(--yellow); color: var(--navy); }
.nav-list > li > a.btn-primary:hover { background: var(--navy); color: var(--yellow); }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 999px; padding: 9px 14px; cursor: pointer; font: 700 14px/1 var(--font-sub); font-stretch: 112.5%; text-transform: uppercase; letter-spacing: .06em; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.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; }
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow-y: auto; }
  .site-header.nav-open .nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 20px; }
  .nav-list > li > a, .dd-btn { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dd-menu { position: static; box-shadow: none; border: 0; padding: 4px 0 8px 10px; min-width: 0; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; }
}
@media (max-width: 420px) {
  .logo img { width: 100px; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--snow); }
.section-navy { background: var(--navy); color: var(--grey-on-navy); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .eyebrow { color: var(--grey-on-navy); }
.section-slate { background: var(--slate); color: var(--snow); }
.section-slate h2, .section-slate h3 { color: var(--white); }
.section-slate .eyebrow { color: var(--snow); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }

/* Hero */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: center; padding-block: clamp(48px, 7vw, 92px); }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lede { color: var(--grey-on-navy); }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero .btn-outline { color: var(--white); }
.hero .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Trust strip */
.trust { background: var(--snow); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding-block: 16px; display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: center; font: 600 15px/1.3 var(--font-sub); font-stretch: 112.5%; }
.trust li { display: flex; align-items: center; gap: 8px; }
.stars { color: var(--gold); letter-spacing: 1px; }
.section-navy .stars, .hero .stars { color: var(--yellow); }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
/* The level-bar rule: a short yellow bar with rounded ends, borrowed from the logo's level */
.point { display: grid; gap: 12px; align-content: start; }
.point::before { content: ""; width: 56px; height: 8px; border-radius: 4px; background: var(--yellow); }
.point p { color: var(--slate); }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--navy); font: 800 20px/1 var(--font-display); font-stretch: 125%; }
.steps p { font-size: 16px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Reviews */
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.review blockquote { margin: 0; font-size: 18px; }
.review figcaption { font: 600 15px/1.3 var(--font-sub); font-stretch: 112.5%; color: var(--slate); }
.review-link { margin-top: 22px; font-weight: 600; }

/* Before / after pairs */
.ba { margin: 0; display: grid; gap: 10px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: var(--radius); overflow: hidden; }
.ba-pair div { position: relative; }
.ba-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-pair > div > span { position: absolute; left: 10px; top: 10px; background: var(--navy); color: var(--white); font: 700 12px/1 var(--font-sub); font-stretch: 112.5%; letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }
.ba-pair > div:last-of-type > span { background: var(--yellow); color: var(--navy); }
.ba figcaption { font-size: 15px; color: var(--slate); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 840px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq summary { cursor: pointer; padding: 18px 20px; font: 700 18px/1.3 var(--font-sub); font-stretch: 112.5%; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 24px/1 var(--font-display); color: var(--navy); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 20px; display: grid; gap: 10px; color: var(--slate); }

/* Estimate / form */
.estimate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 44px; align-items: start; }
@media (max-width: 900px) { .estimate { grid-template-columns: 1fr; } }
.estimate-copy { display: grid; gap: 18px; }
.form-card { background: var(--white); color: var(--navy); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); min-width: 0; }
.sms-notice { background: var(--snow); border-left: 4px solid var(--navy); padding: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--navy); margin-bottom: 16px; border-radius: 0 6px 6px 0; }
.callout-note { background: var(--snow); color: var(--navy); border-left: 6px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 16px; font-size: 16px; }
.phone-big { font: 800 30px/1 var(--font-display); font-stretch: 125%; color: var(--yellow); text-decoration: none; }

/* Footer */
.site-footer { background: var(--navy); color: var(--grey-on-navy); font-size: 15px; padding-block: 56px 100px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer h3 { color: var(--white); font-size: 17px; margin-bottom: 12px; }
.site-footer a { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { width: 150px; }
.social { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; font-weight: 600; text-decoration: none; }
.social a:hover, .social a:focus-visible { text-decoration: underline; }
.social svg { width: 22px; height: 22px; flex: none; }
.site-footer .social a { color: var(--white); }
.option-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; align-content: start; }
.option-card h3 { margin: 0; }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--navy-90); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--navy); box-shadow: 0 -4px 16px rgba(12,17,68,.25); }
  .callbar a { text-align: center; padding: 16px 8px; font: 700 15px/1 var(--font-sub); font-stretch: 112.5%; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
  .callbar a:first-child { color: var(--white); }
  .callbar a:last-child { background: var(--yellow); color: var(--navy); }
  .topbar .hide-sm { display: none; }
}

/* Before/after variant for wide panoramic shots: stack vertically, keep natural ratio */
.ba-pair.stack { grid-template-columns: 1fr; }
.ba-pair.stack img { aspect-ratio: auto; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--navy); color: var(--grey-on-navy); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: center; padding-block: clamp(36px, 6vw, 72px); }
.page-hero.no-media .wrap { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--max)); }
.page-hero h1 { color: var(--white); font-size: clamp(27px, 4.6vw, 50px); }
.page-hero h1 em { font-style: normal; color: var(--yellow); }
.page-hero .lede { color: var(--grey-on-navy); }
.page-hero .hero-copy { display: grid; gap: 22px; min-width: 0; }
.page-hero .btn-outline { color: var(--white); }
.page-hero .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.page-hero .media img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.4); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .page-hero .wrap { grid-template-columns: 1fr; } }
.crumbs { font-size: 14px; color: var(--grey-on-navy); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--white); }
@media (min-width: 901px) { .home-hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }  /* desktop only: on phones the hero stacks (Caleb review 11/7) */
.home-hero h1 { font-size: clamp(30px, 5.4vw, 60px); }

/* Two-column text + aside */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose h2 { margin-top: 8px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose li::marker { color: var(--gold); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 18px; height: 6px; border-radius: 3px; background: var(--yellow); }
.aside-card { background: var(--snow); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.aside-card h3 { font-size: 20px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards, .cards.four { grid-template-columns: 1fr; } }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--navy); text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.card-body p { font-size: 16px; color: var(--slate); }
.card-body .more { font: 700 14px/1 var(--font-sub); font-stretch: 112.5%; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.card-body .more::after { content: " \2192"; }
.card .tag { justify-self: start; background: var(--yellow); color: var(--navy); font: 700 11px/1 var(--font-sub); font-stretch: 112.5%; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }

/* Stat row (real numbers only) */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { display: grid; gap: 4px; }
.stat b { font: 800 clamp(28px, 3.6vw, 40px)/1 var(--font-display); font-stretch: 125%; color: var(--white); }
.stat span { font-size: 15px; color: var(--grey-on-navy); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; background: var(--white); }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 700 14px/1.2 var(--font-sub); font-stretch: 112.5%; text-transform: uppercase; letter-spacing: .06em; background: var(--snow); }
.compare tbody th { font-weight: 700; }
.compare .us { background: var(--snow); font-weight: 600; }
.compare thead .us { box-shadow: inset 0 4px 0 var(--navy); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { border: 2px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 999px; padding: 9px 16px; font: 700 14px/1 var(--font-sub); font-stretch: 112.5%; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; display: grid; gap: 8px; }
.gallery img { width: 100%; border-radius: var(--radius); background: var(--snow); }
.gallery figcaption { font: 600 15px/1.3 var(--font-sub); font-stretch: 112.5%; }
.gallery figcaption span { display: block; font: 400 14px/1.4 var(--font-body); color: var(--slate); }

/* Review wall */
.review-wall { columns: 3 300px; column-gap: 22px; }
.review-wall .review { break-inside: avoid; margin-bottom: 22px; box-shadow: none; }
.review-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.review-summary b { font: 800 56px/1 var(--font-display); font-stretch: 125%; color: var(--white); }

/* Area list */
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 22px; }
@media (max-width: 760px) { .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.area-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.area-list small { display: block; font-weight: 400; color: var(--slate); font-size: 14px; }

/* CTA band (in footer partial) */
.cta-band { background: var(--grey); color: var(--navy); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding-block: 40px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-band p { max-width: 56ch; margin-top: 8px; }
.cta-band .btn-primary { background: var(--navy); color: var(--white); }
.cta-band .btn-primary:hover { background: var(--white); color: var(--navy); border-color: var(--navy); }
.cta-band .btn-outline { color: var(--navy); border-color: var(--navy); }
.cta-band .btn-outline:hover { background: var(--navy); color: var(--white); }
.footer-h3-gap { margin-top: 26px; }
.site-footer .wrap.footer-legal { display: block; }

/* Jobber SMS helper text */
.sms-compliance-helper { display: block; font-size: 12px; color: var(--slate); margin: 4px 0 8px; line-height: 1.35; font-style: italic; }

/* Misc */
.center { text-align: center; }
.mt-lg { margin-top: 40px; }
.note-small { font-size: 14px; color: var(--slate); }
.launch-pill { justify-self: start; background: var(--yellow); color: var(--navy); border-radius: 999px; padding: 7px 14px; font: 800 13px/1 var(--font-sub); font-stretch: 112.5%; letter-spacing: .1em; text-transform: uppercase; }
/* Eyebrow labels on navy heroes: slate is too dark there; the brand allows grey text on navy */
.page-hero .eyebrow, .hero .eyebrow { color: var(--grey-on-navy); }

/* Reviews: per-source summary cards + source label */
.source-summary { display: flex; flex-wrap: wrap; gap: 16px; }
.source-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; background: var(--navy-90); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 16px 20px; color: var(--grey-on-navy); }
.source-card b { font: 800 44px/1 var(--font-display); font-stretch: 125%; color: var(--white); }
.source-card strong { color: var(--white); }
.source-card .btn { padding: 10px 14px; font-size: 13px; }
.review .src { font-weight: 700; color: var(--navy); }
.page-hero .stars { color: var(--yellow); }

/* Caleb review 11/7: bigger footer tap targets; jump-to-form button on phones */
.site-footer ul { gap: 2px; }
.site-footer ul a { display: inline-block; padding-block: 7px; }
.jump-form { display: none; justify-self: start; }
@media (max-width: 900px) { .jump-form { display: inline-flex; } }

/* Photo zoom (site.js): enlarge gallery photos and before/after pairs */
.zoom-wrap { display: block; position: relative; }
.ba-pair { position: relative; }
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: var(--radius); }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(12,17,68,.8); color: var(--white); display: grid; place-items: center; pointer-events: none; transition: transform .15s ease; }
.zoomable:hover .zoom-hint { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .zoom-hint { transition: none; } }
html:has(.zoom-dialog[open]) { overflow: hidden; }
.zoom-dialog { border: 0; padding: 56px 64px 24px; background: transparent; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; box-sizing: border-box; display: none; }
.zoom-dialog[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.zoom-dialog::backdrop { background: rgba(12,17,68,.92); }
.zoom-body { max-width: min(1200px, 100%); width: 100%; display: flex; justify-content: center; }
.zoom-body img { display: block; max-width: 100%; width: auto; height: auto; max-height: calc(100vh - 160px); object-fit: contain; border-radius: var(--radius); margin: 0 auto; }
.zoom-body .zoom-wrap { width: auto; }
.zoom-body .ba-pair { width: 100%; gap: 10px; align-items: center; }
.zoom-body .ba-pair img { width: 100%; aspect-ratio: auto; max-height: calc(100vh - 170px); object-fit: contain; }
.zoom-body .ba-pair.stack img { max-height: calc((100vh - 190px) / 2); }
.zoom-caption { color: var(--white); text-align: center; font: 600 16px/1.4 var(--font-sub); font-stretch: 112.5%; max-width: 70ch; margin: 0; }
.zoom-btn { position: fixed; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; font: 700 22px/1 var(--font-sub); }
.zoom-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; background: var(--yellow); color: var(--navy); font-size: 30px; }
.zoom-prev, .zoom-next { top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); color: var(--white); }
.zoom-prev { left: 10px; } .zoom-next { right: 10px; }
.zoom-btn:hover { filter: brightness(1.15); }
.zoom-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (max-width: 700px) {
  .zoom-dialog { padding: 64px 12px 20px; }
  .zoom-body .ba-pair { grid-template-columns: 1fr; }
  .zoom-body .ba-pair img { max-height: calc((100vh - 200px) / 2); }
  .zoom-prev, .zoom-next { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .zoom-caption { margin-bottom: 52px; font-size: 15px; }
}
.zoom-caption span { display: block; font: 400 15px/1.4 var(--font-body); color: var(--grey-on-navy); margin-top: 2px; }
.zoom-caption strong { color: var(--yellow); }

/* Four-step variant (was an inline style that blocked the phone layout; fixed 11/7) */
.steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps.steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps.steps-4 { grid-template-columns: 1fr; } }

/* "Number copied" message (desktop click on a phone link) */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--navy); color: var(--white); border: 2px solid var(--yellow); border-radius: 999px; padding: 12px 20px; font: 600 16px/1.2 var(--font-sub); font-stretch: 112.5%; box-shadow: var(--shadow); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Desktop nav: keep every label on one line; tighten spacing on mid-size screens (11/7, after adding Cleaning & Sealing) */
.nav-list > li > a, .dd-btn { white-space: nowrap; }
@media (min-width: 1061px) and (max-width: 1240px) {
  .nav-list { gap: 0; }
  .nav-list > li > a, .dd-btn { padding: 10px 9px; font-size: 14px; }
  .nav-cta { margin-left: 4px; }
  .nav-list > li > a.btn { padding: 11px 14px; font-size: 13px; }
}

/* Designer review 11/7: swipe hint for the comparison table on phones; reviews 'show more'; small extras */
.review-wall .review.extra { display: none; }
.review-wall.expanded .review.extra { display: block; }
.show-more { margin-top: 8px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.gallery-cta { grid-column: 1 / -1; background: var(--navy); color: var(--grey-on-navy); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.gallery-cta strong { color: var(--white); font: 700 20px/1.25 var(--font-sub); font-stretch: 112.5%; }
.next-line { font-size: 16px; }

/* Sticky masthead: top bar (with the phone number) + header stay visible while scrolling (11/7).
   On phones the top bar is hidden; the bottom Call / Free estimate bar covers it. */
.masthead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
[id] { scroll-margin-top: 140px; }
@media (max-width: 760px) { .topbar { display: none; } [id] { scroll-margin-top: 96px; } }

/* Comparison table -> stacked cards on phones (11/7): each row becomes a card listing the three options */
@media (max-width: 620px) {
  .table-wrap { overflow: visible; border: 0; }
  .compare { min-width: 0; background: transparent; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
  .compare tbody th { background: var(--navy); color: var(--white); font: 700 15px/1.2 var(--font-sub); font-stretch: 112.5%; text-transform: uppercase; letter-spacing: .06em; padding: 11px 14px; border: 0; }
  .compare td { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
  .compare td:last-child { border-bottom: 0; }
  .compare td::before { content: attr(data-label); font-weight: 700; color: var(--slate); font-size: 14px; }
  .compare td.us { background: var(--snow); }
  .compare td.us::before { color: var(--navy); }
}

/* Homepage (version B, chosen 11/8): stacked hero with a big before/after, text "what we fix" list,
   white step cards, wide before/after rows. Was the inline <style> on /home-b/. */
.home-hero.hero-b .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.hero-b .hero-copy { max-width: 820px; }
.btn-or { align-self: center; font: 600 16px/1 var(--font-sub); font-stretch: 112.5%; color: var(--grey-on-navy); }
.hero-b .trust-in { list-style: none; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: 8px 28px; font: 600 15px/1.3 var(--font-sub); font-stretch: 112.5%; color: var(--white); }
.hero-ba .ba-pair { box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.hero-ba figcaption { color: var(--grey-on-navy); }
.fix-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--navy); }
@media (max-width: 900px) { .fix-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fix-list { grid-template-columns: 1fr; } }
.fix-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.fix-text { display: grid; gap: 4px; }
.fix-text strong { font: 700 18px/1.2 var(--font-sub); font-stretch: 112.5%; }
.fix-text span { font-size: 15px; color: var(--slate); }
.fix-arrow { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--navy); display: grid; place-items: center; font-weight: 700; transition: background-color .15s ease, color .15s ease; }
.fix-item:hover .fix-arrow, .fix-item:focus-visible .fix-arrow { background: var(--navy); color: var(--white); }
.fix-item:hover strong { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.fix-notes { margin-top: 22px; display: grid; gap: 8px; font-size: 16px; }
.steps-cards .steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps-cards .steps li::before { background: var(--navy); color: var(--yellow); }
.steps-cards .steps p { color: var(--slate); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head-row .section-head { margin-bottom: 0; }
.ba-wide { display: grid; gap: 32px; }
.ba-wide .ba-pair img { aspect-ratio: 8 / 3; }
@media (max-width: 620px) { .ba-wide .ba-pair { grid-template-columns: 1fr; } }

/* Hero with text only (no photo), e.g. Interior Slabs (11/8) */
.page-hero.hero-text .wrap { grid-template-columns: minmax(0, 1fr); }
.hero-text .hero-copy { max-width: 820px; }
