/* ==========================================================================
   AZTEC ELECTRIC LLC — Design System
   Renton, WA electrical contractor. Brand: black / safety yellow / ember orange.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

@font-face {
  font-family: 'Azonix';
  src: url('../fonts/Azonix.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* --- Brand core --- */
  --color-black: #0E0F13;
  --color-black-soft: #16181F;
  --color-charcoal: #1E212B;
  --color-yellow-bright: #FFD500;
  --color-yellow: #FFC522;
  --color-yellow-deep: #E3A500;
  --color-orange: #F5821F;
  --color-white: #FFFFFF;
  --color-offwhite: #FAFAF7;

  /* --- Neutrals (steel) --- */
  --steel-900: #191B20;
  --steel-700: #383B44;
  --steel-600: #565A66;
  --steel-400: #8A8E99;
  --steel-200: #E2E4E9;
  --steel-100: #EEF0F3;

  /* --- Semantic tokens (light surfaces) --- */
  --bg: var(--color-offwhite);
  --bg-alt: #F2F1EC;
  --surface: var(--color-white);
  --surface-border: var(--steel-200);
  --text: var(--steel-900);
  --text-muted: var(--steel-600);
  --text-faint: var(--steel-400);

  /* --- Semantic tokens (dark surfaces) --- */
  --dark-bg: var(--color-black);
  --dark-surface: var(--color-black-soft);
  --dark-surface-alt: var(--color-charcoal);
  --dark-border: #2A2D37;
  --dark-text: #F6F6F3;
  --dark-text-muted: #A7ABB6;

  /* --- Brand semantic --- */
  --brand: var(--color-yellow);
  --brand-strong: var(--color-yellow-bright);
  --brand-deep: var(--color-yellow-deep);
  --accent: var(--color-orange);
  --on-brand: var(--color-black);
  --success: #1F9D55;
  --danger: #D64545;
  --ring: var(--color-yellow);

  /* --- Typography --- */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Oswald', 'Inter', sans-serif;
  --font-display: 'Azonix', 'Oswald', sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-h4: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
  --fs-h2: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 1.9rem + 2.8vw, 4.25rem);
  --fs-hero: clamp(2.75rem, 2rem + 3.6vw, 5.25rem);

  /* --- Spacing (4/8pt scale) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* --- Layout --- */
  --container-max: 1240px;
  --container-pad: clamp(20px, 5vw, 48px);
  --header-h: 84px;

  /* --- Radius --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* --- Shadow --- */
  --shadow-sm: 0 1px 2px rgba(14,15,19,0.06), 0 1px 3px rgba(14,15,19,0.08);
  --shadow-md: 0 4px 10px rgba(14,15,19,0.08), 0 2px 4px rgba(14,15,19,0.06);
  --shadow-lg: 0 20px 40px -12px rgba(14,15,19,0.28);
  --shadow-brand: 0 10px 24px -6px rgba(255, 197, 34, 0.45);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 400ms;

  /* --- Z-index scale --- */
  --z-base: 0;
  --z-sticky: 100;
  --z-overlay: 400;
  --z-modal: 800;
  --z-toast: 1000;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* Focus visibility — never remove, only restyle */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.dark-section :focus-visible { outline-color: var(--brand-strong); }

::selection { background: var(--brand); color: var(--on-brand); }

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-black);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: var(--z-toast);
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-narrow { max-width: 860px; }
.container-wide { max-width: 1400px; }

section { position: relative; }

.section {
  padding-block: var(--space-20);
}
.section-tight { padding-block: var(--space-12); }

.grid { display: grid; gap: var(--space-8); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.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;
}

@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   4. SECTION HEADERS, KICKERS, TEXT HELPERS
   ========================================================================== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: var(--space-4);
}
.kicker::before {
  content: '';
  width: 28px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand-strong), var(--accent));
}
.kicker-balanced::after {
  content: '';
  width: 28px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--brand-strong));
}
.dark-section .kicker { color: var(--brand-strong); }

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-12);
}
.section-head.center { margin-inline: auto; text-align: center; }

.section-title {
  font-size: var(--fs-h2);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.section-title mark {
  background: none;
  color: var(--brand-deep);
}
.dark-section .section-title mark { color: var(--brand-strong); }

.section-sub {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: 1.65;
}
.dark-section .section-sub { color: var(--dark-text-muted); }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Dark section base */
.dark-section {
  background: var(--dark-bg);
  color: var(--dark-text);
}
.dark-section h1, .dark-section h2, .dark-section h3,
.dark-section h4, .dark-section h5 { color: var(--dark-text); }
.dark-section p { color: var(--dark-text-muted); }

/* Subtle circuit-plan texture used on dark sections, echoes flyer background */
.texture-circuit {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, var(--brand) 0, transparent 2px),
    radial-gradient(circle at 70% 60%, var(--brand) 0, transparent 2px),
    radial-gradient(circle at 40% 80%, var(--brand) 0, transparent 2px),
    linear-gradient(var(--brand) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand) 1px, transparent 1px);
  background-size: 260px 260px, 260px 260px, 260px 260px, 52px 52px, 52px 52px;
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
  --btn-fs: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--btn-fs);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-2px); }

.btn-dark {
  background: var(--color-black);
  color: var(--color-white);
}
.btn-dark:hover { background: var(--steel-700); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--text);
}
.btn-outline:hover { background: var(--text); color: var(--surface); }

.dark-section .btn-outline,
.hero .btn-outline,
.page-header .btn-outline,
.mobile-nav .btn-outline { color: var(--color-white); border-color: rgba(255,255,255,0.55); }
.dark-section .btn-outline:hover,
.hero .btn-outline:hover,
.page-header .btn-outline:hover,
.mobile-nav .btn-outline:hover { background: var(--color-white); color: var(--dark-bg); border-color: var(--color-white); }

.btn-ghost-brand {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand-strong);
}
.btn-ghost-brand:hover { background: var(--brand); color: var(--on-brand); }

.btn-lg { padding: 18px 34px; font-size: var(--fs-md); }
.btn-sm { padding: 10px 18px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Phone CTA pill (header/nav) */
.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--color-white);
  padding: 10px 14px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-pill);
  transition: border-color var(--dur-base), background-color var(--dur-base), transform var(--dur-fast);
}
.btn-phone:hover { border-color: var(--brand); background: rgba(255,197,34,0.1); transform: translateY(-1px); }
.btn-phone svg { width: 18px; height: 18px; color: var(--brand-strong); flex-shrink: 0; }

/* ==========================================================================
   6. HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(14, 15, 19, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dark-border);
}

.topbar {
  background: var(--color-black);
  border-bottom: 1px solid var(--dark-border);
  color: var(--dark-text-muted);
  font-size: var(--fs-xs);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 8px;
  gap: var(--space-4);
}
.topbar a { transition: color var(--dur-base); }
.topbar a:hover { color: var(--brand-strong); }
.topbar-left { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.topbar-left span, .topbar-left a { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; color: var(--brand-strong); flex-shrink: 0; }
.topbar-social { display: flex; gap: var(--space-3); }
.topbar-social a {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--dark-surface-alt);
}
.topbar-social a:hover { background: var(--brand); color: var(--on-brand); }
.topbar-social svg { width: 13px; height: 13px; color: inherit; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { height: 52px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1;
}
.brand-word span { color: var(--brand-strong); }
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-text-muted);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav-links a {
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--dark-text);
  padding-block: 6px;
  white-space: nowrap;
  transition: color var(--dur-base);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--brand);
  transition: width var(--dur-base) var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand-strong); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-white);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .topbar-left span:nth-child(2) { display: none; }
}

@media (max-width: 640px) {
  .btn-phone { display: none; }
  .navbar { padding-block: 12px; }
  .brand img { height: 42px; }
  .brand-tag { display: none; }
}

@media (max-width: 480px) {
  .nav-actions { gap: var(--space-2); }
  .nav-actions .btn-primary.btn-sm { display: none; }
  .brand-word { font-size: 1rem; }
  .navbar { padding-inline: 14px; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--color-black);
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--container-pad) var(--space-10);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-in-out);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-10); }
.mobile-nav-close { width: 44px; height: 44px; background: var(--dark-surface-alt); border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; border: none; color: var(--color-white); }
.mobile-nav-close svg { width: 22px; height: 22px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-10); }
.mobile-nav-links a {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  text-transform: uppercase;
  color: var(--dark-text);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--dark-border);
}
.mobile-nav-links a[aria-current="page"] { color: var(--brand-strong); }
.mobile-nav-footer { display: flex; flex-direction: column; gap: var(--space-4); }
body.nav-open { overflow: hidden; }

/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--color-black);
  color: var(--dark-text);
  overflow: hidden;
  padding-block: var(--space-24) var(--space-20);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--space-16);
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-media {
  position: relative;
  margin-bottom: var(--space-6);
}
.hero-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--dark-border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1147 / 1111;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-badge {
  position: absolute;
  left: -16px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  background: var(--color-black);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
}
.hero-media-badge .icon-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-media-badge .icon-circle svg { width: 20px; height: 20px; color: var(--on-brand); }
.hero-media-badge b { display: block; color: var(--color-white); font-family: var(--font-heading); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.02em; }
.hero-media-badge span { display: block; color: var(--dark-text-muted); font-size: 0.72rem; }
@media (max-width: 640px) {
  .hero-media-badge { left: 10px; bottom: -16px; padding: 12px 14px; max-width: calc(100% - 20px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--dark-surface-alt);
  border: 1px solid var(--dark-border);
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: var(--space-6);
}
.hero-badge .stars { color: var(--brand-strong); display: inline-flex; gap: 1px; }
.hero-badge .stars svg { width: 13px; height: 13px; }
.hero-badge b { color: var(--color-white); }

.hero h1 {
  font-size: var(--fs-hero);
  text-transform: uppercase;
  line-height: 1.02;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand-bright, var(--color-yellow-bright)) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: var(--fs-md);
  color: var(--dark-text-muted);
  max-width: 560px;
  margin-bottom: var(--space-8);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-12); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.hero-trust-item { display: flex; align-items: center; gap: 10px; }
.hero-trust-item svg { width: 22px; height: 22px; color: var(--brand-strong); flex-shrink: 0; }
.hero-trust-item span { font-size: var(--fs-xs); font-weight: 500; color: var(--dark-text-muted); line-height: 1.3; display: block; }
.hero-trust-item b { color: var(--color-white); display: block; font-family: var(--font-heading); font-size: var(--fs-base); }

/* Angled yellow divider echoing flyer swoosh, between hero and next section */
.swoosh {
  position: relative;
  height: 64px;
  margin-top: -1px;
}
.swoosh svg { width: 100%; height: 100%; display: block; }

/* Page header (interior pages) — smaller hero variant */
.page-header {
  position: relative;
  background: var(--color-black);
  color: var(--dark-text);
  padding-block: var(--space-16) var(--space-20);
  overflow: hidden;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .kicker { color: var(--brand-strong); }
.page-header h1 {
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  text-transform: uppercase;
  color: var(--color-white);
  max-width: 800px;
}
.page-header p { color: var(--dark-text-muted); max-width: 620px; margin-top: var(--space-4); font-size: var(--fs-md); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: var(--fs-xs); color: var(--dark-text-muted); margin-bottom: var(--space-6); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.breadcrumb a:hover { color: var(--brand-strong); }
.breadcrumb svg { width: 12px; height: 12px; }

/* ==========================================================================
   8. CARDS
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);
}

/* Service card */
.service-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.service-card .icon-wrap {
  width: 58px; height: 58px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-black);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-6);
  transition: background var(--dur-base);
}
.service-card:hover .icon-wrap { background: var(--brand); }
.service-card .icon-wrap svg { width: 28px; height: 28px; color: var(--brand-strong); transition: color var(--dur-base); }
.service-card:hover .icon-wrap svg { color: var(--on-brand); }
.service-card h3 { font-size: var(--fs-lg); text-transform: uppercase; margin-bottom: var(--space-3); }
.service-card p { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-5); flex-grow: 1; }
.service-card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text);
  border-top: 1px solid var(--surface-border);
  padding-top: var(--space-4);
  margin-top: auto;
}
.service-card .card-link svg { width: 14px; height: 14px; transition: transform var(--dur-base); }
.service-card:hover .card-link { color: var(--brand-deep); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* Feature list (why choose us) */
.feature-row {
  display: flex;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--dark-border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .num {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--brand-strong);
  flex-shrink: 0;
  width: 46px;
}
.feature-row h4 { color: var(--color-white); font-size: var(--fs-md); text-transform: uppercase; margin-bottom: var(--space-2); }
.feature-row p { color: var(--dark-text-muted); font-size: var(--fs-sm); }

/* Stat block */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat {
  text-align: center;
  padding: var(--space-6);
  border-left: 1px solid var(--dark-border);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  font-weight: 700;
  color: var(--brand-strong);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
}
.stat .label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--dark-text-muted); font-weight: 600; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: none; } .stat { border-bottom: 1px solid var(--dark-border); } .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } .stat { border-left: none; border-bottom: 1px solid var(--dark-border); } .stat:last-child { border-bottom: none; } }

/* Badge / pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--steel-100);
  color: var(--steel-700);
}
.badge-brand { background: var(--brand); color: var(--on-brand); }
.badge svg { width: 14px; height: 14px; }

/* Trust badge row (licenses etc.) */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding-block: var(--space-8);
}
.trust-strip .item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm); }
.trust-strip svg { width: 24px; height: 24px; color: var(--brand-deep); }

/* ==========================================================================
   9. TESTIMONIALS / CAROUSEL
   ========================================================================== */
.testimonial-track-wrap { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex;
  gap: var(--space-6);
  transition: transform var(--dur-slow) var(--ease-in-out);
}
.testimonial-card {
  flex: 0 0 100%;
  background: var(--dark-surface-alt);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}
@media (min-width: 720px) { .testimonial-card { flex-basis: calc(50% - 12px); } }
@media (min-width: 1080px) { .testimonial-card { flex-basis: calc(33.333% - 16px); } }
.testimonial-card .stars { display: flex; gap: 3px; margin-bottom: var(--space-4); color: var(--brand-strong); }
.testimonial-card .stars svg { width: 16px; height: 16px; }
.testimonial-card p.quote { color: var(--dark-text); font-size: var(--fs-sm); line-height: 1.7; margin-bottom: var(--space-6); }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar {
  width: 42px; height: 42px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-strong), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; color: var(--on-brand);
  flex-shrink: 0;
}
.testimonial-card .author b { display: block; color: var(--color-white); font-size: var(--fs-sm); }
.testimonial-card .author span { display: block; color: var(--dark-text-muted); font-size: var(--fs-xs); }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-10); }
.carousel-btn {
  width: 46px; height: 46px;
  border-radius: var(--radius-pill);
  background: var(--dark-surface-alt);
  border: 1px solid var(--dark-border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-white);
  transition: background var(--dur-base), transform var(--dur-fast);
}
.carousel-btn:hover { background: var(--brand); color: var(--on-brand); }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--dark-border); border: none; padding: 0; transition: background var(--dur-base), transform var(--dur-base); }
.carousel-dots button.is-active { background: var(--brand); transform: scale(1.3); }

/* ==========================================================================
   10. GALLERY
   ========================================================================== */
.gallery-filters { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-10); }
.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--surface-border);
  background: var(--surface);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all var(--dur-base);
  min-height: 44px;
}
.filter-btn:hover { border-color: var(--brand); }
.filter-btn.is-active { background: var(--color-black); border-color: var(--color-black); color: var(--color-white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--steel-100);
  border: 1px solid var(--surface-border);
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,15,19,0.85) 0%, rgba(14,15,19,0.1) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity var(--dur-base);
}
.gallery-item:hover .overlay, .gallery-item:focus-within .overlay { opacity: 1; }
.gallery-item .overlay .tag { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 4px; }
.gallery-item .overlay h4 { color: var(--color-white); font-size: var(--fs-base); }
.gallery-item button.expand {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: transparent; border: none; padding: 0;
}

/* Placeholder gallery tile (no real photo yet) */
.gallery-item.is-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--steel-100), var(--steel-100) 10px, var(--steel-200) 10px, var(--steel-200) 20px);
}
.gallery-item.is-placeholder .ph-content {
  text-align: center; padding: var(--space-6); color: var(--steel-600);
}
.gallery-item.is-placeholder svg { width: 34px; height: 34px; color: var(--steel-400); margin: 0 auto var(--space-3); }
.gallery-item.is-placeholder .tag-ph { font-family: var(--font-heading); font-size: var(--fs-xs); text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; color: var(--steel-600); }
.gallery-item.is-placeholder .sub-ph { font-size: 0.75rem; color: var(--steel-400); margin-top: 4px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(10,10,12,0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: var(--space-6);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 90vw); max-height: 82vh; border-radius: var(--radius-md); object-fit: contain; }
.lightbox-caption { color: var(--color-white); text-align: center; margin-top: var(--space-4); font-size: var(--fs-sm); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: var(--radius-pill);
  background: var(--dark-surface-alt); border: 1px solid var(--dark-border);
  color: var(--color-white); display: flex; align-items: center; justify-content: center;
}
.lightbox-close svg { width: 22px; height: 22px; }

/* Before / After slider */
.ba-slider {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  box-shadow: var(--shadow-lg);
  cursor: ew-resize;
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider .ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.ba-slider .ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 4px; background: var(--brand);
  transform: translateX(-2px);
  cursor: ew-resize;
}
.ba-slider .ba-handle::after {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E0F13' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3Cpolyline points='9 18 15 12 9 6' transform='translate(6,0)'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  box-shadow: var(--shadow-md);
}
.ba-tag { position: absolute; top: 16px; padding: 6px 14px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; z-index: 2; }
.ba-tag.before-tag { left: 16px; background: var(--color-black); color: var(--color-white); }
.ba-tag.after-tag { right: 16px; background: var(--brand); color: var(--on-brand); }

/* ==========================================================================
   11. PROCESS STEPS
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { position: relative; text-align: left; }
.process-step .step-num {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-black);
  color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-5);
}
.process-step h4 { font-size: var(--fs-md); text-transform: uppercase; margin-bottom: var(--space-2); }
.process-step p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ==========================================================================
   12. FAQ ACCORDION
   ========================================================================== */
.accordion { border-top: 1px solid var(--surface-border); }
.accordion-item { border-bottom: 1px solid var(--surface-border); }
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-6) var(--space-2);
  background: transparent; border: none; text-align: left;
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text);
}
.accordion-trigger .plus {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--steel-100);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: background var(--dur-base), transform var(--dur-base);
}
.accordion-trigger .plus::before, .accordion-trigger .plus::after {
  content: ''; position: absolute; background: var(--text);
  transition: transform var(--dur-base), background var(--dur-base);
}
.accordion-trigger .plus::before { width: 12px; height: 2px; }
.accordion-trigger .plus::after { width: 2px; height: 12px; }
.accordion-trigger[aria-expanded="true"] .plus { background: var(--brand); transform: rotate(180deg); }
.accordion-trigger[aria-expanded="true"] .plus::after { transform: scaleY(0); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-in-out);
}
.accordion-panel .inner { padding: 0 var(--space-2) var(--space-6); color: var(--text-muted); font-size: var(--fs-sm); max-width: 760px; line-height: 1.7; }

/* ==========================================================================
   13. FORMS
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-heading); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text); }
.field .required { color: var(--danger); margin-left: 2px; }
.field input, .field textarea, .field select {
  padding: 14px 16px;
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--fs-base);
  min-height: 48px;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255,197,34,0.22);
}
.field input:invalid[data-touched="true"], .field.has-error input, .field.has-error textarea, .field.has-error select {
  border-color: var(--danger);
}
.field .error-msg { display: none; font-size: var(--fs-xs); color: var(--danger); font-weight: 500; align-items: center; gap: 6px; }
.field .error-msg svg { width: 14px; height: 14px; flex-shrink: 0; }
.field.has-error .error-msg { display: flex; }
.field .help { font-size: var(--fs-xs); color: var(--text-faint); }

.form-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
}
.dark-section .form-panel { background: var(--dark-surface-alt); border-color: var(--dark-border); }

/* Housecall Pro lead form embed: its own script resizes the iframe's
   height to fit the form once loaded; width just needs to fill the card.
   Giving it a full-width column (instead of splitting 50/50 with the map)
   keeps the form from squeezing narrow and forcing extra height. */
.quote-form-col { max-width: 720px; margin: 0 auto var(--space-2); text-align: center; }
.quote-form-col .form-panel { text-align: left; }

.hcp-form-panel {
  position: relative;
  overflow: hidden;
  background: var(--dark-surface-alt);
  border-color: var(--dark-border);
  padding: calc(var(--space-6) + 6px) var(--space-6) var(--space-6);
}
.hcp-form-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-strong), var(--accent), var(--brand-deep));
}
.hcp-form-panel .help { color: var(--dark-text-muted); text-align: center; margin-top: var(--space-4); }
#hcp-lead-iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  background: var(--color-white);
  border-radius: var(--radius-md);
}
.dark-section .field label { color: var(--dark-text); }
.dark-section .field input, .dark-section .field textarea, .dark-section .field select {
  background: var(--dark-bg); border-color: var(--dark-border); color: var(--dark-text);
}

/* Trustindex reviews widget: renders its own styled cards directly into
   the DOM (no iframe), so this wrapper only needs to handle layout. */
.trustindex-widget-wrap {
  max-width: 1140px;
  margin: 0 auto;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-16) var(--space-6);
}
.form-success.is-visible { display: block; }
.form-success .icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--success); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-6);
}
.form-success .icon svg { width: 34px; height: 34px; }

/* Radio / checkbox pill group (used in calculator/forms) */
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-choice { position: relative; }
.pill-choice input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.pill-choice label {
  display: inline-flex; align-items: center; padding: 10px 18px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--surface-border);
  font-size: var(--fs-sm); font-weight: 600; text-transform: none;
  transition: all var(--dur-base); min-height: 44px;
}
.pill-choice input:checked + label { background: var(--color-black); border-color: var(--color-black); color: var(--color-white); }
.pill-choice input:focus-visible + label { outline: 3px solid var(--ring); outline-offset: 2px; }

/* ==========================================================================
   14. FINANCING CALCULATOR
   ========================================================================== */
.calc-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
@media (max-width: 900px) { .calc-panel { grid-template-columns: 1fr; } }

.calc-inputs { padding: var(--space-10); }
.calc-field { margin-bottom: var(--space-8); }
.calc-field-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-4); }
.calc-field-label label { font-family: var(--font-heading); text-transform: uppercase; font-size: var(--fs-sm); font-weight: 600; }
.calc-field-label .val { font-family: var(--font-heading); font-size: var(--fs-lg); color: var(--brand-deep); font-weight: 700; }

input[type="range"] {
  -webkit-appearance: none;
  width: 100%; height: 8px;
  border-radius: var(--radius-pill);
  background: var(--steel-200);
  outline-offset: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-black);
  border: 4px solid var(--brand);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-black); border: 4px solid var(--brand); cursor: pointer;
}
.range-labels { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-faint); margin-top: 8px; }

.calc-select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  min-height: 48px;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.calc-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255,197,34,0.22);
}

.calc-result {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-10);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
}
.calc-result .texture-circuit { opacity: 0.08; }
.calc-result .rel { position: relative; z-index: 1; }
.calc-result .eyebrow { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dark-text-muted); font-weight: 600; margin-bottom: var(--space-3); }
.calc-result .amount { font-family: var(--font-heading); font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 700; color: var(--brand-strong); line-height: 1; }
.calc-result .amount span { font-size: 1.1rem; color: var(--dark-text-muted); font-weight: 500; }
.calc-result .breakdown { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); border-top: 1px solid var(--dark-border); padding-top: var(--space-6); }
.calc-result .breakdown .row { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--dark-text-muted); }
.calc-result .breakdown .row b { color: var(--color-white); font-weight: 600; }
.calc-result .disclaimer { font-size: 0.72rem; color: var(--dark-text-muted); margin-top: var(--space-8); line-height: 1.6; }

/* ==========================================================================
   15. SERVICE AREA
   ========================================================================== */
.area-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
@media (max-width: 900px) { .area-layout { grid-template-columns: 1fr; gap: var(--space-10); } }
.area-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.area-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--fs-sm); padding: 10px 0; border-bottom: 1px solid var(--dark-border); }
.area-list svg { width: 16px; height: 16px; color: var(--brand-strong); flex-shrink: 0; }

.map-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--dark-border);
  aspect-ratio: 4/3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* ==========================================================================
   16. CTA BANNER
   ========================================================================== */
.cta-banner {
  position: relative;
  background: linear-gradient(105deg, var(--color-yellow-bright) 0%, var(--brand) 45%, var(--accent) 100%);
  color: var(--on-brand);
  padding-block: var(--space-16);
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(14,15,19,0.06) 0 2px, transparent 2px 34px);
}
.cta-banner .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.cta-banner h2 { font-size: var(--fs-h2); text-transform: uppercase; max-width: 560px; color: var(--on-brand); }
.cta-banner p { color: rgba(14,15,19,0.75); font-size: var(--fs-md); margin-top: var(--space-3); max-width: 480px; }
.cta-banner .btn-dark:hover { background: var(--color-black); }

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
.site-footer { background: var(--color-black); color: var(--dark-text-muted); position: relative; }
.footer-top { padding-block: var(--space-20) var(--space-12); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-10); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand { margin-bottom: var(--space-5); }
.footer-brand p { font-size: var(--fs-sm); line-height: 1.7; max-width: 320px; margin-bottom: var(--space-6); }
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: var(--dark-surface-alt); border: 1px solid var(--dark-border);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-base), transform var(--dur-fast);
}
.footer-social a:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }

.footer-col h5 { font-family: var(--font-heading); text-transform: uppercase; font-size: var(--fs-sm); letter-spacing: 0.04em; color: var(--color-white); margin-bottom: var(--space-5); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--fs-sm); transition: color var(--dur-base); }
.footer-col a:hover { color: var(--brand-strong); }
.footer-col .contact-item { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.footer-col .contact-item svg { width: 16px; height: 16px; color: var(--brand-strong); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-block: var(--space-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  font-size: var(--fs-xs);
}
.footer-bottom .legal-links { display: flex; gap: var(--space-5); }
.footer-bottom a:hover { color: var(--brand-strong); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur-base), transform var(--dur-base), visibility var(--dur-base);
  z-index: var(--z-sticky);
  border: none;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* Sticky mobile call bar */
.mobile-call-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  background: var(--color-black);
  border-top: 2px solid var(--brand);
  display: none;
  padding: 10px var(--container-pad);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  gap: var(--space-3);
}
.mobile-call-bar a {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
}
.mobile-call-bar .call { background: var(--brand); color: var(--on-brand); }
.mobile-call-bar .quote { background: var(--dark-surface-alt); color: var(--color-white); border: 1px solid var(--dark-border); }
.mobile-call-bar svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 74px; }
}

/* ==========================================================================
   18. ANIMATIONS
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ==========================================================================
   19. UTILITIES / MISC
   ========================================================================== */
.divider { height: 1px; background: var(--surface-border); border: none; margin-block: var(--space-10); }
.dark-section .divider { background: var(--dark-border); }

.chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--steel-100); font-size: var(--fs-xs); font-weight: 600; }
.chip svg { width: 13px; height: 13px; color: var(--success); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--surface-border); font-size: var(--fs-sm); }
th { font-family: var(--font-heading); text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--text-muted); }

/* Alternating section backgrounds */
.bg-alt { background: var(--bg-alt); }
.bg-surface { background: var(--surface); }

/* Team card (about page placeholder-friendly) */
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: var(--space-5);
  background: linear-gradient(145deg, var(--steel-100), var(--steel-200));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border: 1px solid var(--surface-border);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo.is-placeholder svg { width: 46px; height: 46px; color: var(--steel-400); }
.team-card h4 { font-size: var(--fs-md); text-transform: uppercase; }
.team-card .role { color: var(--brand-deep); font-weight: 600; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

/* Value / mission cards on About */
.value-card { padding: var(--space-8); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--surface-border); }
.value-card .icon-wrap { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--bg-alt); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-5); }
.value-card .icon-wrap svg { width: 26px; height: 26px; color: var(--brand-deep); }

/* Promo flyer showcase (uses existing flyer artwork) */
.promo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--dark-border);
  position: relative;
}
.promo-card img { width: 100%; }

/* Print utility */
@media print {
  .site-header, .mobile-call-bar, .back-to-top, .site-footer { display: none; }
}

/* ==========================================================================
   20. ROTATING GRADIENT GLOW — CTA buttons (Get a Quote / Call Now)
   ========================================================================== */

/* Registers --glow-angle as a real <angle> so the browser can smoothly
   tween it frame-by-frame instead of snapping instantly between values. */
@property --glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* IMPORTANT: an element's own background always paints BEFORE its
   negative-z-index pseudo-elements — that's fixed CSS paint order, not
   something z-index can override. So the glow can't live as ::before/::after
   on the visible button itself (it would wash out over the button's solid
   fill instead of hiding behind it). Instead .btn-glow is a separate,
   transparent WRAPPER placed around the real button:

   <span class="btn-glow"><a class="btn btn-primary btn-lg" href="...">Get a Free Quote</a></span>

   The wrapper has no fill of its own, so its glow pseudo-elements are the
   first thing painted; the real button is normal in-flow content painted
   right after, covering the middle and leaving only the glow's overflow
   (outside the button's edges) visible as a ring/halo.
   Add .btn-glow-rect for square-cornered buttons; pill shape is the default. */
.btn-glow {
  position: relative;
  display: inline-block;
  /* Forces this wrapper to own a self-contained stacking context, so the
     negative z-index glow layers are guaranteed to stay scoped to this one
     button (painted behind it) instead of depending on where an ancestor
     happens to establish stacking — that dependency rendered inconsistently
     between browsers and let the glow show through on some devices. */
  isolation: isolate;
  /* Safari's mask engine can fail to round mask-composite shapes at very
     large border-radius values (e.g. 999px) — 50px reads as fully pill-
     shaped on any button height we use, without tripping that bug. */
  border-radius: 50px;
}
.btn-glow.btn-glow-rect { border-radius: var(--radius-sm); }

/* The real Call Now / Free Quote buttons in the sticky mobile bar are
   rounded-rectangles (var(--radius-sm)), not pills — match the wrapper's
   radius to theirs so the glow ring hugs the actual button shape. */
.mobile-call-bar .btn-glow { border-radius: var(--radius-sm); }

.btn-glow::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(
    from var(--glow-angle),
    var(--brand-strong) 0deg,
    var(--accent) 90deg,
    var(--brand-deep) 180deg,
    var(--accent) 270deg,
    var(--brand-strong) 360deg
  );
  filter: blur(9px);
  opacity: 0.55;
  animation: btn-glow-spin 3s linear infinite;
  transition: opacity var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out);
  pointer-events: none;
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  padding: 2.5px;
  background: conic-gradient(
    from var(--glow-angle),
    var(--brand-strong) 0deg,
    var(--accent) 90deg,
    var(--brand-deep) 180deg,
    var(--accent) 270deg,
    var(--brand-strong) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: btn-glow-spin 3s linear infinite;
  pointer-events: none;
}

/* Brighten and speed up on hover/focus for extra "energized" emphasis */
.btn-glow:hover::before,
.btn-glow:focus-within::before {
  opacity: 0.85;
  filter: blur(11px);
  animation-duration: 1.4s;
}
.btn-glow:hover::after,
.btn-glow:focus-within::after {
  animation-duration: 1.4s;
}

@keyframes btn-glow-spin {
  to { --glow-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-glow::before,
  .btn-glow::after { animation: none; }
}

/* The wrapper becomes the real flex item in the mobile call bar; let the
   inner link fill it exactly as before. */
.mobile-call-bar .btn-glow { flex: 1; display: flex; }

/* ==========================================================================
   21. LEGAL CONTENT (Privacy Policy / Terms of Service)
   ========================================================================== */
.legal-content { max-width: 860px; }
.legal-updated { color: var(--text-faint); font-size: var(--fs-sm); margin-bottom: var(--space-8); }
.legal-content h2 {
  font-size: var(--fs-h4);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--surface-border);
}
.legal-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 { font-size: var(--fs-lg); margin-top: var(--space-6); margin-bottom: var(--space-3); }
.legal-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: var(--space-4); }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul { margin: var(--space-4) 0 var(--space-6); }
.legal-content li {
  position: relative;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
}
.legal-content li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-deep);
}
.legal-content a { color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--accent); }
.legal-content strong { color: var(--text); }
.legal-toc { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-bottom: var(--space-10); padding: var(--space-5) var(--space-6); background: var(--bg-alt); border: 1px solid var(--surface-border); border-radius: var(--radius-md); }
.legal-toc a { font-size: var(--fs-sm); font-weight: 600; color: var(--text); text-decoration: none; }
.legal-toc a:hover { color: var(--brand-deep); }