/* ========================================================================
   MS5 HRSN — Cream + Amber + Navy
   Distinct from Wellness (which is pure navy + silver).
   ======================================================================== */

:root {
  --hrsn-navy:    #0b1530;
  --hrsn-deep:    #060c1f;
  --hrsn-amber:   #d97706;
  --hrsn-amber-l: #f59e0b;
  --hrsn-cream:   #fefaf3;
  --hrsn-warm-bg: #fff6e6;
  --hrsn-paper:   #fffdf8;
  --hrsn-ink:     #1a1a17;
  --hrsn-ink-soft:#5a544c;
}

body.ms5-hrsn {
  --ms5-cut: var(--hrsn-cream);    /* page-bg color used by the wordmark see-through cut */
  background: var(--hrsn-cream);
  color: var(--hrsn-ink);
}

body.ms5-hrsn h1,
body.ms5-hrsn h2,
body.ms5-hrsn h3 { color: var(--hrsn-navy); }
body.ms5-hrsn p { color: var(--hrsn-ink-soft); }
body.ms5-hrsn .eyebrow { color: var(--hrsn-amber); }
body.ms5-hrsn .eyebrow::before { background: var(--hrsn-amber); }

/* Light nav for HRSN */
body.ms5-hrsn .nav { --nav-text: var(--hrsn-navy); }
body.ms5-hrsn .nav.scrolled {
  background: rgba(254, 250, 243, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
body.ms5-hrsn .nav-links a { color: var(--hrsn-ink-soft); }
body.ms5-hrsn .nav-links a:hover { color: var(--hrsn-navy); }
body.ms5-hrsn .nav-links a::after { background: var(--hrsn-amber); }
body.ms5-hrsn .nav .btn-light {
  background: var(--hrsn-navy);
  color: white;
  border-color: var(--hrsn-navy);
}
body.ms5-hrsn .nav .btn-light:hover { background: #1a2547; }
body.ms5-hrsn .nav-toggle span { background: var(--hrsn-navy); }

/* HRSN logo in nav */
.hrsn-brand {
  display: inline-flex;
  align-items: center;
  height: 44px;
}
.hrsn-brand img { height: 100%; width: auto; display: block; }

/* ===== Hero ===== */
.h-hero {
  position: relative;
  padding: 9rem 0 5rem;
  background:
    radial-gradient(ellipse 70% 60% at 90% 20%, rgba(217, 119, 6, 0.12), transparent 60%),
    linear-gradient(180deg, var(--hrsn-cream), var(--hrsn-warm-bg));
  overflow: hidden;
}
.h-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(11, 21, 48, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}

.h-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .h-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.h-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 1rem 0 1.5rem;
  color: var(--hrsn-navy);
}
.h-hero h1 .amber { color: var(--hrsn-amber); }

.h-hero p {
  font-size: 1.1rem;
  color: var(--hrsn-ink-soft);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.h-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.h-hero .btn-primary {
  background: var(--hrsn-navy);
  color: white;
}
.h-hero .btn-primary:hover { background: #1a2547; }
.h-hero .btn-ghost {
  background: transparent;
  color: var(--hrsn-navy);
  border: 1.5px solid rgba(11, 21, 48, 0.18);
}
.h-hero .btn-ghost:hover {
  background: white;
  border-color: var(--hrsn-amber);
}

/* Hero symbol — stylized house illustration */
.h-hero-symbol {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(217, 119, 6, 0.12), transparent 60%),
    linear-gradient(135deg, var(--hrsn-warm-bg), white);
  box-shadow: 0 30px 80px rgba(11, 21, 48, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.18);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease-out);
}
.h-hero-symbol:hover { transform: translateY(-4px); }
.h-hero-symbol svg {
  width: 76%;
  height: 76%;
  color: var(--hrsn-navy);
  animation: hrsn-float 6s ease-in-out infinite;
}
.h-hero-symbol::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 21, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 21, 48, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
@keyframes hrsn-float {
  0%, 100% { transform: translateY(-3px); }
  50%      { transform: translateY(3px); }
}

/* Floating stat card overlapping the hero image */
.h-hero-stat {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  background: white;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(11, 21, 48, 0.18);
  border-left: 4px solid var(--hrsn-amber);
}
.h-hero-stat .label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hrsn-ink-soft);
  font-weight: 700;
  margin-bottom: 4px;
}
.h-hero-stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--hrsn-navy);
  line-height: 1;
}
.h-hero-stat .sub {
  font-size: 0.85rem;
  color: var(--hrsn-ink-soft);
  margin-top: 6px;
  line-height: 1.4;
}

/* ===== Eligibility callout ===== */
.h-eligibility {
  padding: 4rem 0 0;
  background: var(--hrsn-cream);
}
.h-elig-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: 0 12px 40px rgba(11, 21, 48, 0.06);
  border: 1px solid rgba(11, 21, 48, 0.05);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 720px) {
  .h-elig-card { grid-template-columns: 1fr; gap: 1rem; padding: 1.75rem; }
}
.h-elig-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hrsn-amber), var(--hrsn-amber-l));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.h-elig-icon svg { width: 28px; height: 28px; stroke: white; stroke-width: 2; fill: none; }
.h-elig-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--hrsn-navy);
}
.h-elig-card p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--hrsn-ink-soft);
  line-height: 1.55;
}

/* ===== Services ===== */
.h-services {
  padding: 6rem 0;
  background: var(--hrsn-cream);
}
.h-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 3rem;
}
@media (max-width: 820px) {
  .h-services-grid { grid-template-columns: 1fr; }
}
.h-svc {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(11, 21, 48, 0.06);
  border: 1px solid rgba(11, 21, 48, 0.05);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.h-svc:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(11, 21, 48, 0.12);
}
/* Service-card symbol illustration (replaces hero photo) */
.h-svc-symbol {
  aspect-ratio: 16 / 9;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 30%, rgba(217, 119, 6, 0.10), transparent 60%),
    linear-gradient(135deg, var(--hrsn-warm-bg) 0%, white 100%);
  border-bottom: 1px solid rgba(11, 21, 48, 0.05);
  overflow: hidden;
}
.h-svc-symbol::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 21, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 21, 48, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
}
.h-svc-symbol svg {
  width: 70%;
  height: 70%;
  color: var(--hrsn-navy);
  position: relative;
  z-index: 1;
  transition: transform 0.5s var(--ease-out);
}
.h-svc:hover .h-svc-symbol svg { transform: scale(1.04); }
.h-svc-body { padding: 2rem 2rem 2.25rem; }
.h-svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--hrsn-navy), var(--hrsn-amber));
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.h-svc-icon svg { width: 22px; height: 22px; stroke: white; stroke-width: 1.8; fill: none; }
.h-svc h3 { font-size: 1.4rem; margin-bottom: 0.6rem; color: var(--hrsn-navy); }
.h-svc p { color: var(--hrsn-ink-soft); }

/* ===== Process ===== */
.h-process {
  padding: 5rem 0;
  background: var(--hrsn-paper);
}
.h-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 820px) {
  .h-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .h-steps { grid-template-columns: 1fr; }
}
.h-step {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(11, 21, 48, 0.06);
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.h-step:hover {
  border-color: var(--hrsn-amber);
  transform: translateY(-4px);
}
.h-step .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hrsn-amber);
  color: white;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.h-step h4 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--hrsn-navy); }
.h-step p { font-size: 0.92rem; color: var(--hrsn-ink-soft); line-height: 1.55; }

/* ===== Requirements (dark navy) ===== */
.h-reqs {
  padding: 6rem 0;
  background: var(--hrsn-navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.h-reqs::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(217, 119, 6, 0.18), transparent 60%);
}
.h-reqs h2 { color: white; }
.h-reqs p { color: rgba(255, 255, 255, 0.75); }
.h-reqs .eyebrow { color: var(--hrsn-amber-l); }
.h-reqs .eyebrow::before { background: var(--hrsn-amber-l); }

.h-reqs-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .h-reqs-wrap { grid-template-columns: 1fr; gap: 2rem; }
}
.h-checklist { list-style: none; }
.h-checklist li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.h-checklist li:last-child { border-bottom: none; }
.h-checklist .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hrsn-amber);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.h-checklist .check svg { width: 14px; height: 14px; stroke: white; stroke-width: 3; fill: none; }
.h-checklist h4 { font-size: 1.05rem; color: white; margin-bottom: 4px; }
.h-checklist p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); margin: 0; }
.h-checklist a { color: var(--hrsn-amber-l); text-decoration: underline; text-decoration-color: rgba(245, 158, 11, 0.5); }
.h-checklist a:hover { color: white; }

.h-downloads {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.h-downloads h3 { color: white; font-size: 1.2rem; margin-bottom: 1rem; }
.h-dl-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.h-dl-link:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--hrsn-amber);
  transform: translateX(4px);
}
.h-dl-link svg { width: 20px; height: 20px; stroke: var(--hrsn-amber-l); fill: none; stroke-width: 1.8; }
.h-dl-link .meta {
  margin-left: auto;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
}

/* ===== Contact form ===== */
.h-contact {
  padding: 6rem 0;
  background: var(--hrsn-cream);
}
.h-contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .h-contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
}
.h-contact-info h2 { margin-bottom: 1rem; }
.h-info-list {
  list-style: none;
  margin-top: 2rem;
}
.h-info-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(11, 21, 48, 0.1);
  display: flex;
  gap: 1rem;
}
.h-info-list svg { width: 20px; height: 20px; stroke: var(--hrsn-amber); stroke-width: 1.8; fill: none; flex-shrink: 0; margin-top: 2px; }
.h-info-list strong { color: var(--hrsn-navy); display: block; margin-bottom: 2px; }

.h-form {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 21, 48, 0.06);
  box-shadow: 0 16px 48px rgba(11, 21, 48, 0.08);
  border-top: 4px solid var(--hrsn-amber);
}
.h-form h3 { margin-bottom: 0.4rem; color: var(--hrsn-navy); }
.h-form .lead { color: var(--hrsn-ink-soft); font-size: 0.95rem; margin-bottom: 1.5rem; }
.h-form .btn-primary {
  background: var(--hrsn-navy);
  color: white;
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 16px;
  font-size: 1rem;
}
.h-form .btn-primary:hover { background: #1a2547; }
.h-form .btn-primary:disabled { opacity: 0.6; cursor: wait; }
.h-form .fineprint {
  font-size: 0.8rem;
  color: var(--hrsn-ink-soft);
  margin-top: 1rem;
  line-height: 1.5;
}

/* Form fields use main.css base — accent override */
body.ms5-hrsn .form-field input:focus,
body.ms5-hrsn .form-field textarea:focus,
body.ms5-hrsn .form-field select:focus {
  border-color: var(--hrsn-amber);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}
