/* ==========================================================================
   Quinns Districts Pest Management – redesign mockup
   Phase 4 stylesheet. Implements 03-design/design-system.md exactly.
   Palette: Quinns Rocks coastal-clinical (Ocean Teal / Reef Limestone /
   Dune Sand / Charred Timber / Signal Amber). Motif: the Reef Notch.
   Type: Archivo (display) + Source Sans 3 (body). border-radius:0 everywhere.
   ========================================================================== */

:root {
  /* ---- Brand palette ---- */
  --c-ocean-teal:        #0E5A52;
  --c-ocean-teal-deep:   #0A4640;
  --c-reef-limestone:    #F2EDE4;
  --c-dune-sand:         #E7DECF;
  --c-sand-line:         #D8CDB8;
  --c-charred-timber:    #1C2422;
  --c-timber-muted:      #55615C;
  --c-signal-amber:      #E8761A;
  --c-signal-amber-deep: #C45F0E;
  --c-white:             #FFFFFF;

  /* ---- Semantic tokens ---- */
  --bg:            var(--c-reef-limestone);
  --bg-alt:        var(--c-dune-sand);
  --surface:       var(--c-white);
  --surface-dark:  var(--c-ocean-teal-deep);
  --ink:           var(--c-charred-timber);
  --ink-invert:    var(--c-reef-limestone);
  --muted:         var(--c-timber-muted);
  --muted-invert:  #BFD3CE;
  --accent:        var(--c-ocean-teal);
  --accent-strong: var(--c-ocean-teal-deep);
  --action:        var(--c-signal-amber);
  --action-strong: var(--c-signal-amber-deep);
  --line:          var(--c-sand-line);
  --line-dark:     #2C3833;
  --focus:         var(--c-signal-amber);
  --teal-light:    #8FD0C7;

  /* ---- Type families ---- */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ---- Type scale (desktop defaults) ---- */
  --fs-display:  4.209rem;
  --fs-h1:       3.157rem;
  --fs-h2:       2.369rem;
  --fs-h3:       1.777rem;
  --fs-h4:       1.333rem;
  --fs-h5:       1.125rem;
  --fs-h6:       1rem;
  --fs-lead:     1.333rem;
  --fs-body:     1.125rem;
  --fs-small:    0.95rem;
  --fs-xs:       0.83rem;
  --fs-overline: 0.83rem;

  /* ---- Line-heights ---- */
  --lh-tight:  1.05;
  --lh-snug:   1.2;
  --lh-normal: 1.6;
  --lh-lead:   1.55;

  /* ---- Letter-spacing ---- */
  --ls-display:  -0.02em;
  --ls-tight:    -0.01em;
  --ls-overline:  0.16em;
  --ls-h6:        0.04em;

  /* ---- Spacing scale (8px base) ---- */
  --space-1:  0.5rem;
  --space-2:  1rem;
  --space-3:  1.5rem;
  --space-4:  2rem;
  --space-5:  3rem;
  --space-6:  4rem;
  --space-7:  6rem;
  --space-8:  8rem;

  /* ---- Layout ---- */
  --maxw:        1200px;
  --maxw-prose:  68ch;
  --gutter:      1.5rem;
  --section-y:   var(--space-7);

  /* ---- Motif ---- */
  --notch: 8px;

  /* ---- Borders & elevation (flat; no glass, no blur) ---- */
  --radius: 0;
  --border-1: 1px solid var(--line);
  --border-accent: 4px solid var(--accent);
  --shadow-card: 0 2px 0 0 var(--line);
  --shadow-card-hover: 0 6px 0 0 var(--accent);

  /* ---- Motion ---- */
  --t-fast: 120ms;
  --t-base: 200ms;
  --ease: cubic-bezier(0, 0, 0.2, 1);
}

/* border-radius:0 on absolutely everything */
*, *::before, *::after {
  border-radius: var(--radius);
  box-sizing: border-box;
}

/* Responsive type drops */
@media (max-width: 1279px) {
  :root { --fs-display: 3.4rem; --fs-h1: 2.6rem; --fs-h2: 2.05rem; --fs-h3: 1.6rem; --fs-lead: 1.25rem; }
}
@media (max-width: 767px) {
  :root { --fs-display: 2.6rem; --fs-h1: 2.1rem; --fs-h2: 1.75rem; --fs-h3: 1.45rem;
          --fs-lead: 1.18rem; --fs-body: 1.0625rem; --section-y: var(--space-6); }
}
@media (max-width: 479px) {
  :root { --fs-display: 2.1rem; --fs-h1: 1.85rem; --fs-h2: 1.55rem; --fs-h3: 1.35rem; --fs-lead: 1.125rem; }
}

/* ==========================================================================
   Base elements
   ========================================================================== */

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 var(--space-2);
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); font-weight: 800; line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: var(--ls-tight); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: var(--lh-snug); }
h5 { font-size: var(--fs-h5); font-weight: 600; line-height: 1.25; }
h6 { font-size: var(--fs-h6); font-weight: 600; line-height: 1.3; letter-spacing: var(--ls-h6); }

p  { margin: 0 0 1em; max-width: var(--maxw-prose); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink); }
small, .text-small { font-size: var(--fs-small); }
.text-xs { font-size: var(--fs-xs); letter-spacing: 0.01em; }

a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em;
  text-decoration-thickness: 2px; transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--accent-strong); text-decoration-thickness: 3px; }

img { max-width: 100%; height: auto; }

strong { font-weight: 600; }

/* Reef-notch list markers (solid 8px teal square) */
ul.reef-list { list-style: none; padding-left: 1.4em; margin: 0 0 1em; max-width: var(--maxw-prose); }
ul.reef-list li { position: relative; margin-bottom: 0.5em; }
ul.reef-list li::before {
  content: ""; position: absolute; left: -1.4em; top: 0.55em;
  width: 8px; height: 8px; background: var(--accent);
}
.section--dark ul.reef-list li::before { background: var(--teal-light); }

.eyebrow {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-overline); letter-spacing: var(--ls-overline);
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; margin-bottom: var(--space-2);
}

/* Reef Notch heading mark */
.notch-mark {
  display: inline-block;
  width: var(--notch);
  height: calc(var(--notch) * 3);
  background: var(--accent);
  clip-path: polygon(0 0, 50% 0, 50% 33%, 100% 33%, 100% 100%, 0 100%);
  margin-right: 0.6rem;
  vertical-align: -0.2em;
  flex: none;
}
.section--dark .notch-mark, .hero__eyebrow .notch-mark { background: var(--teal-light); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--prose { max-width: 800px; }

section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--surface-dark); color: var(--ink-invert); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--ink-invert); }
.section--dark a { color: var(--teal-light); }
.section--dark a:hover { color: var(--ink-invert); }
.section--tight { padding-block: var(--space-5); }

.section-head { max-width: 760px; margin-bottom: var(--space-5); }
.section-head p { color: var(--muted); }
.section--dark .section-head p { color: var(--muted-invert); }

/* Visually hidden (for sr-only labels) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Skip link + focus
   ========================================================================== */

.skip-link {
  position: absolute; left: var(--space-2); top: -4rem;
  background: var(--ink); color: var(--ink-invert);
  padding: 0.75rem 1rem; font-family: var(--font-display); font-weight: 600;
  text-decoration: none; z-index: 1000; transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: var(--space-2); outline: 3px solid var(--focus); outline-offset: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: var(--border-1);
  transition: box-shadow var(--t-base) var(--ease), min-height var(--t-base) var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); min-height: 72px;
  transition: min-height var(--t-base) var(--ease);
}
/* condense on scroll */
.site-header.is-scrolled { box-shadow: 0 1px 0 0 var(--line); }
.site-header.is-scrolled .site-header__inner { min-height: 60px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.05;
}
.brand__sub {
  font-family: var(--font-body); font-weight: 400; font-size: 0.72rem;
  color: var(--muted); letter-spacing: 0.02em; margin-top: 2px;
}

.nav-primary { display: flex; align-items: center; gap: var(--space-3); }
.nav-primary a {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--ink); text-decoration: none; padding: 0.75rem 0.25rem;
  min-height: 44px; display: inline-flex; align-items: center; position: relative;
  transition: color var(--t-fast) var(--ease);
}
.nav-primary a:hover { color: var(--accent); }
.nav-primary a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.4rem; height: 3px;
  background: var(--accent);
  clip-path: polygon(0 0, 8px 0, 8px 100%, 100% 100%, 100% 0, 100% 100%, 0 100%);
}

.btn-call {
  font-family: var(--font-display); font-weight: 700;
  background: var(--action); color: var(--ink);
  padding: 0.7rem 1.1rem; min-height: 44px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 2px solid var(--action);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.btn-call:hover { background: var(--action-strong); border-color: var(--action-strong); color: var(--ink); text-decoration: none; }
.btn-call svg { width: 18px; height: 18px; }

.menu-btn {
  display: none; width: 48px; height: 48px; background: transparent;
  border: 2px solid var(--ink); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }
.mobile-actions { display: none; align-items: center; gap: 0.5rem; }
.mobile-call {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--action); color: var(--ink); border: 2px solid var(--action); text-decoration: none;
}
.mobile-call svg { width: 20px; height: 20px; }

.mobile-panel { display: none; }

@media (max-width: 880px) {
  .nav-primary { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-actions { display: inline-flex; }
  .mobile-panel {
    position: fixed; inset: 0; top: 72px; background: var(--bg);
    display: none; flex-direction: column; padding: var(--space-3) var(--gutter);
    z-index: 99; border-top: var(--border-1); overflow-y: auto;
  }
  .mobile-panel.is-open { display: flex; }
  .mobile-panel a {
    font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
    color: var(--ink); text-decoration: none; padding: 1rem 0; min-height: 44px;
    border-bottom: var(--border-1); display: flex; align-items: center;
  }
  .mobile-panel a:hover { color: var(--accent); }
  .mobile-panel a[aria-current="page"] { color: var(--accent); }
  .mobile-panel .btn-primary, .mobile-panel .btn-call { margin-top: var(--space-3); width: 100%; justify-content: center; }
  .mobile-panel .btn-call { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
}
@media (min-width: 881px) {
  .mobile-panel { display: none !important; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
  min-height: 48px; padding: 0.8rem 1.5rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease),
    transform var(--t-fast) var(--ease), border-color var(--t-base) var(--ease);
}
.btn-primary {
  background: var(--action); color: var(--ink); border-color: var(--action);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.btn-primary:hover { background: var(--action-strong); border-color: var(--action-strong); color: var(--ink); transform: translateY(-2px); text-decoration: none; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: var(--ink-invert); text-decoration: none; }
.btn-secondary--invert { color: var(--ink-invert); border-color: var(--ink-invert); }
.btn-secondary--invert:hover { background: var(--ink-invert); color: var(--surface-dark); }

.btn-ghost { background: transparent; color: var(--accent); border-color: transparent; padding-inline: 0.5rem; }
.btn-ghost:hover { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 3px; }

.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-ghost:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover { transform: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; background: var(--surface-dark); color: var(--ink-invert); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5);
  align-items: center; padding-block: var(--space-7);
}
.hero__eyebrow { color: var(--teal-light); }
.hero__title {
  font-family: var(--font-display); font-weight: 800; font-stretch: 75%;
  font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-display);
  color: var(--ink-invert); margin-bottom: var(--space-3);
}
.hero__lead { color: var(--muted-invert); font-size: var(--fs-lead); max-width: 48ch; }
.hero__cta { display: flex; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }
.hero__media {
  position: relative;
  border-left: var(--border-accent);
}
.hero__media img {
  display: block; width: 100%; height: 100%; max-height: 480px; object-fit: cover;
}
.hero__badges { display: flex; gap: var(--space-3); align-items: center; margin-top: var(--space-4); flex-wrap: wrap; }
.hero__badges img { height: 52px; width: auto; background: var(--c-white); padding: 4px; }

/* Compact hero for interior pages (no large photo) */
.hero--compact .hero__grid { grid-template-columns: 1fr; padding-block: var(--space-6); }
.hero--compact .hero__title { font-stretch: 100%; font-size: var(--fs-h1); }
.hero--compact .hero__lead { max-width: 60ch; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero__media { order: -1; }
  .hero__media img { max-height: 320px; }
}

/* ==========================================================================
   Reef Notch dividers
   ========================================================================== */

.reef-divider {
  height: 16px; background: var(--accent); width: 100%; border: 0;
  clip-path: polygon(0 100%, 0 50%, 12.5% 50%, 12.5% 0, 37.5% 0, 37.5% 50%,
    62.5% 50%, 62.5% 0, 87.5% 0, 87.5% 50%, 100% 50%, 100% 100%);
}
hr.rule { border: 0; border-top: var(--border-1); margin-block: var(--space-5); max-width: var(--maxw-prose); margin-inline: 0; }

/* ==========================================================================
   Trust / credential strip
   ========================================================================== */

.trust-strip { background: var(--bg-alt); border-block: var(--border-1); padding-block: var(--space-3); }
.trust-strip__row {
  display: flex; align-items: center; gap: var(--space-4);
  flex-wrap: wrap; justify-content: center;
}
.trust-strip img { height: 52px; width: auto; }
.trust-strip .cred-label {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-small); color: var(--muted);
}
.cred-line {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center;
  font-family: var(--font-body); font-size: var(--fs-small); color: var(--muted);
  list-style: none; margin: 0; padding: 0; justify-content: center;
}
.cred-line li { display: inline-flex; align-items: center; }
.cred-line li:not(:last-child)::after {
  content: ""; display: inline-block; width: 7px; height: 7px;
  background: var(--accent); margin-left: 0.9rem;
}

/* ==========================================================================
   Service cards
   ========================================================================== */

.card-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.service-card {
  background: var(--surface); border: var(--border-1); border-top: var(--border-accent);
  padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2);
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
  box-shadow: var(--shadow-card);
}
.service-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.service-card:focus-within { box-shadow: var(--shadow-card-hover); }
.service-card__icon { width: 44px; height: 44px; color: var(--accent); }
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: var(--fs-h4); margin: 0; }
.service-card p { color: var(--muted); margin: 0; font-size: var(--fs-small); max-width: none; }
.service-card a.card-link {
  margin-top: auto; font-family: var(--font-display); font-weight: 700; color: var(--accent);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.service-card a.card-link:hover { color: var(--accent-strong); gap: 0.7rem; }
.service-card a.card-link svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .service-card:hover { transform: none; } }

/* ==========================================================================
   Pest / category cards
   ========================================================================== */

.pest-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pest-card {
  background: var(--surface); border: var(--border-1); border-left: var(--border-accent);
  padding: var(--space-3) var(--space-4); display: flex; flex-direction: column; gap: 0.65rem;
  scroll-margin-top: 110px;
}
.pest-card .tag {
  align-self: flex-start; font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); border: 1px solid var(--line); padding: 0.25rem 0.5rem;
}
.pest-card h3 { font-size: var(--fs-h4); margin: 0; }
.pest-card p { font-size: var(--fs-small); color: var(--muted); margin: 0; max-width: none; }
.pest-card p.pest-card__lead { color: var(--ink); }
.pest-card .pest-line { font-size: var(--fs-small); margin: 0; max-width: none; }
.pest-card .pest-line strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.pest-card a.card-link {
  margin-top: auto; font-family: var(--font-display); font-weight: 700; color: var(--accent);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.pest-card a.card-link:hover { color: var(--accent-strong); gap: 0.7rem; }

/* Jump list of pest anchors */
.jumplist { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.jumplist a {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small);
  text-decoration: none; color: var(--accent); border: 1px solid var(--line);
  padding: 0.5rem 0.85rem; min-height: 44px; display: inline-flex; align-items: center;
  background: var(--surface); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.jumplist a:hover { background: var(--accent); color: var(--ink-invert); border-color: var(--accent); }

/* ==========================================================================
   Feature rows (image + text, alternating)
   ========================================================================== */

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
.feature-row + .feature-row { margin-top: var(--space-6); }
.feature-row__media { border-left: var(--border-accent); }
.feature-row__media img { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.feature-row--flip .feature-row__media { order: 2; border-left: 0; border-right: var(--border-accent); }
.feature-row figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--space-3); }
  .feature-row--flip .feature-row__media { order: -1; border-right: 0; border-left: var(--border-accent); }
  .feature-row__media { order: -1; }
}

/* ==========================================================================
   Two-column prose / why-us list
   ========================================================================== */

.points-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-4); }
.point {
  border-top: 3px solid var(--accent); padding-top: var(--space-2);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.point h3 { font-size: var(--fs-h4); margin: 0; }
.point p { margin: 0; color: var(--muted); font-size: var(--fs-small); max-width: none; }
.section--dark .point { border-top-color: var(--teal-light); }
.section--dark .point p { color: var(--muted-invert); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-2); }
.gallery figure { margin: 0; border: var(--border-1); background: var(--surface); }
.gallery img { display: block; width: 100%; height: 220px; object-fit: cover; }
.gallery figcaption { font-size: var(--fs-xs); color: var(--muted); padding: 0.6rem 0.8rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.testimonial {
  background: var(--surface); border: var(--border-1); border-top: var(--border-accent);
  padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); margin: 0;
}
.testimonial__quote {
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; color: var(--ink);
  margin: 0; max-width: none;
}
.testimonial__quote::before {
  content: "\201C"; font-family: var(--font-display); font-weight: 800; color: var(--accent);
  font-size: 2rem; line-height: 0; vertical-align: -0.2em; margin-right: 0.1em;
}
.testimonial__attr {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-top: auto;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.testimonial__meta { font-size: var(--fs-xs); color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 400; }

/* ==========================================================================
   Stat band
   ========================================================================== */

.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); }
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--ink-invert); }
.stat__label { font-size: var(--fs-small); color: var(--muted-invert); max-width: 24ch; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band { background: var(--surface-dark); color: var(--ink-invert); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.cta-band__copy { max-width: 52ch; }
.cta-band h2 { color: var(--ink-invert); margin-bottom: 0.5rem; }
.cta-band p { color: var(--muted-invert); margin: 0; }
.cta-band .btn-row { flex: none; }

/* ==========================================================================
   Service area
   ========================================================================== */

.area-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: center; }
.area-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.area-list li {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small);
  background: var(--surface); border: var(--border-1); padding: 0.45rem 0.8rem; color: var(--ink);
}
@media (max-width: 768px) { .area-grid { grid-template-columns: 1fr; gap: var(--space-3); } }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-5); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-4); } }

.contact-details { background: var(--bg-alt); border: var(--border-1); border-top: var(--border-accent); padding: var(--space-4); }
.contact-details dl { margin: 0; display: grid; gap: var(--space-3); }
.contact-details dt {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-overline);
  text-transform: uppercase; letter-spacing: var(--ls-overline); color: var(--accent); margin-bottom: 0.25rem;
}
.contact-details dd { margin: 0; font-size: 1.0625rem; }
.contact-details dd a { font-weight: 600; }
.contact-details .phone-big { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.contact-details .phone-big:hover { color: var(--accent); }

.note-box {
  border-left: var(--border-accent); background: var(--surface); padding: var(--space-3);
  margin-top: var(--space-4); font-size: var(--fs-small); color: var(--muted);
}
.note-box strong { color: var(--ink); }

/* ==========================================================================
   Forms
   ========================================================================== */

.quote-form { display: grid; gap: 0; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.form-field label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.form-field .req { color: var(--action-strong); }
.input, .select, .textarea {
  font-family: var(--font-body); font-size: 1.0625rem; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); padding: 0.75rem 0.9rem;
  min-height: 48px; width: 100%; transition: border-color var(--t-fast) var(--ease);
}
.textarea { min-height: 140px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.field-hint { font-size: var(--fs-small); color: var(--muted); margin: 0; max-width: none; }
.field-error { font-size: var(--fs-small); color: var(--action-strong); font-weight: 600; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--action-strong); }
fieldset { border: var(--border-1); padding: var(--space-3); margin: 0 0 var(--space-3); }
legend { font-family: var(--font-display); font-weight: 700; padding-inline: 0.5rem; color: var(--accent); }
.form-success {
  display: none; border-left: var(--border-accent); background: var(--bg-alt);
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3); font-weight: 600;
}
.form-success.is-visible { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--surface-dark); color: var(--ink-invert); padding-block: var(--space-6); }
.site-footer a { color: var(--ink-invert); text-decoration: none; }
.site-footer a:hover { color: var(--teal-light); text-decoration: underline; text-decoration-thickness: 2px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: var(--space-4); }
.footer-brand .brand__name { color: var(--ink-invert); }
.footer-brand .brand__sub { color: var(--muted-invert); }
.footer-brand p { color: var(--muted-invert); font-size: var(--fs-small); margin-top: var(--space-2); max-width: 32ch; }
.footer-col h4 {
  font-size: var(--fs-h6); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--teal-light); margin-bottom: var(--space-2);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col .credential { font-size: var(--fs-small); color: var(--muted-invert); }
.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.footer-social a {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-dark);
}
.footer-social a:hover { border-color: var(--teal-light); text-decoration: none; }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); margin-top: var(--space-5);
  padding-top: var(--space-3); display: flex; justify-content: space-between; gap: var(--space-2);
  flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted-invert);
}
.footer-bottom a { color: var(--muted-invert); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); } }

/* ==========================================================================
   Scroll-reveal (single, user-agnostic, opt-out under reduced motion)
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(8px); transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.stack > * + * { margin-top: var(--space-3); }
.mt-0 { margin-top: 0; }
.measure { max-width: var(--maxw-prose); }
.center { text-align: center; }
.lede-block { max-width: 60ch; }

/* ==========================================================================
   Reduced motion + print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .mobile-panel, .btn-primary, .btn-secondary, .menu-btn, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
  .hero, .section--dark, .site-footer, .cta-band { background: #fff !important; color: #000 !important; }
  .hero__title, .cta-band h2 { color: #000 !important; }
}
