/* ─────────────────────────────────────────
   Health1Pro — Shared Stylesheet
   Warm editorial. Navy + Red + Off-white.
   Lora serif (headlines) · Source Sans (body)
───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1E2B4A;
  --navy-mid:   #2A3B60;
  --navy-deep:  #131D33;
  --red:        #C0272D;
  --red-dark:   #9B1E23;
  --red-light:  #FAEAEA;
  --warm-white: #FAF8F5;
  --off-white:  #F2F0EC;
  --white:      #FFFFFF;
  --text-dark:  #1E2B4A;
  --text-mid:   #3D4F72;
  --text-muted: #7A8BAA;
  --border:     #E2DDD8;
  --border-mid: #C8C3BC;
  --gold:       #C9A84C;
  --gold-light: #FBF4E3;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── ANNOUNCEMENT BANNER ─── */
.banner {
  background: var(--navy);
  padding: 0.6rem 1.5rem;
  display: flex; align-items: center;
  justify-content: center;
  gap: 1rem; position: relative;
}
.banner-text {
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-align: center; letter-spacing: 0.02em;
}
.banner-text strong { color: white; }
.banner-link {
  font-size: 0.82rem; color: #F2979A;
  text-decoration: none; font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid rgba(242,151,154,0.4);
  transition: border-color 0.2s;
}
.banner-link:hover { border-color: #F2979A; }
.banner-close {
  position: absolute; right: 1.25rem;
  background: none; border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem; cursor: pointer;
  line-height: 1; padding: 0; transition: color 0.2s;
}
.banner-close:hover { color: rgba(255,255,255,0.8); }

/* ─── NAVIGATION ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,245,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(30,43,74,0.08); }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links {
  display: flex; align-items: center;
  list-style: none; gap: 0.1rem;
}
.nav-links a {
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-mid); text-decoration: none;
  padding: 0.45rem 0.8rem; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); background: var(--off-white); }
.nav-links a.active { font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a svg { width: 12px; height: 12px; opacity: 0.5; transition: transform 0.2s; }
.nav-dropdown:hover > a svg { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 0.4rem; min-width: 210px;
  box-shadow: 0 8px 32px rgba(30,43,74,0.1);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.18s ease;
}
.nav-dropdown:hover .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.6rem 0.75rem; border-radius: 7px;
  font-size: 0.87rem; color: var(--text-mid);
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.dropdown-panel a:hover { background: var(--off-white); color: var(--navy); }
.dd-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--red-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta {
  background: var(--red); color: white;
  padding: 0.55rem 1.25rem; border-radius: 6px;
  font-size: 0.87rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(192,39,45,0.25);
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--warm-white); z-index: 99;
  overflow-y: auto; padding: 1.5rem;
  flex-direction: column; gap: 0.35rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem; font-weight: 500; color: var(--text-mid);
  text-decoration: none; padding: 0.8rem 1rem; border-radius: 8px;
}
.mobile-menu a:hover { background: var(--off-white); color: var(--navy); }
.mobile-section {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 1rem 1rem 0.3rem;
}
.mobile-cta-btn {
  background: var(--red) !important; color: white !important;
  text-align: center; font-weight: 600 !important;
  margin-top: 0.75rem;
  box-shadow: 0 3px 12px rgba(192,39,45,0.3);
}

/* ─── SHARED UTILITIES ─── */
.container { max-width: 1080px; margin: 0 auto; }
section { padding: 6rem 2rem; }

.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
.label::before {
  content: ''; width: 20px; height: 1.5px;
  background: var(--red); flex-shrink: 0;
}

h2.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700; color: var(--navy);
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1rem;
}
h2.section-title em { font-style: italic; color: var(--red); }

.section-sub {
  font-size: 1.1rem; color: var(--text-mid);
  line-height: 1.8; max-width: 560px; margin-bottom: 3rem;
}

/* Fade-up animation */
.fade { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade.in { opacity: 1; transform: none; }
.fade.d1 { transition-delay: 0.1s; }
.fade.d2 { transition-delay: 0.2s; }
.fade.d3 { transition-delay: 0.3s; }

/* ─── PAGE HERO (shared across inner pages) ─── */
.page-hero {
  background: var(--navy); padding: 5rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(192,39,45,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner { max-width: 680px; position: relative; z-index: 1; }
.page-hero .label { color: #F2979A; }
.page-hero .label::before { background: #F2979A; }
.page-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; color: white;
  line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 1.25rem;
}
.page-hero p { font-size: 1.15rem; color: rgba(255,255,255,0.68); line-height: 1.8; max-width: 560px; }

/* ─── FINAL CTA (shared) ─── */
.final-cta {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  text-align: center; padding: 7rem 2rem;
}
.final-cta-inner { max-width: 560px; margin: 0 auto; }
.final-cta .label { justify-content: center; }
.final-cta h2 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--navy);
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.final-cta p { font-size: 1.05rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 2rem; }
.final-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: white;
  padding: 1rem 2.25rem; border-radius: 8px;
  font-size: 1.05rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  font-family: 'Source Sans 3', sans-serif;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(192,39,45,0.3);
}
.final-cta-btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(192,39,45,0.38); }
.final-cta-subtext { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.85rem; }

/* ─── NEXT STEPS NAV (shared) ─── */
.next-steps { background: var(--white); border-top: 1px solid var(--border); padding: 3rem 2rem; }
.next-steps-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.next-step-card {
  display: block; padding: 1.75rem; border: 1px solid var(--border);
  border-radius: 14px; text-decoration: none;
  background: var(--warm-white); transition: box-shadow 0.2s, transform 0.2s;
}
.next-step-card:hover { box-shadow: 0 8px 28px rgba(30,43,74,0.08); transform: translateY(-3px); }
.next-step-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 0.4rem; }
.next-step-title { font-family: 'Lora', serif; font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.3; }
.next-step-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.next-step-arrow { font-size: 0.87rem; font-weight: 600; color: var(--red); }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(19,29,51,0.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: 20px;
  padding: 2.5rem; width: 100%; max-width: 460px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.25);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease; position: relative;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: var(--off-white); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--border); color: var(--navy); }
.modal-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red-light); border-radius: 100px;
  padding: 0.3rem 0.8rem; margin-bottom: 1.25rem;
  font-size: 0.75rem; font-weight: 700; color: var(--red);
  letter-spacing: 0.07em; text-transform: uppercase;
}
.modal-eyebrow span {
  width: 5px; height: 5px; background: var(--red);
  border-radius: 50%; animation: pulse 2s infinite;
}
.modal h2 { font-family: 'Lora', serif; font-size: 1.45rem; color: var(--navy); margin-bottom: 0.35rem; line-height: 1.3; }
.modal > div > p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.55; }
.modal-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.modal-form-group { margin-bottom: 0.75rem; }
.modal-form-group label {
  display: block; font-size: 0.78rem; font-weight: 700;
  color: var(--text-mid); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.modal-form-group input {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-family: 'Source Sans 3', sans-serif; font-size: 0.92rem;
  color: var(--text-dark); background: var(--warm-white);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-form-group input:focus { border-color: var(--red); background: white; box-shadow: 0 0 0 3px rgba(192,39,45,0.07); }
.modal-form-group input::placeholder { color: #B8BDD0; }
.modal-submit {
  width: 100%; background: var(--red); color: white; border: none;
  padding: 0.9rem; border-radius: 8px; margin-top: 0.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.97rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(192,39,45,0.28);
}
.modal-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.modal-disclaimer { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; line-height: 1.55; }
.modal-success { display: none; text-align: center; padding: 1rem 0; }
.modal-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--red-light); margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.modal-success h3 { font-family: 'Lora', serif; font-size: 1.3rem; color: var(--navy); margin-bottom: 0.4rem; }
.modal-success p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* ─── SHARED FORM STYLES ─── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.form-group { margin-bottom: 0.75rem; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 700;
  color: var(--text-mid); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-family: 'Source Sans 3', sans-serif; font-size: 0.92rem;
  color: var(--text-dark); background: var(--warm-white);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--red); background: white; box-shadow: 0 0 0 3px rgba(192,39,45,0.07);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #B8BDD0; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; background: var(--red); color: white; border: none;
  padding: 0.9rem; border-radius: 8px; margin-top: 0.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.97rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(192,39,45,0.28);
}
.form-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.form-disclaimer { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; line-height: 1.55; }
.form-success { display: none; text-align: center; padding: 1.5rem 0; }
.form-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--red-light); margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.form-success h3 { font-family: 'Lora', serif; font-size: 1.3rem; color: var(--navy); margin-bottom: 0.4rem; }
.form-success p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy-deep);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 2rem;
}
.footer-logo { margin-bottom: 1rem; }
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.8; }
.footer-brand p { font-size: 0.84rem; color: rgba(255,255,255,0.38); line-height: 1.7; margin-bottom: 1rem; }
.footer-pbc {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px; padding: 0.35rem 0.7rem;
  font-size: 0.7rem; color: rgba(255,255,255,0.4);
  font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
}
.footer-col h4 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a { font-size: 0.86rem; color: rgba(255,255,255,0.42); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: rgba(255,255,255,0.78); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.22);
}
.footer-bottom a { color: rgba(255,255,255,0.28); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.55); }
.footer-legal {
  font-size: 0.7rem; color: rgba(255,255,255,0.18);
  line-height: 1.6; margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Legal-only simple footer (privacy/terms) */
.footer-bottom-simple {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.22); padding-bottom: 1rem;
}
.footer-bottom-simple a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom-simple a:hover { color: rgba(255,255,255,0.6); }
.footer-legal-simple {
  max-width: 1080px; margin: 1rem auto 0;
  font-size: 0.7rem; color: rgba(255,255,255,0.18); line-height: 1.6;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05);
}

/* ─── ANIMATIONS ─── */
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.35; transform:scale(0.55); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .next-steps-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
  section { padding: 4rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .modal-form-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─── NAV AUTH BUTTONS (Login / Sign Up) ─── */
.nav-plain-link {
  font-size: 0.87rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
}
.nav-plain-link:hover,
.nav-plain-link.active { color: var(--navy); }

/* Log In — understated ghost button */
.nav-login-btn {
  font-size: 0.87rem; font-weight: 600;
  color: var(--navy); text-decoration: none;
  padding: 0.5rem 1rem; border-radius: 6px;
  border: 1.5px solid var(--border-mid);
  background: transparent;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-login-btn:hover {
  border-color: var(--navy);
  background: var(--off-white);
}
.nav-login-btn.active {
  border-color: var(--navy);
  background: var(--off-white);
}

/* Sign Up — navy filled button */
.nav-signup-btn {
  font-size: 0.87rem; font-weight: 600;
  color: white; text-decoration: none;
  padding: 0.5rem 1.1rem; border-radius: 6px;
  background: var(--navy);
  border: 1.5px solid var(--navy);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(30,43,74,0.18);
}
.nav-signup-btn:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}
.nav-signup-btn.active {
  background: var(--navy-deep);
}

/* Waitlist CTA stays red — slightly shorter label on nav now */
