/* =========================================================
   Home Page Styles
   Section 1: Hero
   ========================================================= */

/* =========================
   Hero Section Background
   ========================= */
.home-hero {
  background-image: url("/images/home_img1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #ffffff;
  min-height: 550px;
  display: flex;
  align-items: center;
}

/* Overlay for readability */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Ensure content stays above overlay */
.home-hero .section-inner {
  position: relative;
  z-index: 1;
}

/* =========================
   Hero Grid Layout
   ========================= */
.home-hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

/* Desktop layout */
@media (min-width: 768px) {
  .home-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* =========================
   Left Hero Content
   ========================= */
.home-hero-content h1 {
  color: #ffffff;
  max-width: 620px;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 520px;
  margin-top: 16px;
  color: #e5e7eb;
}

/* =========================
   Right Card
   ========================= */
.home-hero-card {
  background: #ffffff;
  color: var(--text);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .home-hero-card {
    padding: 32px;
  }
}
@media (max-width: 768px) {
  .home-hero-content h1 {
    font-size: clamp(1.9rem, 4vw, 2.25rem);
  }
}

.home-hero-card h3 {
  margin-bottom: 12px;
}

.home-hero-card p {
  margin-bottom: 20px;
  color: var(--muted);
}

/* Button spacing */
.home-hero-card .btn {
  margin-top: 8px;
}

/* =========================
   Headings & Typography
   ========================= */

/* Base heading reset */
h6 {
  margin: 0 0 0.75em;
  font-weight: 650;
  line-height: 1.2;
  color: #ffffff;
}

/* Primary page headline */
h6 {
  font-size: clamp(2.25rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
}

/* =========================================================
   Homepage Feature Sections
   Mobile: tiles
   Desktop: split sections
   ========================================================= */

/* Wrapper */
.home-sections {
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 0px 0;
}

/* Base feature section */
.home-feature {
  border-radius: 18px;
  overflow: hidden;
}

/* Inner layout */
.feature-inner {
  display: flex;
  flex-direction: column;
}

/* =========================
   Feature Content
   ========================= */
.feature-content {
  padding: 28px;
  text-align: center;
}

.feature-content h2 {
  margin-bottom: 12px;
}

.feature-content p {
  margin-bottom: 20px;
  color: var(--muted);
}

/* =========================
   Feature Image
   ========================= */
.feature-image {
  width: 100%;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* =========================
   Desktop Layout
   ========================= */
@media (min-width: 768px) {
  .home-feature {
    padding: 48px 0;
  }

  .feature-inner {
    max-width: 1100px;          /* SAME as .container */
    margin: 0 auto;             /* center align */
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: center;
  }

  .feature-content {
    flex: 1;
    text-align: left;
    padding: 0;
    padding-right: 20px;
  }

  .feature-image {
    flex: 1;
    display: flex;
    align-items: stretch;
    position: relative;
    justify-self: end;
  }

  .feature-image img {
    width: 100%;
    height: auto;
    max-width: 400px;
    object-fit: cover;
    border-radius: 14px;
  }
}

/* =========================
   Individual Section Themes
   ========================= */

/* Annual Water Test */
.feature-water-test {
  background: #e3f2fd;
}

/* Postcard Campaign */
.feature-postcard-campaign {
  background: #f8fafc;
}

/* New Homeowner */
.feature-new-homeowner {
  background: #e3f2fd;
}

/* Lead Management */
.feature-manage-leads {
  background: #f8fafc;
}

/* Questions */
.feature-questions {
  background: #e3f2fd;
}

/* Next Step */
.feature-next-steps {
  background: #f8fafc;
}