/* SCARF Restoration design system. Mobile-first, system fonts, no animation libraries, no web fonts. */

:root {
  --navy-900: #071f33;
  --navy-800: #0a2c47;
  --navy-700: #0d3a5d;
  --navy-100: #e7eef5;
  --ink: #142230;
  --muted: #4b5b69;
  --line: #d9e2ea;
  --bg: #ffffff;
  --band: #f3f6f9;
  --call: #c2410c;          /* reserved for call-to-action only; white text passes WCAG AA */
  --call-hover: #9a3412;
  --water: #1565c0;
  --water-tint: #e8f1fb;
  --mold: #0f766e;
  --mold-tint: #e6f4f2;
  --fire: #b45309;
  --fire-tint: #fbf0e4;
  --focus: #f59e0b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(7, 31, 51, 0.06), 0 6px 18px rgba(7, 31, 51, 0.07);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--bg); padding-bottom: 68px; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--water); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 20; }

h1, h2, h3 { color: var(--navy-900); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 6.4vw, 52px); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 750; }
p { margin: 0 0 16px; }

/* ── Staging indicators (keep obvious) ───────────────────────────────── */
.draft-banner { background: #fff4cc; color: #5a4400; text-align: center; font-size: 13px; font-weight: 700; padding: 6px 16px; border-bottom: 1px solid #e6cf73; }
mark.ph { background: #ffe58a; color: #3d2f00; padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
mark.ph-license { background: #ffd2d2; color: #5c0000; border: 1px dashed #b00020; }
.ph-photo { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center; aspect-ratio: 4 / 3; width: 100%; padding: 20px; border: 2px dashed #c79a00; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #fffbea, #fffbea 12px, #fff4cc 12px, #fff4cc 24px); color: #5a4400; font-size: 14px; }
.ph-photo span:first-child { font-weight: 800; letter-spacing: 0.08em; font-size: 12px; }

/* ── Top bar and header ──────────────────────────────────────────────── */
.topbar { background: var(--navy-900); color: #cfe0ee; font-size: 14px; text-align: center; padding: 6px 0; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.wordmark { font-weight: 900; font-size: 25px; letter-spacing: 0.08em; color: var(--navy-800); }
.wordmark-sub { font-weight: 600; font-size: 15px; letter-spacing: 0.02em; color: var(--muted); }
.nav-desktop { display: none; }
.nav-desktop a, .nav-mobile nav a { text-decoration: none; color: var(--ink); font-weight: 650; }
.nav-desktop a[aria-current="page"] { color: var(--water); box-shadow: inset 0 -2px 0 var(--water); }
/* Mobile: wordmark + Menu only (the top strip and sticky call bar carry the phone number). Specific enough to beat .btn. */
.site-header .header-call { display: none; }
.brand { min-width: 0; display: inline-flex; align-items: center; }
/* Logo keeps its own aspect ratio (width/height attributes reserve space, so no layout shift). */
.brand-logo { display: block; width: 170px; height: auto; max-width: 100%; }  /* mobile: ~170 × 57px */
.footer-logo { display: inline-block; background: #fff; border-radius: var(--radius-sm); padding: 10px 14px; }
.footer-logo img { display: block; height: 52px; width: auto; }
.nav-mobile { margin-left: auto; flex: none; }
.nav-mobile summary { list-style: none; cursor: pointer; font-weight: 700; padding: 9px 16px; border: 1px solid #b9c7d4; border-radius: 999px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; color: var(--navy-800); }
.nav-mobile summary::-webkit-details-marker { display: none; }
/* Native <details> state drives the visible (and accessible) label: "Menu" when closed, "Close" when open. */
.nav-mobile:not([open]) .menu-label-open, .nav-mobile[open] .menu-label-closed { display: none; }
.nav-mobile[open] nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: grid; padding: 8px 16px 16px; }
.nav-mobile nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: 999px; border: 2px solid transparent; font: 750 17px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-call { background: var(--call); color: #fff; }
.btn-call:hover { background: var(--call-hover); color: #fff; }
.btn-primary { background: var(--navy-700); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }

/* ── Homepage hero ───────────────────────────────────────────────────── */
.hero { background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%); color: #dbe8f3; padding: 22px 0 28px; }
.hero h1 { margin-bottom: 10px; }
.hero h1 { color: #fff; }
.hero p { font-size: 17px; max-width: 60ch; margin-bottom: 12px; }
.hero-grid { display: grid; gap: 18px; }
.hero-grid > .hero-copy:only-child { grid-column: 1 / -1; max-width: 760px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 14px; }
.hero-ctas .btn { flex: 1 1 260px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 650; color: #fff; }
.checks svg { color: #7cc4ff; flex: none; }
.hero-media p { margin: 0; }
.hero-media .ph-photo { aspect-ratio: 16 / 9; }

/* ── Section bands ───────────────────────────────────────────────────── */
.band { padding: 48px 0; }
.band-steps, .band-area { background: var(--band); }
.band > .wrap > h2 { margin-bottom: 20px; }

/* Services: water is the dominant feature card; mold and fire are full-size core cards beneath it. */
.svc-card { position: relative; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px 18px; }
.svc-card h3 { margin-top: 10px; }
.svc-card ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 2px; }
.svc-card li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--navy-800); }
.svc-card li a::after { content: "→"; color: var(--accent); font-weight: 800; }
.svc-card li a:hover { color: var(--accent); }
.svc-icon { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 14px; background: var(--tint); color: var(--accent); }
.svc-water { --accent: var(--water); --tint: var(--water-tint); background: linear-gradient(180deg, var(--water-tint), #fff 55%); margin-bottom: 20px; }
.svc-water h3 { font-size: clamp(24px, 3.4vw, 30px); }
.svc-water p { font-size: 18px; max-width: 70ch; }
.svc-mold { --accent: var(--mold); --tint: var(--mold-tint); }
.svc-fire { --accent: var(--fire); --tint: var(--fire-tint); }
.cards-core { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* Steps: numbered timeline */
.steps ol { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 62px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-700); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps li strong { display: block; color: var(--navy-900); font-size: 18px; margin-bottom: 4px; }
.note-box { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--water); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; color: var(--muted); }
.note-box p { margin: 0; }
.note-box strong { color: var(--navy-900); }

/* Trust tiles */
.tiles ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.tiles li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.tiles li strong { display: block; color: var(--navy-900); font-size: 18px; margin-bottom: 6px; padding-left: 30px; position: relative; }
.tiles li strong::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--water) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Insurance band */
.band-insurance { background: var(--water-tint); }
.band-insurance a { font-weight: 800; }

/* Service area */
.area-block { display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 4px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--navy-700); color: var(--navy-800); font-weight: 650; font-size: 15px; background: #fff; }
.chip-primary { background: var(--navy-700); color: #fff; }
.area { margin: 4px 0 0; color: var(--muted); max-width: 75ch; }

/* Final CTA band */
.band-final { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #dbe8f3; }
.band-final h2 { color: #fff; }
.final-grid { display: grid; gap: 28px; align-items: center; }

/* ── Call box and form ───────────────────────────────────────────────── */
.callbox { background: var(--navy-100); border: 1px solid #cddbe8; border-radius: var(--radius); padding: 18px; margin: 20px 0; }
.callbox-title { font-weight: 800; color: var(--navy-900); margin: 0 0 12px; font-size: 18px; }
form.lead { display: grid; gap: 12px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 0; }
form.lead h2 { margin: 0; font-size: 22px; }
form.lead label { display: grid; gap: 4px; font-weight: 700; font-size: 15px; }
form.lead input, form.lead select, form.lead textarea { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #a9b8c5; border-radius: var(--radius-sm); background: #fff; width: 100%; }
form.lead .hp { position: absolute; left: -9999px; }
.note, .form-status { font-size: 14px; color: var(--muted); margin: 0; }
.form-consent { font-size: 13px; line-height: 1.5; color: var(--muted); margin: -4px 0 0; }

/* ── Interior pages ──────────────────────────────────────────────────── */
.page-hero { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #dbe8f3; padding: 22px 0 30px; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 5.4vw, 44px); margin: 10px 0 18px; }
.crumbs { font-size: 14px; color: #a9c3d8; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: #dbe8f3; }
.crumbs .sep { opacity: 0.6; }
.page-grid { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 48px; }
.prose { min-width: 0; max-width: 72ch; }
.prose h2 { margin-top: 36px; padding-top: 8px; }
.prose h3 { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--water); }
.prose > p:first-of-type { font-size: 19px; color: var(--navy-800); }
.prose .ph-photo { margin: 8px 0 20px; }
.photo { margin: 8px 0 20px; }
.photo img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--radius); }
.photo-portrait img { max-width: 360px; }
.sidebar-inner { display: grid; gap: 16px; }
.sidebar .callbox { margin: 0; }

/* ── Footer and mobile call bar ──────────────────────────────────────── */
.site-footer { background: var(--navy-900); color: #b9cddd; padding: 40px 0 24px; font-size: 15px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.site-footer a { color: #e3eef7; display: block; padding: 4px 0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .wordmark { color: #fff; }
.footer-brand .wordmark-sub { color: #9fb6c9; }
.footer-brand p { margin: 10px 0 0; }
.footer-phone { font-weight: 800; font-size: 18px; display: inline !important; }
.footer-cert { color: #9fb6c9; font-size: 14px; }
.legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 16px; margin: 8px 0 0; font-size: 13px; color: #8ea7bb; }
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--call); color: #fff; font-weight: 800; font-size: 18px; padding: 16px; text-decoration: none; box-shadow: 0 -4px 14px rgba(7, 31, 51, 0.18); }
.callbar:hover { color: #fff; background: var(--call-hover); }

/* ── Larger screens ──────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .band { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .hero p { font-size: 18px; }
  .hero-grid { gap: 28px; }
  .hero-ctas { gap: 12px; margin: 24px 0 20px; }
  .checks { gap: 8px 20px; }
  .hero-media .ph-photo { aspect-ratio: 4 / 3; }
  /* Tablet: two columns; an odd last trust item spans the full width instead of sitting alone. */
  .tiles ul { grid-template-columns: repeat(2, 1fr); }
  .tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .nav-mobile { display: none; }
  .nav-desktop { display: flex; gap: 26px; margin-left: 12px; }
  .site-header .header-call { display: inline-flex; margin-left: auto; min-height: 44px; padding: 10px 18px; }
  .brand-logo { height: 56px; width: auto; }  /* desktop unchanged */
  .header-inner { min-height: 76px; }
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px; }
  .band { padding: 80px 0; }
  .svc-water { display: grid; grid-template-columns: auto 1fr 300px; gap: 8px 28px; padding: 32px; align-items: start; }
  .svc-water .svc-icon { grid-row: span 3; width: 68px; height: 68px; }
  .svc-water h3 { grid-column: 2; margin-top: 0; }
  .svc-water p { grid-column: 2; }
  .svc-water ul { grid-column: 3; grid-row: 1 / span 3; margin: 0; }
  .steps ol { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps li { padding: 22px 24px 22px 76px; }
  .steps li::before { left: 22px; top: 22px; }
  /* Five trust items: two wider tiles, then three (balanced 2 + 3). */
  .tiles ul { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .tiles li { grid-column: span 2; }
  .tiles li:nth-child(-n+2) { grid-column: span 3; }
  .tiles li:nth-child(5):last-child { grid-column: span 2; }
  .final-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .page-hero .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; }
  .page-hero .crumbs { grid-column: 1 / -1; }
  .page-hero h1 { margin-bottom: 0; }
  .page-grid.has-aside { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
  .sidebar-inner { position: sticky; top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
