/* ============================================================
   Southtowns Restoration — Shared Stylesheet
   Water | Fire | Mold | Storm Damage Restoration
   Buffalo South Towns, NY
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --navy:        #0c1425;
  --navy-light:  #162038;
  --red:         #dc2626;
  --red-hover:   #b91c1c;
  --red-tint:    rgba(220, 38, 38, .08);
  --white:       #ffffff;
  --gray-bg:     #f8fafc;
  --muted:       #64748b;
  --line:        #e2e8f0;
  --green:       #16a34a;
  --green-bg:    #f0fdf4;
  --green-dark:  #15803d;

  --font-body:   "Inter", system-ui, -apple-system, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;

  --max-w:       1160px;
  --radius:      8px;

  --space-xs:    .5rem;   /* 8 */
  --space-sm:    .75rem;  /* 12 */
  --space-md:    1rem;    /* 16 */
  --space-lg:    1.5rem;  /* 24 */
  --space-xl:    2rem;    /* 32 */
  --space-2xl:   3rem;    /* 48 */
  --space-3xl:   4rem;    /* 64 */
  --space-4xl:   5rem;    /* 80 */

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --shadow-lift: 0 12px 40px rgba(0,0,0,.14);
}


/* ============================================================
   1. 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-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-hover); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }


/* ============================================================
   2. UTILITY CLASSES
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.serif {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}

.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-white  { color: var(--white); }
.text-red    { color: var(--red); }
.text-sm     { font-size: .875rem; }
.text-xs     { font-size: .75rem; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.mt-lg       { margin-top: var(--space-lg); }
.mt-xl       { margin-top: var(--space-xl); }
.mb-lg       { margin-bottom: var(--space-lg); }
.mb-xl       { margin-bottom: var(--space-xl); }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: .1s; }
.stagger-2 { transition-delay: .2s; }
.stagger-3 { transition-delay: .3s; }
.stagger-4 { transition-delay: .4s; }


/* ============================================================
   3. SKIP NAV (accessibility)
   ============================================================ */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--red);
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-nav:focus {
  left: 0;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}


/* ============================================================
   4. EMERGENCY BAR
   ============================================================ */
.emergency-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: var(--space-xs) var(--space-md);
  font-size: .875rem;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1100;
  letter-spacing: .02em;
}
.emergency-bar a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.emergency-bar a:hover {
  color: rgba(255,255,255,.85);
}


/* ============================================================
   5. NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: var(--space-sm) 0;
  transition: box-shadow .3s;
}
/* When emergency bar is present, navbar sits below it */
.emergency-bar + .navbar { top: auto; }
.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Brand mark */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--navy);
  text-decoration: none;
}
.brand:hover { color: var(--navy); }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red), var(--red-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: .875rem;
  flex-shrink: 0;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a {
  color: var(--navy);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--red); }

/* Nav dropdowns */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 2px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
  transition: color .2s;
  white-space: nowrap;
}
.nav-dropdown-trigger:hover { color: var(--red); }
.nav-dropdown-trigger .arrow {
  font-size: 10px;
  transition: transform .2s;
}
.nav-dropdown:hover .nav-dropdown-trigger .arrow {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--navy);
  transition: background-color .15s, color .15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--gray-bg);
  color: var(--red);
}

/* Areas mega-menu (lists every service area, grouped by county) */
/* Make the Areas dropdown a static box so the wide panel anchors to the
   navbar (right-aligned to content) instead of overflowing off the trigger. */
.nav-dropdown:has(.nav-mega) { position: static; }
.nav-dropdown-menu.nav-mega {
  left: auto;
  right: max(12px, calc((100vw - 1160px) / 2));
  transform: none;
  width: min(760px, 94vw);
  min-width: 0;
  max-height: 78vh;
  overflow-y: auto;
  padding: 18px 18px 12px;
}
.nav-dropdown-menu.nav-mega .nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 16px;
}
.nav-dropdown-menu.nav-mega .nav-mega-head {
  display: block;
  padding: 4px 8px;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted, #64748b);
  border-bottom: 1px solid var(--line);
}
.nav-dropdown-menu.nav-mega a {
  padding: 5px 8px;
  font-size: 13px;
  white-space: nowrap;
}
.nav-dropdown-menu.nav-mega .nav-mega-all {
  margin-top: 10px;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line);
  font-weight: 800;
  font-size: 13px;
  color: var(--red, #dc2626);
}
@media (max-width: 900px) {
  .nav-dropdown-menu.nav-mega { width: min(520px, 94vw); }
  .nav-dropdown-menu.nav-mega .nav-mega-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Honeypot spam field — must stay visually hidden (was missing, leaving the
   "website" field visible on pages that rely only on this stylesheet). */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }

/* Nav phone */
.nav-phone {
  font-weight: 700;
  color: var(--navy);
  font-size: .95rem;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--red); }

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--red);
  color: var(--white);
  padding: .55rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--red-hover);
  color: var(--white);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--navy);
}
.menu-toggle svg {
  width: 24px;
  height: 24px;
}


/* ============================================================
   6. BUTTONS
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  line-height: 1.3;
}
.button:active { transform: scale(.98); }

.button.accent {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.button.accent:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(220, 38, 38, .3);
}

.button.outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.button.outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: var(--white);
}

.button.outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.button.outline-dark:hover {
  border-color: var(--navy);
  background: var(--gray-bg);
  color: var(--navy);
}

.button.full { width: 100%; }
.button.lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}


/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 60%, #1e293b 100%);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(220,38,38,.08), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-3xl);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Eyebrow with pulsing dot */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.8);
  margin-bottom: var(--space-md);
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.6); }
  50%      { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -.02em;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

/* Trust pills */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  padding: .35rem .85rem;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
}
.trust-pill svg,
.trust-pill .pill-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}


/* ============================================================
   8. QUICK FORM
   ============================================================ */
.quick-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  color: var(--navy);
}
.quick-form h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}
.quick-form .form-sub {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.field-row.single {
  grid-template-columns: 1fr;
}

.field-row label,
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: .02em;
}

.quick-form input,
.quick-form select,
.quick-form textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.quick-form input:focus,
.quick-form select:focus,
.quick-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}
.quick-form input::placeholder,
.quick-form textarea::placeholder {
  color: #94a3b8;
}

.quick-form textarea {
  resize: vertical;
  min-height: 80px;
}

.quick-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.25rem;
}

/* Scarcity banner inside form */
.scarcity-banner {
  background: var(--red-tint);
  border: 1px solid rgba(220, 38, 38, .15);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  font-size: .8rem;
  font-weight: 600;
  color: var(--red);
  text-align: center;
  margin-bottom: var(--space-md);
}

/* Honeypot */
.ohnohoney {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  tab-index: -1;
}

/* Form messages */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl);
}
.form-success.active { display: block; }
.form-success .check-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.5rem;
}
.form-success h3 {
  color: var(--green-dark);
  margin-bottom: var(--space-xs);
}
.form-success p {
  color: var(--muted);
  font-size: .9rem;
}

.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  font-size: .85rem;
  color: var(--red);
  margin-bottom: var(--space-md);
}
.form-error.active { display: block; }

.form-group {
  margin-bottom: var(--space-md);
}


/* ============================================================
   9. SECTION BASE
   ============================================================ */
.section {
  padding: var(--space-4xl) 0;
}
.section.alt {
  background: var(--gray-bg);
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: var(--space-sm);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  letter-spacing: -.015em;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  line-height: 1.65;
}

.section-head.center {
  text-align: center;
}
.section-head.center p {
  margin-inline: auto;
}


/* ============================================================
   10. CARD GRIDS
   ============================================================ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}


/* ============================================================
   11. INDIVIDUAL CARDS
   ============================================================ */

/* Shared card base */
.pain-card,
.service-card,
.step-card,
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-xl);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pain-card:hover,
.service-card:hover,
.step-card:hover,
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* Card icon container */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

/* Pain card */
.pain-card .card-icon {
  background: var(--red-tint);
  color: var(--red);
}
.pain-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.pain-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Service card */
.service-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}
.service-card .card-icon {
  background: var(--red-tint);
  color: var(--red);
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.service-card h3 a {
  color: var(--navy);
  text-decoration: none;
}
.service-card h3 a:hover {
  color: var(--red);
}
.service-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}
.service-card .learn-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-card .learn-more:hover { color: var(--red-hover); }

/* Step card */
.step-card {
  text-align: center;
  position: relative;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.step-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Why card */
.why-card .card-icon {
  background: var(--green-bg);
  color: var(--green);
}
.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.why-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}


/* ============================================================
   12. GUARANTEE BOX
   ============================================================ */
.guarantee-box {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  border-radius: var(--radius);
  margin-top: var(--space-2xl);
}
.guarantee-box .guarantee-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
}
.guarantee-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}
.guarantee-box p {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 540px;
  margin-inline: auto;
  opacity: .92;
}


/* ============================================================
   13. WARNING BAR
   ============================================================ */
.warning-bar {
  background: var(--red-tint);
  border: 1px solid rgba(220, 38, 38, .15);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.warning-bar p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}
.warning-bar p strong {
  color: var(--red);
}


/* ============================================================
   14. AREA GRID
   ============================================================ */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}
.area-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
  text-align: center;
}
.area-tag:hover {
  border-color: var(--red);
  background: var(--red-tint);
  color: var(--navy);
  transform: translateY(-2px);
}
.area-tag.primary {
  background: var(--red-tint);
  border-color: rgba(220, 38, 38, .2);
  font-weight: 700;
  color: var(--red);
}
.area-tag.primary:hover {
  background: rgba(220, 38, 38, .15);
  border-color: var(--red);
}


/* ============================================================
   15. BOTTOM CTA SECTION
   ============================================================ */
.bottom-cta {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 60%, #1e293b 100%);
  color: var(--white);
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bottom-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 40%, rgba(220,38,38,.06), transparent);
  pointer-events: none;
}

.bottom-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: var(--space-md);
  position: relative;
}
.bottom-cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.glass-form {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: var(--space-2xl);
  max-width: 520px;
  margin-inline: auto;
  position: relative;
}
.glass-form .quick-form {
  box-shadow: none;
  background: transparent;
  padding: 0;
  color: var(--white);
}
.glass-form .quick-form h3 { color: var(--white); }
.glass-form .quick-form .form-sub { color: rgba(255,255,255,.6); }
.glass-form .quick-form label,
.glass-form .form-group label { color: rgba(255,255,255,.8); }
.glass-form .quick-form input,
.glass-form .quick-form select,
.glass-form .quick-form textarea {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: var(--white);
}
.glass-form .quick-form input::placeholder,
.glass-form .quick-form textarea::placeholder {
  color: rgba(255,255,255,.4);
}
.glass-form .quick-form input:focus,
.glass-form .quick-form select:focus,
.glass-form .quick-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .2);
}


/* ============================================================
   16. CONSENT ROW
   ============================================================ */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--red);
  flex-shrink: 0;
}
.consent-row label,
.consent-text {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.5;
}
.consent-row a,
.consent-text a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Glass form variant */
.glass-form .consent-row label,
.glass-form .consent-text {
  color: rgba(255,255,255,.5);
}


/* ============================================================
   17. TRUST LINE
   ============================================================ */
.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  font-size: .8rem;
  color: var(--muted);
}
.trust-line .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Glass form variant */
.glass-form .trust-line { color: rgba(255,255,255,.5); }
.glass-form .trust-line .dot { background: var(--green); }


/* ============================================================
   18. FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  padding: var(--space-2xl) 0;
  font-size: .85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}
.footer a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.footer a:hover { color: var(--white); }
.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.footer-links a {
  font-size: .85rem;
}


/* ============================================================
   19. PHOTO GALLERY
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.photo-card:hover img {
  transform: scale(1.05);
}
.photo-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: var(--white);
  font-size: .8rem;
  font-weight: 500;
}


/* ============================================================
   20. SERVICE PAGE HERO
   ============================================================ */
.service-hero {
  position: relative;
  padding: var(--space-4xl) 0;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,20,37,.85) 0%, rgba(12,20,37,.7) 100%);
  z-index: 1;
}
.service-hero .wrap {
  position: relative;
  z-index: 2;
}
.service-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  margin-bottom: var(--space-md);
}
.service-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin-inline: auto;
}


/* ============================================================
   21. AREA PAGE
   ============================================================ */
.area-hero {
  position: relative;
  padding: var(--space-3xl) 0;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.area-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,20,37,.88) 0%, rgba(12,20,37,.75) 100%);
  z-index: 1;
}
.area-hero .wrap {
  position: relative;
  z-index: 2;
}
.area-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  margin-bottom: var(--space-sm);
}
.area-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin-inline: auto;
}


/* ============================================================
   22. CONTENT SECTIONS (long-form pages)
   ============================================================ */
.content-section {
  padding: var(--space-2xl) 0;
}
.content-section + .content-section {
  padding-top: 0;
}
.content-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -.01em;
}
.content-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}
.content-section p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: var(--space-md);
}
.content-section p:last-child { margin-bottom: 0; }

.content-section ul,
.content-section ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}
.content-section ul { list-style: disc; }
.content-section ol { list-style: decimal; }
.content-section li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: var(--space-xs);
}
.content-section strong {
  color: var(--navy);
  font-weight: 600;
}
.content-section a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.content-section a:hover {
  color: var(--red-hover);
}
.content-section blockquote {
  border-left: 3px solid var(--red);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--navy);
}


/* ============================================================
   23. BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: .8rem;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.breadcrumb li::after {
  content: "/";
  margin-left: var(--space-xs);
  color: var(--line);
}
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .current { color: var(--navy); font-weight: 600; }

/* Breadcrumb on dark backgrounds */
.service-hero .breadcrumb,
.area-hero .breadcrumb,
.page-header .breadcrumb {
  color: rgba(255,255,255,.5);
}
.service-hero .breadcrumb a,
.area-hero .breadcrumb a,
.page-header .breadcrumb a {
  color: rgba(255,255,255,.5);
}
.service-hero .breadcrumb a:hover,
.area-hero .breadcrumb a:hover,
.page-header .breadcrumb a:hover {
  color: var(--white);
}
.service-hero .breadcrumb .current,
.area-hero .breadcrumb .current,
.page-header .breadcrumb .current {
  color: rgba(255,255,255,.85);
}
.service-hero .breadcrumb li::after,
.area-hero .breadcrumb li::after,
.page-header .breadcrumb li::after {
  color: rgba(255,255,255,.25);
}


/* ============================================================
   24. PAGE HEADER (interior pages)
   ============================================================ */
.page-header {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
}
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  margin-bottom: var(--space-sm);
}
.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin-inline: auto;
}


/* ============================================================
   25. TWO-COLUMN LAYOUT
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: start;
  padding: var(--space-2xl) 0;
}
.two-col .sidebar {
  position: sticky;
  top: calc(var(--space-xl) + 60px);
}
.two-col .sidebar .quick-form {
  border: 1px solid var(--line);
}


/* ============================================================
   26. FAQ / ACCORDION
   ============================================================ */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  margin-top: var(--space-xl);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  transition: color .2s;
}
.faq-question:hover { color: var(--red); }
.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--muted);
  transition: transform .3s, color .2s;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.faq-item.open .faq-question::after {
  content: "\2212"; /* minus sign */
  color: var(--red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}
.faq-answer p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}


/* ============================================================
   27. CTA INLINE
   ============================================================ */
.cta-inline {
  background: var(--gray-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-2xl);
  text-align: center;
  margin: var(--space-2xl) 0;
}
.cta-inline h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}
.cta-inline p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  max-width: 480px;
  margin-inline: auto;
}

.cta-inline.dark {
  background: var(--navy);
  border-color: transparent;
  color: var(--white);
}
.cta-inline.dark p { color: rgba(255,255,255,.65); }


/* ============================================================
   28. MOBILE RESPONSIVE
   ============================================================ */

/* --- Tablet: <= 900px --- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
  .two-col .sidebar {
    position: static;
  }

  .area-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Mobile: <= 640px --- */
@media (max-width: 640px) {
  :root {
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
  }

  .wrap { padding-inline: var(--space-md); }

  /* Navbar mobile */
  .nav-links,
  .nav-phone { display: none; }
  .menu-toggle { display: flex; }

  /* Mobile nav open */
  .navbar.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-md);
  }
  .navbar.open .nav-links a {
    font-size: 1rem;
    padding: var(--space-xs) 0;
  }
  .navbar.open .nav-dropdown {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar.open .nav-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    min-width: auto;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
  }
  .navbar.open .nav-dropdown-menu a {
    padding: 6px 0;
    font-size: .9rem;
  }
  .navbar.open .nav-phone {
    display: block;
    padding: var(--space-xs) 0;
  }

  /* Hero */
  .hero { padding: var(--space-2xl) 0 var(--space-3xl); }
  .hero h1 { font-size: 1.85rem; }
  .hero-lead { font-size: 1rem; }
  .trust-pills { gap: var(--space-xs); }
  .trust-pill { font-size: .75rem; padding: .25rem .65rem; }

  /* Quick form */
  .quick-form { padding: var(--space-lg); }
  .field-row { grid-template-columns: 1fr; }

  /* Grids */
  .pain-grid,
  .steps-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .area-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  /* Service card */
  .service-card {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Warning bar */
  .warning-bar {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }

  /* Glass form */
  .glass-form { padding: var(--space-lg); }

  /* Buttons */
  .button.lg { padding: .85rem 1.5rem; font-size: .95rem; }

  /* Section heads */
  .section-head h2 { font-size: 1.5rem; }

  /* Two col */
  .two-col { gap: var(--space-xl); }

  /* Page header */
  .page-header { padding: var(--space-2xl) 0 var(--space-xl); }

  /* Guarantee box */
  .guarantee-box { padding: var(--space-2xl) var(--space-lg); }

  /* CTA inline */
  .cta-inline { padding: var(--space-xl) var(--space-lg); }

  /* Emergency bar */
  .emergency-bar { font-size: .78rem; }
}


/* ============================================================
   29. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .eyebrow-dot { animation: none; }

  .pain-card,
  .service-card,
  .step-card,
  .why-card {
    transition: none;
  }

  .photo-card img { transition: none; }

  .button { transition: none; }

  .faq-answer { transition: none; }
}


/* ============================================================
   30. IMAGE UTILITIES
   ============================================================ */
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}
.img-rounded {
  border-radius: var(--radius);
}
.img-shadow {
  box-shadow: var(--shadow-md);
}
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================================
   EXTRAS — helpful additions for a full site
   ============================================================ */

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

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: rgba(220, 38, 38, .15);
  color: var(--navy);
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--space-xl) 0;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: .2rem .6rem;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge.red    { background: var(--red-tint); color: var(--red); }
.badge.green  { background: var(--green-bg); color: var(--green); }

/* Loading spinner for forms */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Button disabled state */
.button:disabled,
.button.loading {
  opacity: .6;
  pointer-events: none;
  cursor: not-allowed;
}


/* ============================================================
   31. LIGHTBOX
   ============================================================ */
.gallery-item,
.photo-card {
  cursor: pointer;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: scale(.92);
  transition: transform .3s ease;
  cursor: default;
}
.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  line-height: 1;
}
.lightbox-close:hover {
  background: rgba(255,255,255,.25);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay,
  .lightbox-overlay img {
    transition: none;
  }
}

/* ============================================================
   32. PHOTO BREAKS — full-width inline images
   ============================================================ */
.photo-break {
  width: 100%;
  overflow: hidden;
  max-height: 52vh;
  position: relative;
}
.photo-break img {
  width: 100%;
  height: 52vh;
  object-fit: cover;
  display: block;
}
.photo-break figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 28px;
  background: linear-gradient(transparent, rgba(12,20,37,.7));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .photo-break, .photo-break img { height: 36vh; max-height: 36vh; }
}
