/* ============================================================
   WATERLOO ROOFING CO — Design System & Styles
   OKLCH Color System | Mobile-First | Performance-Optimized
   ============================================================ */

/* ---------- OKLCH COLOR TOKENS ---------- */
:root {
  /* Primary — Deep Charcoal (from logo #263238) */
  --color-primary: oklch(0.27 0.02 230);
  --color-primary-deep: oklch(0.21 0.02 220);
  --color-primary-light: oklch(0.35 0.02 230);

  /* Accent — Copper/Terracotta (from logo #D4915E) */
  --color-accent: oklch(0.70 0.12 55);
  --color-accent-hover: oklch(0.65 0.14 55);
  --color-accent-light: oklch(0.82 0.08 55);
  --color-accent-subtle: oklch(0.92 0.04 55);

  /* Creek Teal (from logo #5BA898) */
  --color-teal: oklch(0.67 0.09 175);
  --color-teal-hover: oklch(0.60 0.10 175);
  --color-teal-light: oklch(0.85 0.05 175);

  /* Limestone neutrals (from logo stone palette) */
  --color-stone: oklch(0.68 0.05 70);
  --color-stone-light: oklch(0.78 0.04 70);
  --color-stone-lighter: oklch(0.88 0.03 70);

  /* Cream backgrounds (from logo #EDEAE4) */
  --color-cream: oklch(0.94 0.01 80);
  --color-cream-light: oklch(0.97 0.005 80);
  --color-cream-dark: oklch(0.90 0.015 80);

  /* Text */
  --color-text: oklch(0.25 0.02 230);
  --color-text-muted: oklch(0.55 0.02 70);
  --color-text-light: oklch(0.95 0.01 75);
  --color-text-on-dark: oklch(0.93 0.01 75);

  /* Functional */
  --color-success: oklch(0.65 0.15 145);
  --color-warning: oklch(0.75 0.15 80);
  --color-error: oklch(0.60 0.20 25);
  --color-white: oklch(1.00 0 0);
  --color-black: oklch(0.10 0.02 230);

  /* ---------- TYPOGRAPHY ---------- */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', monospace;

  /* Type Scale (Major Third — 1.25) */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --text-xl: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --text-2xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  --text-3xl: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  --text-4xl: clamp(2.4rem, 1.7rem + 3vw, 3.6rem);

  /* ---------- SPACING ---------- */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(3rem, 5vw, 6rem);

  /* ---------- LAYOUT ---------- */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --border-radius: 6px;
  --border-radius-lg: 12px;

  /* ---------- SHADOWS ---------- */
  --shadow-sm: 0 1px 3px oklch(0.10 0 0 / 0.08);
  --shadow-md: 0 4px 12px oklch(0.10 0 0 / 0.10);
  --shadow-lg: 0 8px 30px oklch(0.10 0 0 / 0.12);
  --shadow-xl: 0 16px 50px oklch(0.10 0 0 / 0.16);

  /* ---------- TRANSITIONS ---------- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-cream-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: var(--text-4xl); margin-bottom: var(--space-lg); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
h4 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }

p {
  margin-bottom: var(--space-md);
  max-width: 70ch;
}

ul, ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
}

address {
  font-style: normal;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

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

.section--cream {
  background-color: var(--color-cream);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-cream);
}

.section--stone {
  background-color: var(--color-stone-lighter);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

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

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

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

/* ---------- HEADER / NAVIGATION ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid oklch(0.90 0.01 70);
  transition: box-shadow var(--transition-base);
}

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-sm);
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-header__logo img,
.site-header__logo svg {
  height: 40px;
  width: auto;
}

@media (min-width: 960px) {
  .site-header__logo img,
  .site-header__logo svg {
    height: 52px;
  }
}

.site-header__logo-text {
  display: none;
}

@media (min-width: 960px) {
  .site-header__logo-text {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-transform: uppercase;
  }
}

.site-header__logo-text span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

.main-nav {
  display: none;
}

.main-nav__list {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  padding: 0;
  margin: 0;
  align-items: center;
}

.main-nav__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-block: var(--space-xs);
  position: relative;
  transition: color var(--transition-fast);
}

.main-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.main-nav__link:hover {
  color: var(--color-accent);
}

.main-nav__link:hover::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  font-size: var(--text-xs);
  padding: 0.6em 1em;
}

.header-cta svg {
  display: none;
}

.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.mobile-nav__list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-nav__link {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  font-weight: 700;
}

.mobile-nav__link:hover {
  color: var(--color-accent);
}

@media (min-width: 960px) {
  .main-nav {
    display: block;
  }

  .header-cta {
    font-size: var(--text-sm);
    padding: 0.85em 1.8em;
  }

  .header-cta svg {
    display: block;
  }

  .mobile-nav-toggle {
    display: none;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85em 1.8em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--secondary:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  border-color: var(--color-primary);
}

.btn--dark:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--teal {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

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

.btn--lg {
  padding: 1.1em 2.4em;
  font-size: var(--text-base);
}

.btn--icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-deep), var(--color-primary));
  color: var(--color-text-on-dark);
  padding-block: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, oklch(0.67 0.09 175 / 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, oklch(0.70 0.12 55 / 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.hero__logo {
  width: clamp(260px, 35vw, 380px);
  height: auto;
  margin-bottom: var(--space-xl);
  margin-inline: auto;
  display: block;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-lg);
  color: var(--color-accent-light);
}

.hero h1 {
  color: var(--color-cream);
  margin-bottom: var(--space-lg);
}

.hero h1 .highlight {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: oklch(0.85 0.01 70);
  margin-bottom: var(--space-2xl);
  max-width: 60ch;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  justify-content: center;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  align-items: center;
  justify-content: center;
  padding-top: var(--space-xl);
  border-top: 1px solid oklch(1 0 0 / 0.1);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: oklch(0.80 0.01 70);
}

.hero__trust-item svg {
  width: 20px;
  height: 20px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

.section-header__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--color-text-muted);
  margin-inline: auto;
}

/* ---------- SERVICE CARDS ---------- */
.service-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  border: 1px solid oklch(0.90 0.01 70);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-light);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Lordicon animated icons */
lord-icon {
  display: inline-block;
}

.service-card__icon lord-icon {
  width: 64px;
  height: 64px;
}

.hero__trust-item lord-icon {
  width: 22px;
  height: 22px;
}

.feature__icon lord-icon {
  width: 48px;
  height: 48px;
}

.process-step__icon lord-icon {
  width: 40px;
  height: 40px;
}

.contact-info-item lord-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item lord-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

.stat lord-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-sm);
}

.service-card h3 {
  font-size: var(--text-xl);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-md);
}

.service-card__link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link::after {
  transform: translateX(4px);
}

/* ---------- WHY US / FEATURES ---------- */
.feature {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.feature__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.3;
}

.feature h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.feature p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- TESTIMONIALS ---------- */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  border: 1px solid oklch(0.90 0.01 70);
  position: relative;
}

.testimonial-card__stars {
  color: var(--color-accent);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  letter-spacing: 0.1em;
}

.testimonial-card blockquote {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card__author {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary);
}

.testimonial-card__location {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ---------- STATS BAR ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  padding-block: var(--space-3xl);
}

@media (min-width: 640px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.section--dark .stat__number {
  color: var(--color-accent);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.section--dark .stat__label {
  color: oklch(0.75 0.01 70);
}

/* ---------- FAQ SECTION ---------- */
.faq-item {
  border-bottom: 1px solid oklch(0.90 0.01 70);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  gap: var(--space-md);
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--color-accent);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-accent);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-inner {
  padding-bottom: var(--space-lg);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: var(--color-white);
  padding-block: var(--space-3xl);
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  margin-inline: auto;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

.cta-banner .btn--dark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ---------- PROCESS SECTION ---------- */
.process-step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-xl) 0;
}

.process-step__number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 900;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
}

.process-step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.process-step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-primary-deep);
  color: oklch(0.75 0.01 70);
  padding-block: var(--space-4xl) var(--space-xl);
}

.site-footer h4 {
  color: var(--color-cream);
  font-size: var(--text-base);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: oklch(0.65 0.01 70);
  font-size: var(--text-sm);
  max-width: 35ch;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: oklch(0.70 0.01 70);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid oklch(0.30 0.01 230);
  padding-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: oklch(0.50 0.01 70);
}

.footer-bottom a {
  color: oklch(0.55 0.01 70);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  padding-block: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: var(--space-xs);
}

.breadcrumbs li::after {
  content: '/';
  margin-left: var(--space-xs);
  color: oklch(0.75 0.01 70);
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

/* ---------- FORMS ---------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75em 1em;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-white);
  border: 2px solid oklch(0.88 0.01 70);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-teal);
  outline: none;
}

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

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  font-weight: 700;
  z-index: 999;
}

.skip-link:focus {
  top: var(--space-md);
}

/* ---------- PAGE HERO (Inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-deep), var(--color-primary));
  color: var(--color-text-on-dark);
  padding-block: var(--space-3xl);
}

.page-hero h1 {
  color: var(--color-cream);
}

.page-hero p {
  color: oklch(0.80 0.01 70);
  font-size: var(--text-lg);
}

/* ---------- PHONE TAP TARGET ---------- */
.phone-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-accent);
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--color-accent-hover);
}

/* ---------- QUOTE CALCULATOR ---------- */
.quote-progress {
  margin-bottom: var(--space-2xl);
}

.quote-progress__bar {
  height: 4px;
  background: oklch(0.90 0.01 70);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.quote-progress__fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 100px;
  transition: width var(--transition-slow);
}

.quote-progress__steps {
  display: flex;
  justify-content: space-between;
}

.quote-progress__step {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--text-sm);
  font-weight: 700;
  background: oklch(0.90 0.01 70);
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}

.quote-progress__step.is-active {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.15);
}

.quote-progress__step.is-complete {
  background: var(--color-teal);
  color: var(--color-white);
}

/* Steps */
.quote-step {
  display: none;
}

.quote-step.is-active {
  display: block;
  animation: quoteStepIn 0.4s ease;
}

@keyframes quoteStepIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.quote-step__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.quote-step__header h2 {
  font-size: var(--text-2xl);
}

.quote-step__header p {
  color: var(--color-text-muted);
  margin-inline: auto;
}

.quote-step__body {
  margin-bottom: var(--space-2xl);
}

.quote-step__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Option Buttons */
.quote-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .quote-options:not(.quote-options--stories) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--color-white);
  border: 2px solid oklch(0.88 0.01 70);
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
}

.quote-option:hover {
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.quote-option.is-selected {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
  box-shadow: 0 0 0 3px oklch(0.70 0.12 55 / 0.15);
}

.quote-option__icon {
  color: var(--color-accent);
}

.quote-option__icon svg {
  width: 32px;
  height: 32px;
}

.quote-option__label {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-primary);
}

.quote-option__detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Result Display */
.quote-result {
  text-align: center;
  padding: var(--space-2xl);
  background: linear-gradient(135deg, var(--color-primary-deep), var(--color-primary));
  border-radius: var(--border-radius-lg);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-2xl);
}

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

.quote-result__low,
.quote-result__high {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-accent);
}

.quote-result__separator {
  font-size: var(--text-2xl);
  color: oklch(0.60 0.01 70);
}

.quote-result__label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: oklch(0.70 0.01 70);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.quote-result__details {
  font-size: var(--text-sm);
  color: oklch(0.80 0.01 70);
}

.quote-result__details p {
  margin-inline: auto;
  margin-bottom: var(--space-xs);
}

.quote-result__disclaimer {
  margin-top: var(--space-lg);
  font-size: var(--text-xs);
  color: oklch(0.55 0.01 70);
  max-width: 50ch;
  margin-inline: auto;
}

/* Lead Capture Form */
.quote-lead {
  background: var(--color-white);
  border: 1px solid oklch(0.90 0.01 70);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
}

.quote-lead h3 {
  text-align: center;
  margin-bottom: var(--space-xs);
}

.quote-lead > p {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  margin-inline: auto;
}

.quote-lead__privacy {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

.quote-lead__success {
  text-align: center;
  padding: var(--space-xl);
}

.quote-lead__success svg {
  margin-bottom: var(--space-md);
}

.quote-lead__success h3 {
  color: var(--color-teal);
  margin-bottom: var(--space-md);
}

.quote-lead__success p {
  margin-inline: auto;
  color: var(--color-text-muted);
}

/* Solar API Status */
.solar-status {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.solar-status--loading {
  background: oklch(0.95 0.02 220);
  color: oklch(0.40 0.05 220);
  border: 1px solid oklch(0.85 0.04 220);
}

.solar-status--success {
  background: oklch(0.95 0.04 160);
  color: oklch(0.35 0.08 160);
  border: 1px solid oklch(0.85 0.06 160);
}

.solar-status__icon {
  margin-right: var(--space-xs);
}

.solar-status small {
  display: block;
  margin-top: var(--space-xs);
  opacity: 0.75;
}

.solar-badge {
  display: inline-block;
  background: oklch(0.45 0.12 160);
  color: #fff;
  font-size: var(--text-xs);
  padding: 0.1em 0.6em;
  border-radius: 999px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: var(--space-xs);
}

/* Geocode Dropdown (Mapbox autocomplete) */
.geocode-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white, #fff);
  border: 1px solid oklch(0.85 0.01 70);
  border-top: none;
  border-radius: 0 0 var(--border-radius, 8px) var(--border-radius, 8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 250px;
  overflow-y: auto;
}

.geocode-dropdown__item {
  padding: var(--space-sm, 8px) var(--space-md, 12px);
  cursor: pointer;
  font-size: var(--text-sm, 14px);
  border-bottom: 1px solid oklch(0.94 0.005 70);
  transition: background 0.15s;
}

.geocode-dropdown__item:last-child {
  border-bottom: none;
}

.geocode-dropdown__item:hover {
  background: oklch(0.97 0.01 70);
}

/* Disabled next button */
.quote-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---------- PRINT STYLES ---------- */
@media print {
  .site-header,
  .mobile-nav,
  .cta-banner,
  .site-footer {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}
