/* =========================================================================
   LUMEN HEALTH PROFESSIONALS — Brand stylesheet
   Palette & type per Brand Guidelines v1.0 (2026)
   ========================================================================= */

:root {
  /* Core palette */
  --lumen-yellow:   #FFF780;  /* light · headlines · CTAs */
  --dawn-magenta:   #B84483;  /* brand base */
  --deep-dusk:      #8B2D62;  /* dark sky · primary background */
  --midnight-plum:  #2E0920;  /* body text · foreground */
  --pure-white:     #FFFFFF;
  --light-magenta:  #C85590;  /* highlights · hover */
  --horizon-mid:    #621845;  /* gradients · dividers */
  --dawn-light:     #FDF3F8;  /* light services background */

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-bg: 1.1s ease;

  /* Layout */
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--pure-white);
  background-color: var(--deep-dusk);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--t-bg), color var(--t-bg);
}

/* Body theme states (driven by JS as sections enter the viewport) */
body.theme-dark  { background-color: var(--deep-dusk);  color: var(--pure-white); }
body.theme-light { background-color: var(--dawn-light);  color: var(--deep-dusk); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.5px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.85;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* =========================================================================
   LOADER  —  pulsating logo + shining sun on Deep Dusk
   ========================================================================= */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background-color: rgba(139, 45, 98, 0.82);   /* starts partially opaque */
  animation: loaderSolidify 2.4s var(--ease) forwards;
}
#loader.lh-done {
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

/* overlay deepens from partial to fully opaque before it fades */
@keyframes loaderSolidify {
  0%   { background-color: rgba(139, 45, 98, 0.82); }
  100% { background-color: rgba(139, 45, 98, 1); }
}

.loader-stage { position: relative; display: flex; align-items: center; justify-content: center; }

/* radiant sun-glow behind the mark — brightens & pulses while loading */
.loader-glow {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle,
              rgba(255,247,128,0.55) 0%,
              rgba(255,247,128,0.22) 32%,
              rgba(255,247,128,0.0) 68%);
  filter: blur(6px);
  animation: sunShine 1.8s ease-in-out infinite;
}
@keyframes sunShine {
  0%, 100% { transform: scale(0.86); opacity: 0.55; }
  50%      { transform: scale(1.12); opacity: 1; }
}

.loader-mark {
  position: relative; width: 190px; height: auto;
  animation: markPulse 1.8s ease-in-out infinite;
}
@keyframes markPulse {
  0%, 100% { transform: scale(0.96); }
  50%      { transform: scale(1.04); }
}

.loader-word {
  position: absolute; bottom: -54px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.7rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--lumen-yellow); white-space: nowrap; opacity: 0.9;
  animation: wordFade 1.8s ease-in-out infinite;
}
@keyframes wordFade { 0%,100% { opacity: 0.45; } 50% { opacity: 0.95; } }

/* page content fades up once loader clears */
body.lh-loading { overflow: hidden; }
.reveal-page { opacity: 0; transform: translateY(24px); }
body.lh-ready .reveal-page {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  transition: background-color var(--t-bg), backdrop-filter 0.4s ease, padding 0.4s ease;
}
.nav.scrolled { padding: 12px 28px; backdrop-filter: blur(10px); }
body.theme-dark  .nav.scrolled { background-color: rgba(46, 9, 32, 0.55); }
body.theme-light .nav.scrolled { background-color: rgba(253, 243, 248, 0.75); }

.nav-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 1px; }
.nav-brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav-brand .nb-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.52rem; letter-spacing: 0.34em; opacity: 0.8; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 0.82rem; letter-spacing: 0.04em; position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--lumen-yellow); transition: width 0.35s var(--ease);
}
body.theme-light .nav-links a::after { background: var(--deep-dusk); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  border: 1.5px solid var(--lumen-yellow); color: var(--lumen-yellow);
  padding: 9px 20px; border-radius: 100px; font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.04em; transition: all 0.3s ease;
}
.nav-cta:hover { background: var(--lumen-yellow); color: var(--midnight-plum); }
body.theme-light .nav-cta { border-color: var(--deep-dusk); color: var(--deep-dusk); }
body.theme-light .nav-cta:hover { background: var(--deep-dusk); color: var(--lumen-yellow); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: currentColor; display: block; transition: 0.3s; }

/* =========================================================================
   SECTIONS & SCROLL REVEAL
   ========================================================================= */
section { position: relative; }

.reveal { opacity: 0; transform: translateY(46px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }
.reveal.d4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-page { opacity: 1 !important; transform: none !important; }
  #loader { animation: none; }
  .loader-glow, .loader-mark, .loader-word { animation: none; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 130px 0 90px; position: relative; overflow: hidden; }
.hero-bg-sun {
  position: absolute; top: 8%; right: -8%; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,247,128,0.20) 0%, rgba(255,247,128,0.06) 40%, rgba(255,247,128,0) 70%);
  pointer-events: none;
}
.hero-inner { max-width: 760px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); color: var(--lumen-yellow); margin: 18px 0 22px; }
.hero p.lede { font-size: clamp(1.05rem, 2.2vw, 1.45rem); font-weight: 300; max-width: 600px; opacity: 0.94; }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.03em;
  padding: 14px 30px; border-radius: 100px; border: 1.5px solid transparent; transition: all 0.3s ease;
}
.btn-primary { background: var(--lumen-yellow); color: var(--midnight-plum); }
.btn-primary:hover { background: var(--pure-white); transform: translateY(-2px); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
body.theme-light .btn-ghost:hover { background: rgba(139,45,98,0.08); }

.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.7; z-index: 2; }
.scroll-cue::before { content: ""; display: block; width: 1px; height: 42px; margin: 0 auto 10px; background: linear-gradient(currentColor, transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; } }

/* =========================================================================
   SECTION HEADERS
   ========================================================================= */
.section { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin: 14px 0 18px; }
.section-head p { font-size: 1.08rem; opacity: 0.9; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* =========================================================================
   SERVICES (light theme)
   ========================================================================= */
.services { background: var(--dawn-light); color: var(--deep-dusk); }
.services .eyebrow { color: var(--dawn-magenta); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  background: var(--pure-white); border: 1px solid rgba(139,45,98,0.12);
  border-radius: 20px; padding: 38px 32px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(139,45,98,0.16); }
.svc-icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; background: var(--dawn-light); }
.svc-icon svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 1.5rem; color: var(--deep-dusk); margin-bottom: 12px; }
.svc-card p { font-size: 0.96rem; color: var(--midnight-plum); opacity: 0.82; }
.svc-tag { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dawn-magenta); }

/* =========================================================================
   PROMISE / STATS band (dark)
   ========================================================================= */
.promise { background: linear-gradient(160deg, var(--horizon-mid), var(--midnight-plum)); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4rem); color: var(--lumen-yellow); line-height: 1; }
.stat .lbl { margin-top: 12px; font-size: 0.9rem; opacity: 0.85; }

/* values list */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 50px; }
.value-item { padding-left: 26px; border-left: 2px solid var(--lumen-yellow); }
.value-item h3 { font-size: 1.5rem; color: var(--lumen-yellow); margin-bottom: 8px; }
.value-item p { opacity: 0.9; font-size: 0.98rem; }
body.theme-light .value-item { border-left-color: var(--dawn-magenta); }
body.theme-light .value-item h3 { color: var(--dawn-magenta); }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--lumen-yellow); margin-bottom: 20px; }
.cta-band .display-quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem,3.5vw,2.4rem); }

/* =========================================================================
   FORMS
   ========================================================================= */
.form-wrap { max-width: 760px; margin: 0 auto; }
.lh-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field.two { grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px){ .field.two { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; }
.req { color: var(--lumen-yellow); }
body.theme-light .req { color: var(--dawn-magenta); }
input, select, textarea {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 300;
  padding: 13px 16px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.06); color: inherit; width: 100%; transition: border-color 0.25s ease, background 0.25s ease;
}
body.theme-light input, body.theme-light select, body.theme-light textarea {
  border-color: rgba(139,45,98,0.25); background: var(--pure-white); color: var(--midnight-plum);
}
input::placeholder, textarea::placeholder { color: currentColor; opacity: 0.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lumen-yellow); background: rgba(255,255,255,0.12); }
body.theme-light input:focus, body.theme-light select:focus, body.theme-light textarea:focus { border-color: var(--dawn-magenta); background: var(--pure-white); }
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.82rem; opacity: 0.7; }
.form-status { display: none; padding: 16px 18px; border-radius: 12px; font-size: 0.9rem; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(255,247,128,0.16); border: 1px solid var(--lumen-yellow); }
.form-status.err { background: rgba(200,85,144,0.16); border: 1px solid var(--light-magenta); }

/* page hero (interior pages) */
.page-hero { padding: 170px 0 70px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--lumen-yellow); margin: 16px 0 18px; }
.page-hero p { max-width: 620px; font-size: 1.1rem; opacity: 0.92; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--midnight-plum); color: var(--pure-white); padding: 70px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lumen-yellow); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { opacity: 0.82; font-size: 0.92rem; }
.footer ul a:hover { opacity: 1; color: var(--lumen-yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: 0.78rem; opacity: 0.7; }
.footer-tag { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--lumen-yellow); opacity: 0.95; margin-top: 8px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 880px){
  .svc-grid, .stat-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 40px; background: var(--midnight-plum); transform: translateX(100%); transition: transform 0.4s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-toggle { display: flex; color: var(--lumen-yellow); }
  body.theme-light .nav-toggle { color: var(--deep-dusk); }
}
