/* ============================================================
   EMPOWERWOMAN LUXE — static rebuild
   Palette, type, layout primitives
   ============================================================ */

/* CSS variables: light theme (default) */
:root {
  --bg: #ffffff;
  --bg-alt: #faf8f3;
  --surface: #ffffff;
  --ink: #14140f;
  --ink-mute: #6b665e;
  --line: #e8e3d8;
  --accent: #c9a961;
  --accent-soft: #7a6a44;
  --on-accent: #14140f;
  --header-bg: rgba(255,255,255,.85);
  --footer-bg: #f5f1e8;
  --section-dark-bg: #f0ebe0;
  --max: 1300px;
  --gutter: clamp(20px, 4vw, 40px);
  --pad-section: clamp(50px, 10vw, 1px);
  --radius: 14px;
  --radius-sm: 8px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Manrope", "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --small: "Poppins", var(--sans);
}

/* Dark theme overrides */
[data-theme="dark"] {
  --bg: #0f0f10;
  --bg-alt: #16161a;
  --surface: #1c1c22;
  --ink: #efece6;
  --ink-mute: #a9a49a;
  --line: #2a2a30;
  --header-bg: rgba(15,15,16,.85);
  --footer-bg: #0a0a0b;
  --section-dark-bg: #0a0a0b;
}

/* Base reset and global styles */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}

/* Image, link, and text defaults */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

/* Layout containers: max-width, centering, and padding */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--pad-section) 0; }
.section--tight { padding: clamp(48px, 7vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--section-dark-bg); }

/* Heading styles: size, weight, and spacing */
h1,h2,h3,h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h4 {
  font-size: 1.05rem;
  font-family: var(--small);
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--accent);
  font-weight: 500;
}

/* Paragraph and text block styles */
p { margin: 0 0 1.2em; color: var(--ink); }
p.lead { font-size: 1.15rem; color: var(--ink-mute); max-width: 60ch; }

/* Small caps label: uppercase, tighter tracking */
.eyebrow {
  font-family: var(--small);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .78rem;
  color: var(--accent);
  margin: 0 0 1.2rem;
}

/* Accent divider line */
.divider { width: 60px; height: 1px; background: var(--accent); margin: 2rem auto; opacity: .7; }

/* Header: sticky top, blurred background, with nav flex layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 15px;
  max-width: var(--max);
  margin: 0 auto;
}

/* Logo brand text */
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand sup { font-size: .55em; color: var(--accent); letter-spacing: 0; }

/* Mobile menu toggle button: hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 14px;
  letter-spacing: .18em;
  font-family: var(--small);
  text-transform: uppercase;
  font-size: .72rem;
  cursor: pointer;
}

/* Main navigation: flex row, right-aligned, uppercase links */
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  font-family: var(--small);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.nav a { color: var(--ink-mute); white-space: nowrap; }
.nav a:hover,.nav a.is-active { color: var(--ink); }

/* Mobile nav: fixed overlay with slide-down animation */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 20px var(--gutter) 32px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-100vh);
    visibility: hidden;
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
  }
  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    transition: transform .3s ease, opacity .3s ease, visibility 0s;
  }
}

/* Hero section: large centered title and CTA buttons */
.hero {
  padding: clamp(96px, 15vw, 180px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}
.hero h1 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.hero p.lead { margin-left: auto; margin-right: auto; margin-top: 1.5rem; }
.hero .cta-row { margin-top: 2.6rem; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons: bordered or solid with accent color and hover states */
.btn {
  display: inline-block;
  font-family: var(--small);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  border: 0.5px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: transparent;
  padding: 20px 25px;
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: transparent; color: var(--accent); }
.btn--ghost { border-color: var(--line); color: var(--ink-mute); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

/* Prose blocks: centered max-width text with styling for headings and labels */
.prose { max-width: 68ch; margin: 0 auto; }
.prose h3 { margin-top: 2.4em; }
.prose .h-label {
  font-family: var(--small);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .8rem;
  color: var(--accent);
  margin: 3em 0 .6em;
  display: block;
}

/* Two-column layout: responsive grid that stacks on mobile */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* Cards and grids: responsive card layout with hover effects */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

/* Marquee wrapper: horizontal scrolling text animation */
.marquee-wrapper {
  max-width: 100%;
  overflow: hidden;
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.marquee h3 {
  display: inline-block;
  margin: 0;
  color: var(--ink-mute);
  font-size: 1.35rem;
}

.marquee .separator {
  display: inline-block;
  margin: 0 20px;
  color: var(--ink-mute);
}

/* Marquee animation: infinite left scroll by 50% */
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Card styling: bordered box with hover lift effect */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--accent-soft); transform: translateY(-3px); }
.card h3 { margin-bottom: .4em; }
/* Reserves 2 lines so 1-line vs 2-line suite titles don't throw off
   the alignment below — cheap (adds at most one blank line) since
   titles rarely need more than that. */
.card .h-label { margin-top: 0; min-height: 3.4em; }
.card ul { padding-left: 1.1em; margin: 1em 0 0; color: var(--ink-mute); }
.card ul li { margin: .4em 0; color: var(--accent); }

/* Card copy: reserves just enough height for a *typical* description
   (most run 3-5 lines at a normal column width) so "Outcomes include:"
   lines up for the majority of cards. Sizing the reservation to the
   longest description sitewide instead would pad every shorter card
   with 2-3 dead lines. */
.card .card-copy { min-height: 18.5em; }

/* These four share a grid row (Maternal / Paternal / Trauma Bond /
   Sovereign Lineage) and are bumped together to align as one row,
   instead of raising the sitewide floor for all 8 cards. Sized with a
   deliberate margin past the tallest natural description (Paternal,
   ~425px) — cutting it exactly to that height re-triggers a margin-
   collapse edge case where a description that exactly fills its box
   lets its last paragraph's bottom margin leak past the box edge,
   throwing off the row by another ~20px. */
.card .card-copy--tall { min-height: 27em; }

.card .outcomes { padding-top: 1em; }
.outcomes-label { text-decoration: underline; color: var(--accent); }

/* Pricing tier cards: featured tier has special border and label */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.tier--featured {
  border-color: var(--accent);
  position: relative;
}

.tier--featured::before {
  content: "Most comprehensive";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--small);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  padding: 4px 12px;
}

.tier__name { font-family: var(--small); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--accent); margin-bottom: .8rem; }
.tier__title { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .5rem; }
.tier__price { font-family: var(--serif); font-size: 2rem; color: var(--ink); margin: 1rem 0 1.5rem; }
.tier__price small { display: block; font-size: .8rem; color: var(--ink-mute); font-family: var(--sans); letter-spacing: .04em; margin-top: 4px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 2rem; color: var(--ink-mute); }
.tier ul li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.tier ul li:last-child { border-bottom: 0; }
.tier .btn { margin-top: auto; align-self: flex-start; }

/* Testimonials: grid layout with left accent border */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.testimonial {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 28px;
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.6;
}

.testimonial cite {
  font-family: var(--small);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  color: var(--ink-mute);
}

/* Image placeholder boxes: aspect ratio containers for future images */
.img-slot {
  background: linear-gradient(135deg, #22222a 0%, #14141a 100%);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  font-family: var(--small);
  letter-spacing: .2em;
  font-size: .72rem;
  text-transform: uppercase;
  overflow: hidden;
}
.img-slot--square { aspect-ratio: 1/1; }
.img-slot--portrait { aspect-ratio: 3/4; }
.img-slot--wide { aspect-ratio: 21/9; }
.img-slot img { width: 100%; height: 100%; object-fit: cover; }

/* CTA band: full-width centered section with gradient and borders */
.cta-band {
  text-align: center;
  padding: clamp(72px, 10vw, 120px) 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { max-width: 24ch; margin: 0 auto 1.4rem; }

/* Footer: centered content with border-top, muted text, and navigation */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}
.site-footer .brand { display: block; text-align: center; margin-bottom: 8px; }
.site-footer .tagline {
  text-align: center;
  font-family: var(--small);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-size: .72rem;
  margin-bottom: 32px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-family: var(--small);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.site-footer nav a { color: var(--ink-mute); }
.site-footer .legal {
  text-align: center;
  color: var(--ink-mute);
  font-size: .72rem;
  font-family: var(--small);
  letter-spacing: .1em;
  padding-top: 24px;
}

/* Utility spacing classes for quick margin adjustments */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-4 { margin-top: 4rem !important; }

/* Dark/light theme toggle button: circular icon button with rotation on hover */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--ink-mute);
  cursor: pointer;
  line-height: 0;
  transition: color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { color: var(--accent); transform: rotate(-12deg); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Icon sizing: 36px for clear visibility */
.theme-icon { width: 36px; height: 36px; pointer-events: none; }
.theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--moon { display: none; }
[data-theme="dark"] .theme-icon--sun { display: block; }

/* Mobile theme toggle in nav: positioned and spaced differently */
@media (max-width: 900px) {
  .nav .theme-toggle {
    align-self: flex-start;
    margin-top: 12px;
  }
}

/* ============================================================
   Motion layer — ambient texture, scroll reveals, header state,
   Atropos theming. GSAP drives the actual motion; these rules
   only define the resting and revealed states.
   ============================================================ */

/* Subtle ambient background: soft radial glow + fine grain, no imagery required */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 35% at 100% 20%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 65%);
  background-attachment: fixed;
}

/* Header gains weight once the page has scrolled */
.site-header {
  transition: box-shadow .35s ease, background-color .35s ease, padding .35s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 30px -18px rgba(0,0,0,.35);
}
.site-header.is-scrolled .site-header__inner { padding-top: 14px; padding-bottom: 14px; }

/* Reveal-on-scroll: elements start hidden/offset, JS animates them in.
   No-JS / reduced-motion fallback keeps content visible. */
[data-reveal] { opacity: 0; }
.no-js [data-reveal],
.reveal-ready [data-reveal] { opacity: 1; }

/* Hero entrance targets: JS controls transform/opacity via GSAP,
   these just prevent flash-of-content before animation binds.
   If GSAP never loads (CDN blocked, network failure, etc.), site.js
   still adds .reveal-ready as a fallback — this rule is what actually
   makes the hero visible in that case. GSAP's own inline `style`
   opacity takes precedence over this class rule when it does load,
   so this never fights the real animation. */
.js [data-hero] { opacity: 0; }
.reveal-ready [data-hero] { opacity: 1; }

/* Button micro-interaction: soft glow sweep on hover, layered under existing transitions */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  transform: translateX(-110%);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  z-index: -1;
}
.btn:hover::after { transform: translateX(0); }
.btn--solid::after { display: none; }

/* Draws the eye to a specific CTA when a visitor arrives with that
   intent already established elsewhere (e.g. a "Get a New Token"
   link that deep-links straight to this button). */
.btn--highlight { animation: btnPulse 1.8s ease-in-out infinite; }
.btn--highlight:hover { animation-play-state: paused; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--highlight { animation: none; }
}

/* Card lift: refined easing to feel more premium than a linear hover */
.card { transition: border-color .3s cubic-bezier(.16,1,.3,1), transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; }
.card:hover { box-shadow: 0 20px 40px -24px rgba(0,0,0,.3); }

/* Atropos theming: match the sanctuary's cream/gold/ink palette instead of the library default.
   Note: .atropos-inner and .card land on the same element, so this must never touch
   padding/border-radius — that would silently override the card's own box styling. */
.atropos-suite {
  width: 100%;
  border-radius: var(--radius);
}
.atropos-suite .atropos-scale { width: 100%; }
.atropos-suite .card { height: 100%; margin: 0; }
.atropos-suite .atropos-shadow,
.atropos-suite .atropos-highlight {
  border-radius: var(--radius);
}
.atropos-suite .atropos-shadow {
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
}
.atropos-suite .atropos-highlight {
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%);
}

/* Marquee: pause and remove motion entirely for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
  html { scroll-behavior: auto; }
}

/* Legal pages: the embedded policy text had no side padding on phones */
.policy_embed_div { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
