/* Gettysburg Mold Experts: shared design system (Gate 5 vertical slice).
   Mobile-first. System font stack only (no third-party font requests).
   Direction (human-approved 2026-09-21): deep navy primary, restrained muted teal/blue accent,
   white and light-neutral backgrounds, warm accent used sparingly for primary CTAs. */

:root {
  --navy: #0c2748;
  --navy-700: #163a63;
  --navy-100: #e3eaf2;
  --teal: #2a6f7a;
  --teal-700: #1f5860;
  --teal-100: #e4f0f1;
  --cta: #b5470f;
  --cta-hover: #973a0a;
  --ink: #1b2836;
  --muted: #465868;
  --line: #d5dee7;
  --control: #6b7f93;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --on-dark: #ffffff;
  --on-dark-muted: #c9d6e4;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(12, 39, 72, .08), 0 4px 14px rgba(12, 39, 72, .06);
  --max: 1120px;
  --measure: 68ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.measure { max-width: var(--measure); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--on-dark); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
.is-inactive { color: inherit; text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: 6px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; line-height: 1.2; }
.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-hover); color: #fff; }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: #fff; }
.on-dark .btn--secondary { color: #fff; border-color: #fff; }
.on-dark .btn--secondary:hover { background: #fff; color: var(--navy); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { color: var(--navy); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; text-decoration: none; line-height: 1.1; }
.brand:hover { color: var(--teal-700); }
.nav-toggle { display: none; }
.site-nav { width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; padding: .5rem 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal-700); text-decoration: underline; }
.site-nav .has-sub > a::after { content: " \25BE"; font-size: .85em; }
.site-nav .has-sub > ul { display: block; padding-left: 1rem; width: 100%; }
.site-nav .has-sub > ul a { font-weight: 500; }
.site-nav .btn--primary, .site-nav .btn--primary:hover, .site-nav .btn--primary[aria-current] { color: #fff; text-decoration: none; }
.site-nav .btn--secondary { color: var(--navy); }
.site-nav .nav-cta { margin-left: 0; }
.site-nav .nav-cta .btn { padding: .55rem 1.1rem; min-height: 44px; }
.js .nav-toggle { display: inline-flex; background: transparent; border: 2px solid var(--navy); color: var(--navy); border-radius: 6px; font: inherit; font-weight: 700; padding: .45rem .9rem; min-height: 44px; cursor: pointer; align-items: center; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

@media (min-width: 62rem) {
  .site-header__bar { flex-wrap: nowrap; }
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; }
  .site-nav > ul { flex-wrap: nowrap; gap: 1.25rem; }
  .site-nav .has-sub { position: relative; }
  .site-nav .has-sub > ul { display: none; position: absolute; top: 100%; left: -1rem; min-width: 17rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem 1rem; z-index: 20; }
  .site-nav .has-sub:hover > ul, .site-nav .has-sub:focus-within > ul { display: block; }
  .site-nav .has-sub > ul a { display: block; padding: .45rem 0; }
}

/* Hero */
.hero { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 420px at 85% -10%, rgba(42, 111, 122, .55), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%); pointer-events: none; }
.hero__inner { position: relative; padding-top: 3rem; padding-bottom: 3.25rem; display: grid; gap: 2rem; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .eyebrow { color: var(--on-dark-muted); font-weight: 600; text-transform: none; letter-spacing: .01em; margin-bottom: .75rem; font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__media { margin: 0; }
.hero__media img { border-radius: var(--radius); width: 100%; height: auto; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.hero--inner .hero__inner { padding-top: 2.25rem; padding-bottom: 2.25rem; }
@media (min-width: 62rem) {
  .hero__inner { padding-top: 4.5rem; padding-bottom: 4.75rem; }
  .hero--has-media .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
  .hero__text { max-width: 44rem; }
}

/* Sections */
.section { padding: 3rem 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--teal-100); }
.section__lead { max-width: var(--measure); }
.section h2 { margin-bottom: .75rem; }
.prose { max-width: var(--measure); }

/* Image / text split */
.split { display: grid; gap: 2rem; align-items: center; }
.split__text { max-width: var(--measure); }
.split__media { margin: 0 auto; max-width: 22rem; width: 100%; }
.split__media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 47.99rem) {
  /* Mobile only: a tall portrait source image is shown in a shorter landscape-ish crop so it doesn't
     consume most of the viewport. object-fit: cover crops the display only; the source/optimized
     files are unchanged. object-position keeps the densest visible mold area in frame. */
  .split__media { height: 280px; overflow: hidden; }
  .split__media img { height: 100%; object-fit: cover; object-position: center 30%; }
}
@media (min-width: 48rem) {
  .split { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 3rem; align-items: start; }
  .split__media { max-width: none; margin: 0; }
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 1rem; display: grid; gap: 1rem; }
.step { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); }
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

/* Generic content pages (about/services/legal/location/service pages): headings, prose, plain lists */
.section .prose h2 { margin-top: 2rem; }
.section .prose h2:first-child { margin-top: 0; }
.section .prose h3 { margin-top: 1.25rem; }
.plain-list { margin: 0 0 1.25rem; padding-left: 1.3em; }
.plain-list li { margin-bottom: .5rem; color: var(--ink); }
.content-band { max-width: 44rem; margin: 1.75rem auto; }
.content-band img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 48rem) {
  /* Desktop only: the portrait service-page source images (IMG-05/06/07) are shown as a wider,
     shorter landscape band. This crops the DISPLAY only via object-fit; the source files, optimized
     variants, filenames and alt text are unchanged. object-position: top keeps the upper, mold-
     affected part of each image in frame and crops from the bottom (e.g. less basement floor).
     Mobile (below this breakpoint) is untouched: images keep their natural, uncropped aspect ratio. */
  .content-band { max-width: 56rem; }
  .content-band img { height: 22rem; object-fit: cover; object-position: top; }
}

/* Cards */
.card-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.card p { margin: 0; color: var(--muted); }
/* cost factors: lighter, text-forward treatment so the page is not a wall of identical white cards */
.card--factor { background: transparent; border: 0; border-left: 4px solid var(--teal); border-radius: 0; box-shadow: none; padding: .15rem 0 .15rem 1.1rem; }
.card--factor p { color: var(--ink); }
.card--link { border-top: 4px solid var(--navy); }
.card--link:hover { border-color: var(--teal); }
.card--link h3 a { color: var(--navy); text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; }
.card--link:hover h3 a { text-decoration: underline; }

/* Link list */
.linklist { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .6rem; }
.linklist li { margin: 0; }
.linklist a, .linklist span { display: block; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .75rem 1rem; text-decoration: none; font-weight: 600; color: var(--navy); }
.linklist a:hover { border-color: var(--teal); color: var(--teal-700); }

/* FAQ accordion (native details, no JavaScript needed) */
.faq { margin: 1.25rem 0; display: grid; gap: .6rem; max-width: 52rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--teal-700); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__answer { padding: 0 1.25rem 1.1rem; color: var(--ink); }
.faq .faq__answer p:last-child { margin-bottom: 0; }

/* CTA strip */
.cta-strip { background: var(--navy); color: var(--on-dark); padding: 3rem 0; }
.cta-strip h2 { color: #fff; }
.cta-strip p { max-width: var(--measure); color: var(--on-dark-muted); }
.cta-strip .hero__actions { margin-top: 1.25rem; }
.cta-inline { margin-top: 1.5rem; }

/* Estimate form */
.intro-lead { margin-bottom: .85rem; }
/* Compact, visually secondary disclosure box (human decision 2026-09-21): reduces visual dominance
   of the referral explanation on mobile without hiding, shortening or paraphrasing any of it. */
.disclosure-box { background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius); padding: .85rem 1rem; margin: 0 0 1.5rem; max-width: 40rem; }
.disclosure-box p { color: var(--muted); font-size: .95rem; margin: 0 0 .6rem; }
.disclosure-box p:last-child { margin-bottom: 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.25rem; max-width: 40rem; }
.field { margin-bottom: 1.25rem; }
.field label, .field .label { display: block; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.field .help { color: var(--muted); font-size: .95rem; margin: 0 0 .4rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--control); border-radius: 6px; padding: .7rem .8rem; min-height: 48px; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid var(--teal-100); }
.form-card h2 { font-size: 1.3rem; margin: 1.75rem 0 1rem; }
.consent { display: flex; gap: .75rem; align-items: flex-start; margin: 1.5rem 0 1rem; padding: 1rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.consent input[type="checkbox"] { flex: none; width: 1.4rem; height: 1.4rem; margin-top: .2rem; accent-color: var(--teal-700); }
.consent label { font-weight: 500; color: var(--ink); margin: 0; }
.form-links { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: 3rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.site-footer .footer-grid { display: grid; gap: 2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .brand-name { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: .5rem; }
.site-footer .copyright { border-top: 1px solid rgba(255,255,255,.18); margin-top: 2rem; padding-top: 1.25rem; font-size: .95rem; }
.site-footer .is-inactive { color: var(--on-dark-muted); }

@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .linklist { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 2rem; }
}
@media (min-width: 62rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .section { padding: 4rem 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
