/* ============================================================
   FACILITY HUB OVERVIEW PAGE — facility_hub_page.css
   app/views/pages/facility_hub_overview.html.erb

   This page shares the same visual system as the homepage: the Hero
   and Final CTA sections reuse home.css's `.hp-hero` / `.hp-final-cta`
   classes directly (and the sticky CTA bar reuses `.hp-sticky-cta` +
   the sticky-cta Stimulus controller unchanged), so all `--hp-*`
   custom properties, `.hp-container`, `.hp-btn`, `.hp-trust-badge`,
   and `.hp-icon-cell` are reused as-is — not redefined here.

   Everything below is unique to this page's own sections (How It Works,
   What You Get, Included With Your Account, Multi-Facility callout, FAQ).
   Classes prefixed `fhp-`.
   ============================================================ */

/* ============================================================
   HERO OVERRIDE
   This page's Hero has no side-by-side image (unlike the homepage's,
   which pairs .hp-hero__content with .hp-hero__media) — .hp-hero__grid
   is a flex row that otherwise left-aligns a single child, so it needs
   its own justify-content to stay centered. The content column can
   also use more of the freed-up width than home.css's 560px cap.
   ============================================================ */
.fhp-hero__grid {
  justify-content: center;
}

.fhp-hero__content {
  max-width: 720px;
}


/* ============================================================
   SECTION: HOW IT WORKS
   ============================================================ */
.fhp-steps {
  padding-block: var(--hp-space-96);
  background-color: var(--hp-white);
  text-align: center;
}

.fhp-steps__heading {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--hp-text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--hp-space-48);
}

.fhp-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hp-space-24);
}

.fhp-step {
  position: relative;
  background: var(--hp-bg-subtle);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  padding: var(--hp-space-32);
  text-align: left;
}

.fhp-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hp-gradient-btn);
  color: var(--hp-white);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: var(--hp-space-16);
}

.fhp-step__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hp-text);
  margin-bottom: var(--hp-space-8);
}

.fhp-step__text {
  font-size: 0.9375rem;
  color: var(--hp-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Step 2 (Verify) is the human-gated, non-instant step — visually set
   apart with a dashed border and muted badge, same treatment pattern
   home.css uses for "Coming Soon" (not-yet-available) features. */
.fhp-step--verify {
  background: var(--hp-white);
  border-style: dashed;
  border-color: rgba(100, 116, 139, 0.35);
}

.fhp-step--verify .fhp-step__number {
  background: var(--hp-text-muted);
}

.fhp-step__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hp-text-muted);
  background: var(--hp-bg-subtle);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-pill);
  padding: 3px 10px;
  margin-bottom: var(--hp-space-12);
}


/* ============================================================
   SECTION: WHAT YOU GET
   ============================================================ */
.fhp-features {
  padding-block: var(--hp-space-96);
  background-color: var(--hp-bg-subtle);
  text-align: center;
}

.fhp-features__heading {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--hp-text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin: 0 auto var(--hp-space-48);
}

.fhp-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hp-space-24);
}

.fhp-feature-card {
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  padding: var(--hp-space-32) var(--hp-space-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--hp-shadow-sm);
  transition:
    box-shadow var(--hp-transition),
    transform var(--hp-transition);
}

.fhp-feature-card:hover {
  box-shadow: var(--hp-shadow-hover);
  transform: translateY(-4px);
}

.fhp-feature-card .hp-icon-cell {
  margin-bottom: var(--hp-space-16);
}

.fhp-feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hp-text);
  line-height: 1.3;
  margin-bottom: var(--hp-space-8);
}

.fhp-feature-card__text {
  font-size: 0.875rem;
  color: var(--hp-text-muted);
  line-height: 1.6;
  margin: 0;
}


/* ============================================================
   SECTION: INCLUDED WITH YOUR ACCOUNT
   ============================================================ */
.fhp-included {
  padding-block: var(--hp-space-96);
  background-color: var(--hp-white);
  text-align: center;
}

.fhp-included__heading {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--hp-text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--hp-space-24);
}

.fhp-included__text {
  font-size: 1.0625rem;
  color: var(--hp-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--hp-space-16);
}

.fhp-included__text:last-child {
  margin-bottom: 0;
}


/* ============================================================
   SECTION: MULTI-FACILITY ORGANIZATIONS (secondary callout)
   ============================================================ */
.fhp-org-callout-wrap {
  padding-bottom: var(--hp-space-96);
  background-color: var(--hp-white);
}

.fhp-org-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hp-space-24);
  flex-wrap: wrap;
  background: var(--hp-bg-subtle);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  padding: var(--hp-space-32);
}

.fhp-org-callout__body {
  display: flex;
  align-items: flex-start;
  gap: var(--hp-space-16);
  flex: 1 1 360px;
}

.fhp-org-callout__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--hp-text);
  margin-bottom: var(--hp-space-4);
}

.fhp-org-callout__text {
  font-size: 0.9375rem;
  color: var(--hp-text-muted);
  line-height: 1.6;
  margin: 0;
}


/* ============================================================
   SECTION: FAQ (accordion)
   ============================================================ */
.fhp-faq {
  padding-block: var(--hp-space-96);
  background-color: var(--hp-bg-subtle);
}

.fhp-faq__heading {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--hp-text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: var(--hp-space-48);
}

.fhp-faq__list {
  max-width: 760px;
  margin-inline: auto;
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--hp-shadow-sm);
  overflow: hidden;
}

.fhp-faq__item {
  border-bottom: 1px solid var(--hp-border);
}

.fhp-faq__item:last-child {
  border-bottom: 0;
}

.fhp-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hp-space-16);
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--hp-font-primary);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--hp-text);
  padding: var(--hp-space-24);
  cursor: pointer;
  transition: color var(--hp-transition);
}

.fhp-faq__trigger:hover {
  color: var(--hp-primary-mid);
}

.fhp-faq__trigger:focus-visible {
  outline: 2px solid var(--hp-primary-mid);
  outline-offset: -2px;
}

.fhp-faq__icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--hp-text-muted);
  transition: transform var(--hp-transition);
}

.fhp-faq__trigger[aria-expanded="true"] .fhp-faq__icon {
  transform: rotate(45deg);
  color: var(--hp-primary-mid);
}

.fhp-faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.fhp-faq__panel--open {
  max-height: 240px;
}

.fhp-faq__answer {
  font-size: 0.9375rem;
  color: var(--hp-text-secondary);
  line-height: 1.7;
  margin: 0;
  padding: 0 var(--hp-space-24) var(--hp-space-24);
}


/* ============================================================
   RESPONSIVE — TABLET (768px to 1199px)
   ============================================================ */
@media screen and (max-width: 1199px) {

  .fhp-steps__grid {
    grid-template-columns: 1fr;
    gap: var(--hp-space-16);
  }

  .fhp-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* ============================================================
   RESPONSIVE — MOBILE (below 768px)
   ============================================================ */
@media screen and (max-width: 767px) {

  .fhp-steps,
  .fhp-features,
  .fhp-included,
  .fhp-faq {
    padding-block: var(--hp-space-64);
  }

  .fhp-org-callout-wrap {
    padding-bottom: var(--hp-space-64);
  }

  .fhp-features__grid {
    grid-template-columns: 1fr;
  }

  .fhp-org-callout {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .fhp-org-callout .hp-btn {
    width: 100%;
  }

  .fhp-faq__trigger {
    padding: var(--hp-space-16);
  }

  .fhp-faq__answer {
    padding: 0 var(--hp-space-16) var(--hp-space-16);
  }

}
