/* ================================================================
   FLORIDA RESTORATION PROS — HOMEPAGE STYLES
   Load alongside global.css on the homepage only.
   <link rel="stylesheet" href="/css/global.css">
   <link rel="stylesheet" href="/css/page-home.css">
================================================================ */


/* ================================================================
   HERO SECTION
================================================================ */
.hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 80px 0 88px;
  overflow: hidden;
  position: relative;
}

/* Background image overlay — real photo sits behind content */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/water-damage-restoration-florida-flooded-interior.webp') center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 20px;
  display: block;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
}

.hero-p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

/* Image column — hidden on mobile */
.hero-image-col { position: relative; }

.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0.5px solid rgba(255, 255, 255, 0.10);
  display: block;
}

/* Floating stat card over the hero image */
.hero-stat-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  border: 0.5px solid var(--border);
  z-index: 2;
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--teal-mid);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}


/* ================================================================
   CITY SELECTOR SECTION
================================================================ */
.cities {
  background: var(--bg-surface);
}


/* ================================================================
   SERVICES SECTION
================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}


/* ================================================================
   WHY FLORIDA IS DIFFERENT SECTION
   Dark background — matches hero palette
================================================================ */
.florida {
  background: var(--bg-dark);
  color: #fff;
}

.florida .section-label { color: var(--teal-mid); }
.florida .section-title { color: #fff; }
.florida .divider       { background: var(--teal-mid); }

.florida-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.florida-copy p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin-bottom: 18px;
}

.florida-copy p:last-child { margin-bottom: 0; }

.florida-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ================================================================
   ABOUT THIS SITE SECTION
================================================================ */
.about {
  background: var(--bg-surface);
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-copy p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-copy p:last-child { margin-bottom: 0; }


/* ================================================================
   BLOG HIGHLIGHTS SECTION
================================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}


/* ================================================================
   FAQ SECTION
================================================================ */
.faq {
  background: var(--bg-surface);
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}


/* ================================================================
   BOTTOM CTA SECTION
================================================================ */
.bottom-cta {
  background: var(--teal-pale);
  border-top: 0.5px solid rgba(29, 158, 117, 0.20);
  border-bottom: 0.5px solid rgba(29, 158, 117, 0.20);
}

.bottom-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bottom-cta .section-title { margin-bottom: 12px; }

.bottom-cta-p {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 28px;
  max-width: 560px;
}

.bottom-cta .disclosure {
  margin-top: 24px;
  text-align: center;
}


/* ================================================================
   HOMEPAGE RESPONSIVE OVERRIDES
================================================================ */

@media (max-width: 900px) {
  /* Hero */
  .hero           { padding: 56px 0 64px; }
  .hero-inner     { grid-template-columns: 1fr; gap: 0; }
  .hero-image-col { display: none; }
  .hero-h1        { font-size: clamp(28px, 6vw, 40px); }

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

  /* Florida section */
  .florida-body { grid-template-columns: 1fr; gap: 40px; }
  .florida-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .florida-stats .stat-card {
    flex: 1;
    min-width: 140px;
  }

  /* About */
  .about-body { grid-template-columns: 1fr; gap: 40px; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }

  /* FAQ */
  .faq-inner { grid-template-columns: 1fr; gap: 0; }
  .faq-inner > div:first-child .section-title { display: none; }
  .faq-inner > div:first-child .section-label { display: none; }
  .faq-inner > div:first-child .divider { display: none; }
}

@media (max-width: 560px) {
  /* Hero CTAs stack vertically */
  .hero-ctas   { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width: 100%; justify-content: center; }

  /* Florida stats stack */
  .florida-stats { flex-direction: column; }
}


/* ================================================================
   IMPROVEMENTS — v2
   City regions, process card accents, featured blog card,
   hero stat card prominence, section separator, footer legal
================================================================ */

/* ----------------------------------------------------------------
   HERO STAT CARD — more prominent
---------------------------------------------------------------- */
.hero-stat-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.hero-stat-icon {
  color: var(--teal-mid);
  margin-bottom: 2px;
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--teal-mid);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 140px;
}


/* ----------------------------------------------------------------
   CITY REGIONS — grouped layout
---------------------------------------------------------------- */
.cities-regions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.city-region-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

/* Override cities-grid inside regions — 2 cols per region */
.city-region .cities-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 0;
}

.city-btn {
  font-size: 13px;
  padding: 11px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ----------------------------------------------------------------
   SECTION SEPARATOR — between cities and services
---------------------------------------------------------------- */
.section-sep {
  height: 1px;
  background: var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}


/* ----------------------------------------------------------------
   PROCESS CARDS — accent borders + darker numbers
---------------------------------------------------------------- */
.process-card--1 { border-top: 3px solid var(--teal-mid); }
.process-card--2 { border-top: 3px solid var(--teal); }
.process-card--3 { border-top: 3px solid #0A4F3C; }

.process-num {
  font-family: var(--font-display);
  font-size: 42px;
  /* Override pale colour — use solid teal mid */
  color: var(--teal-mid) !important;
  line-height: 1;
  margin-bottom: 16px;
  user-select: none;
}


/* ----------------------------------------------------------------
   FEATURED BLOG CARD
---------------------------------------------------------------- */
.blog-card--featured {
  border: 1.5px solid var(--teal-mid);
  position: relative;
}

.blog-card--featured .blog-card-top {
  height: 5px;
  background: var(--teal-mid);
}

.blog-card--featured .blog-title {
  font-size: 17px;
}

.blog-card--featured .blog-desc {
  font-size: 13px;
}

.blog-featured-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--teal-light);
  color: var(--teal);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}


/* ----------------------------------------------------------------
   FOOTER — legal links consolidated, more breathing room
---------------------------------------------------------------- */
.footer-top {
  /* Give columns slightly more room */
  column-gap: 36px;
}

.footer-bottom {
  /* Legal links sit cleanly in bottom bar only */
  align-items: center;
}


/* ----------------------------------------------------------------
   RESPONSIVE — city regions + tablet grid fixes
---------------------------------------------------------------- */
@media (max-width: 900px) {
  /* City regions stack on tablet */
  .cities-regions {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .city-region .cities-grid {
    /* 4 columns on tablet — fits text better than 3 */
    grid-template-columns: repeat(4, 1fr);
  }

  /* Process cards full width on tablet */
  .process-card--1,
  .process-card--2,
  .process-card--3 {
    border-top-width: 3px;
  }

  /* Featured blog card full width on mobile */
  .blog-card--featured .blog-title { font-size: 16px; }
}

@media (max-width: 560px) {
  /* City region grids: 2 cols on mobile */
  .city-region .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stat card repositions on mobile so it's not cut off */
  .hero-stat-card {
    bottom: 12px;
    left: 12px;
    min-width: 140px;
  }

  .hero-stat-val { font-size: 26px; }
}
