/* ============================================================
   SARASOTA BUILDING CO. — Premium CSS
   Phase 2A: Visual Polish
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Palette */
  --navy:        #0C1F35;
  --navy-deep:   #071427;
  --navy-mid:    #112236;
  --navy-light:  #1a3550;
  --gold:        #C9A050;
  --gold-light:  #DDB96A;
  --gold-muted:  #A88040;
  --gold-pale:   rgba(201,160,80,0.08);
  --gold-border: rgba(201,160,80,0.2);
  --cream:       #F5F1EB;
  --cream-mid:   #EDE8E0;
  --cream-dark:  #E3DDD5;
  --slate:       #4A6B8A;
  --slate-light: #7A9BB5;
  --text:        #1A2E40;
  --text-muted:  #5A7490;
  --white:       #FFFFFF;

  /* Effects */
  --radius:           3px;
  --transition:       0.22s ease;
  --transition-slow:  0.4s ease;
  --shadow-card:      0 2px 8px rgba(7,20,39,0.08), 0 1px 2px rgba(7,20,39,0.04);
  --shadow-lift:      0 8px 24px rgba(7,20,39,0.14), 0 2px 6px rgba(7,20,39,0.06);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0; /* prevents grid/flex items from overflowing their track */
}

/* Global overflow guard — stops any element from causing horizontal scroll */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

/* Media safety — nothing wider than its container */
img, video, iframe, svg, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Containers always respect viewport width */
.section-inner,
.services-section-inner,
.edu-section-inner,
.why-section-inner,
.footer-inner,
.trust-bar-inner,
.hero-inner,
.cta-inner,
.page-hero-inner {
  max-width: 100%;
}

/* ── NAVIGATION ──────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(7,20,39,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
  transition: border-color var(--transition);
}
nav.scrolled { border-bottom-color: rgba(201,160,80,0.35); }

.nav-logo {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  padding: 9px 22px !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.4px !important;
  transition: background var(--transition), box-shadow var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--gold-light) !important;
  box-shadow: 0 4px 14px rgba(201,160,80,0.35) !important;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: opacity var(--transition);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 6px 20px rgba(201,160,80,0.3);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.85);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,160,80,0.06);
}

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(12,31,53,0.25);
  color: var(--navy);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.btn-outline-navy:hover { border-color: var(--gold); color: var(--gold-muted); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background-color: var(--navy-deep); /* fallback — shows if JS/images fail */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 48px 88px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1; /* sits above slide images, below content */
  /* Decorative warm/cool light splits */
  background:
    radial-gradient(ellipse at 70% 35%, rgba(201,160,80,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 75%, rgba(74,107,138,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(7,20,39,0.6)   0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1; /* sits above slide images, below content */
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 79px,
    rgba(255,255,255,0.012) 80px
  ),
  repeating-linear-gradient(
    90deg, transparent, transparent 79px,
    rgba(255,255,255,0.012) 80px
  );
  pointer-events: none;
}

/* ── HERO SLIDE LAYERS ───────────────────────────────────── */
/* Behind all hero content — images cross-fade here */
.hero-slides {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }

/* Slide 0 — Metal roof: dark image, lighter overlay preserves roof texture */
.hero-slide[data-slide="0"] {
  background-image:
    linear-gradient(to bottom,
      rgba(7,20,39,0.60) 0%,
      rgba(7,20,39,0.45) 40%,
      rgba(7,20,39,0.72) 100%),
    url('/assets/images/hero/hero-metal-roof.jpg');
  background-position: center 20%;
}
/* Slide 1 — Luxury home: shift up so full roofline is visible */
.hero-slide[data-slide="1"] {
  background-image:
    linear-gradient(to bottom,
      rgba(7,20,39,0.70) 0%,
      rgba(7,20,39,0.58) 40%,
      rgba(7,20,39,0.82) 100%),
    url('/assets/images/hero/hero-luxury-home.jpg');
  background-position: center 5%;
}
/* Slide 2 — Coastal Sarasota: rich blues, moderate overlay */
.hero-slide[data-slide="2"] {
  background-image:
    linear-gradient(to bottom,
      rgba(7,20,39,0.62) 0%,
      rgba(7,20,39,0.50) 40%,
      rgba(7,20,39,0.75) 100%),
    url('/assets/images/hero/hero-coastal-sarasota.jpg');
  background-position: center 55%;
}

/* Prefers-reduced-motion — freeze slides, no auto-play */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* ── HERO SLIDE INDICATORS ───────────────────────────────── */
.hero-indicators {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(201,160,80,0.65);
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}
.hero-dot:hover:not(.active) {
  background: rgba(201,160,80,0.6);
  border-color: var(--gold);
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: 72px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 16.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  align-items: center;
}

/* Trust badges — pill row */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.45);
  padding: 0 18px 0 0;
  margin-right: 18px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.badge:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.badge svg { color: var(--gold); flex-shrink: 0; }

/* Hero right panel */
.hero-img-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stats panel */
.stats-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(201,160,80,0.15);
  border: 1px solid rgba(201,160,80,0.2);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  padding: 26px 22px;
  background: rgba(255,255,255,0.025);
  transition: background var(--transition);
}
.stat-item:hover { background: rgba(255,255,255,0.04); }
.stat-num {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Principal card */
.principal-card {
  background: rgba(201,160,80,0.07);
  border: 1px solid rgba(201,160,80,0.2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

/* Portrait image slot — replace placeholder monogram with real headshot */
.principal-portrait {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(201,160,80,0.35);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.principal-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Monogram fallback — shows when no real headshot is present */
.principal-portrait-initials {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  line-height: 1;
  opacity: 0.75;
}
.principal-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}
.principal-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.principal-contact {
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ── TRUST BAR ───────────────────────────────────────────── */
.trust-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(201,160,80,0.12);
  padding: 16px 48px;
}
.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.5);
  padding: 6px 28px;
  position: relative;
}
.trust-item + .trust-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 16px;
  background: rgba(255,255,255,0.1);
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }

/* ── SECTION SYSTEM ──────────────────────────────────────── */
.section-wrap          { padding: 96px 48px; }
.section-wrap-dark     { padding: 96px 48px; background: var(--navy-deep); }
.section-wrap-mid      { padding: 96px 48px; background: var(--cream-mid); }
.section-wrap-cream    { padding: 96px 48px; background: var(--cream); }
.section-inner         { max-width: 1200px; margin: 0 auto; }

/* Legacy aliases — keeps existing pages working */
.section               { padding: 96px 48px; max-width: 1200px; margin: 0 auto; }
.section-dark          { padding: 96px 48px; background: var(--navy-deep); }
.section-dark .section { padding: 0; max-width: 1200px; margin: 0 auto; }
.section-mid           { padding: 96px 48px; background: var(--cream-mid); }
.section-mid .section  { padding: 0; max-width: 1200px; margin: 0 auto; }

/* ── TYPOGRAPHY SCALE ────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.section-heading.light { color: var(--white); }
.section-heading em { font-style: italic; color: var(--gold); }

.section-sub {
  font-size: 15.5px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 48px;
}
.section-sub.light { color: rgba(255,255,255,0.58); }

/* ── SERVICE CARDS ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--cream-dark);
}

.service-card {
  background: var(--cream);
  padding: 40px 32px 36px;
  text-decoration: none;
  display: block;
  position: relative;
  border-top: 3px solid transparent;
  transition:
    background var(--transition),
    border-top-color var(--transition),
    box-shadow var(--transition);
}
.service-card:hover {
  background: var(--navy);
  border-top-color: var(--gold);
  box-shadow: var(--shadow-lift);
  z-index: 1;
}

.service-icon {
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
  opacity: 0.9;
  transition: opacity var(--transition), transform var(--transition);
}
.service-card:hover .service-icon { opacity: 1; transform: scale(1.05); }

.service-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.service-card:hover .service-title { color: var(--white); }

.service-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  transition: color var(--transition);
}
.service-card:hover .service-desc { color: rgba(255,255,255,0.58); }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--gold-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition);
}
.service-card:hover .service-link { opacity: 1; transform: translateX(0); }

/* ── EDUCATION DATA STRIP ────────────────────────────────── */
.edu-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.04);
}
.edu-card {
  padding: 36px 28px;
  position: relative;
}
.edu-card::after {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--gold);
  opacity: 0.5;
  margin-top: 16px;
}
.edu-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}
.edu-text {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.52);
  line-height: 1.6;
}

/* ── WHY US GRID ─────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--cream-dark);
}
.why-card {
  background: var(--cream-mid);
  padding: 36px 28px;
  border-left: 3px solid transparent;
  transition: border-left-color var(--transition), background var(--transition);
}
.why-card:hover {
  background: var(--cream);
  border-left-color: var(--gold);
}
.why-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.why-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  background: var(--navy-deep);
  padding: 136px 48px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(201,160,80,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: 760px;
}

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  background: var(--navy-deep);
  padding: 96px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(201,160,80,0.4));
}
.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FORM ────────────────────────────────────────────────── */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 13px 15px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,160,80,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(26,46,64,0.35); }
.form-group textarea { resize: vertical; min-height: 130px; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A7490' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  padding: 0 48px 32px;
  position: relative;
}
footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201,160,80,0.15) 10%,
    rgba(201,160,80,0.6) 40%,
    rgba(201,160,80,0.6) 60%,
    rgba(201,160,80,0.15) 90%,
    transparent 100%
  );
  margin-bottom: 60px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  line-height: 1.65;
  max-width: 248px;
  margin-bottom: 22px;
}
.footer-contact-line {
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.32);
  line-height: 1.75;
}
.footer-col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.85;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 11.5px; color: rgba(255,255,255,0.22); }
.footer-licenses {
  display: flex;
  gap: 12px;
}
.footer-license-badge {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(201,160,80,0.5);
  background: rgba(201,160,80,0.06);
  border: 1px solid rgba(201,160,80,0.15);
  border-radius: var(--radius);
  padding: 4px 10px;
}

/* ── REVEAL ANIMATIONS ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .edu-strip  { grid-template-columns: repeat(2, 1fr); }
  .why-grid   { grid-template-columns: repeat(2, 1fr); }
  .project-mosaic { grid-template-columns: 1fr 1fr; }
  .project-mosaic .mosaic-card.tall { grid-row: auto; height: 220px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 18px;
    position: fixed;
    top: 64px; left: 0; right: 0;
    width: 100%; /* explicit width prevents overflow */
    background: rgba(7,20,39,0.98);
    padding: 28px 24px 32px;
    border-bottom: 1px solid var(--gold-border);
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links a { font-size: 14px; padding-bottom: 4px; }
  .nav-mobile-toggle { display: flex; }

  /* Hero — single column, no overflow risk */
  .hero { padding: 96px 16px 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(32px, 9vw, 48px); letter-spacing: -0.3px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; box-sizing: border-box; }
  /* Trust badges — wrap to two per row, no horizontal overflow */
  .trust-badges { gap: 10px 0; flex-wrap: wrap; padding-top: 20px; }
  .badge { border-right: none; margin-right: 12px; padding-right: 0; }
  .stats-panel { grid-template-columns: 1fr 1fr; }

  /* Trust bar — wrap items, no pipe separators */
  .trust-bar { padding: 14px 16px; }
  .trust-bar-inner { justify-content: flex-start; gap: 0; flex-wrap: wrap; }
  .trust-item { padding: 5px 12px; font-size: 12px; }
  .trust-item + .trust-item::before { display: none; }

  /* Section padding — consistent 64px 16px across all variants */
  .section-wrap,
  .section-wrap-dark,
  .section-wrap-mid,
  .section-wrap-cream,
  .section,
  .section-dark,
  .section-mid,
  .services-section,
  .edu-section,
  .why-section { padding: 64px 16px; }

  /* All grids collapse to single column */
  .services-grid        { grid-template-columns: 1fr; gap: 1px; }
  .edu-strip            { grid-template-columns: repeat(2, 1fr); }
  .why-grid             { grid-template-columns: 1fr; }
  .project-mosaic       { grid-template-columns: 1fr; }
  .project-mosaic .mosaic-card.tall { grid-row: auto; height: 200px; }
  .roofing-types        { grid-template-columns: 1fr; }
  .roofing-split        { grid-template-columns: 1fr; gap: 36px; }

  .page-hero { padding: 108px 16px 56px; }

  .cta-section { padding: 72px 16px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn-primary,
  .cta-actions .btn-ghost { width: 100%; justify-content: center; }

  .contact-form { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  footer { padding: 0 16px 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-licenses { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  /* Very small phones (320px iPhone SE) */
  .hero { padding: 88px 16px 56px; }
  .hero h1 { font-size: 30px; letter-spacing: -0.2px; }
  .hero-sub { font-size: 14.5px; }
  .stat-num { font-size: 32px; }
  .edu-strip { grid-template-columns: 1fr; }
  .edu-num { font-size: 34px; }
  .section-heading { font-size: 26px; }
  /* Prevent long letter-spaced eyebrows from overflowing */
  .eyebrow { letter-spacing: 2px; word-break: break-word; }
  .nav-logo { font-size: 15px; }
  footer { padding: 0 16px 24px; }
}

/* ── 320px MINIMUM SAFE WIDTH ────────────────────────────── */
/* Prevents anything from forcing page wider than smallest iPhone */
@media (max-width: 320px) {
  .hero h1 { font-size: 26px; }
  .section-heading { font-size: 22px; }
  .btn-primary, .btn-ghost { font-size: 12.5px; padding: 12px 18px; }
  .stat-num { font-size: 28px; }
}

/* ── PROJECT MOSAIC (Featured Work) ─────────────────────── */
.project-section {
  padding: 88px 48px;
  background: var(--navy-deep); /* overridden per-instance via inline style */
}
/* When project-section sits on light background, darken mosaic card text gradient */
.project-section[style*="cream"] .mosaic-label {
  background: linear-gradient(to top, rgba(7,20,39,0.88) 0%, transparent 100%);
}
.project-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.project-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 260px 200px;
  gap: 3px;
  border-radius: var(--radius);
  overflow: hidden;
}

.mosaic-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: var(--navy-mid);
  cursor: default;
}
.mosaic-card.tall {
  grid-row: 1 / 3;
}

/* CSS-only gradient fills — no broken image paths */
/*
 * FEATURED WORK — PROJECT CARDS
 * Each card uses background-image. Replace Unsplash URLs with real project photos.
 * Ideal size per card: 900×675px minimum, WebP preferred.
 * The gradient overlay preserves label legibility — do not remove it.
 *
 * Card 1 (tall): Complete renovation / full interior
 * PLACEHOLDER — Photo by Ярослав Алексеенко (unsplash.com/@yaroslav_a)
 */
/* Card 1 (tall): Waterfront estate aerial — real SBC project (4925 series)
 * Original filename: 4925-1.jpg  → assets/images/estate/estate-aerial.jpg
 */
.mosaic-card:nth-child(1) {
  background:
    linear-gradient(to top, rgba(7,20,39,0.88) 0%, rgba(7,20,39,0.15) 55%, transparent 100%),
    url('/assets/images/estate/estate-aerial.jpg'),
    url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=900&q=80');
  background-size: cover;
  background-position: center;
}
/*
 * Card 2: Kitchen remodeling
 * PLACEHOLDER — Photo by Jason Briscoe (unsplash.com/@jsnbrsc)
 */
/* Card 2: Kitchen remodeling — aspirational, fits SBC standard
 * Original filename: sarasota-luxury-kitchen.png → copy to assets/images/kitchen/sarasota-luxury-kitchen.jpg
 */
.mosaic-card:nth-child(2) {
  background:
    linear-gradient(to top, rgba(7,20,39,0.85) 0%, rgba(7,20,39,0.1) 55%, transparent 100%),
    url('/assets/images/kitchen/sarasota-luxury-kitchen.jpg'),
    url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?auto=format&fit=crop&w=900&q=80');
  background-size: cover;
  background-position: center;
}
/*
 * Card 3: Metal roofing — standing seam
 * PLACEHOLDER — Photo by Mikael Kristenson (unsplash.com/@mikael_k)
 */
/* Card 3: Roofing — real SBC project (aerial shingle replacement)
 * Original filename: IMG_6277_Original.jpg → copy to assets/images/roofing/roofing-shingle-aerial.jpg
 */
.mosaic-card:nth-child(3) {
  background:
    linear-gradient(to top, rgba(7,20,39,0.88) 0%, rgba(7,20,39,0.2) 55%, transparent 100%),
    url('/assets/images/roofing/roofing-shingle-aerial.jpg'),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=900&q=80');
  background-size: cover;
  background-position: center;
}
/*
 * Card 4: Master bath renovation
 * PLACEHOLDER — Photo by Sidekix Media (unsplash.com/@sidekix)
 */
/* Card 4: Bathroom renovation — real SBC project
 * Original filename: IMG_8109.JPG → copy to assets/images/bathroom/bathroom-master-2.jpg
 */
.mosaic-card:nth-child(4) {
  background:
    linear-gradient(to top, rgba(7,20,39,0.85) 0%, rgba(7,20,39,0.1) 55%, transparent 100%),
    url('/assets/images/bathroom/bathroom-master-2.jpg'),
    url('https://images.unsplash.com/photo-1552321554-5fefe8c9ef14?auto=format&fit=crop&w=900&q=80');
  background-size: cover;
  background-position: center;
}
/*
 * Card 5: Outdoor living / covered structure
 * PLACEHOLDER — Photo by Christopher Burns (unsplash.com/@christopher__burns)
 */
/* Card 5: Carports & Covered Structures — real SBC project (differentiator)
 * Original filename: carport.png → copy to assets/images/carport/carport-covered.jpg
 */
.mosaic-card:nth-child(5) {
  background:
    linear-gradient(to top, rgba(7,20,39,0.85) 0%, rgba(7,20,39,0.1) 55%, transparent 100%),
    url('/assets/images/carport/carport-covered.jpg'),
    linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
  background-size: cover;
  background-position: center;
}

/* Gold texture overlay */
.mosaic-card::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 18px,
    rgba(201,160,80,0.025) 18px,
    rgba(201,160,80,0.025) 19px
  );
  pointer-events: none;
}

/* Gold top accent on hover */
.mosaic-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.mosaic-card:hover::after { transform: scaleX(1); }

.mosaic-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 20px 18px;
  background: linear-gradient(to top, rgba(7,20,39,0.9) 0%, transparent 100%);
}
.mosaic-type {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
  opacity: 0.85;
}
.mosaic-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.mosaic-card.tall .mosaic-title { font-size: 18px; }

/* ── PORTFOLIO GRID ──────────────────────────────────────────
 * Same visual language as the homepage mosaic cards (gold hairline
 * texture, hover accent bar, label treatment via .mosaic-label /
 * .mosaic-type / .mosaic-title) but built for variable-length photo
 * galleries on service/project pages. Background image is always
 * set inline per-card (style="background-image:...") rather than via
 * positional nth-child CSS rules — this avoids the homepage bug where
 * a single stray element shifted every card's photo by one slot.
 */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border-radius: var(--radius);
  overflow: hidden;
}
.portfolio-card {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  text-decoration: none;
  background-color: var(--navy-mid);
  background-size: cover;
  background-position: center;
}
.portfolio-card::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 18px,
    rgba(201,160,80,0.025) 18px,
    rgba(201,160,80,0.025) 19px
  );
  pointer-events: none;
}
.portfolio-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.portfolio-card:hover::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { height: 220px; }
}

@media (max-width: 768px) {
  .project-section { padding: 64px 16px; }
}

/* ── INNER PAGE LAYOUT SYSTEM (Phase 2A.2) ──────────────── */

/* Primary content wrapper — replaces inline padding:80px 40px */
.inner-page {
  padding: 80px 48px;
  background: var(--cream);
}
.inner-page.mid {
  background: var(--cream-mid);
}
.inner-page.dark {
  background: var(--navy-deep);
}

/* Inner width container */
.inner-page-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.inner-page-inner.narrow {
  max-width: 860px;
}
.inner-page-inner.centered {
  text-align: center;
}

/* Page intro paragraph — replaces repeated inline font/color/spacing */
.page-intro {
  font-size: 15.5px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 36px;
}
.page-intro.centered {
  margin-left: auto;
  margin-right: auto;
}

/* Page hero subtitle — replaces inline hero paragraph */
.page-hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  line-height: 1.75;
  margin-top: 14px;
  margin-bottom: 32px;
  max-width: 560px;
}

/* Detail checklist — for service included lists */
.detail-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 40px;
  margin-bottom: 36px;
}
.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.55;
}
.detail-list li::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  min-width: 16px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8l3.5 3.5 7-7' stroke='%23C9A050' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Two-column service layout */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Info panel card */
.info-panel {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.info-panel.light {
  background: var(--cream-mid);
  border-left: 3px solid var(--gold);
}

/* Page CTA strip (inline, above .cta-section) */
.page-cta-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* Service card grid — for services overview page */
.service-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--cream-dark);
}
.service-list-card {
  background: var(--cream);
  padding: 32px 28px;
  text-decoration: none;
  display: block;
  border-top: 3px solid transparent;
  transition: background var(--transition), border-top-color var(--transition);
}
.service-list-card:hover {
  background: var(--navy);
  border-top-color: var(--gold);
}
.service-list-card:hover .slc-title { color: var(--white); }
.service-list-card:hover .slc-desc  { color: rgba(255,255,255,0.55); }
.slc-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.slc-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color var(--transition);
}

/* About page bio card */
.bio-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bio-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
}
.bio-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
.bio-contact {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-top: 8px;
}
.bio-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 8px 0;
}
.bio-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}
.bio-stat {
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
}
.bio-stat-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.bio-stat-label {
  font-size: 10.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .inner-page { padding: 64px 16px; }
  .detail-list { grid-template-columns: 1fr; gap: 10px; }
  .service-split { grid-template-columns: 1fr; gap: 36px; }
  .service-list-grid { grid-template-columns: 1fr; }
  .bio-stat-row { grid-template-columns: 1fr 1fr; }
  .page-cta-strip { flex-direction: column; align-items: stretch; }
  .page-cta-strip .btn-primary,
  .page-cta-strip .btn-ghost { width: 100%; justify-content: center; }
}

/* ── INFO PANEL INTERNALS ────────────────────────────────── */
/* Reusable inside .info-panel dark cards */
.panel-heading {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 7px;
}
.panel-body {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.52);
  line-height: 1.68;
}
.panel-row {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.panel-row:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.panel-stat-num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.panel-byline {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  opacity: 0.85;
}
.panel-detail {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

/* Gold accent list (replaces inline flex div + span) */
.accent-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accent-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.accent-list li::before {
  content: '';
  display: block;
  width: 3px;
  min-width: 3px;
  height: 16px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── SERVICE SPOTLIGHT (homepage) ───────────────────────── */
.service-spotlight {
  padding: 96px 48px;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.service-spotlight::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,160,80,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(74,107,138,0.1)  0%, transparent 50%);
  pointer-events: none;
}

/* 2-col grid: collage left spans 2 rows, text split top/bottom on right */
.spotlight-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 72px;
  row-gap: 0;
  position: relative;
  z-index: 1;
}

/* Collage — left column, spans both text rows */
.spotlight-collage {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 190px;
  gap: 3px;
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
}

/* CSS-only panels — no image paths */
.collage-panel {
  position: relative;
  overflow: hidden;
}
.collage-panel.featured {
  grid-column: 1 / -1; /* wide top panel */
}
/*
 * ROOFING SPOTLIGHT — COLLAGE PANELS
 * Panel 1 (featured wide): Coastal metal roofing / standing seam on Florida home
 * PLACEHOLDER — Photo by Point3D Commercial Imaging (unsplash.com/@point3d)
 */
.collage-panel:nth-child(1) {
  background:
    linear-gradient(to top, rgba(7,20,39,0.92) 0%, rgba(7,20,39,0.2) 60%, transparent 100%),
    url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
}
/*
 * Panel 2: Tile and shingle roofing
 * PLACEHOLDER — Photo by Zohair Mirza (unsplash.com/@zohhair)
 */
.collage-panel:nth-child(2) {
  background:
    linear-gradient(to top, rgba(7,20,39,0.9) 0%, rgba(7,20,39,0.25) 60%, transparent 100%),
    url('https://images.unsplash.com/photo-1599809275671-b5942cabc7a2?auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}
/*
 * Panel 3: Roofing installation / storm damage repair
 * PLACEHOLDER — Photo by Piotr Chrobot (unsplash.com/@chrumo)
 */
.collage-panel:nth-child(3) {
  background:
    linear-gradient(to top, rgba(7,20,39,0.9) 0%, rgba(7,20,39,0.25) 60%, transparent 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.collage-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 20px,
    rgba(201,160,80,0.03) 20px, rgba(201,160,80,0.03) 21px
  );
}
.collage-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.collage-panel:hover::after { opacity: 0.6; }

.collage-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 18px 16px;
  background: linear-gradient(to top, rgba(7,20,39,0.92) 0%, transparent 100%);
}
.collage-type {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  display: block;
  margin-bottom: 4px;
}
.collage-name {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.collage-panel.featured .collage-name { font-size: 19px; }

.collage-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(201,160,80,0.65);
  background: rgba(201,160,80,0.07);
  border: 1px solid rgba(201,160,80,0.15);
  border-radius: var(--radius);
  padding: 4px 9px;
}

/* Text top — right column, row 1 */
.spotlight-text-top {
  grid-column: 2;
  grid-row: 1;
  padding-bottom: 32px;
}
.spotlight-text-top .eyebrow { margin-bottom: 14px; }

.spotlight-intro {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  line-height: 1.8;
  max-width: 480px;
  margin-top: 16px;
  margin-bottom: 0;
}

/* Text bottom — right column, row 2 */
.spotlight-text-bottom {
  grid-column: 2;
  grid-row: 2;
  padding-top: 4px;
}

.spotlight-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.spotlight-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.68);
  line-height: 1.55;
}
.spotlight-benefits li::before {
  content: '';
  display: block;
  width: 16px; height: 16px; min-width: 16px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8l3.5 3.5 7-7' stroke='%23C9A050' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.spotlight-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Section break — visual rhythm separator */
.section-break {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,160,80,0.2) 15%,
    rgba(201,160,80,0.5) 50%,
    rgba(201,160,80,0.2) 85%,
    transparent 100%
  );
}

/* Mobile overrides */
@media (max-width: 768px) {
  .service-spotlight { padding: 64px 16px 72px; }

  .spotlight-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 0;
    row-gap: 32px;
  }

  /* Mobile order: text-top (headline+copy) → collage → text-bottom (bullets+CTA) */
  .spotlight-text-top  { grid-column: 1; grid-row: 1; padding-bottom: 0; }
  .spotlight-collage   { grid-column: 1; grid-row: 2; grid-template-rows: 200px 150px; }
  .spotlight-text-bottom { grid-column: 1; grid-row: 3; padding-top: 0; }

  .spotlight-collage { border-radius: var(--radius); }
  .spotlight-actions { flex-direction: column; }
  .spotlight-actions .btn-primary,
  .spotlight-actions .btn-ghost { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .spotlight-collage { grid-template-rows: 160px 120px; }
  .collage-panel.featured .collage-name { font-size: 16px; }
}

/* ── PAGE HERO WITH BACKGROUND IMAGE ────────────────────── */
/* Apply alongside .page-hero for image-backed page heroes */
.page-hero-img {
  background-color: var(--navy-deep); /* fallback */
  background-size: cover;
  background-position: center;
}

/* ── ROOFING SYSTEMS GRID (4-col) ────────────────────────── */
.roofing-systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--cream-dark);
}
.roofing-system-card {
  background: var(--cream);
  padding: 32px 24px;
  border-top: 3px solid transparent;
  transition: border-top-color var(--transition), background var(--transition);
  text-decoration: none;
  display: block;
}
.roofing-system-card:hover {
  border-top-color: var(--gold);
  background: var(--cream-mid);
}
.rsc-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.rsc-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── SECTION PHOTO ───────────────────────────────────────── */
.section-photo {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.section-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: 4/3;
}
.section-photo-caption {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  margin-top: 8px;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

/* ── ROOFING PROCESS STEPS ───────────────────────────────── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--cream-dark);
  align-items: flex-start;
}
.process-step:last-child { border-bottom: none; padding-bottom: 0; }
.process-step-num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 36px;
  flex-shrink: 0;
  margin-top: 1px;
}
.process-step-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}
.process-step-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── STORM DAMAGE GUIDE ──────────────────────────────────── */
.storm-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  overflow: hidden;
}
.storm-guide-card {
  background: rgba(255,255,255,0.03);
  padding: 32px 28px;
}
.sgc-step {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 10px;
  display: block;
}
.sgc-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.sgc-body {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child  { border-bottom: none; padding-bottom: 0; }
.faq-q {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.faq-a {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 820px;
}
.faq-a a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── MOBILE — roofing page additions ─────────────────────── */
@media (max-width: 1024px) {
  .roofing-systems-grid { grid-template-columns: repeat(2, 1fr); }
  /* Mosaic: enforce explicit row heights at tablet so cards don't stretch */
  .project-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 200px;
  }
  .project-mosaic .mosaic-card { min-height: 0; }
}
@media (max-width: 768px) {
  .roofing-systems-grid { grid-template-columns: repeat(2, 1fr); }
  .storm-guide-grid     { grid-template-columns: 1fr; }
  .process-step         { gap: 14px; }
  .process-step-num     { font-size: 24px; min-width: 28px; }
  .section-photo img    { aspect-ratio: 16/9; }
  /* Mosaic: 2-col, fixed heights, tall card no longer spans rows */
  .project-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .project-mosaic .mosaic-card      { height: 180px; }
  .project-mosaic .mosaic-card.tall { grid-row: auto; height: 220px; }
}
@media (max-width: 480px) {
  .roofing-systems-grid { grid-template-columns: 1fr; }
}

/* ── SERVICE PAGE IMAGE SLOT (placeholder until real photos) ── */
.img-slot {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.img-slot::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 20px,
    rgba(201,160,80,0.025) 20px, rgba(201,160,80,0.025) 21px
  );
}
.img-slot-caption {
  position: relative; z-index: 1;
  padding: 16px 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(201,160,80,0.5);
  border-top: 1px solid rgba(201,160,80,0.1);
  background: rgba(7,20,39,0.4);
}

/* ── PAIN POINTS GRID ────────────────────────────────────────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  overflow: hidden;
}
.pain-card {
  background: rgba(255,255,255,0.03);
  padding: 28px 24px;
}
.pain-icon {
  font-size: 20px;
  margin-bottom: 10px;
  display: block;
  color: var(--gold);
  opacity: 0.8;
}
.pain-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.pain-body {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ── LOCAL CONTEXT BOX ───────────────────────────────────────── */
.local-context {
  background: var(--navy-mid);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.local-context-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.local-context-body {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .pain-grid { grid-template-columns: 1fr; }
  .img-slot  { min-height: 200px; }
}

/* ═══════════════════════════════════════════════════════════
   PR #11 — Mobile UX & Conversion
   ═══════════════════════════════════════════════════════════ */

/* ── TASK 1: Global phone / email link reset ─────────────── */
/* Prevents browser-default blue on tel: and mailto: links   */
a[href^="tel:"],
a[href^="mailto:"] {
  color: inherit;
  text-decoration: none;
}
a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
  color: var(--gold);
  text-decoration: none;
}

/* ── TASK 2: Mobile-only nav items ───────────────────────── */
/* Shown only in the mobile hamburger menu, hidden on desktop */
.nav-mobile-only { display: none; }
@media (max-width: 768px) {
  .nav-mobile-only { display: list-item; }
}

/* ── TASK 3: Hero slide — per-slide mobile positions ─────── */
/* 768px — portrait phone / small tablet                     */
@media (max-width: 768px) {
  /* Slide 0 — metal roof close-up: keep roof detail centred */
  .hero-slide[data-slide="0"] { background-position: center 10%; }
  /* Slide 1 — luxury home: push to top so roofline is fully visible */
  .hero-slide[data-slide="1"] { background-position: 35% 0%; }
  /* Slide 2 — coastal aerial: bring neighbourhoods forward   */
  .hero-slide[data-slide="2"] { background-position: center 38%; }
}
/* 480px — iPhone SE / small Android                         */
@media (max-width: 480px) {
  .hero-slide[data-slide="0"] { background-position: center 5%; }
  .hero-slide[data-slide="1"] { background-position: 30% 0%; }
  .hero-slide[data-slide="2"] { background-position: center 30%; }
}

/* ── TASK 4: Michael card — portrait image-ready slot ───── */
/* Already defined; adding drop-shadow on image for polish   */
.principal-portrait img {
  box-shadow: none; /* clean circle crop, no shadow */
}
/* When a real headshot is present, show it; hide initials   */
.principal-portrait img ~ .principal-portrait-initials { display: none; }

/* ── TASK 5: Pain card gold top border ───────────────────── */
.pain-card {
  background: rgba(255,255,255,0.03);
  padding: 28px 24px;
  border-top: 2px solid rgba(201,160,80,0.4); /* gold accent line */
  transition: border-top-color var(--transition);
}
.pain-card:hover { border-top-color: var(--gold); }
.pain-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  padding-top: 4px; /* small lift away from the gold border */
}

/* ── TASK 6: Mid-page CTA band ───────────────────────────── */
.mid-cta {
  background: var(--navy-mid);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: 36px 48px;
}
.mid-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.mid-cta-copy { flex: 1; min-width: 280px; }
.mid-cta-heading {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.mid-cta-sub {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 520px;
}
.mid-cta-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .mid-cta { padding: 28px 16px; }
  .mid-cta-inner { flex-direction: column; gap: 20px; align-items: flex-start; }
  .mid-cta-actions { width: 100%; }
  .mid-cta-actions .btn-primary,
  .mid-cta-actions .btn-ghost,
  .mid-cta-actions .btn-outline-navy {
    flex: 1; justify-content: center; text-align: center;
  }
}

/* ── TASK 7: Review / testimonial component ──────────────── */
.reviews-section {
  background: var(--cream);
  padding: 88px 48px;
}
.reviews-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 1px;
}
.review-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 20px;
}
.review-byline {
  border-top: 1px solid var(--cream-dark);
  padding-top: 14px;
}
.review-name {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
}
.review-meta {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.review-placeholder-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.55;
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  padding: 2px 7px;
}
.reviews-cta-note {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
}
.reviews-cta-note a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .reviews-section { padding: 56px 16px; }
  .reviews-grid { grid-template-columns: 1fr; }
}
