/* ============================================================
   HEALIXA — PARENT COMPANY STYLES
   Brand: Deep ink-blue primary (bridges ES navy + FP blue)
   Typography: Figtree (shared with both product brands)
   ============================================================ */

:root {
  --ink:         #0E1F33;
  --ink-deep:    #060F1C;
  --ink-mid:     #1A3354;
  --accent:      #2D7DB9;       /* mid-tone between ES teal and FP blue */
  --accent-bright: #4FA0DA;
  --accent-pale: #E5F0F9;
  --charcoal:    #1F2630;
  --slate:       #2A3744;
  --slate-mute:  #6B7A8A;
  --off-white:   #F7F9FB;
  --white:       #FFFFFF;
  --line:        #E2E8EF;

  /* Product brand tints */
  --es-navy:     #0A2C4E;
  --es-teal:     #1FA9C8;
  --fp-blue:     #138EBA;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Figtree', sans-serif; font-weight: 400;
  color: var(--charcoal); background: var(--white);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: 'Figtree', sans-serif; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; color: var(--ink);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* PLACEHOLDER BLOCKS */
.placeholder {
  background: repeating-linear-gradient(45deg, #E2E8EF, #E2E8EF 12px, #EBEFF4 12px, #EBEFF4 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-mute); font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center; padding: 24px; height: 100%;
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex; align-items: center;
}
.nav-logo img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links > a {
  font-size: 13px; font-weight: 700; color: var(--charcoal);
  letter-spacing: 0.06em; text-transform: uppercase; position: relative;
}
.nav-links > a:hover { color: var(--accent); }
.nav-links > a.active { color: var(--accent); }
.nav-links > a.active::after {
  content: ''; position: absolute; bottom: -22px; left: 0; right: 0;
  height: 2px; background: var(--accent);
}
.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: 12px 22px; border-radius: 2px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nav-cta:hover { background: var(--accent) !important; }
.nav-cta.active::after { display: none; }
@media (max-width: 900px) { .nav-links > a:not(.nav-cta) { display: none; } }

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 900px) {
  .nav-inner {
    position: relative;
  }

  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 102;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
    z-index: 101;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > a {
    display: block;
    width: 100%;
    padding: 14px 10px;
  }

  .nav-links > a.active::after {
    display: none;
  }

  .nav-links .nav-cta {
    margin-top: 8px;
    padding: 14px 18px;
    text-align: center;
  }

  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* BUTTONS */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 2px;
  font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: all 0.2s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--ink); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-deep); }
.btn-ink-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ink-outline:hover { background: var(--ink); color: var(--white); }

/* TYPOGRAPHY UTILITIES */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px; display: inline-block;
}
.eyebrow-light { color: var(--accent-bright); }

/* PAGE HERO (non-home pages) */
.page-hero {
  position: relative; padding: 180px 0 90px;
  background: var(--ink-deep); color: var(--white); overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 1; }
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 3;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(45,125,185,0.25), transparent 55%),
    linear-gradient(95deg, rgba(6,15,28,0.88) 0%, rgba(14,31,51,0.72) 45%, rgba(14,31,51,0.45) 90%),
    linear-gradient(180deg, rgba(6,15,28,0.3) 0%, rgba(6,15,28,0.85) 100%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 4; max-width: 920px; }
.page-hero .eyebrow { color: var(--accent-bright); }
.page-hero h1 {
  font-size: clamp(38px, 5.6vw, 68px); font-weight: 700;
  color: var(--white); margin-bottom: 22px; letter-spacing: -0.035em; line-height: 1.05;
}
.page-hero p {
  font-size: clamp(17px, 1.4vw, 21px);
  color: rgba(255,255,255,0.82); max-width: 680px; line-height: 1.55;
}

/* FOOTER */
.footer { background: var(--ink-deep); color: rgba(255,255,255,0.65); padding: 60px 0 24px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px;
}
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand {
  margin-bottom: 20px;
  display: inline-flex; align-items: center;
  background: var(--white); padding: 8px 14px; border-radius: 4px;
}
.footer-brand img {
  height: 30px; width: auto; display: block;
}
.footer-tag { font-size: 14px; line-height: 1.6; max-width: 340px; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--accent-bright); margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; font-size: 14px; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,0.5);
}

/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============ HERO SLIDESHOW ============
   Drop multiple <img> tags inside .page-hero-bg or .hero-bg,
   and JS will add .slide and cycle them with cross-fade. */
.page-hero-bg img, .hero-bg img.slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; z-index: 1;
  transition: opacity 1.4s ease-in-out;
}
.page-hero-bg img.active, .hero-bg img.slide.active { opacity: 1; }

/* Dot indicators */
.hero-dots {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 10px;
}
.hero-dot {
  width: 28px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.25); cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
  border: none; padding: 0;
}
.hero-dot.active { background: var(--accent-bright); width: 44px; }
.hero-dot:hover { background: rgba(255,255,255,0.5); }

/* CTA BAND */
.cta-band {
  background: var(--ink); color: var(--white); padding: 80px 0; text-align: center;
}
.cta-band h2 {
  color: var(--white); font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700; margin-bottom: 16px; letter-spacing: -0.025em;
}
.cta-band p {
  color: rgba(255,255,255,0.78); font-size: 17px;
  max-width: 580px; margin: 0 auto 28px; line-height: 1.55;
}
