/* =============================================================================
   PAGE: HOME / FRONT PAGE
   Figma ref: node 1:2 "OURhaus - Front Page" (1440×8655)
   ============================================================================= */

/* ---- HERO SECTION (HEADER) ---- */
/* Figma ref: node 1:176 (1442×870) */
/* Full viewport-width — breaks out of .site-wrapper; avoid scrollbar gutter vs 100vw */
.home-hero {
  width: 100%;
  max-width: 100vw;
  /* margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw); */
  height: 900px;
  position: relative;
  overflow: hidden;
  background-color: #c8bfb0;
}

/* 4-slide carousel */
.home-hero__slides {
  position: absolute;
  inset: 0;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.home-hero__slide.is-active {
  opacity: 1;
}

.home-hero__slide img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
}

/* Dark overlay on hero image */
.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}

.home-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--container-padding);
  padding-top: var(--nav-height);
}

.home-hero__heading {
  font-family: var(--font-primary) !important;
  font-size: var(--fs-h2) !important;         /* 72px */
  font-weight: var(--fw-light) !important;    /* 300 — Figma: Plus Jakarta Sans Light */
  color: var(--color-white) !important;
  line-height: var(--lh-h1) !important;       /* 80px */
  max-width: 900px;
  margin-bottom: 30px;
}

.home-hero__subtext {
  font-family: var(--font-primary);
  font-size: var(--fs-subtitle);   /* 18px */
  font-weight: var(--fw-regular);
  color: rgba(255,255,255,0.9);
  max-width: 908px;
  margin-bottom: 40px;
  line-height: 24px;
}

/* Scroll indicator */
.home-hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.home-hero__scroll-line {
  width: 1px;
  height: 40px;
  background-color: var(--color-white);
  animation: scrollPulse 1.5s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* Vertical slider dots (right side of hero) */
.home-hero__slider-dots {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.home-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: height 0.3s ease, border-radius 0.3s ease, background-color 0.3s ease;
}

.home-hero__dot.is-active {
  height: 28px;
  border-radius: 4px;
  background-color: var(--color-white);
}

/* ---- SUBSCRIPTION CARD (viewport-fixed: stays put while page scrolls) ---- */
/* Figma ref: node 2:1138 — 360×280, right: 38px; anchored to viewport, not hero */
.hero-subscribe {
  position: fixed;
  right: 38px;
  bottom: 40px;
  width: 360px;
  background-color: var(--color-white);
  padding: 30px;
  z-index: 1010;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.hero-subscribe.is-dismissed {
  display: none;
}

.hero-subscribe__close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hero-subscribe__title {
  font-family: var(--font-primary);
  font-size: var(--fs-h3);        /* 32px Medium — Figma */
  font-weight: var(--fw-medium);
  line-height: var(--lh-h3);      /* 38px */
  color: var(--color-dark-text);
  margin-bottom: 10px;
}

.hero-subscribe__subtitle {
  font-family: var(--font-primary);
  font-size: var(--fs-body);      /* 14px Regular — Figma */
  font-weight: var(--fw-regular);
  line-height: 20px;
  color: var(--color-lighter-black); /* #797979 */
  margin-bottom: 24px;
  max-width: 271px;
}

.hero-subscribe__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* MC4WP markup (plugin output) — scoped to home hero only; do not use .subscribe-section rules here */
.hero-subscribe__form .mc4wp-form-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-subscribe__form .mc4wp-form-fields > p {
  margin: 0;
  display: contents;
}

/* MC4WP list-choice UI: stripped in PHP; :has() fallback if markup uses divs or nested <p> */
.hero-subscribe__form .mc4wp-form p:has(input[name="_mc4wp_lists[]"]),
.hero-subscribe__form .mc4wp-form-fields > label:has(+ p input[name="_mc4wp_lists[]"]) {
  display: none !important;
}

.hero-subscribe__form .mc4wp-form input[type="email"],
.hero-subscribe__form .mc4wp-form input[name="EMAIL"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-dark-text);
  padding: 0 0 10px;
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  color: var(--color-dark-text);
  outline: none;
  line-height: 20px;
}

.hero-subscribe__form .mc4wp-form input[type="email"]::placeholder,
.hero-subscribe__form .mc4wp-form input[name="EMAIL"]::placeholder {
  color: var(--color-lighter-black);
}

.hero-subscribe__input-wrap {
  position: relative;
}

.hero-subscribe__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-dark-text);
  padding: 0 0 10px;
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  color: var(--color-dark-text);
  outline: none;
  line-height: 20px;
}

.hero-subscribe__input::placeholder {
  color: var(--color-lighter-black);
}

/* Figma States 1–3 (nodes 1:796 / 1:808 / 1:820): submit stays brand black — not the section “disabled grey” pattern */
.hero-subscribe__form .mc4wp-form input[type="submit"],
.hero-subscribe__form .mc4wp-form button[type="submit"],
.hero-subscribe__btn {
  /* width: 100%; */
  height: 38px;
  background-color: var(--color-dark-text);
  color: var(--color-white);
  font-family: var(--font-secondary);
  font-size: var(--fs-label);     /* 12px — Figma: Inter Medium uppercase */
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 4px;
  -webkit-appearance: none;
  appearance: none;
}

.hero-subscribe__form .mc4wp-form input[type="submit"]:hover,
.hero-subscribe__form .mc4wp-form button[type="submit"]:hover,
.hero-subscribe__btn:hover {
  background-color: #383838;
}

/* MC4WP inline responses — no alert box; notices/errors = body text; success = green */
.hero-subscribe .mc4wp-response {
  width: 100%;
  text-align: left;
  margin-top: 12px;
}

.hero-subscribe .mc4wp-response .mc4wp-alert,
.hero-subscribe .mc4wp-response .mc4wp-notice,
.hero-subscribe .mc4wp-response .mc4wp-success,
.hero-subscribe .mc4wp-response .mc4wp-error {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.hero-subscribe .mc4wp-response .mc4wp-notice,
.hero-subscribe .mc4wp-response .mc4wp-error {
  color: var(--color-error);
}

.hero-subscribe .mc4wp-response .mc4wp-success {
  color: var(--color-success);
}

.hero-subscribe .mc4wp-response p {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 20px;
  margin: 0;
  text-align: left;
}

.hero-subscribe .mc4wp-response .mc4wp-success p {
  color: var(--color-success);
}

.hero-subscribe .mc4wp-response .mc4wp-notice p,
.hero-subscribe .mc4wp-response .mc4wp-error p {
  color: var(--color-error);
}

.hero-subscribe .mc4wp-response[hidden] {
  display: none !important;
}

/* Post-redirect success state (?subscribed=1) */
.hero-subscribe__success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--color-success);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
}

.hero-subscribe__success-icon {
  color: var(--color-success);
  flex-shrink: 0;
}

.hero-subscribe__success[hidden] {
  display: none;
}

/* Subscribe trigger: 60×60 white square, viewport bottom-right (same anchor as card) */
/* Figma ref: node 2:1638 — left: 1342px, top: 770px in 1440×870 hero */
.hero-subscribe-trigger {
  position: fixed;
  right: 38px;
  bottom: 40px;
  width: 60px;
  height: 60px;
  background-color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
}

.hero-subscribe-trigger:hover {
  background-color: #f5f5f5;
}

.hero-subscribe-trigger.is-hidden {
  display: none;
}

/* ---- PROCESS SECTION ---- */
/* Figma ref: node 1:138 (1240×860) */
.home-process {
  padding: var(--section-padding-y) var(--container-padding);
}

.home-process__break {
  margin-top: 60px;
  padding-left: 0;
  padding-right: 0;
}

/* ---- CONCEPT SECTION (dark) ---- */
/* Figma ref: node 1:108 (1440×1247, dark bg) */
/* Uses .concept-section from sections.css */

/* ---- BENEFITS / THE MODEL SECTION ---- */
/* Figma ref: node 1:80–1:104 (6 cards, 2 rows × 3 cols) */
.home-benefits {
  padding: var(--section-padding-y) var(--container-padding);
}

.home-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
  margin-top: 60px;
}

/* ---- ABOUT / TEAM SECTION ---- */
/* Figma ref: node 1:350 (white bg, team cards) */
.home-team {
  background-color: #F5F6F8;
}

.home-team__content {
  padding: 60px var(--container-padding) var(--section-padding-y);
}

.home-team__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
  margin-top: 60px;
}

.home-team__cards .team-card {
  width: 100%;
  min-width: 0;
}

.home-team__more {
  text-align: center;
  margin-top: 40px;
}

/* ---- PARTNERS SECTION ---- */
/* Figma ref: node 1:432 (1240×786) — align with nav: container-max + side padding */
.home-partners {
  padding: var(--section-padding-y) 0;
}

.home-partners__layout,
.home-partners__banner {
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  box-sizing: border-box;
}

/* Label row 1 col 1; heading + body share row 2 (Figma: body y≈7px below heading start — same grid row) */
.home-partners__layout {
  display: grid;
  grid-template-columns: 687px 1fr;
  column-gap: 15px;
  row-gap: 0;
  align-items: start;
  margin-bottom: 60px;
}

.home-partners__label {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 18px;
}

.home-partners__heading {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}

.home-partners__body {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  /* Figma 1:435 — text block width 498px; y offset vs heading (5716 − 5709) */
  max-width: 498px;
  margin-top: 7px;
}

.partners-intro {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 20px;
  color: var(--color-dark-text);
  margin-bottom: 16px;
}

.home-partners__cta {
  margin-top: 24px;
}

/* EBK logo banner */
.home-partners__banner {
  margin-top: 40px;
}

.partners-banner {
  width: 100%;
  height: 381px;
  overflow: hidden;
  position: relative;
  background-color: #e8e5e0;
}

.partners-banner picture {
  display: block;
  width: 100%;
  height: 100%;
}

.partners-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partners-banner__stats {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.partners-stat-card {
  background-color: var(--color-white);
  padding: 30px 40px;
  text-align: center;
  min-width: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partners-stat-card--logo {
  min-width: 160px;
}

.partners-stat-card__fallback {
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  color: var(--color-dark-text);
}

.partners-stat-card__number {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: var(--fw-semibold);
  color: var(--color-dark-text);
  display: block;
}

.partners-stat-card__label {
  font-family: var(--font-primary);
  font-size: var(--fs-body-sm);
  color: var(--color-muted);
  display: block;
}

/* ---- TESTIMONIALS SECTION ---- */
/* Figma ref: node 1:315 (1240×892) */
.home-testimonials {
  padding: var(--section-padding-y) var(--container-padding);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 320px 320px;
  gap: var(--col-gap);
  margin-top: 60px;
  width: 100%;
  max-width: 100%;
}

.testimonials-grid > * {
  min-width: 0;
}

/* Full-height photo cards (left + right) */
.testimonial-photo {
  overflow: hidden;
  position: relative;
  background-color: #e8e5e0;
}

.testimonial-photo--tall {
  grid-row: span 2;
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-photo__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(179.665deg, rgba(0,0,0,0) 28%, rgba(0,0,0,0.15) 52%);
  pointer-events: none;
}

.testimonial-photo__overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  color: #fff;
}

.testimonial-photo__quote {
  font-family: var(--font-primary);
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-regular);
  line-height: 24px;
  color: #fff;
  margin-bottom: 20px;
}

.testimonial-photo__name {
  font-family: var(--font-primary);
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-bold);
  line-height: 24px;
  color: #fff;
}

.testimonial-photo__location {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 20px;
  text-transform: uppercase;
  color: #fff;
}

.testimonial-text-card {
  background-color: var(--color-card-bg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.testimonial-text-card__quote-mark {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: var(--fw-bold);
  color: var(--color-dark-text);
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-text-card__body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  line-height: 20px;
  color: var(--color-dark-text);
  margin-bottom: 20px;
}

.testimonial-text-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.testimonial-text-card__author {
  font-family: var(--font-primary);
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-bold);
  line-height: 24px;
  color: var(--color-dark-text);
}

.testimonial-text-card__location {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 20px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.testimonial-text-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ---- GET STARTED SECTION ---- */
/* Figma ref: node 1:299 (1240×1469) */
.home-get-started {
  padding: var(--section-padding-y) var(--container-padding);
}

/* =============================================================================
   MOBILE — max-width 768px
   Figma ref: node 2:56 "OURhaus - Front Page (Mobile)" (402px)
   ============================================================================= */
@media (max-width: 768px) {

  /* ---- HERO ---- */
  .home-hero {
    height: 874px;
  }

  .home-hero__content {
    padding: 0 21px;
    padding-top: var(--nav-height);
    justify-content: flex-end;
    padding-bottom: 120px;
    text-align: center;
  }

  .home-hero__heading {
    font-size: 48px !important;
    line-height: 54px !important;
    margin-bottom: 20px;
  }

  .home-hero__subtext {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 30px;
  }

  .btn--outline {
    border-width: 2px;
  }

  /* Hide vertical slider dots on mobile */
  .home-hero__slider-dots {
    display: none;
  }

  /* Subscribe trigger: fixed to viewport so it persists on scroll */
  .hero-subscribe-trigger {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 99990;
  }

  /* Subscribe card: fixed modal on mobile (no translate — iOS Safari breaks input focus) */
  .hero-subscribe {
    position: fixed;
    top: 12vh;
    bottom: auto;
    left: 20px;
    right: 20px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 40px);
    max-width: 360px;
    transform: none;
    z-index: 100000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  }

  /* Backdrop: on body so it never shares a stacking context with the form */
  body.subscribe-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    pointer-events: none;
  }

  /* Lock body scroll when modal is open */
  body.subscribe-open {
    overflow: hidden;
  }

  /* ---- PROCESS ---- */
  .home-process {
    padding: 60px 20px;
  }

  /* ---- BENEFITS ---- */
  .home-benefits {
    padding: 60px 20px;
  }

  .home-benefits__grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  /* ---- TEAM (match .home-benefits mobile padding) ---- */
  .home-team__content {
    padding: 60px 20px;
  }

  .home-team__cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  /* ---- PARTNERS ---- */
  .home-partners {
    padding: 60px 20px;
  }

  .home-partners__layout,
  .home-partners__banner {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .home-partners__layout {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .home-partners__label {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .home-partners__heading {
    grid-column: 1;
    grid-row: 2;
  }

  .home-partners__body {
    grid-column: 1;
    grid-row: 3;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
  }

  .partners-banner__stats {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: 24px;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: calc(100% - 40px);
    max-width: 320px;
  }

  .home-partners__banner .partners-banner {
    min-height: 520px;
    height: auto;
  }

  .partners-stat-card {
    min-width: auto;
    width: 100%;
    max-width: 320px;
    padding: 24px 20px;
  }

  .partners-stat-card--logo {
    min-width: auto;
  }

  .partners-stat-card__number {
    font-size: 24px;
  }

  .home-partners__label,
  .home-partners__heading,
  .partners-intro,
  .home-partners__body .section-subtitle {
    text-align: center;
  }

  .home-partners__cta {
    margin-top: 16px;
  }

  .home-get-started {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* ---- TESTIMONIALS ---- */
  .home-testimonials {
    padding: 60px 20px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: 100%;
  }

  .testimonial-photo--tall {
    grid-row: span 1;
    height: 400px;
  }

  .testimonial-text-card[style] {
    grid-column: auto !important;
  }

  /* Figma mobile order: woman-photo → text → text → man-photo */
  .testimonials-grid > :nth-child(3) { order: 4; }
  .testimonials-grid > :nth-child(4) { order: 3; }

}
