/*
  globals.css — The Village Plumber
  Colors sourced from logo (forest green mountains, teal water, amber border)
  design.js sets CSS variables at runtime before first paint.
  These :root values serve as fallbacks only.
*/

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


/* ============================================================
   1. CSS VARIABLES (fallbacks — design.js overrides at runtime)
   ============================================================ */
:root {
  --brand:              #1A5E24;
  --brand-dark:         #0F3D17;
  --brand-light:        #E3F0E4;
  --brand-secondary:    #0097A7;
  --brand-secondary-dk: #006978;
  --brand-tertiary:     #A87830;

  --text-primary:  #111827;
  --text-body:     #374151;
  --text-muted:    #6B7280;
  --text-light:    #F9FAFB;

  --bg-primary:   #FFFFFF;
  --bg-secondary: #F2FAF3;
  --bg-warm:      #FBF5E8;
  --bg-dark:      #0D2414;

  --border:       #E5E7EB;
  --radius:       8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-pill:  9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow:    0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --space-1:  0.5rem;
  --space-2:  1rem;
  --space-3:  1.5rem;
  --space-4:  2rem;
  --space-5:  2.5rem;
  --space-6:  3rem;
  --space-7:  3.5rem;
  --space-8:  4rem;
  --space-10: 5rem;
  --space-12: 6rem;
  --section-y: 5rem;
}


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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-secondary);
  text-decoration: none;
}

a:hover {
  color: var(--brand-secondary-dk);
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-body);
}

.text-sm { font-size: 0.875rem; line-height: 1.6; }
.text-xs { font-size: 0.8125rem; line-height: 1.5; }

.overline {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-secondary);
}

/* On dark backgrounds overline reads as cold blue — use white instead */
.bg-dark .overline,
.hero .overline {
  color: rgba(255, 255, 255, 0.6);
}

.overline-light {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}


/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

.container-sm {
  width: 90%;
  max-width: 720px;
  margin-inline: auto;
}

.section {
  padding: var(--section-y) 0;
}

.section-sm {
  padding: calc(var(--section-y) * 0.6) 0;
}

.bg-white  { background-color: var(--bg-primary); }
.bg-gray   { background-color: var(--bg-secondary); }
.bg-warm   { background-color: var(--bg-warm); }
.bg-dark   { background-color: var(--bg-dark); color: var(--text-light); }
.bg-brand  { background-color: var(--brand); }

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

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

@media (min-width: 480px) and (max-width: 767px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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


/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 48px;
}

.btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background-color: var(--text-primary);
  color: #ffffff;
}

.btn-outline-light {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-amber {
  background-color: var(--btn-amber-bg);
  color: var(--btn-amber-color);
  border-color: var(--btn-amber-border);
}

.btn-amber:hover {
  background-color: var(--btn-amber-hover-bg);
  border-color: var(--btn-amber-hover-border);
  color: var(--btn-amber-hover-color);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 44px;
}

.btn-block {
  width: 100%;
}


/* ============================================================
   6. FORMS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  min-height: 48px;
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 94, 36, 0.12);
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-helper { font-size: 0.75rem; color: var(--text-muted); }
.form-error  { font-size: 0.75rem; color: #DC2626; }


/* ============================================================
   7. CARDS
   ============================================================ */
.card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-flat {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}


/* ============================================================
   8. BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

.badge-primary   { background: var(--brand); color: #ffffff; }
.badge-light     { background: var(--brand-light); color: var(--brand-dark); }
.badge-secondary { background: var(--brand-secondary); color: #ffffff; }
.badge-amber     { background: var(--brand-tertiary); color: #ffffff; }
.badge-outline   { background: transparent; border: 1.5px solid var(--border); color: var(--text-body); }
.badge-muted     { background: var(--bg-secondary); color: var(--text-muted); }


/* ============================================================
   9. FOCUS RING  (WCAG 2.1 + 2.2)
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* WCAG 2.2 — 2.4.11 Focus Not Obscured (Minimum)
   Sticky header (~72px) and sticky mobile CTA (~56px) can cover
   focused elements. scroll-padding offsets the scroll target so
   focused elements always appear within the visible viewport. */
html {
  scroll-padding-top: 80px; /* sticky header clearance */
}
@media (max-width: 767px) {
  html {
    scroll-padding-top: 72px;
    scroll-padding-bottom: 64px; /* sticky mobile CTA clearance */
  }
}


/* ============================================================
   10. SKIP NAVIGATION (WCAG 2.1 AA — keyboard/screen reader)
   ============================================================ */
.skip-nav {
  position: absolute;
  top: -9999px;
  left: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.skip-nav:focus {
  top: 0;
}


/* ============================================================
   10. UTILITIES
   ============================================================ */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.font-heading { font-family: var(--font-heading); }
.font-body    { font-family: var(--font-body); }

.text-brand     { color: var(--brand); }
.text-secondary { color: var(--brand-secondary); }
.text-amber     { color: var(--brand-tertiary); }
.text-muted     { color: var(--text-muted); }
.text-light     { color: var(--text-light); }
.text-dark      { color: var(--text-primary); }

.sr-only,
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

.w-full { width: 100%; }
.h-full { height: 100%; }

.divider {
  width: 100%; height: 1px;
  background-color: var(--border);
  margin: var(--space-6) 0;
}


/* ============================================================
   11. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-primary);
  padding: var(--space-1) 0 var(--space-2) 0;
  transition: box-shadow 0.2s;
}

.site-header.header--scrolled {
  box-shadow: var(--shadow);
}

/* Standard nav: logo left | links | CTA right */
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Primary nav links */
.nav-links {
  display: none;
  flex: 1;
}

.nav-links ul {
  display: flex;
  list-style: none;
  gap: var(--space-4);
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--brand); }

/* Right controls */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

/* Show nav links on desktop */
@media (min-width: 768px) {
  .nav-links { display: flex; align-items: center; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

@media (max-width: 767px) {
  /* Mobile: flex layout so logo + right controls are spaced */
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  /* Hide hours badge on mobile — too crowded */
  #hours-badge { display: none; }
  /* Emergency strip: hide body text, keep label + link only */
  .emergency-detail { display: none; }
  .emergency-strip p { font-size: 0.8125rem; gap: 0.375rem; }
  .emergency-strip a,
  .emergency-strip strong { white-space: nowrap; }
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hours-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  white-space: nowrap;
}

.hours-badge--open      { background: #DCFCE7; color: #166534; }
.hours-badge--emergency { background: #FEF3C7; color: #92400E; }
.hours-badge--emergency a { color: inherit; text-decoration: none; }
.hours-badge--closed    { background: var(--bg-secondary); color: var(--text-muted); }

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.25rem;
}

.nav-mobile {
  display: none;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: var(--space-3);
}

.nav-mobile.nav-open { display: block; }

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}


/* ============================================================
   12. EMERGENCY STRIP
   ============================================================ */
.emergency-strip {
  background-color: #7B1D1D;
  color: #ffffff;
  padding: 0.625rem 0;
  text-align: center;
}

.emergency-strip p {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
}

.emergency-strip a {
  color: #FCD34D;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.emergency-strip a:hover { color: #FDE68A; }

.emergency-strip svg {
  flex-shrink: 0;
}


/* ============================================================
   13. HERO — BOLD SPLIT LAYOUT
   ============================================================ */
.hero {
  background-color: var(--bg-dark);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 580px;
}

/* Left text panel */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--section-y) var(--space-8) var(--section-y) calc(5vw + var(--space-3));
}

@media (min-width: 1340px) {
  .hero-left {
    padding-left: calc((100vw - 1200px) / 2 + var(--space-3));
  }
}


.hero-left h1 {
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 0;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
}

.hero-left .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
  margin-inline: 0;
  margin-bottom: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-start;
  margin-bottom: 0;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem var(--space-5);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-4);
}

.trust-bar span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Right photo panel */
.hero-photo {
  position: relative;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left;
  display: block;
}

/* Diagonal separator: dark triangle overlays left edge of photo */
.hero-photo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 70px;
  background: var(--bg-dark);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 2;
  pointer-events: none;
}

/* Gradient overlay: darkens top of photo to mask sky/power lines */
.hero-photo::after {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-photo {
    height: 260px;
  }
  .hero-photo::before { display: none; }
  .hero-left {
    padding: var(--space-8) 5%;
    gap: var(--space-3);
    text-align: center;
  }
  .hero-left .lead { margin-inline: auto; }
  .hero-left h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .hero-cta { justify-content: center; }
  .trust-bar {
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-split { grid-template-columns: 60fr 40fr; }
  .hero-left { padding: var(--space-8) var(--space-5) var(--space-8) 5%; }
}


/* ============================================================
   14. STICKY MOBILE CTA
   ============================================================ */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 56px;
}

@media (min-width: 768px) {
  .sticky-mobile-cta { display: none; }
}

.sticky-call,
.sticky-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 56px;
}

.sticky-call {
  background-color: var(--brand);
  color: #ffffff;
}

.sticky-text {
  background-color: var(--brand-tertiary);
  color: #ffffff;
}

@media (max-width: 767px) {
  body { padding-bottom: 56px; }
}


/* ============================================================
   16. SERVICES GRID
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

/* 5-card hub: 6-col grid so bottom 2 cards sit centered */
.service-grid--hub {
  grid-template-columns: repeat(6, 1fr);
}
.service-grid--hub .service-card-hub {
  grid-column: span 2;
}
.service-grid--hub .service-card-hub:nth-child(4) {
  grid-column: 2 / span 2;
}
.service-grid--hub .service-card-hub:nth-child(5) {
  grid-column: 4 / span 2;
}

@media (max-width: 767px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-grid--hub { grid-template-columns: 1fr; }
  .service-grid--hub .service-card-hub,
  .service-grid--hub .service-card-hub:nth-child(4),
  .service-grid--hub .service-card-hub:nth-child(5) { grid-column: auto; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid--hub { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid--hub { grid-template-columns: repeat(2, 1fr); }
  .service-grid--hub .service-card-hub,
  .service-grid--hub .service-card-hub:nth-child(4),
  .service-grid--hub .service-card-hub:nth-child(5) { grid-column: auto; }
  /* Center orphan 5th card on tablet */
  .service-grid--hub .service-card-hub:nth-child(5):last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - var(--space-4) / 2);
    justify-self: center;
  }
}

.service-card {
  background: var(--bg-primary);
  border-left: 4px solid var(--border);
  border-radius: 4px;
  padding: var(--space-5);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: background 0.15s, border-color 0.15s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  background: var(--bg-secondary);
  border-left-color: var(--brand);
  color: inherit;
}

/* Featured card — Emergency Plumbing — spans 2 columns */
.service-card.featured {
  grid-column: span 2;
  background: var(--bg-dark);
  border-left: 4px solid var(--brand-tertiary);
}

.service-card.featured:hover {
  background: #132d1c;
  border-left-color: var(--brand-tertiary);
}

/* Ghost background text on featured card */
.service-card.featured::after {
  content: '24/7';
  position: absolute;
  bottom: -1rem;
  right: 1.5rem;
  font-size: 8rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Full-width CTA card */
.service-card--cta {
  grid-column: span 3;
  background: var(--bg-dark);
  border-left: 4px solid var(--brand-tertiary);
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: var(--space-3);
}

.service-card--cta:hover {
  background: #132d1c;
  border-left-color: var(--brand-tertiary);
}

/* Responsive span overrides */
@media (max-width: 1023px) {
  .service-card--cta { grid-column: span 2; }
}

@media (max-width: 479px) {
  .service-card.featured { grid-column: span 1; }
  .service-card--cta { grid-column: span 1; }
}

/* SVG icon — no chip wrapper */
.service-card-icon {
  color: var(--brand-tertiary);
  display: block;
  margin-bottom: var(--space-1);
}

.service-card.featured .service-card-icon {
  color: rgba(255, 255, 255, 0.6);
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.service-card.featured h3 {
  color: #ffffff;
}

/* Amber accent bar under non-featured headings */
.service-card:not(.featured) h3::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--brand-tertiary);
  border-radius: 2px;
  margin-top: 0.375rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.7);
}

.service-link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
}

.service-card.featured .service-link {
  color: var(--brand-tertiary);
}


/* ============================================================
   17. WHY CHOOSE US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

/* 5-item variant: orphan last item spans both columns and centers */
.why-grid--5 .why-item:nth-child(5):last-child {
  grid-column: 1 / -1;
  max-width: calc(50% - var(--space-5) / 2);
  margin-inline: auto;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .why-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .why-grid--5 .why-item:nth-child(5):last-child { max-width: none; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.why-icon {
  color: var(--brand-tertiary);
  display: block;
  margin-bottom: calc(var(--space-2) * 0.25);
}

.why-item h3 {
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin: 0;
}

.why-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}


/* ============================================================
   18. ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (max-width: 767px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.about-photo-placeholder {
  aspect-ratio: 4/5;
  background: var(--brand-light);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--brand);
  border: 2px dashed var(--brand-light);
}

.about-photo-placeholder svg {
  opacity: 0.4;
}

.about-photo-placeholder p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.about-content h2 { margin-bottom: var(--space-3); }
.about-content p  { margin-bottom: var(--space-3); }

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--space-4);
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cert-item svg {
  color: var(--brand);
  flex-shrink: 0;
}


/* ============================================================
   19. TESTIMONIALS
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* 2-review variant: centers the pair instead of leaving a gap */
.testimonial-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-inline: auto;
}

/* 1-review variant */
.testimonial-grid--1 {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .testimonial-grid,
  .testimonial-grid--2,
  .testimonial-grid--1 { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

.testimonial-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.star-display {
  display: flex;
  gap: 0.2rem;
  color: #EAB308;
  font-size: 1rem;
}

.testimonial-quote {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-body);
  font-style: italic;
  flex: 1;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.testimonial-detail {
  font-size: 0.8125rem;
  color: var(--text-muted);
}


/* ============================================================
   20. SERVICE AREA GRID
   ============================================================ */
.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

@media (max-width: 479px) {
  .city-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 480px) and (max-width: 767px) {
  .city-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .city-grid { grid-template-columns: repeat(4, 1fr); }
}

.city-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem var(--space-2);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.15s;
}

.city-link:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
}

[data-page="service-area"] {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.city-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}


/* ============================================================
   21. HOW IT WORKS
   ============================================================ */
.process-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 680px;
}

.process-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.process-item:last-child {
  border-bottom: none;
}

.process-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-tertiary);
  line-height: 1;
  flex-shrink: 0;
  width: 2.25rem;
  text-align: right;
  padding-top: 0.15rem;
}

.process-body h3 {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.process-body p {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
}


/* ============================================================
   Guarantee Strip
   ============================================================ */
.guarantee-strip {
  background: var(--brand);
  padding: var(--space-8) 0;
}

.guarantee-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.guarantee-icon {
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.guarantee-text h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-1);
}

.guarantee-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}

.guarantee-inner > .btn {
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .guarantee-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .guarantee-inner > .btn {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}


/* ============================================================
   22. FAQ ACCORDION
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

details.faq-item summary {
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary:hover { background: var(--bg-secondary); }

details.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s;
  flex-shrink: 0;
}

details.faq-item[open] summary::after {
  transform: rotate(45deg);
}

details.faq-item .faq-answer {
  padding: 0 var(--space-4) var(--space-3);
  color: var(--text-body);
}


/* ============================================================
   23. CTA STRIP
   ============================================================ */
.cta-strip {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  padding: calc(var(--section-y) * 0.8) 0;
  text-align: center;
}

.cta-strip h2 { color: #ffffff; margin-bottom: var(--space-2); }
.cta-strip p  { color: rgba(255,255,255,0.82); margin-bottom: var(--space-5); font-size: 1.125rem; }

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}


/* ============================================================
   24. FOOTER
   ============================================================ */
.site-footer {
  padding: var(--space-10) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 479px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-phone-link {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none;
  display: inline-block;
  margin-top: var(--space-1);
}

.footer-phone-link:hover { color: rgba(255,255,255,0.85) !important; }

.footer-col h3 {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.375rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  transition: color 0.15s;
  text-decoration: none;
  /* WCAG 2.2 — 2.5.8 Target Size Minimum (24×24px) */
  display: inline-block;
  padding: 0.3rem 0;
}

.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-bottom p, .footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8125rem;
  text-decoration: none;
  /* WCAG 2.2 - 2.5.8 */
  display: inline-block;
  padding: 0.3rem 0;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.9); }


/* ============================================================
   25. SECTION TRANSITIONS
   ============================================================ */
.section-angle {
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
  padding-top: calc(var(--section-y) + 3rem);
  padding-bottom: calc(var(--section-y) + 3rem);
}

.section-fade {
  background: linear-gradient(to bottom, var(--brand-light) 0%, var(--bg-primary) 100%);
}

.overlap-card {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}


/* ============================================================
   26. REVIEW FLOW (review.html)
   ============================================================ */
.review-flow {
  max-width: 560px;
  margin-inline: auto;
  padding: var(--space-8) var(--space-3);
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-6);
}

#progress-bar {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

.star-row {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-5) 0;
}

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 3rem;
  color: var(--border);
  transition: transform 0.15s, color 0.15s;
  line-height: 1;
  padding: 0.25rem;
}

.star-btn.star--active { transform: scale(1.2); }

.star-btn.star--hover {
  color: #ca8a04;
  transform: scale(1.1);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-3) 0;
}

.chip {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.15s;
}

.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.chip--active { background: var(--brand); border-color: var(--brand); color: #ffffff; }

.review-quote-display {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-3) 0;
  font-style: italic;
  color: var(--text-body);
}


/* ============================================================
   HOMEPAGE PHOTOS
   ============================================================ */

/* Hero background photo */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* About section real photo */
.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  display: block;
}

/* .service-card-photo removed — no photo thumbnails on cards */

/* Work gallery strip */
.work-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.work-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.work-gallery img:hover {
  transform: scale(1.04);
}

@media (max-width: 767px) {
  .work-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-gallery img { height: 160px; }

}


/* ============================================================
   ESTIMATE FORM SECTION
   ============================================================ */
.estimate-section {
  background: var(--bg-warm);
}

.estimate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (max-width: 767px) {
  .estimate-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.estimate-pitch h2 {
  margin-bottom: var(--space-3);
}

.estimate-pitch .lead {
  margin-bottom: var(--space-4);
}

.estimate-trust {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.estimate-trust li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.5;
}

.estimate-trust svg {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.estimate-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.estimate-note a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}

.estimate-note a:hover { text-decoration: underline; }

.estimate-form-wrap {
  background: var(--bg-primary);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.estimate-form-wrap .form-group {
  margin-bottom: var(--space-3);
}

.form-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin: var(--space-2) 0 0;
}

.estimate-success {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.estimate-success svg { color: var(--brand); }

.estimate-success h3 {
  color: var(--text-primary);
  margin: 0;
}

.estimate-success p {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin: 0;
}

.estimate-success a {
  color: var(--brand);
  font-weight: 600;
}

/* ============================================================
   FIXES: page-hero padding, dark section text, prose typography,
   mobile section spacing — added 2026-05
   ============================================================ */

/* page-hero — padding for all inner service/city pages */
.page-hero {
  padding: var(--section-y) 0;
}

/* Dark section text — override global h/p color rules */
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
  color: #ffffff;
}
.bg-dark p,
.bg-dark li,
.bg-dark .lead {
  color: rgba(255, 255, 255, 0.82);
}

/* Prose/article typography — blog post bodies */
.section.bg-white .container-sm > p,
.article-body > p {
  margin-bottom: var(--space-3, 1.25rem);
  line-height: 1.75;
}
.section.bg-white .container-sm > h2,
.article-body > h2 {
  margin-top: var(--space-8, 3rem);
  margin-bottom: var(--space-2, 0.75rem);
}
.section.bg-white .container-sm > h3,
.article-body > h3 {
  margin-top: var(--space-6, 2rem);
  margin-bottom: var(--space-2, 0.75rem);
}
.section.bg-white .container-sm > h4,
.article-body > h4 {
  margin-top: var(--space-4, 1.5rem);
  margin-bottom: var(--space-1, 0.5rem);
}
.section.bg-white .container-sm > ul,
.section.bg-white .container-sm > ol,
.article-body > ul,
.article-body > ol {
  padding-left: 1.5rem;
  margin-bottom: var(--space-3, 1.25rem);
}
.section.bg-white .container-sm > ul > li,
.section.bg-white .container-sm > ol > li,
.article-body > ul > li,
.article-body > ol > li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

/* Mobile: reduce section vertical padding and H1 size */
@media (max-width: 767px) {
  :root {
    --section-y: 2.75rem;
  }
  .page-hero h1 {
    font-size: clamp(1.5rem, 6.5vw, 2.1rem);
  }
}


/* ============================================================
   PAS COMPARE — two-column problem/solution block
   ============================================================ */
.pas-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

@media (max-width: 640px) {
  .pas-compare { grid-template-columns: 1fr; }
}

.pas-compare__other {
  padding: var(--space-5);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.pas-compare__other p { color: var(--text-body); line-height: 1.65; margin: 0; }

.pas-compare__us {
  padding: var(--space-5);
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
}

.pas-compare__us p { color: rgba(255, 255, 255, 0.9); line-height: 1.65; margin: 0; font-weight: 500; }

.pas-compare__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3) !important;
}

.pas-compare__other .pas-compare__label { color: var(--text-muted); }
.pas-compare__us .pas-compare__label    { color: rgba(255, 255, 255, 0.45); }


/* ============================================================
   TRUST BADGES ROW (guarantee-strip on services.html)
   Fix: dark text on brand-green background
   ============================================================ */
.trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-7);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
}

.trust-badge-item svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.85);
}

.trust-badge-item span {
  color: #ffffff;
}


/* ============================================================
   SERVICE CARD HUB (services.html all-services grid)
   Fix: cards had zero CSS applied
   ============================================================ */
.service-card-hub {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-card-hub__header {
  min-height: 1.75rem;
}

.service-card-hub h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.service-card-hub p {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

.service-card-hub__benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.service-card-hub__benefits li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.service-card-hub__benefits li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.service-card-hub .btn {
  align-self: flex-start;
  margin-top: auto;
}


/* ============================================================
   PROSE (privacy.html, terms.html article bodies)
   Fix: h2/p had no spacing at all
   ============================================================ */
.prose > h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.prose > h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.prose > p {
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: var(--space-3);
}

.prose > ul,
.prose > ol {
  padding-left: var(--space-4);
  margin-bottom: var(--space-3);
}

.prose > ul > li,
.prose > ol > li {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-1);
}

.prose > p:first-child,
.prose > h2:first-child {
  margin-top: 0;
}

.prose a {
  color: var(--brand-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
