/* ==========================================================================
   HeartandHome — About Sections (HOME-05 + HOME-06)

   HOME-05: "Green Clean" full-bleed photo section (.et_pb_section_3)
            Family photo as background, text overlay with gradient.
            Depends on Divi section index — update if sections reorder.

   HOME-06: CTA section (#hh-about-section)
            Dark sage block with centered text + button.

   Enqueued by: wp-content/themes/heartandhome-child/functions.php
   Handle: hh-about-team (depends on hh-tokens)
   ========================================================================== */


/* ==========================================================================
   HOME-05 — "Green Clean for a Healthier Home" (full-bleed photo)
   Family photo as background, text overlaid on gradient.
   Reference style: testimonial-over-photo (see reference image).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section — full-bleed background image with gradient overlay
   -------------------------------------------------------------------------- */

.et_pb_section_3 {
  position: relative !important;
  background: url('/wp-content/uploads/2026/03/D.ca4c117a2c67a77aabe1-scaled-1.jpg')
              center 38% / cover no-repeat !important;
  min-height: clamp(480px, 51vw, 790px) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Gradient overlay — darker on left for text, fades right to show family */
.et_pb_section_3::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(31, 45, 34, 0.88) 0%,
    rgba(31, 45, 34, 0.72) 35%,
    rgba(31, 45, 34, 0.35) 60%,
    rgba(31, 45, 34, 0.15) 100%
  ) !important;
  z-index: 1;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Row — spans full width, vertically centered
   -------------------------------------------------------------------------- */

.et_pb_section_3 .et_pb_row_5 {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  min-height: clamp(480px, 51vw, 790px) !important;
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 80px var(--hh-padding-section-x) !important;
}

/* --------------------------------------------------------------------------
   Image column — hidden (photo is now the section background)
   -------------------------------------------------------------------------- */

.et_pb_section_3 .et_pb_column_14 {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Text column — left-aligned over the background photo
   -------------------------------------------------------------------------- */

.et_pb_section_3 .et_pb_column_15 {
  width: 55% !important;
  max-width: 600px !important;
  flex: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

/* --------------------------------------------------------------------------
   Heading — large Fraunces, cream/white, left-aligned
   -------------------------------------------------------------------------- */

.et_pb_section_3 .et_pb_heading_0 h1,
.et_pb_section_3 .et_pb_heading_0 .et_pb_module_header {
  font-family: var(--hh-font-heading) !important;
  font-size: 44px !important;
  font-weight: 400 !important;
  letter-spacing: -0.75px !important;
  line-height: 1.15 !important;
  color: var(--hh-text-white) !important;
  text-align: left !important;
  margin: 0 !important;
}

/* --------------------------------------------------------------------------
   Body text — soft white, left-aligned, relaxed
   -------------------------------------------------------------------------- */

.et_pb_section_3 .et_pb_text_9 p {
  font-family: var(--hh-font-body) !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-align: left !important;
  margin: 0 0 4px 0 !important;
}

/* --------------------------------------------------------------------------
   CTA button — About Us link injected via JS
   -------------------------------------------------------------------------- */

.hh-green-clean-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background-color: var(--hh-btn-primary-bg) !important;
  color: var(--hh-text-white) !important;
  border: 2px solid var(--hh-btn-primary-border) !important;
  border-radius: var(--hh-btn-radius) !important;
  padding: var(--hh-btn-padding-y) var(--hh-btn-padding-x) !important;
  font-family: var(--hh-font-body) !important;
  font-size: var(--hh-btn-font-size) !important;
  font-weight: var(--hh-btn-font-weight) !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  margin-top: 8px;
  align-self: flex-start;
}

.hh-green-clean-cta::after {
  content: '\2192';
  font-size: 16px;
}

.hh-green-clean-cta:hover,
.hh-green-clean-cta:focus-visible {
  background-color: var(--hh-btn-primary-hover-bg) !important;
  border-color: var(--hh-btn-primary-hover-border) !important;
  color: var(--hh-text-white) !important;
}

.hh-green-clean-cta:focus-visible {
  outline: 2px solid var(--hh-accent-sage, #5B6F60);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .et_pb_section_3 {
    min-height: clamp(500px, 68vw, 900px) !important;
  }

  .et_pb_section_3 .et_pb_row_5 {
    min-height: clamp(500px, 68vw, 900px) !important;
    padding: 60px 40px !important;
  }

  .et_pb_section_3 .et_pb_column_15 {
    width: 65% !important;
  }

  .et_pb_section_3 .et_pb_heading_0 h1,
  .et_pb_section_3 .et_pb_heading_0 .et_pb_module_header {
    font-size: 36px !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Phone
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .et_pb_section_3 {
    min-height: 500px !important;
    background-position: center 25% !important;
  }

  .et_pb_section_3::before {
    background: linear-gradient(
      to bottom,
      rgba(31, 45, 34, 0.82) 0%,
      rgba(31, 45, 34, 0.65) 40%,
      rgba(31, 45, 34, 0.4) 100%
    ) !important;
  }

  .et_pb_section_3 .et_pb_row_5 {
    min-height: 500px !important;
    padding: 48px 20px !important;
  }

  .et_pb_section_3 .et_pb_column_15 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hh-green-clean-cta {
    width: 100%;
    justify-content: center !important;
    align-self: stretch;
  }

  .et_pb_section_3 .et_pb_heading_0 h1,
  .et_pb_section_3 .et_pb_heading_0 .et_pb_module_header {
    font-size: 28px !important;
  }

  .et_pb_section_3 .et_pb_text_9 p {
    font-size: 15px !important;
  }
}


/* ==========================================================================
   HOME-06 — CTA Section (#hh-about-section) — HIDDEN, replaced by blog section
   ========================================================================== */

.et_pb_section_4 {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Section container — deep sage/forest background for richness and warmth
   Provides visual weight that echoes the dark service card overlays
   -------------------------------------------------------------------------- */

.et_pb_section:has(#hh-about-section) {
  background-color: #1F2D22 !important;
  padding: 80px var(--hh-padding-section-x) !important;
}

/* --------------------------------------------------------------------------
   Row — centered single column
   -------------------------------------------------------------------------- */

#hh-about-section {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 760px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Column reset
   -------------------------------------------------------------------------- */

#hh-about-section .et_pb_column {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Eyebrow label — injected via ::before
   -------------------------------------------------------------------------- */

#hh-about-section .et_pb_text:first-of-type::before {
  content: 'ECO-FRIENDLY CLEANING WITH HEART';
  display: block;
  font-family: var(--hh-font-body) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--hh-hero-badge-icon);
  text-align: center;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Section heading — Fraunces, white, large
   -------------------------------------------------------------------------- */

#hh-about-section h2,
#hh-about-section .et_pb_text h2,
#hh-about-section h3,
#hh-about-section .et_pb_text h3 {
  font-family: var(--hh-font-heading) !important;
  font-size: 38px !important;
  font-weight: 400 !important;
  letter-spacing: -0.75px !important;
  line-height: 1.15 !important;
  color: var(--hh-text-white) !important;
  text-align: center !important;
  margin: 0 !important;
}

/* --------------------------------------------------------------------------
   Body text — soft white, relaxed leading
   -------------------------------------------------------------------------- */

#hh-about-section .et_pb_text p,
#hh-about-section .et_pb_text_inner p {
  font-family: var(--hh-font-body) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: var(--hh-hero-subtitle) !important;
  text-align: center !important;
  margin: 0 !important;
}

/* --------------------------------------------------------------------------
   CTA button — sage pill on dark background
   -------------------------------------------------------------------------- */

.et_pb_section:has(#hh-about-section) .et_pb_button {
  background-color: var(--hh-accent-sage) !important;
  color: var(--hh-text-white) !important;
  border-radius: 24px !important;
  border: 2px solid var(--hh-accent-sage) !important;
  padding: 16px 36px !important;
  font-family: var(--hh-font-body) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.et_pb_section:has(#hh-about-section) .et_pb_button:hover,
.et_pb_section:has(#hh-about-section) .et_pb_button:focus-visible {
  background-color: #4D6355 !important;
  border-color: #4D6355 !important;
}

.et_pb_section:has(#hh-about-section) .et_pb_button:focus-visible {
  outline: 2px solid var(--hh-text-white, #FFFFFF);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet (max-width: 980px)
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .et_pb_section:has(#hh-about-section) {
    padding: 60px 40px !important;
  }

  #hh-about-section h2,
  #hh-about-section .et_pb_text h2,
  #hh-about-section h3,
  #hh-about-section .et_pb_text h3 {
    font-size: 32px !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Phone (max-width: 767px)
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .et_pb_section:has(#hh-about-section) {
    padding: 48px 20px !important;
  }

  #hh-about-section {
    max-width: 100% !important;
  }

  #hh-about-section h2,
  #hh-about-section .et_pb_text h2,
  #hh-about-section h3,
  #hh-about-section .et_pb_text h3 {
    font-size: 26px !important;
  }

  #hh-about-section .et_pb_text p,
  #hh-about-section .et_pb_text_inner p {
    font-size: 15px !important;
  }

  #hh-about-section .et_pb_text:first-of-type::before {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .et_pb_section:has(#hh-about-section) .et_pb_button {
    width: 100%;
    padding: 14px 24px !important;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion — disable transitions for users who prefer it
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hh-green-clean-cta,
  .et_pb_section:has(#hh-about-section) .et_pb_button {
    transition: none !important;
  }
}
