/* ==========================================================================
   HeartandHome — Services Page (Full Redesign)
   Target: body.page-id-33
   Design source: Paper "Services - HeartandHome" artboard (2D-0)

   Hides all Divi-generated post sections and styles injected content:
   1. General Services — heading + 3x2 card grid
   2. Info Columns — What's Included / How it Works / What to Expect
   3. FAQ — accordion groups

   Fonts: Libre Caslon Display (headings), Nunito Sans (body)
   Enqueued by: functions.php — handle: hh-services-hero
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page background override — design uses white, not cream
   -------------------------------------------------------------------------- */

body.page-id-33,
body.page-id-33 #page-container {
  background-color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   Hide all Divi post-content sections (nav + footer are in header/footer
   template layers and are unaffected)
   -------------------------------------------------------------------------- */

body.page-id-33 .et-l--post .et_pb_section {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Wrapper — full-width column layout
   -------------------------------------------------------------------------- */

.hh-sp {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #FFFFFF;
}

/* ==========================================================================
   0. Hero Section — image left, content right
   Design source: pleaseread.pen — node Fn8OK
   ========================================================================== */

.hh-sp-hero {
  display: flex;
  width: 100%;
  height: 700px;
  background: #FFFFFF;
  overflow: hidden;
  position: relative;
}

/* --- Left: Kitchen image, cover-fill --- */
.hh-sp-hero-image {
  width: 43%;
  min-width: 0;
  height: 100%;
  flex-shrink: 0;
  background: url('/wp-content/uploads/2026/03/services-hero-kitchen.jpg') center center / cover no-repeat;
}

/* --- Green accent divider bar --- */
.hh-sp-hero-accent {
  width: 6px;
  flex-shrink: 0;
  background: #4A7C59;
}

/* --- Right: Content side --- */
.hh-sp-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 56px;
  min-width: 0;
}

/* --- Eyebrow label --- */
.hh-sp-hero-eyebrow {
  font-family: var(--hh-font-body), system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #4A7C59;
  text-transform: uppercase;
}

/* --- Main heading --- */
.hh-sp-hero-heading {
  font-family: var(--hh-font-heading), Georgia, serif;
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  color: #1a1a1a;
  margin: 0;
}

/* --- Subtext paragraph --- */
.hh-sp-hero-subtext {
  font-family: var(--hh-font-body), system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #555555;
  margin: 0;
  max-width: 520px;
}

/* --- 3×2 Service tag grid --- */
.hh-sp-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hh-sp-hero-grid-row {
  display: flex;
  gap: 16px;
}

.hh-sp-hero-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 14px 16px;
  background: #F5F3EF;
  border-radius: 6px;
}

.hh-sp-hero-tag svg {
  flex-shrink: 0;
  color: #4A7C59;
}

.hh-sp-hero-tag span {
  font-family: var(--hh-font-body), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #1a1a1a;
}

/* --- CTA button --- */
.hh-sp-hero-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  gap: 10px;
  padding: 14px 28px;
  background: #2E3C2E;
  color: #EDE6DA;
  border-radius: 6px;
  font-family: var(--hh-font-body), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.hh-sp-hero-cta:hover,
.hh-sp-hero-cta:focus-visible {
  background: #3D4F3D;
  color: #EDE6DA;
  text-decoration: none;
}

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

.hh-sp-hero-cta span {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.hh-sp-hero-cta:hover span,
.hh-sp-hero-cta:focus-visible span {
  transform: translateX(3px);
}


/* ==========================================================================
   1. Services Grid — 2×2 cards with overlapping icons
   Design source: user screenshot — "Our Services" 4-card layout
   ========================================================================== */

.hh-sp-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 80px 100px 60px;
  gap: 48px;
  background: #FFFFFF;
}

.hh-sp-title {
  font-family: var(--hh-font-heading), Georgia, serif !important;
  font-size: clamp(28px, 3vw, 36px) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  color: #1a1a1a !important;
  margin: 0 !important;
  text-align: center;
}

.hh-sp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 1100px;
}

/* --- Card: link wrapper with green border + icon overlap --- */
.hh-sp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 40px 32px 32px;
  gap: 12px;
  background: #F5F3EF;
  border: 2px solid #7F9B81;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* --- Hover: lift + deeper shadow + accent border --- */
.hh-sp-card:hover,
.hh-sp-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(79, 124, 89, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #4A7C59;
}

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

/* --- Icon circle: overlaps top-left of card --- */
.hh-sp-card-icon {
  position: absolute;
  top: -22px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #7F9B81;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A7C59;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hh-sp-card:hover .hh-sp-card-icon,
.hh-sp-card:focus-visible .hh-sp-card-icon {
  background: #4A7C59;
  border-color: #4A7C59;
  color: #FFFFFF;
}

.hh-sp-card h3 {
  font-family: var(--hh-font-heading), Georgia, serif !important;
  font-size: clamp(22px, 2.2vw, 28px) !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  color: #2C2A27 !important;
  margin: 0 !important;
  transition: color 0.3s ease;
}

.hh-sp-card:hover h3,
.hh-sp-card:focus-visible h3 {
  color: #1F2D22 !important;
}

.hh-sp-card p {
  font-family: var(--hh-font-body), system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: #54514B !important;
  margin: 0 !important;
}

.hh-sp-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--hh-font-body), system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #7D6155 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.hh-sp-card:hover .hh-sp-card-cta,
.hh-sp-card:focus-visible .hh-sp-card-cta {
  color: #755852 !important;
}

.hh-sp-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7D6155;
  color: #FFFFFF;
  font-size: 12px;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hh-sp-card:hover .hh-sp-card-arrow,
.hh-sp-card:focus-visible .hh-sp-card-arrow {
  background: #755852;
  transform: translate(2px, -2px);
}

/* ==========================================================================
   2. Info Columns Section
   ========================================================================== */

.hh-sp-info {
  display: flex;
  width: 100%;
  padding: 60px 100px;
  gap: 40px;
  background: #FFFFFF;
}

.hh-sp-info-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  gap: 14px;
}

.hh-sp-info-col h3 {
  font-family: var(--hh-font-heading), Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 30px !important;
  color: #2C2A27 !important;
  margin: 0 !important;
}

.hh-sp-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hh-sp-bullet {
  font-family: var(--hh-font-body), system-ui, sans-serif !important;
  font-size: 15px;
  line-height: 24px;
  color: #7F9B81;
  flex-shrink: 0;
}

.hh-sp-info-item span:last-child {
  font-family: var(--hh-font-body), system-ui, sans-serif !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: #54514B;
}

/* ==========================================================================
   3. FAQ Section
   ========================================================================== */

.hh-sp-faq {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 80px 100px 20px;
  gap: 24px;
  background: #F9F4F1;
}

.hh-sp-faq h2 {
  font-family: var(--hh-font-heading), Georgia, serif !important;
  font-size: 36px !important;
  font-weight: 400 !important;
  line-height: 44px !important;
  color: #2C2A27 !important;
  margin: 0 !important;
}

.hh-sp-faq-sub {
  font-family: var(--hh-font-heading), Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 30px !important;
  color: #54514B !important;
  margin: 0 !important;
}

.hh-sp-faq-intro {
  font-family: var(--hh-font-body), system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  color: #54514B !important;
  max-width: 800px;
  margin: 0 !important;
}

.hh-sp-faq-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hh-sp-faq-group:last-child {
  padding-bottom: 40px;
}

.hh-sp-faq-item {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-bottom: 1px solid #D8D2CC;
}

.hh-sp-faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.hh-sp-faq-header:hover,
.hh-sp-faq-header:focus-visible {
  opacity: 0.7;
}

.hh-sp-faq-header:focus-visible {
  outline: 2px solid var(--hh-accent-sage, #5B6F60);
  outline-offset: 2px;
}

.hh-sp-faq-q {
  font-family: var(--hh-font-body), system-ui, sans-serif !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #2C2A27;
}

.hh-sp-faq-plus {
  font-family: var(--hh-font-body), system-ui, sans-serif !important;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  color: #7F9B81;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hh-sp-faq-open .hh-sp-faq-plus {
  transform: rotate(45deg);
}

.hh-sp-faq-a {
  font-family: var(--hh-font-body), system-ui, sans-serif !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: #54514B;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 0 0 0;
}

.hh-sp-faq-open .hh-sp-faq-a {
  padding: 0 0 20px 0;
}

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

@media (max-width: 980px) {
  /* Hero: stack vertically on tablet */
  .hh-sp-hero {
    flex-direction: column;
    height: auto;
  }
  .hh-sp-hero-image {
    width: 100%;
    height: 360px;
  }
  .hh-sp-hero-accent {
    width: 100%;
    height: 6px;
  }
  .hh-sp-hero-content {
    padding: 48px;
  }

  .hh-sp-services {
    padding: 60px 48px 40px;
    gap: 36px;
  }

  .hh-sp-grid {
    gap: 32px;
  }

  .hh-sp-info {
    flex-direction: column;
    padding: 48px;
    gap: 32px;
  }

  .hh-sp-faq {
    padding: 60px 48px 20px;
  }
}

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

@media (max-width: 767px) {
  /* Hero: tighter spacing on phone */
  .hh-sp-hero-image {
    height: 280px;
  }
  .hh-sp-hero-content {
    padding: 32px 24px;
    gap: 24px;
  }
  .hh-sp-hero-heading {
    font-size: 26px;
  }
  .hh-sp-hero-grid-row {
    flex-direction: column;
  }
  .hh-sp-hero-cta {
    align-self: center;
  }

  .hh-sp-services {
    padding: 48px 24px 32px;
    gap: 32px;
  }

  .hh-sp-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hh-sp-info {
    padding: 36px 24px;
    gap: 28px;
  }

  .hh-sp-faq {
    padding: 48px 24px 16px;
  }

  .hh-sp-faq h2 {
    font-size: 28px !important;
  }

  .hh-sp-faq-sub {
    font-size: 18px !important;
  }
}

/* ==========================================================================
   Reduced Motion — disable transitions for users who prefer it
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hh-sp-hero-cta,
  .hh-sp-hero-cta span,
  .hh-sp-card,
  .hh-sp-card-icon,
  .hh-sp-card h3,
  .hh-sp-card-cta,
  .hh-sp-card-arrow,
  .hh-sp-faq-header,
  .hh-sp-faq-plus,
  .hh-sp-faq-a {
    transition: none !important;
    animation: none !important;
  }
}
