/*!
 * Keystone - Local Service Business HTML Template
 * Version 1.0.0
 *
 * TABLE OF CONTENTS
 *  1. Design tokens  (EDIT THE SIX VARIABLES IN 1a TO RETHEME THE WHOLE SITE)
 *  2. Colour preset (.theme-landscaping; the full template adds plumbing, dental, cleaning, legal, roofing and electrician)
 *  3. Dark mode
 *  4. Base & typography
 *  5. Layout helpers
 *  6. Buttons, badges, links
 *  7. Top bar & header & navigation
 *  8. Hero
 *  9. Sections & cards
 * 10. Reviews & ratings
 * 11. Pricing
 * 12. FAQ
 * 13. Forms
 * 14. Blog & prose
 * 15. Inner page hero, breadcrumbs, sidebar
 * 16. Footer
 * 17. Mobile call bar
 * 18. Demo switcher (preview only)
 * 19. Utilities, motion, print
 */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* 1a. ---- THE SIX VARIABLES YOU EDIT -------------------------------- */
  --brand: #1f5fd6;          /* primary colour: buttons, links, icons     */
  --accent: #f5a524;         /* call-to-action highlight (emergency band) */
  --ink: #0f1b2d;            /* main text colour                          */
  --paper: #ffffff;          /* page background                           */
  --radius: 16px;            /* corner roundness: 0px = sharp, 24px = soft */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* ---------------------------------------------------------------------- */

  /* 1b. Optional fine-tuning */
  --font-head: var(--font-sans);
  --on-brand: #ffffff;       /* text on brand-coloured buttons */
  --on-accent: #1d1400;      /* text on accent-coloured buttons */
  --container: 1200px;

  /* 1c. Derived tokens - computed from the six above, no need to edit */
  --brand-strong: color-mix(in oklab, var(--brand) 80%, #000);
  --brand-text: var(--brand-strong);
  --brand-soft: color-mix(in oklab, var(--brand) 10%, var(--paper));
  --brand-softer: color-mix(in oklab, var(--brand) 5%, var(--paper));
  --brand-line: color-mix(in oklab, var(--brand) 24%, var(--paper));
  --accent-soft: color-mix(in oklab, var(--accent) 18%, var(--paper));
  --surface: var(--paper);
  --surface-2: color-mix(in oklab, var(--ink) 3.5%, var(--paper));
  --surface-raised: var(--paper);
  --text: var(--ink);
  --muted: color-mix(in oklab, var(--ink) 70%, var(--paper));
  --line: color-mix(in oklab, var(--ink) 11%, var(--paper));
  --line-strong: color-mix(in oklab, var(--ink) 20%, var(--paper));
  --band: color-mix(in oklab, var(--brand) 22%, #08111f);
  --star: #f5a524;
  --success: #15803d;
  --danger: #b42318;

  --radius-sm: calc(var(--radius) * 0.6);
  --radius-lg: calc(var(--radius) * 1.5);
  --shadow-sm: 0 1px 2px rgb(15 27 45 / 0.06), 0 1px 3px rgb(15 27 45 / 0.08);
  --shadow-md: 0 4px 10px -2px rgb(15 27 45 / 0.08), 0 12px 24px -8px rgb(15 27 45 / 0.12);
  --shadow-lg: 0 10px 30px -10px rgb(15 27 45 / 0.25), 0 30px 60px -20px rgb(15 27 45 / 0.25);
  --ring: 0 0 0 3px var(--paper), 0 0 0 6px var(--brand);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ==========================================================================
   2. COLOUR PRESETS - put ONE of these classes on <html>
   ========================================================================== */

.theme-landscaping { --brand: #3f6212; --accent: #f59e0b; --ink: #161d0c; }
/* ==========================================================================
   3. DARK MODE
   Follows the visitor's OS setting, and the header toggle can force it.
   To disable dark mode entirely: delete this section and the toggle button.
   ========================================================================== */

:root[data-theme="dark"] {
  --paper: #0b1220;
  --ink: #e7ecf5;
  --surface-2: #101a2d;
  --surface-raised: #131e33;
  --brand-text: color-mix(in oklab, var(--brand) 50%, #fff);
  --brand-soft: color-mix(in oklab, var(--brand) 22%, #0b1220);
  --brand-softer: color-mix(in oklab, var(--brand) 10%, #0b1220);
  --brand-line: color-mix(in oklab, var(--brand) 40%, #0b1220);
  --band: color-mix(in oklab, var(--brand) 30%, #050a14);
  --muted: #a3b0c6;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 8px 24px -8px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / 0.75);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1220;
    --ink: #e7ecf5;
    --surface-2: #101a2d;
    --surface-raised: #131e33;
    --brand-text: color-mix(in oklab, var(--brand) 50%, #fff);
    --brand-soft: color-mix(in oklab, var(--brand) 22%, #0b1220);
    --brand-softer: color-mix(in oklab, var(--brand) 10%, #0b1220);
    --brand-line: color-mix(in oklab, var(--brand) 40%, #0b1220);
    --band: color-mix(in oklab, var(--brand) 30%, #050a14);
    --muted: #a3b0c6;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 8px 24px -8px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / 0.75);
    color-scheme: dark;
  }
}

/* ==========================================================================
   4. BASE & TYPOGRAPHY
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 1.9vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
a { color: var(--brand-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
:root[data-theme="dark"] :focus-visible { outline-color: var(--brand-text); }

.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-text); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ==========================================================================
   5. LAYOUT HELPERS
   ========================================================================== */

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }
.section { padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
.section--tint { background: var(--surface-2); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.section-head--split > div { max-width: 640px; }
.section-head p { margin-bottom: 0; }

.grid { display: grid; gap: clamp(1rem, .75rem + 1vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split--start { align-items: start; }
.stack > * + * { margin-top: 1rem; }
.h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.h-form { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.7rem); }

/* ==========================================================================
   6. BUTTONS, BADGES, LINKS
   ========================================================================== */

.btn {
  --btn-bg: var(--brand); --btn-fg: var(--on-brand); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: calc(var(--radius) * .75);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
  box-shadow: 0 1px 0 rgb(255 255 255 / .15) inset, 0 6px 16px -6px color-mix(in oklab, var(--btn-bg) 70%, transparent);
}
.btn:hover { transform: translateY(-1px); background: color-mix(in oklab, var(--btn-bg) 90%, #000); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--light { --btn-bg: #fff; --btn-fg: #0f1b2d; }
.btn--light:hover { background: #eef2f8; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .45); box-shadow: none; }
.btn--outline-light:hover { background: rgb(255 255 255 / .1); }
.btn--lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn-row--center { justify-content: center; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; line-height: 1.2;
  background: var(--brand-soft); color: var(--brand-text);
  border: 1px solid var(--brand-line);
}
.badge .icon { width: 1rem; height: 1rem; }
.badge--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / .2); }
.tag {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  background: var(--brand-soft); color: var(--brand-text);
}
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; color: var(--brand-text); }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--brand); color: var(--on-brand); padding: .75rem 1.1rem;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   7. TOP BAR, HEADER, NAVIGATION
   ========================================================================== */

.topbar { background: var(--band); color: #dfe6f2; font-size: .875rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.topbar li { display: inline-flex; align-items: center; gap: .45rem; }
.topbar .icon { width: 1rem; height: 1rem; color: var(--accent); }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 860px) { .topbar ul li + li { display: none; } }
@media (max-width: 560px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgb(15 27 45 / .35); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }

.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); margin-right: auto; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.logo-sub { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .55rem .8rem; border-radius: 10px;
  color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand-text); background: var(--brand-soft); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text);
  padding-right: .4rem;
}
.header-phone .phone-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-text);
}
.header-phone .icon { width: 1.1rem; height: 1.1rem; }
.header-phone small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; line-height: 1.1; }
.header-phone strong { display: block; font-size: 1rem; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface-raised);
  color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .icon { width: 1.2rem; height: 1.2rem; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-menu { display: none; }

@media (max-width: 1180px) { .header-phone { display: none; } }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .75rem 1.25rem 1.25rem;
    display: none;
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: .85rem 1rem; font-size: 1.05rem; }
  .header-cta { display: none; }
}
.nav .nav-cta { display: none; }
@media (max-width: 1020px) { .nav .nav-cta { display: block; margin-top: .75rem; } .nav li + li { border-top: 1px solid var(--line); } }
.nav .nav-cta .btn { display: flex; width: 100%; color: var(--on-brand); padding: .85rem 1rem; }
.nav .nav-cta .btn:hover { background: var(--brand-strong); }

/* ==========================================================================
   8. HERO
   ========================================================================== */

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(3.5rem, 2rem + 5vw, 7rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--brand-soft), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, var(--accent-soft), transparent 60%),
    var(--paper);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in oklab, var(--ink) 14%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  opacity: .5;
}
.hero .container { position: relative; }
.hero-grid { display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4.5rem); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero h1 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--brand-text); position: relative; z-index: 0; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .2em; z-index: -1;
  background: var(--accent); opacity: .45; border-radius: 4px;
}
.hero .lead { max-width: 560px; margin-bottom: 2rem; }
@media (max-width: 560px) { .hero .btn-row .btn { width: 100%; } }
.hero-trust { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin-top: 2.25rem; padding: 0; list-style: none; }
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; }
.hero-trust .icon { color: var(--brand-text); }

.hero-art { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }
.hero-art > svg { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
/* hero illustration colours follow the theme */
.ha-s1 { stop-color: var(--brand); }
.ha-s2 { stop-color: color-mix(in oklab, var(--brand) 55%, #050b18); }
.ha-sun { fill: var(--accent); }
.ha-roof { fill: color-mix(in oklab, var(--brand) 45%, #0a1426); }
.ha-win { fill: color-mix(in oklab, var(--brand) 18%, #fff); }
.ha-mull { stroke: #fff; stroke-width: 4; }
.ha-door { fill: var(--brand); }
.ha-knob { fill: var(--accent); }
.ha-badge { stroke: var(--brand); }
.lm-bg { fill: var(--brand); }
.lm-arch { stroke: #fff; }
.lm-key { fill: var(--accent); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .8rem;
  background: var(--surface-raised); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem 1rem; box-shadow: var(--shadow-lg);
  font-size: .9rem; line-height: 1.3;
}
.float-card strong { display: block; font-size: .95rem; }
.float-card div > span:not(.stars) { color: var(--muted); font-size: .82rem; }
.float-card--tl { top: 8%; left: -6%; }
.float-card--br { bottom: 8%; right: -5%; }
@media (max-width: 1239px) { .float-card--tl { left: -2%; } .float-card--br { right: -2%; } }
.float-card .avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: .9rem;
}
.float-card > div { display: grid; gap: 2px; }
.float-card .big { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
@media (max-width: 640px) {
  .float-card { font-size: .82rem; padding: .6rem .75rem; }
  .float-card--tl { left: 4%; top: 4%; }
  .float-card--br { right: 4%; bottom: 4%; }
  .float-card .avatar { width: 34px; height: 34px; }
  .float-card .big { font-size: 1.3rem; }
}

.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .icon { width: 1rem; height: 1rem; }

/* Stats strip */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.6rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); }
.stat span { color: var(--muted); font-size: .95rem; font-weight: 500; }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 820px) {
  .stat { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
}
.stats-wrap { position: relative; margin-top: calc(-1 * clamp(2rem, 1rem + 3vw, 3.5rem)); z-index: 2; }

/* ==========================================================================
   9. SECTIONS & CARDS
   ========================================================================== */

.card {
  position: relative; background: var(--surface-raised);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); }
.card > :last-child { margin-bottom: 0; }

.icon-tile {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.25rem;
  border-radius: calc(var(--radius) * .9);
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: var(--on-brand);
  box-shadow: 0 10px 20px -10px var(--brand);
}
.icon-tile .icon { width: 1.6rem; height: 1.6rem; stroke-width: 1.8; }
.icon-tile--xl { width: 72px; height: 72px; margin-inline: auto; }
.icon-tile--xl .icon { width: 2rem; height: 2rem; stroke-width: 2.5; }
.icon-tile--soft { background: var(--brand-soft); color: var(--brand-text); box-shadow: none; }

.service-card { display: flex; flex-direction: column; }
.service-card h3 a { color: var(--text); text-decoration: none; }
.service-card:hover h3 a { color: var(--brand-text); }
.service-card .stretched:focus-visible { outline: none; }
.service-card:has(.stretched:focus-visible) { box-shadow: var(--ring); }
.float-card .icon-tile { width: 44px; height: 44px; margin: 0; }
.float-card .icon-tile .icon { width: 1.25rem; height: 1.25rem; }
.service-card p { flex: 1; }
.service-card .price-from { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.service-card .price-from strong { color: var(--text); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Steps */
.steps { counter-reset: step; }
.step { --pad: clamp(1.4rem, 1.1rem + 1vw, 2rem); position: relative; padding-top: calc(var(--pad) + 3.4rem); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: var(--pad); left: var(--pad);
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand-text);
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--muted); margin: 0; }

/* Check list */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; }
.checklist li > .icon {
  width: 1.6rem; height: 1.6rem; padding: .3rem; border-radius: 50%; margin-top: .05rem;
  background: var(--brand-soft); color: var(--brand-text); stroke-width: 3;
}
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: .97rem; }

/* Image placeholders - replace with <img> (see documentation) */
.ph {
  position: relative; display: grid; place-items: center; width: 100%;
  aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in oklab, var(--brand) 18%, transparent), transparent 55%),
    repeating-linear-gradient(135deg, var(--brand-softer) 0 14px, var(--brand-soft) 14px 28px);
  border: 1px solid var(--brand-line);
  color: var(--brand-text);
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1; }
.ph--tall { aspect-ratio: 4 / 5; }
@media (max-width: 899px) { .ph--tall { aspect-ratio: 4 / 3; } }
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 1rem; }
.ph-glyph { width: clamp(2.5rem, 2rem + 3vw, 4.5rem); height: auto; aspect-ratio: 1; opacity: .4; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.ph-label {
  display: inline-flex; align-items: center; gap: .5rem; max-width: 90%;
  padding: .55rem .9rem; border-radius: 999px;
  background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; text-align: center;
}
.ph-label .icon { width: 1rem; height: 1rem; color: var(--brand-text); }
.ph-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.ph > .ph-label { position: relative; }
.media-stack { position: relative; }
.media-stack .float-card { bottom: -1.5rem; left: -1rem; top: auto; }
@media (max-width: 640px) { .media-stack .float-card { left: .75rem; bottom: -1.25rem; } .media-stack { margin-bottom: 1.5rem; } }

/* Feature band (dark) */
.band {
  position: relative; overflow: hidden; color: #e8edf6;
  background: var(--band);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
}
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40rem 20rem at 100% 0%, color-mix(in oklab, var(--brand) 55%, transparent), transparent 60%),
    radial-gradient(30rem 16rem at 0% 100%, color-mix(in oklab, var(--accent) 25%, transparent), transparent 60%);
}
.band > * { position: relative; }
.band h2, .band h3 { color: #fff; }
.band p { color: #c9d3e3; }
.band .eyebrow { color: var(--accent); }
.band-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1.4fr 1fr; } .band-grid .btn-row { justify-content: flex-end; } }
.band-phone { display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.02em; }
.band-phone:hover { text-decoration: underline; }
.band-phone .pulse {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 25%, transparent);
}
.band-phone .pulse .icon { width: 1.4rem; height: 1.4rem; }

/* Service area */
.areas { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.areas li {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface-raised);
  font-weight: 600; font-size: .92rem;
}
.areas .icon { width: 1rem; height: 1rem; color: var(--brand-text); }
.map-ph { aspect-ratio: 5 / 4; position: relative; display: grid; place-items: end center; padding: 1.25rem; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-raised); box-shadow: var(--shadow-md); }
.map-ph > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-ph .ph-label { position: relative; }
.mp-land { fill: color-mix(in oklab, var(--brand) 4%, var(--paper)); }
.mp-park { fill: color-mix(in oklab, #22c55e 18%, var(--paper)); }
.mp-water { fill: color-mix(in oklab, var(--brand) 24%, var(--paper)); }
.mp-road { stroke: var(--paper); fill: none; }
.mp-road-major { stroke: color-mix(in oklab, var(--accent) 50%, var(--paper)); fill: none; }
.mp-block { fill: color-mix(in oklab, var(--ink) 7%, var(--paper)); }
.mp-zone { fill: color-mix(in oklab, var(--brand) 12%, transparent); stroke: var(--brand); stroke-dasharray: 6 6; stroke-width: 2; }
.mp-pin { fill: var(--brand); }
.mp-pin-dot { fill: #fff; }

/* Team */
.team-card { text-align: left; padding: 0; overflow: hidden; }
.team-card .ph { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); aspect-ratio: 1; }
.team-card .team-body { padding: 1.25rem 1.4rem 1.5rem; }
.team-card h3 { margin-bottom: .1rem; font-size: 1.1rem; }
.team-card p { margin: 0; font-size: .92rem; }

/* Values / small features */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .icon-tile { margin-bottom: 0; width: 48px; height: 48px; flex: none; }
.feature h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Logos / credential row */
.creds { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; }
.cred { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); font-weight: 700; font-size: .95rem; letter-spacing: -0.01em; }
.cred .icon { width: 1.5rem; height: 1.5rem; color: var(--brand-text); }

/* Final CTA */
.cta-final { text-align: center; }
.cta-final .band { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.cta-final p { max-width: 560px; margin-inline: auto; margin-bottom: 2rem; font-size: 1.1rem; }
.cta-final .btn-row { justify-content: center; }

/* ==========================================================================
   10. REVIEWS & RATINGS
   ========================================================================== */

.review-card { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.review-card blockquote { margin: 0; font-size: 1.02rem; line-height: 1.65; color: var(--text); flex: 1; }
.review-card blockquote p { color: var(--text); }
.review-card blockquote p:last-child { margin: 0; }
.review-meta { display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review-meta .avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-text); font-weight: 800; font-size: .95rem; flex: none;
}
.review-meta strong { display: block; line-height: 1.2; }
.review-meta span { font-size: .85rem; color: var(--muted); }
.review-source { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.review-card .quote-mark { width: 2rem; height: 2rem; color: var(--brand-line); }

.rating-summary {
  display: grid; gap: 2rem; align-items: center;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
@media (min-width: 760px) { .rating-summary { grid-template-columns: 240px 1fr auto; } }
.rating-score { font-family: var(--font-head); font-size: 4rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.rating-score + .stars .icon { width: 1.3rem; height: 1.3rem; }
.bars { display: grid; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.bars li { display: grid; grid-template-columns: 3.2rem 1fr 3rem; align-items: center; gap: .75rem; font-size: .9rem; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.bar span { display: block; height: 100%; background: var(--star); border-radius: inherit; }
.demo-note {
  display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: .8rem 1rem; margin-top: 1.5rem;
}
.demo-note .icon { width: 1.1rem; height: 1.1rem; margin-top: .15rem; color: var(--brand-text); }

/* ==========================================================================
   11. PRICING
   ========================================================================== */

.billing-toggle {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); margin: 0 auto 2.5rem;
}
.billing-toggle button {
  font: inherit; font-weight: 700; font-size: .92rem; border: 0; cursor: pointer;
  padding: .6rem 1.2rem; border-radius: 999px; background: transparent; color: var(--muted);
}
.billing-toggle button[aria-pressed="true"] { background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow-sm); }
.billing-toggle .save { color: color-mix(in oklab, var(--success) 70%, var(--ink)); font-size: .78rem; margin-left: .3rem; }

.toggle-wrap { text-align: center; }

.price-card { display: flex; flex-direction: column; padding: clamp(1.6rem, 1.2rem + 1vw, 2.25rem); }
.price-card h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.price-card .desc { font-size: .95rem; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: .35rem; margin: 1.25rem 0 1.5rem; }
.price .amount { font-family: var(--font-head); font-size: 3rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--text); }
.price .per { color: var(--muted); font-weight: 600; font-size: .95rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; flex: 1; }
.price-card li { display: flex; gap: .65rem; align-items: flex-start; font-size: .97rem; }
.price-card li .icon { width: 1.15rem; height: 1.15rem; color: var(--brand-text); stroke-width: 3; margin-top: .2rem; }
.price-card--featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
@media (min-width: 1000px) { .price-card--featured { transform: translateY(-12px); } }
.price-card .ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: var(--on-brand); font-size: .78rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: .35rem .85rem; border-radius: 999px; white-space: nowrap;
}

.table-wrap:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 560px; }
.table caption { text-align: left; padding: 1.25rem 1.5rem .25rem; font-weight: 700; font-size: 1.1rem; }
.table th, .table td { text-align: left; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table td.num { font-weight: 700; white-space: nowrap; }
.table tbody th { font-weight: 600; }

/* ==========================================================================
   12. FAQ  (native <details>, no JavaScript required)
   ========================================================================== */

.faq { display: grid; gap: .75rem; }
.faq details {
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon {
  width: 1.9rem; height: 1.9rem; padding: .35rem; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-text); transition: transform .25s var(--ease);
}
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 1.35rem 1.25rem; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.faq-layout { display: grid; gap: 3rem; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 260px 1fr; } }
.faq-nav { position: sticky; top: 100px; align-self: start; }
.faq-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.faq-nav a { display: block; padding: .55rem .9rem; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.faq-nav a:hover { background: var(--surface-2); }
@media (max-width: 959px) { .faq-nav { position: static; } .faq-nav ul { display: flex; flex-wrap: wrap; } .faq-nav a { border: 1px solid var(--line); } }

/* ==========================================================================
   13. FORMS
   ========================================================================== */

.form-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-md); }
.form-grid { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; }
.field label, .label { font-weight: 600; font-size: .95rem; }
.field .req { color: color-mix(in oklab, var(--danger) 75%, var(--ink)); margin-left: 2px; }

.hint { font-size: .85rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: .75rem .95rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: calc(var(--radius) * .7);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-repeat: no-repeat; background-position: calc(100% - 21px) 52%, calc(100% - 15px) 52%; background-size: 6px 6px, 6px 6px;
}
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in oklab, var(--ink) 35%, var(--paper)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 22%, transparent); }
.input:user-invalid, .select:user-invalid, .textarea:user-invalid { border-color: var(--danger); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { float: left; width: 100%; display: flex; align-items: center; font-weight: 700; font-size: 1.1rem; padding: 0; margin-bottom: 1rem; }
legend + * { clear: both; }
.fieldset + .fieldset { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.step-num {
  display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-right: .5rem;
  border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: .85rem; font-weight: 800;
}

.choices { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 340px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label {
  display: flex; flex-direction: column; gap: .2rem; height: 100%;
  padding: 1rem 1.1rem; border: 1.5px solid var(--line-strong); border-radius: calc(var(--radius) * .8);
  background: var(--paper); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.choice label .icon { width: 1.4rem; height: 1.4rem; color: var(--brand-text); margin-bottom: .35rem; }
.choice label strong { font-size: .98rem; }
.choice label span { font-size: .85rem; color: var(--muted); font-weight: 500; }
.choice input:hover + label { border-color: var(--brand-line); }
.choice input:checked + label { border-color: var(--brand); background: var(--brand-softer); box-shadow: 0 0 0 1px var(--brand) inset; }
.choice input:focus-visible + label { box-shadow: var(--ring); }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--brand); flex: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.form-status { font-weight: 600; margin: 1rem 0 0; }
.form-status:empty { display: none; }
.form-status.is-ok { color: color-mix(in oklab, var(--success) 70%, var(--ink)); }
.form-status.is-error { color: color-mix(in oklab, var(--danger) 75%, var(--ink)); }
.form-dev-note {
  font-size: .85rem; color: var(--muted); background: var(--surface-2);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: .75rem 1rem; margin-top: 1.25rem;
}
.form-dev-note code { font-size: .82rem; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon-tile { width: 48px; height: 48px; margin: 0; flex: none; }
.contact-list .icon-tile .icon { width: 1.3rem; height: 1.3rem; }
.contact-list small { display: block; color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-list a, .contact-list strong { font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--brand-text); text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: .55rem 0; border-bottom: 1px dashed var(--line); text-align: left; }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.today th, .hours tr.today td { color: var(--brand-text); font-weight: 700; }

/* ==========================================================================
   14. BLOG & PROSE
   ========================================================================== */

.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card .ph { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; }
.post-card .post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.2rem; margin: .75rem 0 .5rem; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand-text); }
.post-card p { flex: 1; font-size: .97rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-size: .85rem; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.post-meta .icon { width: .95rem; height: .95rem; }
.post-card--feature { display: grid; }
@media (min-width: 900px) { .post-card--feature { grid-template-columns: 1.2fr 1fr; } .post-card--feature .ph { border-bottom: 0; border-right: 1px solid var(--line); aspect-ratio: auto; min-height: 340px; } .post-card--feature h3 { font-size: 1.75rem; } .post-card--feature .post-body { padding: 2.5rem; justify-content: center; } }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters a { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; background: var(--surface-raised); }
.filters a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.filters a:hover { border-color: var(--brand-line); }
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--text); }
.pagination [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.article-header { max-width: 820px; margin-inline: auto; text-align: center; }
.article-header .post-meta { justify-content: center; margin-top: 1.25rem; }
.article-cover { max-width: 1040px; margin: clamp(2rem, 1rem + 3vw, 3.5rem) auto; }
.prose { max-width: 720px; margin-inline: auto; font-size: 1.1rem; line-height: 1.8; }
.prose h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand-text); font-weight: 700; }
.prose blockquote {
  margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--brand);
  background: var(--brand-softer); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.15rem; font-weight: 600; color: var(--text);
}
.prose blockquote p:last-child { margin: 0; }
.callout {
  display: flex; gap: 1rem; padding: 1.25rem 1.4rem; margin: 2rem 0;
  border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--paper));
  font-size: 1rem; line-height: 1.6;
}
.callout .icon { width: 1.4rem; height: 1.4rem; color: var(--text); margin-top: .15rem; }
.callout p:last-child { margin: 0; }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; text-align: center; }
.author-box { display: flex; gap: 1.25rem; align-items: center; max-width: 720px; margin: 3rem auto 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2); }
.author-box .avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 1.3rem; flex: none; }
.author-box p { margin: 0; color: var(--muted); font-size: .95rem; }
.share { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-top: 2rem; font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ==========================================================================
   15. INNER PAGE HERO, BREADCRUMBS, SIDEBAR
   ========================================================================== */

.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  background:
    radial-gradient(50rem 22rem at 90% -20%, var(--brand-soft), transparent 60%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); margin: .75rem 0 .75rem; }
.page-hero .lead { max-width: 640px; margin: 0; }
.page-hero--center { text-align: center; }
.page-hero--center .lead { margin-inline: auto; }
.page-hero--center .breadcrumb ol { justify-content: center; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .35rem; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--brand-text); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

.with-sidebar { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .with-sidebar { grid-template-columns: minmax(0, 1fr) 360px; } }
.sidebar { display: grid; gap: 1.25rem; align-content: start; }
@media (min-width: 980px) { .sidebar { position: sticky; top: 100px; } }
.sidebar-cta { background: var(--band); color: #e8edf6; border: 0; }
.sidebar-cta h3 { color: #fff; }
.sidebar-cta p { color: #c9d3e3; }
.sidebar-cta .band-phone { font-size: 1.4rem; margin-bottom: 1.25rem; }
.sidebar-cta .band-phone .pulse { width: 44px; height: 44px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 0; color: var(--text); text-decoration: none; font-weight: 600; }
.side-list a:hover, .side-list a[aria-current="page"] { color: var(--brand-text); }
.side-list .icon { width: 1rem; height: 1rem; color: var(--muted); }
.content h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2.75rem; }
.content > h2:first-child { margin-top: 0; }
.content p, .content li { color: var(--muted); }
.content strong { color: var(--text); }
.signs { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); list-style: none; padding: 0; margin: 1.5rem 0; }
.signs li { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); color: var(--text); font-weight: 600; font-size: .97rem; }
.signs .icon { color: var(--brand-text); margin-top: .1rem; }

/* 404 */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.error-code {
  font-family: var(--font-head); font-size: clamp(6rem, 4rem + 10vw, 11rem); font-weight: 800; line-height: .9; letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--brand), color-mix(in oklab, var(--brand) 40%, var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.error-links a { display: inline-block; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--text); }
.error-links a:hover { border-color: var(--brand-line); color: var(--brand-text); }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.site-footer { background: var(--band); color: #c9d3e3; padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); font-size: .95rem; }
.site-footer a { color: #e8edf6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.site-footer .logo { color: #fff; margin-bottom: 1.25rem; }
.site-footer .logo-sub { color: #a9b6cb; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 1.1rem; font-family: var(--font-sans); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact .icon { width: 1.1rem; height: 1.1rem; color: var(--accent); margin-top: .25rem; }
.footer-contact address { font-style: normal; }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgb(255 255 255 / .08); color: #fff; }
.social a:hover { background: rgb(255 255 255 / .16); text-decoration: none; }
.social .icon { width: 1.1rem; height: 1.1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; margin-top: 3.5rem; padding-block: 1.5rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .88rem; color: #a9b6cb; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a { color: #c9d3e3; }

/* ==========================================================================
   17. MOBILE "CALL NOW" BAR
   ========================================================================== */

.callbar { display: none; }
@media (max-width: 767px) {
  .callbar {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    padding: .65rem .75rem calc(.65rem + env(safe-area-inset-bottom));
    background: color-mix(in oklab, var(--paper) 92%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(15 27 45 / .3);
  }
  .callbar .btn { min-height: 50px; padding-inline: .75rem; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   18. DEMO SWITCHER - preview only. Delete assets/js/demo.js and its
       <script> tag before going live; these styles then do nothing.
   ========================================================================== */

.demo-panel { position: fixed; right: 1rem; bottom: 1rem; z-index: 70; font-size: .9rem; }
@media (max-width: 767px) { .demo-panel { bottom: calc(86px + env(safe-area-inset-bottom)); right: .75rem; } }
.demo-panel > button {
  display: inline-flex; align-items: center; gap: .5rem; border: 0; cursor: pointer;
  padding: .7rem 1rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: .88rem;
  background: #0f1b2d; color: #fff; box-shadow: var(--shadow-lg);
}
.demo-panel > button .icon { width: 1.1rem; height: 1.1rem; }
.demo-box {
  position: absolute; right: 0; bottom: calc(100% + .6rem); width: 270px;
  background: var(--surface-raised); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem;
}
.demo-box[hidden] { display: none; }
.demo-box p { margin: 0 0 .6rem; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.demo-swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-bottom: 1rem; }
.demo-swatches button, .demo-modes button {
  display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.demo-swatches button[aria-pressed="true"], .demo-modes button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.demo-swatches i { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.demo-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.demo-modes button { justify-content: center; }
.demo-links { display: grid; gap: .25rem; }
.demo-links a { font-size: .88rem; font-weight: 600; }

/* ==========================================================================
   19. UTILITIES, MOTION, PRINT
   ========================================================================== */

.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; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 2rem; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .callbar, .demo-panel, .site-footer .social, .cta-final { display: none !important; }
  body { padding: 0; color: #000; background: #fff; }
  a[href^="tel:"]::after { content: " (" attr(href) ")"; }
}
