/* ============================================================================
   SPARTAN ROOFING — DESIGN TOKENS
   ============================================================================ */
:root {
  --black: #0A0908;
  --ink: #141210;
  --charcoal: #1F1C19;
  --red: #C8102E;
  --deep-red: #8B0000;
  --ember-red: #E63946;
  --cream: #F5F1EA;
  --bone: #EDE7DD;
  --paper: #FAF7F1;
  --warm-gray: #6B6863;
  --soft-gray: #A9A39C;
  --gold: #B8956A;
  --line: rgba(245,241,234,0.12);
  --line-dark: rgba(10,9,8,0.12);

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Geist', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --f-brand: 'Oswald', 'Arial Narrow', Impact, sans-serif;
}

/* ============================================================================
   RESET + BASE
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; }
input::placeholder, textarea::placeholder { color: var(--soft-gray); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red) !important; }

/* ============================================================================
   LAYOUT HELPERS
   ============================================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 4rem; } }
.container-narrow { max-width: 1024px; margin: 0 auto; padding: 0 1.5rem; }
.container-tight { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--warm-gray);
  margin-bottom: 1.5rem;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--red);
}
.eyebrow.no-after::after { display: none; }
.eyebrow.solo {
  display: inline-flex;
  text-align: center;
}
.eyebrow .red { color: var(--red); display: none; }
.eyebrow.dark { color: var(--soft-gray); }
.eyebrow .red { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.75rem, 9vw, 9rem);
  font-variation-settings: '"opsz" 144, "SOFT" 50';
}
h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-variation-settings: '"opsz" 144';
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-variation-settings: '"opsz" 96';
}
h4 {
  font-size: 1.5rem;
  font-weight: 500;
}
em.accent {
  color: var(--red);
  font-style: italic;
  font-weight: 300;
}
em.accent-light {
  color: var(--red);
  font-style: italic;
  font-weight: 400;
}

p { line-height: 1.7; }
.lede { font-size: 1.125rem; color: var(--warm-gray); font-weight: 300; line-height: 1.7; }
.body-text { font-size: 1.05rem; color: var(--charcoal); line-height: 1.7; }
.body-text p + p { margin-top: 1rem; }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { gap: 1.25rem; }
.btn-primary {
  background: var(--red);
  color: var(--cream);
}
.btn-primary:hover { background: var(--ember-red); }
.btn-ghost-light {
  background: transparent;
  border-color: rgba(245,241,234,0.3);
  color: var(--cream);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.05); }
.btn-ghost-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap 0.2s ease;
}
.text-link:hover { gap: 0.75rem; }

/* ============================================================================
   HEADER
   ============================================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(10,9,8,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header.on-light {
  background: var(--cream);
  border-bottom-color: var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
@media (min-width: 768px) { .header-inner { padding: 1rem 3rem; } }

.logo-link { display: flex; align-items: center; gap: 0.875rem; }
.logo-link img { height: 60px; width: auto; display: block; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text-spartan {
  font-family: var(--f-brand);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.logo-text-roofing {
  font-family: var(--f-brand);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--cream);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 4px;
}
.header.on-light .logo-text-roofing,
.header.scrolled .logo-text-roofing { color: var(--cream); }
.header.on-light .logo-text-roofing { color: #6B6863; }
@media (max-width: 480px) {
  .logo-link img { height: 48px; }
  .logo-text-spartan { font-size: 1.15rem; }
  .logo-text-roofing { font-size: 0.6rem; letter-spacing: 0.25em; }
}

.nav { display: none; gap: 2.5rem; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a {
  font-size: 0.875rem;
  color: var(--cream);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.nav a:hover { opacity: 1; }
.header.on-light .nav a { color: var(--ink); }

.header-cta { display: none; align-items: center; gap: 1rem; }
@media (min-width: 768px) { .header-cta { display: flex; } }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--cream);
  opacity: 0.85;
}
.header.on-light .header-phone { color: var(--ink); }
.header-cta-btn {
  background: var(--red);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.header-cta-btn:hover { opacity: 0.9; }

.menu-toggle {
  color: var(--cream);
  display: block;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.header.on-light .menu-toggle { color: var(--ink); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--black);
  padding: 5rem 1.5rem 2rem;
  display: none;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 1.75rem;
  color: var(--cream);
}
.mobile-menu a .num {
  color: var(--red);
  font-family: var(--f-mono);
  font-size: 0.7rem;
}
.mobile-menu .phone-link {
  margin-top: 2rem;
  color: var(--red);
  font-family: var(--f-body);
  font-size: 1.125rem;
  border: none;
}

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(180deg, rgba(10,9,8,0.55) 0%, rgba(10,9,8,0.45) 40%, rgba(10,9,8,0.92) 100%), url(images/photo-25.jpg);
  animation: heroDrift 22s ease-in-out infinite;
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--cream);
}
.hero-eyebrow {
  padding-top: 8rem;
  animation: heroLabelFade 1s 0.1s ease-out both;
}
@media (min-width: 768px) { .hero-eyebrow { padding-top: 9rem; } }
.hero-eyebrow .eyebrow { color: var(--cream); margin-bottom: 0; }
.hero-eyebrow .eyebrow::before, .hero-eyebrow .eyebrow::after { background: var(--red); }
.hero-headline {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  width: 100%;
}
.hero-headline-inner { max-width: 64rem; }
.hero-headline h1 { color: var(--cream); }
.hero-headline h1.hero-h1 { animation: heroFadeUp 1.1s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-sub {
  margin-top: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
  color: var(--cream);
  opacity: 0.9;
  font-weight: 300;
  animation: heroFadeUp 1.1s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  animation: heroFadeUp 1.1s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-trust {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem 2.5rem;
  width: 100%;
  animation: heroFadeUp 1.1s 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-trust-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) { .hero-trust-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.hero-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.hero-trust-item svg { color: var(--red); flex-shrink: 0; }
.hero-trust-item span {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  opacity: 0.9;
}
@media (min-width: 768px) { .hero-trust-item span { font-size: 0.875rem; } }

/* ============================================================================
   SECTIONS
   ============================================================================ */
.section { padding: 6rem 1.5rem; }
@media (min-width: 768px) { .section { padding: 8rem 4rem; } }
.section-dark { background: var(--black); color: var(--cream); }
.section-cream { background: var(--cream); }
.section-bordered { border-top: 1px solid; border-bottom: 1px solid; }
.section-bordered.section-dark { border-color: var(--line); }
.section-bordered.section-cream { border-color: var(--line-dark); }

/* ============================================================================
   STATS BAND
   ============================================================================ */
.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
@media (min-width: 768px) { .stat { text-align: left; } }
.stat .num {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  color: var(--red);
  line-height: 1;
  margin-bottom: 1rem;
  font-variation-settings: '"opsz" 144';
}
.stat .label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  opacity: 0.7;
}

/* ============================================================================
   BUILT ON TRUST
   ============================================================================ */
.trust-section { padding: 6rem 1.5rem; background: var(--cream); }
@media (min-width: 768px) { .trust-section { padding: 8rem 4rem; } }
.trust-image-wrap { max-width: 64rem; margin: 0 auto 3rem; position: relative; }
.trust-image {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
}
.trust-caption {
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
}
.trust-caption .fig {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.2em;
}
.trust-caption .desc {
  font-size: 0.75rem;
  font-style: italic;
  font-family: var(--f-display);
  color: var(--warm-gray);
}

/* ============================================================================
   SERVICES GRID
   ============================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  position: relative;
  text-align: left;
  background: var(--black);
  min-height: 380px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
  cursor: pointer;
}
@media (min-width: 768px) { .service-card { padding: 2.5rem; } }
.service-card:hover { background: var(--charcoal); }
.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.service-card-num { display: none; }
.service-card-icon { color: var(--red); }
.service-card-top { justify-content: flex-end; }
.service-card-spacer { flex: 1; }
.service-card h3 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  color: var(--cream);
  transition: transform 0.5s ease;
  font-variation-settings: '"opsz" 36';
}
.service-card:hover h3 { transform: translateY(-4px); }
.service-card-tagline {
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--soft-gray);
  line-height: 1.6;
  font-weight: 300;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-tagline { transform: translateY(-4px); }
.service-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245,241,234,0.15);
}
.service-card-bottom span {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream);
}
.service-card-bottom svg {
  color: var(--red);
  transition: transform 0.3s ease;
}
.service-card:hover .service-card-bottom svg { transform: translate(4px, -4px); }

/* ============================================================================
   PHOTO GALLERY STRIP
   ============================================================================ */
.photo-strip {
  margin-top: 5rem;
  text-align: center;
}
.photo-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .photo-strip-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.photo-card {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.photo-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1s ease-out;
}
.photo-card:hover .photo-card-img { transform: scale(1.1); }
.photo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0) 40%, rgba(10,9,8,0.92) 100%);
}
.photo-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  text-align: center;
}
@media (min-width: 768px) { .photo-card-caption { padding: 1.5rem; } }
.photo-card-caption .fig {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.2em;
  margin-bottom: 0.25rem;
}
.photo-card-caption .label {
  font-family: var(--f-display);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.2;
}

/* ============================================================================
   SERVICE AREA
   ============================================================================ */
.area-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.county-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.county-chip {
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--line-dark);
  font-size: 0.875rem;
  background: transparent;
  color: var(--ink);
  transition: all 0.2s ease;
}
.county-chip:hover { background: var(--ink); color: var(--cream); }

/* ============================================================================
   TESTIMONIALS
   ============================================================================ */
.testimonial-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 4rem;
}
.testimonial-stars span {
  margin-left: 0.75rem;
  font-size: 0.875rem;
  color: var(--warm-gray);
}
.testimonial-card {
  position: relative;
  text-align: center;
  padding: 3rem 1rem;
  min-height: 280px;
}
@media (min-width: 768px) { .testimonial-card { padding: 3rem; } }
.testimonial-card-quote-bg {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--red);
  opacity: 0.15;
}
.testimonial-quote {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 2.5rem;
  font-variation-settings: '"opsz" 36';
}
.testimonial-name {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.testimonial-badge {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--warm-gray);
}
.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.t-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 0.2s ease;
}
.t-arrow:hover { background: var(--ink); color: var(--cream); }
.t-dots { display: flex; gap: 0.5rem; }
.t-dot {
  height: 4px;
  width: 12px;
  background: var(--line-dark);
  transition: all 0.3s ease;
}
.t-dot.active { width: 32px; background: var(--red); }

/* ============================================================================
   EMERGENCY SERVICE
   ============================================================================ */
.emergency-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: radial-gradient(circle at 20% 50%, var(--deep-red) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, var(--red) 0%, transparent 60%);
}
.emergency-content {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}
.emergency-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.emergency-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}
.emergency-pulse-label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--red);
  font-weight: 600;
}
.emergency-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: var(--red);
  color: var(--cream);
  font-weight: 500;
  font-size: 1.05rem;
  transition: gap 0.3s ease;
}
.emergency-call-btn:hover { gap: 1.5rem; }
.emergency-disclaimer {
  display: block;
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

/* ============================================================================
   FAQ ACCORDION
   ============================================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-dark);
}
.faq-item { background: var(--cream); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  text-align: left;
  color: var(--ink);
}
@media (min-width: 768px) { .faq-q { padding: 2rem 1.5rem; } }
.faq-q-inner {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex: 1;
}
.faq-num { display: none; }
.faq-q-text {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.2s ease;
  font-variation-settings: '"opsz" 24';
}
.faq-item.open .faq-q-text { color: var(--red); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--warm-gray);
  transition: transform 0.3s ease, color 0.2s ease;
}
.faq-item.open .faq-chevron {
  color: var(--red);
  transform: rotate(180deg);
}
.faq-a {
  display: none;
  padding: 0 1.5rem 2rem;
}
@media (min-width: 768px) { .faq-a { padding: 0 1.5rem 2rem 5rem; } }
.faq-item.open .faq-a {
  display: block;
  animation: fadeIn 0.3s ease;
}
.faq-a-text {
  max-width: 48rem;
  white-space: pre-line;
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================================================
   CONTACT FORM
   ============================================================================ */
.contact-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-info {
  text-align: center;
}
@media (min-width: 1024px) { .contact-info { text-align: left; } }
.contact-info-list { margin-top: 3rem; display: inline-block; text-align: left; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-item svg { color: var(--red); flex-shrink: 0; margin-top: 0.25rem; }
.contact-info-label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--warm-gray);
  margin-bottom: 0.25rem;
}
.contact-info-value {
  font-size: 1.125rem;
  color: var(--ink);
}
.form-card {
  padding: 2rem;
  border: 1px solid var(--line-dark);
  background: var(--paper);
}
@media (min-width: 768px) { .form-card { padding: 3rem; } }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .form-row.split { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; }
.form-field label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--warm-gray);
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  padding: 0.75rem 0;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.form-field textarea { resize: none; }
.form-submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 1.75rem;
  background: var(--red);
  color: var(--cream);
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}
.form-submit:hover { opacity: 0.9; }
.form-disclaimer {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-style: italic;
  text-align: center;
  font-family: var(--f-display);
  color: var(--warm-gray);
}
.form-success {
  text-align: center;
  padding: 3rem 0;
}
.form-success h3 { margin: 1.5rem 0 1rem; font-size: 2rem; font-weight: 500; }
.form-success p { color: var(--warm-gray); }

/* ============================================================================
   FINAL CTA
   ============================================================================ */
.final-cta {
  position: relative;
  padding: 6rem 1.5rem 6rem;
  background: var(--black);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
@media (min-width: 768px) { .final-cta { padding: 10rem 4rem; } }
.final-cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(200,16,46,0.15) 0%, transparent 70%);
}
.final-cta-content { position: relative; max-width: 64rem; margin: 0 auto; }
.final-cta h2 { font-size: clamp(2.75rem, 7vw, 6.5rem); margin-bottom: 2rem; }
.final-cta-sub {
  font-size: 1.25rem;
  margin: 0 auto 3rem;
  max-width: 36rem;
  opacity: 0.8;
  font-weight: 300;
}
.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.final-cta-disclaimer {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  font-style: italic;
  font-family: var(--f-display);
  opacity: 0.5;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  background: var(--black);
  color: var(--cream);
  border-top: 1px solid var(--line);
  padding: 4rem 1.5rem;
}
@media (min-width: 768px) { .footer { padding: 5rem 4rem; } }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; } }
.footer-brand { max-width: 20rem; }
.footer-tagline {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.7;
  line-height: 1.7;
  font-weight: 300;
}
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: all 0.2s ease;
}
.footer-social a:hover { background: var(--cream); color: var(--ink); }

.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.875rem; opacity: 0.7; font-weight: 300; transition: opacity 0.2s ease; }
.footer-col a:hover { opacity: 1; }
.footer-col li { line-height: 1.6; }

.footer-legal {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .footer-legal { grid-template-columns: repeat(3, 1fr); } }
.footer-legal h4 { margin-bottom: 1rem; }
.footer-legal ul, .footer-legal p {
  font-size: 0.75rem;
  line-height: 1.7;
  opacity: 0.6;
  font-weight: 300;
}
.footer-legal ul { gap: 0.5rem; }
.footer-legal a { color: var(--cream); opacity: 1; }
.footer-legal a:hover { color: var(--red); }

.footer-copyright {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  font-family: var(--f-mono);
  opacity: 0.5;
}
@media (min-width: 768px) { .footer-copyright { flex-direction: row; } }

/* ============================================================================
   SCROLL REVEAL
   ============================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroLabelFade {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes heroDrift {
  0%   { transform: scale(1.04) translateY(0); }
  50%  { transform: scale(1.06) translateY(-8px); }
  100% { transform: scale(1.04) translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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

/* ============================================================================
   MOBILE OPTIMIZATIONS
   ============================================================================ */
@media (max-width: 767px) {
  /* Tighter section padding on small screens */
  .section { padding: 4rem 1.25rem; }
  .trust-section { padding: 4rem 1.25rem; }
  .subpage { padding: 6rem 1.25rem 3rem; }
  .final-cta { padding: 4.5rem 1.25rem; }
  .footer { padding: 3rem 1.25rem; }
  .container, .container-narrow, .container-tight { padding: 0 1.25rem; }

  /* Header: keep logo and CTA usable on small screens */
  .header-inner { padding: 0.625rem 1rem; }
  .logo-link img { height: 42px; }
  .logo-text-spartan { font-size: 1.05rem; }
  .logo-text-roofing { font-size: 0.55rem; letter-spacing: 0.22em; }

  /* Hide phone link on small phones — keep Free Inspection button */
  .header-phone { display: none; }
  .header-cta-btn { padding: 0.55rem 0.9rem; font-size: 0.8rem; }
  .header-cta { display: flex; }

  /* Hero: tighter typography */
  .hero-eyebrow { padding-top: 6rem; }
  .hero-eyebrow .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    gap: 0.5rem;
  }
  .hero-eyebrow .eyebrow::before, .hero-eyebrow .eyebrow::after { width: 1.5rem; }
  .hero-headline { padding: 2.5rem 1.25rem; }
  .hero-headline h1 { font-size: clamp(2.25rem, 11vw, 4rem); }
  .hero-sub { font-size: 1rem; margin-top: 1.75rem; }
  .hero-cta { margin-top: 2rem; flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; padding: 0.95rem 1.5rem; }
  .hero-trust { padding: 1.5rem 1.25rem 2rem; }
  .hero-trust-grid { gap: 1rem; }
  .hero-trust-item { flex-direction: column; gap: 0.4rem; text-align: center; }
  .hero-trust-item span { font-size: 0.7rem; }

  /* Reduce body H2 sizes */
  h2 { font-size: clamp(2rem, 8vw, 2.75rem); }
  h3 { font-size: clamp(1.35rem, 5vw, 1.75rem); }
  .lede, .body-text { font-size: 1rem; }

  /* Buttons full-width on mobile */
  .btn { width: 100%; justify-content: center; padding: 0.95rem 1.5rem; }
  .final-cta-buttons { flex-direction: column; align-items: stretch; }
  .final-cta h2 { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .final-cta-sub { font-size: 1rem; margin-bottom: 2rem; }

  /* Stats band — tighten and center */
  .stats-grid { gap: 2rem 1rem; }
  .stat .num { font-size: clamp(2.25rem, 11vw, 3.5rem); margin-bottom: 0.5rem; }
  .stat .label { font-size: 0.65rem; letter-spacing: 0.2em; }

  /* Service cards — reduce padding and min-height */
  .service-card { padding: 1.75rem 1.5rem; min-height: 280px; }
  .service-card-top { margin-bottom: 2.5rem; }
  .service-card h3 { font-size: 1.5rem; }

  /* Photo strip — single column on the smallest phones, two on slightly larger */
  .photo-strip { margin-top: 3rem; }
  .photo-strip-grid { gap: 0.75rem; }
  .photo-card-caption { padding: 0.75rem; }
  .photo-card-caption .label { font-size: 0.8rem; }

  /* County chips — smaller, tighter */
  .county-chip { padding: 0.5rem 0.875rem; font-size: 0.8rem; }
  .county-list { gap: 0.5rem; }

  /* Testimonial sizing */
  .testimonial-card { padding: 2rem 0.5rem; }
  .testimonial-quote { font-size: 1.05rem; line-height: 1.55; margin-bottom: 1.75rem; }
  .testimonial-stars { margin-bottom: 2.5rem; flex-wrap: wrap; }

  /* Emergency section */
  .emergency-content h2 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .emergency-call-btn { padding: 1rem 1.25rem; font-size: 0.95rem; width: 100%; justify-content: center; }
  .emergency-disclaimer { font-size: 0.65rem; letter-spacing: 0.15em; }

  /* FAQ */
  .faq-q { padding: 1.25rem 1rem; gap: 1rem; }
  .faq-q-text { font-size: 1rem; line-height: 1.35; }
  .faq-a { padding: 0 1rem 1.5rem; }
  .faq-a-text { font-size: 0.95rem; }

  /* Contact form */
  .contact-grid { gap: 2.5rem; }
  .contact-info-list { display: block; }
  .contact-info-item { justify-content: flex-start; }
  .form-card { padding: 1.5rem 1.25rem; }
  .form-row.split { grid-template-columns: 1fr; gap: 1rem; }
  .form-submit { padding: 1rem 1.5rem; }

  /* Trust image — taller aspect on mobile */
  .trust-image { aspect-ratio: 4/3; }

  /* Footer: stack everything centered */
  .footer-grid { gap: 2.5rem; text-align: center; }
  .footer-brand { max-width: 100%; }
  .footer-brand .footer-tagline { margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
  .footer-legal { gap: 2rem; text-align: center; }
  .footer-copyright { font-size: 0.7rem; text-align: center; align-items: center; }

  /* Sub-page (service detail) heroes */
  .subpage h1 { font-size: clamp(2.25rem, 9vw, 3.25rem); }
  .subpage-sub { font-size: 1rem; margin-bottom: 2.5rem; }

  /* Process step grid — simpler layout */
  .process-step { padding: 1.75rem 1.25rem; }
  .process-step h3 { font-size: 1.25rem; }

  /* Includes list */
  .includes-list li { padding: 0.85rem 0; gap: 0.75rem; }
  .includes-list li span { font-size: 0.95rem; }

  /* Gallery */
  .gallery-grid { gap: 1rem; }

  /* Service detail hero CTA wrapper */
  .back-link { margin-bottom: 2rem; }
}

/* Larger phones / small tablets */
@media (min-width: 480px) and (max-width: 767px) {
  .photo-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Very small phones */
@media (max-width: 360px) {
  .logo-text { display: none; } /* show only logo image to save space */
  .header-cta-btn { font-size: 0.72rem; padding: 0.5rem 0.65rem; }
  h1 { font-size: clamp(2rem, 12vw, 3rem); }
}

/* ============================================================================
   SUB-PAGE STYLES (about, services, faqs, area, reviews, legal)
   ============================================================================ */
.subpage {
  background: var(--cream);
  min-height: 100vh;
  padding: 8rem 1.5rem 5rem;
}
@media (min-width: 768px) { .subpage { padding: 10rem 4rem 5rem; } }
.subpage-inner { max-width: 1280px; margin: 0 auto; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  font-size: 0.875rem;
  font-family: var(--f-mono);
  color: var(--charcoal);
  letter-spacing: 0.15em;
  transition: gap 0.2s ease;
}
.back-link:hover { gap: 0.75rem; }
.subpage h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  margin-bottom: 1.5rem;
}
.subpage-sub {
  font-size: 1.25rem;
  margin-bottom: 4rem;
  max-width: 36rem;
  color: var(--warm-gray);
  font-weight: 300;
  line-height: 1.7;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-dark);
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
.process-step { padding: 2.5rem; background: var(--cream); }
.process-step-num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}
.process-step h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
}
.process-step p {
  font-size: 0.875rem;
  color: var(--charcoal);
  line-height: 1.7;
  font-weight: 300;
}

.includes-list {
  display: flex;
  flex-direction: column;
}
.includes-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.includes-list li svg { color: var(--red); flex-shrink: 0; margin-top: 0.125rem; }
.includes-list li span {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.95;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-img {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.gallery-card { overflow: hidden; }
.gallery-card:hover .gallery-img { transform: scale(1.05); }
.gallery-caption {
  margin-top: 0.75rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
}
.gallery-caption .fig {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.2em;
}
.gallery-caption .desc {
  font-size: 0.75rem;
  font-style: italic;
  font-family: var(--f-display);
  color: var(--warm-gray);
}

.review-card {
  padding: 2.5rem;
  border: 1px solid var(--line-dark);
  background: var(--paper);
}
.review-stars { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; color: var(--red); }
.review-quote {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.review-meta {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}
.review-meta .name { font-weight: 600; color: var(--ink); }
.review-meta .badge {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--warm-gray);
  margin-top: 0.25rem;
}

.legal-content {
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--charcoal);
  font-weight: 300;
}
.legal-content section { margin-bottom: 2.5rem; }
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--ink);
}
.legal-content a { color: var(--red); text-decoration: underline; }
