/* Anchor Exteriors KC - the redesign's one stylesheet (docs/redesign/PLAN.md section 1).
 * Used by every page whose <html> carries data-layout="2". Old pages keep their own inline styles until
 * they are rewritten. Brand (Tucci Roofing Co., 2026-10-09): the logo navy #02316F and red #DB0210; the token names --green/--gold are kept so nothing else moves.
 *
 * Readability floor (brief, review B8): body 18px, nothing a visitor must read under 14px, inputs 16px,
 * tap targets 44px, a visible focus ring. #7C949C and #6B8C6C fail AA as text on white, so they are only
 * ever borders or backgrounds here.
 */

/* The brand's four fonts, served from this site rather than Google Fonts: the Google stylesheet held the first
 * paint back by about 0.8 s on a phone (Lighthouse, 2026-10-01). Latin subset only; all four are under the
 * SIL Open Font License. The two Red Hat files are variable fonts, so one file covers every weight. */
@font-face { font-family: 'Fjalla One'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/fjalla-one-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/red-hat-display.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/red-hat-text.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* brand */
  --green: #02316F;          /* Tucci navy, 12.6:1 on white */
  --green-dark: #021F47;
  --green-tint: #EDF2FA;
  --gold: #DB0210;           /* Tucci red, 5.2:1 on white: text on light backgrounds, white text on it */
  --gold-light: #D4E3FF;     /* 10:1 on --green: the light blue used ON navy */
  --sky: #C9D7EC;
  --sage: #5E7398;           /* borders and fills only */
  --slate: #7C949C;          /* borders and fills only */
  --ink: #44423D;            /* body text, 10:1 on white */
  --ink-strong: #24231F;
  --paper: #FFFFFF;
  --paper-warm: #F8F9FC;
  --line: #DCE2EC;
  --focus-on-light: #02316F;
  --focus-on-dark: #D4E3FF;

  /* type */
  --font-headline: 'Fjalla One', 'Arial Narrow', sans-serif;
  --font-display: 'Red Hat Display', system-ui, sans-serif;
  --font-body: 'Red Hat Text', system-ui, sans-serif;
  --font-ui: 'Poppins', 'Red Hat Display', system-ui, sans-serif;
  --text-body: 1.125rem;     /* 18px */
  --text-small: 0.9375rem;   /* 15px: the smallest text a visitor must read */
  --text-input: 1rem;        /* 16px: below this an iPhone zooms in on tap */
  --text-h1: clamp(2.125rem, 5.5vw, 3.5rem);
  --text-h2: clamp(1.75rem, 3.6vw, 2.5rem);
  --text-h3: clamp(1.25rem, 2.2vw, 1.5rem);

  /* space and shape */
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px; --space-5: 64px; --space-6: 96px;
  --gutter: 16px;
  --max: 1200px;
  --radius: 10px;
  --radius-btn: 999px;
  --tap: 44px;
  --shadow: 0 6px 24px rgba(2, 31, 71, 0.12);
  --header-h: 84px;
  --bar-h: 64px;             /* the phone bottom bar */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-body); line-height: 1.65;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--ink-strong); line-height: 1.15; margin: 0 0 var(--space-2); }
h1 { font-family: var(--font-headline); font-weight: 400; font-size: var(--text-h1); letter-spacing: 0.01em; color: var(--green); }
h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h2); }
h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h3); }
p { margin: 0 0 var(--space-2); }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
strong { color: var(--ink-strong); }
.small { font-size: var(--text-small); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* focus: always visible, never removed */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible, .topbar :focus-visible{ outline-color: var(--focus-on-dark); }

.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 1000; background: var(--green); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 8px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 12px 24px; border-radius: var(--radius-btn); border: 2px solid transparent;
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }        /* white on gold: 5.2:1 */
.btn-gold:hover { background: #6E5622; color: #fff; }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-on-dark { background: var(--gold); color: #fff; }
.btn-on-dark:hover { background: #B0000D; color: #fff; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- unconfirmed facts, highlighted on the sandbox (the build adds the mark; production refuses the text) ---------- */
mark.confirm { background: #FFE866; color: #1A1A1A; padding: 0 .2em; border-radius: 3px; outline: 2px dashed #B38F00; font-weight: 600; }

/* ---------- emergency / storm bar (data/site.json emergency; off until the owners confirm it) ---------- */
.storm-bar { background: var(--gold); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.storm-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; min-height: var(--tap); padding-top: 6px; padding-bottom: 6px; text-align: center; }
.storm-bar a { color: #fff; font-weight: 700; display: inline-flex; align-items: center; min-height: var(--tap); }

/* ---------- top strip ---------- */
.topbar { background: var(--green); color: #fff; font-size: var(--text-small); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--tap); }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); }
.topbar a:hover { color: var(--gold-light); }
.topbar-note { opacity: .95; }
@media (max-width: 767px) { .topbar { display: none; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.header-in { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { height: 52px; width: auto; }
@media (min-width: 1025px) { .logo img { height: 64px; } }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-cta { white-space: nowrap; }

/* the menu */
.main-nav { order: 2; }
.nav-toggle { display: none; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-menu > li > a, .sub-toggle {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 8px 10px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink-strong); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav-menu > li > a:hover, .sub-toggle:hover, .nav-menu > li > a[aria-current="page"] { color: var(--green); background: var(--green-tint); }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .15s ease; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-sub { position: relative; }
.sub { display: none; }
.sub-toggle[aria-expanded="true"] + .sub { display: grid; }
.sub-col h3 { font-size: var(--text-small); text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 0 0 8px; }
.sub-col ul { list-style: none; margin: 0; padding: 0; }
.sub a { display: flex; align-items: center; min-height: 40px; padding: 4px 8px; border-radius: 6px; color: var(--ink-strong); text-decoration: none; font-size: 1rem; }
.sub a:hover { background: var(--green-tint); color: var(--green); }
.sub-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
.sub-foot a { font-weight: 700; color: var(--green); }

/* The full menu row needs about 1200px with the bigger logo; below that the Menu button opens it (review B11). */
@media (min-width: 1200px) {
  .main-nav { order: 0; margin-left: 24px; }
  .header-actions { order: 3; }
  .sub { position: absolute; top: calc(100% + 8px); left: -16px; z-index: 110; width: min(760px, 90vw);
         grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px; background: var(--paper);
         border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
}
/* The phone number is in the top strip, not the header row: with it, the row needed ~1,217 px and cut the
   Free Estimate button off at 1280 px (section B review 1.1). */

/* phone and tablet: a menu button opens a panel under the header */
@media (max-width: 1199px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); min-width: var(--tap); padding: 8px 12px;
    background: var(--paper); border: 2px solid var(--line); border-radius: 10px; cursor: pointer;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink-strong);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .main-nav { order: 3; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
              max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 8px var(--gutter) 24px;
              background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-toggle[aria-expanded="true"] + .nav-menu { display: flex; }
  .nav-menu > li { border-bottom: 1px solid var(--line); }
  .nav-menu > li > a, .sub-toggle { width: 100%; justify-content: space-between; min-height: 52px; font-size: 1.0625rem; }
  .sub { grid-template-columns: 1fr; gap: 16px; padding: 4px 8px 16px; }
}
@media (max-width: 420px) { .header-cta { padding: 10px 14px; font-size: .9375rem; } .logo img { height: 46px; } }

/* ---------- page body ---------- */
main { display: block; }
.section { padding: var(--space-5) 0; }
@media (max-width: 767px) { .section { padding: var(--space-4) 0; } .page-head { padding: var(--space-4) 0 var(--space-3); } }
.section-tight { padding: var(--space-4) 0; }
.section-tint { background: var(--green-tint); }
.section-warm { background: var(--paper-warm); }
.section-green { background: var(--green); color: #fff; }
.section-green h1, .section-green h2, .section-green h3 { color: #fff; }
.section-green a:not(.btn) { color: var(--gold-light); }
.eyebrow { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--text-small); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 8px; }
.section-green .eyebrow { color: var(--gold-light); }
.lead { font-size: 1.25rem; line-height: 1.55; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--space-4); }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 8px; }
.page-head { padding: var(--space-5) 0 var(--space-3); background: var(--green); color: #fff; border-bottom: 4px solid var(--gold); }
.page-head h1, .page-head .lead, .page-head .post-meta { color: #fff; }
.page-head .eyebrow { color: var(--gold-light); }
.page-head a { color: var(--gold-light); }
.page-head a:focus-visible { outline-color: var(--focus-on-dark); }
.page-head .lead { max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-3); }

/* a note the sandbox shows and production never does */
.sandbox-note { border: 2px dashed #B38F00; background: #FFF8D6; color: #1A1A1A; padding: 12px 16px; border-radius: var(--radius); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-dark); color: #E9EFEA; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-top { display: grid; gap: var(--space-4); padding: var(--space-5) 0 var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1.6fr 1.2fr; } }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.footer-logo img { height: 52px; width: auto; }
.footer-col h2 { font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li a, .footer-col h2 a, .footer-sister a, .footer-social { display: inline-flex; align-items: center; min-height: var(--tap); }
.footer-social { min-width: var(--tap); justify-content: flex-start; }
.footer-cities ul { columns: 2; column-gap: 16px; }
.footer-contact a { font-weight: 700; }
.footer-contact p { margin-bottom: 8px; }
.footer-sister { border-top: 1px solid rgba(255,255,255,.12); padding: var(--space-3) 0; text-align: center; }
.footer-sister p { margin: 0 0 4px; }
.footer-sister a { color: var(--gold-light); font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: var(--space-3) 0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: var(--text-small); }
.footer-bottom p { margin: 0; }
.footer-credit { text-align: center; padding: 0 0 var(--space-3); font-size: var(--text-small); }
.footer-credit a { color: #C9D6CC; }

/* ---------- the phone bottom bar: Call and Free Estimate, on every page ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
                padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: var(--paper);
                border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .mobile-bar .btn { min-height: 48px; padding: 10px 12px; font-size: 1.0625rem; }
  body.has-mobile-bar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
}

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink-strong); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: var(--text-input); color: var(--ink-strong);
  background: #fff; border: 2px solid #8A9A8D; border-radius: 8px;   /* 3:1 against white */
}
.field textarea { min-height: 120px; resize: vertical; }
.field .optional { font-weight: 400; color: var(--muted, #5b6470); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus-on-light); outline-offset: 1px; border-color: var(--green); }
.field-error { display: block; color: #A12A1F; font-weight: 600; font-size: var(--text-small); margin-top: 4px; }
.field [aria-invalid="true"] { border-color: #A12A1F; }
.form-status { margin-top: 12px; font-weight: 600; }
.form-status.is-error { color: #A12A1F; }
.form-privacy { font-size: var(--text-small); margin-top: 10px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =====================================================================
   Components first used on the homepage (Phase 1). Every page type reuses them.
   ===================================================================== */
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--green-dark); }
.center { text-align: center; justify-content: center; }
.narrow { max-width: 860px; }
.section-head { max-width: 760px; margin: 0 auto var(--space-4); text-align: center; }
.section-head p { font-size: 1.1875rem; }
.section-head .rating-line { margin-top: 4px; }

/* ---------- hero: headline and form ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--green-dark); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(2,31,71,.94) 0%, rgba(2,31,71,.88) 45%, rgba(2,31,71,.62) 100%); }
.hero-in { display: grid; gap: var(--space-4); padding-top: var(--space-4); padding-bottom: var(--space-5); align-items: start; }
@media (min-width: 1025px) { .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); padding-top: var(--space-5); padding-bottom: var(--space-6); gap: var(--space-5); } }
.hero-solo { grid-template-columns: minmax(0, 1fr); }
.hero-solo .hero-copy { max-width: 860px; }
@media (min-width: 1025px) { .hero-solo { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.375rem); margin-bottom: var(--space-2); }
.hero-eyebrow { font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--gold-light); font-size: 1.0625rem; margin-bottom: 8px; }
.hero-sub { font-size: 1.25rem; line-height: 1.5; margin: var(--space-3) 0; color: #F1F5F2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: var(--space-2) 0 var(--space-1); }
@media (min-width: 1025px) { .hero-jump { display: none; } .hero-solo .hero-jump { display: inline-flex; } }
.hero-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .hero-ticks { grid-template-columns: 1fr 1fr; } }
.hero-ticks li { position: relative; padding-left: 32px; font-weight: 600; }
.hero-ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5' fill='none' stroke='%231F3F27' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.hero .rating-line { color: #fff; }

/* the form card */
.lead-form { background: var(--paper); color: var(--ink); border-radius: 14px; padding: var(--space-3); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
@media (min-width: 768px) { .lead-form { padding: 32px; } }
.lead-form-title { font-family: var(--font-headline); font-weight: 400; color: var(--green); font-size: 2rem; margin-bottom: 4px; }
.lead-form-intro { margin-bottom: var(--space-2); }
.form-promise { font-size: var(--text-small); font-weight: 600; margin: 10px 0 0; text-align: center; }
.lead-form .btn { margin-top: 6px; }
.lead-form button[disabled] { opacity: .7; cursor: progress; }

/* ---------- rating line and stars ---------- */
.stars { display: inline-flex; gap: 2px; color: #E0A800; }
.stars svg { width: 20px; height: 20px; }
.rating-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: var(--tap); color: var(--ink-strong); text-decoration: none; font-size: 1.0625rem; }
.rating-line:hover span { text-decoration: underline; }
.on-dark .stars, .section-green .stars { color: #FFD24D; }

/* ---------- credentials line, directly under the hero ---------- */
.credentials-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.credentials-line { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: center; }
.credentials-line li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--ink-strong); }
.credentials-line svg { width: 20px; height: 20px; color: var(--green); flex: none; }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }
.card-body p { flex: 1; }
.card-link { display: inline-flex; align-items: center; min-height: var(--tap); font-family: var(--font-display); font-weight: 700; color: var(--green); }
.card-link::after { content: "\2192"; margin-left: 6px; }

/* ---------- reviews ---------- */
.review-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 900px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); display: flex; flex-direction: column; gap: 10px; }
.review-card blockquote { margin: 0; flex: 1; }
.review-card blockquote p { margin: 0; }
.review-card figcaption { display: flex; flex-direction: column; font-size: 1rem; }
.review-card figcaption strong { font-family: var(--font-display); }
.review-source { font-size: var(--text-small); color: var(--green); font-weight: 600; }
.review-card figcaption .review-name { display: inline-flex; align-items: center; min-height: var(--tap); color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.review-grid + .cta-row { justify-content: center; }

/* ---------- people ---------- */
.people-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
@media (min-width: 640px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
.person { margin: 0; text-align: center; }
.person img, .person-photo-missing { width: 100%; max-width: 220px; aspect-ratio: 1; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; }
.person-photo-missing { display: flex; align-items: center; justify-content: center; background: var(--sky); color: var(--green-dark);
  font-family: var(--font-headline); font-size: 3.5rem; border: 4px solid #fff; box-shadow: var(--shadow); }
.person figcaption { display: flex; flex-direction: column; gap: 2px; }
.person figcaption strong { font-family: var(--font-display); font-size: 1.25rem; }

/* ---------- process ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: var(--space-3); padding-top: 72px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.steps li::before { content: counter(step); position: absolute; top: 20px; left: var(--space-3); width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-family: var(--font-display); font-weight: 700; }
.steps p { margin: 0; }

/* ---------- two columns ---------- */
.split { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 1025px) { .split { grid-template-columns: 1fr 1fr; } }
.split-photo { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.tick-list { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: 8px; }
.tick-list li { position: relative; padding-left: 30px; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- materials ---------- */
.brand-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.brand-list li { display: flex; align-items: center; justify-content: center; min-height: 84px; padding: 12px; background: #fff; color: var(--green-dark);
  border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; text-align: center; }
.materials-warranty { font-size: 1.0625rem; }

/* ---------- photos and videos ---------- */
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1025px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.video-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video-facade { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 16 / 9; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .15s ease; }
.video-facade:hover img { opacity: 1; }
.video-facade .play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.video-facade .play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--green); }
.video-player { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; }

/* ---------- cities ---------- */
.city-links { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .city-links { grid-template-columns: repeat(4, 1fr); } }
.city-links a { display: flex; align-items: center; min-height: var(--tap); padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  font-family: var(--font-display); font-weight: 600; color: var(--ink-strong); text-decoration: none; }
.city-links a:hover { border-color: var(--green); color: var(--green); }

/* ---------- FAQ: details/summary, no script needed ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--ink-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 18px; }

.closing-cta .lead { max-width: 60ch; margin-left: auto; margin-right: auto; }

/* text on green: strong text stays white, never the dark ink colour */
.on-dark strong, .section-green strong, .site-footer strong { color: #fff; }
@media (max-width: 639px) { .person img, .person-photo-missing { max-width: 160px; font-size: 2.75rem; } }

/* a button keeps its own colours inside the footer and green sections, whose plain links are white */
.site-footer a.btn-on-dark, .section-green a.btn-on-dark { color: #fff; text-decoration: none; }
.site-footer a.btn-on-dark:hover, .section-green a.btn-on-dark:hover { color: #fff; }

/* =====================================================================
   Homepage review, section A (David, 2026-10-02)
   ===================================================================== */

/* A3: a logo the size of the reference's. 56px tall on a phone, 80px on a desktop, in a taller header.
   Under 768px the header drops its "Free Estimate" button: the bottom bar already carries it, and the logo and
   Menu need the room. */
:root { --header-h: 76px; }
.logo img { height: 44px; width: auto; }
@media (max-width: 420px) { .logo img { height: 40px; } }
@media (max-width: 767px) { .header-cta { display: none; } }
@media (min-width: 1025px) { :root { --header-h: 104px; } .logo img { height: 60px; } }

/* A2: one line, sandbox only, saying what the yellow marks are */
.preview-note { margin: 0; padding: 10px var(--gutter); background: #FFF3B0; color: #1A1A1A; border-bottom: 2px dashed #B38F00;
  font-size: var(--text-small); text-align: center; line-height: 1.4; }

/* A2: in the hero the marks are a dashed underline, so the headline keeps the shape it will have */
.hero-copy mark.confirm { background: none; color: inherit; font-weight: inherit; padding: 0; outline: none; border-radius: 0;
  text-decoration: underline dashed #FFE866; text-decoration-thickness: 2px; text-underline-offset: .18em; }

/* A4: the main action is the bright one; on a phone both buttons run the full width */
@media (max-width: 639px) { .hero-actions .btn { width: 100%; } }

/* the outlined stars shown while the rating is unknown */
.stars svg path[fill="none"] { stroke: currentColor; }

/* review B8: the focus ring is the dark one wherever the background is white, even inside a dark section
   (the form card in the hero, the phone bottom bar); taps on menu and footer links are 44px */
.lead-form :focus-visible, .mobile-bar :focus-visible { outline-color: var(--focus-on-light); }
.mobile-bar .btn:focus-visible { outline-offset: 2px; }
.sub a { min-height: var(--tap); }
.footer-contact p a { display: inline-flex; align-items: center; min-height: var(--tap); }
.contact-details { display: grid; gap: var(--space-3); grid-template-columns: 1fr; margin-top: var(--space-3); }
@media (min-width: 768px) { .contact-details { grid-template-columns: repeat(3, 1fr); } }
.contact-details h3 { margin-bottom: 4px; }
.contact-details a { font-weight: 700; color: var(--green); }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-3); }
.gallery-filter .is-on { background: var(--green); color: #fff; border-color: var(--green); }
.gallery-grid figure { margin: 0; }
.gallery-grid figure[hidden] { display: none; }
.gallery-pairs-note { margin-bottom: var(--space-3); }
.ba-list { display: grid; gap: var(--space-4); margin-bottom: var(--space-4); }
@media (min-width: 900px) { .ba-list { grid-template-columns: repeat(2, 1fr); } }
.ba { margin: 0; }
.ba-frame { --pos: 50%; position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 3 / 2; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-range { position: absolute; left: 0; right: 0; bottom: 12px; width: calc(100% - 24px); margin: 0 12px; min-height: var(--tap); }
.ba figcaption { margin-top: 8px; }
/* tables carried over from the old pages (convert-page.mjs wraps each in .table-wrap): they scroll inside their box on a phone */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--space-3) 0; max-width: 100%; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: var(--paper-warm); font-weight: 700; }
/* the blog (Phase 5) */
.blog-grid .card-title { font-size: 1.25rem; margin: 4px 0 8px; }
.blog-grid .card-title a { color: inherit; text-decoration: none; }
.blog-grid .card-title a:hover { text-decoration: underline; }
.post-meta { color: var(--slate); font-size: .95rem; margin: 0 0 8px; }
.post-meta .eyebrow { margin-right: 8px; }
.crumbs { font-size: .95rem; margin-bottom: var(--space-2); }
.crumbs a { color: var(--green); }
.post-figure { margin-top: var(--space-3); }
.post-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.post-toc { background: var(--paper-warm); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); margin-bottom: var(--space-4); }
.post-toc-title { font-size: 1.1rem; margin: 0 0 8px; }
.post-toc ol { margin: 0; padding-left: 1.25rem; }
.post-toc a { color: var(--green); }
.post-tags { margin-top: var(--space-3); }
.tag-pill { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; margin: 0 4px 6px 0; }
.related-links { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .related-links { grid-template-columns: repeat(2, 1fr); } }
.related-links a { display: flex; align-items: center; min-height: var(--tap); padding: 8px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--green); font-weight: 600; text-decoration: none; }
.related-posts-title { margin-top: var(--space-3); }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); padding: 0 4px; }
.page-head .crumbs, .page-head .crumbs a { color: var(--gold-light); }
