/* ============================================================
   Feonix Aesthetics — Components
   ============================================================
   Reusable component styles extracted from the home-page reskin
   (index.html) inline <style>. Built on the design tokens in
   colors_and_type.css — load this *after* colors_and_type.css
   so the cascade resolves correctly.

   What's in here:
     · Reset + body defaults
     · Shared atoms (.eyebrow, .display, .credential-tag, .trust-item)
     · Buttons (.btn-primary, .btn-ghost, .btn-book, .nav-book)
     · Nav (#nav, nav, .nav-*, scroll state)
     · Mobile menu + hamburger
     · Footer + .bottom-links
     · WhatsApp float
     · Form input baseline (new, token-driven)
     · Responsive rules for components

   What's NOT in here:
     · Page-specific layouts (hero, manifesto, outcomes, …) —
       those stay in per-page inline <style> for now (Stage 2/3
       will move shared bits over progressively).
     · Booking modal styles — injected by booking.js MODAL_HTML.

   Source: index.html reskin inline <style> lines 59–725.
   ============================================================ */

/* ---------- Reset ---------- */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bone);
  color: var(--on-light-1);
  font-family: var(--font-sans);
  font-weight: var(--w-regular);
  overflow-x: hidden;
}

body.intro-active { overflow: hidden; }
body.menu-active  { overflow: hidden; }

button { border: 0; cursor: pointer; font-family: inherit; }

/* ---------- Shared atoms ---------- */

.eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--w-medium);
  font-size: 12px;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--ember);
}
.eyebrow.on-dark { color: var(--ember-soft); }
.eyebrow.muted   { color: var(--ash); }

.display {
  font-family: var(--font-display);
  font-weight: var(--w-light);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
  text-transform: uppercase;
}
.display em { font-style: normal; color: var(--ember); }

.credential-tag {
  font-size: 11px;
  font-weight: var(--w-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-soft);
  border: 1px solid var(--stroke-dark);
  padding: 8px 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
}
.trust-stars { color: var(--ember); letter-spacing: 2px; font-size: 12px; }
.trust-sep   { width: 1px; height: 16px; background: var(--stroke-dark); }

/* ---------- Buttons ---------- */
/* The ember pill is the only filled CTA on a screen. */

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: var(--w-medium);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  text-decoration: none; padding: 15px 30px;
  background: var(--ember); color: var(--fg-1);
  border-radius: var(--r-pill);
  box-shadow: 0 6px 16px rgba(192, 130, 90, 0.20);
  transition: background var(--dur-base) var(--ease-luxury),
              box-shadow var(--dur-base) var(--ease-luxury);
}
.btn-primary:hover  { background: var(--ember);      box-shadow: var(--shadow-ember); }
.btn-primary:active { background: var(--ember-deep); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: var(--w-medium);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  text-decoration: none; padding: 14px 30px;
  background: transparent; color: var(--on-light-1);
  border: 1px solid var(--stroke-light);
  transition: border-color var(--dur-base) var(--ease-luxury),
              color        var(--dur-base) var(--ease-luxury);
}
.btn-ghost:hover           { border-color: var(--on-light-1); }
.btn-ghost.on-dark         { color: var(--fg-1); border-color: rgba(255, 248, 235, 0.22); }
.btn-ghost.on-dark:hover   { border-color: var(--fg-1); }

.btn-book {
  font-size: 10px; font-weight: var(--w-medium);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-1); text-decoration: none;
  padding: 12px 20px; background: var(--ember);
  border-radius: var(--r-pill);
  transition: background 0.3s ease; white-space: nowrap;
}
.btn-book:hover { background: var(--ember-deep); }

/* ---------- Nav ---------- */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px;          /* trimmed from 26px to accommodate the
                                  taller vertical-stack lockup without
                                  bloating the nav row */
  transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
nav.scrolled {
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 10px 56px;          /* matches prod-ish 16px scrolled state,
                                  trimmed for the stacked lockup */
  box-shadow: inset 0 -1px 0 var(--stroke-dark);
}

/* Logo lockup — vertical stack (phoenix icon above wordmark), matching the
   prod-site brand mark. Top-left of nav. Bumped a touch from prod's
   32px/7px so it sits more prominently in the reskin context. The wrap
   stays a flex COLUMN so the wordmark centres under the icon and the whole
   lockup behaves as a single inline block in the nav row.

   Source values from prod: icon 32px, gap 4px, wordmark 7px / 0.12em /
   weight 400 / color var(--muted) (#6B6478, subtle).
   Scaled here:             icon 36px, gap 5px, wordmark 9px / 0.14em /
   weight var(--w-regular) (400) / color var(--fg-2) (subtle on dark)
   with body.light-hero override → var(--on-light-2) (dark on light). */
.nav-logo       { height: 36px; display: block; }
.nav-logo-wrap  {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; gap: 5px;
  padding: 0; margin: 0;
}
.nav-logo-text {
  font-family: var(--font-display); font-weight: var(--w-regular);
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.1;
  color: var(--fg-2); transition: color 0.4s ease;
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  font-family: var(--font-sans);
  color: var(--fg-2); text-decoration: none;
  font-size: 11px; font-weight: var(--w-medium);
  letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 1;
  position: relative; transition: color 0.3s ease;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: var(--ember);
  transition: width 0.35s var(--ease-luxury);
}
.nav-links a:hover         { color: var(--fg-1); }
.nav-links a:hover::after  { width: 100%; }
.nav-links a.active        { color: var(--fg-1); }
.nav-links a.active::after { width: 100%; }

.nav-book {
  font-size: 11px; font-weight: var(--w-medium);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  background: var(--ember); color: var(--fg-1);
  padding: 12px 26px; border-radius: var(--r-pill);
  text-decoration: none; transition: background 0.3s ease;
}
.nav-book:hover { background: var(--ember-deep); }

/* ---------- Light-hero nav variant ----------
   When the page's first section sits on a light surface (bone / white / ivory)
   instead of obsidian — e.g. for-her, for-him, treatments — the default nav
   text colours (fg-1 / fg-2, intended for a dark hero) wash out against the
   light background and become unreadable. Hover goes even lighter and the
   links visually disappear.

   Pages opt in via <body class="light-hero">. The override applies only at
   rest; once the user scrolls, nav.scrolled paints the dark-glass background
   and the default light text returns automatically (the :not(.scrolled)
   guard makes sure the override doesn't fight the scrolled state).

   Specificity: body.X + nav:not(.scrolled) + .target = (0,3,2/3). Wins over
   the default .nav-logo-text / .nav-links a rules in this same file
   regardless of cascade order — so this works whether components.css is
   linked before or after the page's own <style> block. */

/* Logo wordmark + nav links share the same colour at rest so they read as
   one set (on-light-2 on light hero, fg-2 on dark hero — see the default
   .nav-logo-text + .nav-links a rules above). */
body.light-hero nav:not(.scrolled) .nav-logo-text       { color: var(--on-light-2); }
body.light-hero nav:not(.scrolled) .nav-links a         { color: var(--on-light-2); }
body.light-hero nav:not(.scrolled) .nav-links a:hover   { color: var(--ember-deep); }
body.light-hero nav:not(.scrolled) .nav-links a.active  { color: var(--ember-deep); }
body.light-hero nav:not(.scrolled) .nav-hamburger span  { background: var(--obsidian); }


/* ---------- Hamburger + Mobile menu ---------- */

.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; background: none; border: none; cursor: pointer; padding: 4px;
  min-width: 44px; min-height: 44px; z-index: 1100;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--fg-1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px)  rotate(45deg);  }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#mobile-menu {
  position: fixed; inset: 0; z-index: 1050; background: var(--obsidian);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px 40px 60px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.38s ease;
}
#mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 44px; }
.mobile-menu-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 42px); font-weight: var(--w-light);
  letter-spacing: var(--ls-display); text-transform: uppercase;
  color: var(--fg-1); text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--stroke-darker); display: block;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.mobile-menu-links a:hover { color: var(--ember); padding-left: 8px; }
.mobile-menu-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; font-size: 22px;
  color: var(--fg-2); cursor: pointer;
  padding: 10px; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.3s ease;
}
.mobile-menu-close:hover { color: var(--fg-1); }
.mobile-menu-book {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: var(--w-medium);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  text-decoration: none; padding: 15px 32px;
  background: var(--ember); color: var(--fg-1);
  border-radius: var(--r-pill); align-self: flex-start;
}

/* ---------- Footer + bottom links ---------- */

.bottom-links {
  background: var(--obsidian); padding: 56px;
  border-top: 1px solid var(--stroke-darker);
}
.bottom-links-inner    { max-width: 1400px; margin: 0 auto; display: flex; gap: 80px; }
.bottom-links-heading {
  font-size: 11px; font-weight: var(--w-medium);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 18px;
}
.bottom-links-list      { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bottom-links-list a    {
  font-size: 13px; letter-spacing: 0.02em;
  color: var(--fg-2); text-decoration: none;
  transition: color 0.3s ease;
}
.bottom-links-list a:hover { color: var(--ember-soft); }

footer       { padding: 56px; background: var(--obsidian); }
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 40px;
}
.footer-brand       { display: flex; align-items: center; gap: 14px; }
.footer-icon        { height: 28px; opacity: 0.65; }
.footer-brand-name {
  font-family: var(--font-display); font-weight: var(--w-thin);
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--fg-2);
}
.footer-center-logo {
  height: 38px; opacity: 0.4; display: block; margin: 0 auto;
  transition: opacity 0.4s ease;
}
.footer-center-logo:hover { opacity: 0.7; }
.footer-links {
  display: flex; gap: 28px; list-style: none;
  justify-content: flex-end; flex-wrap: wrap;
}
.footer-links a {
  font-size: 11px; font-weight: var(--w-medium);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--ember-soft); }
.footer-bottom {
  max-width: 1400px; margin: 36px auto 0;
  padding-top: 22px; border-top: 1px solid var(--stroke-darker);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy {
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--fg-3); text-transform: uppercase;
}

/* ---------- WhatsApp float (every page) ---------- */

.wa-group {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 9999; width: 56px; height: 56px;
}
.wa-group::before {
  content: ''; position: absolute; top: -85px; left: -85px; right: -12px; bottom: -12px;
}
.wa-socials { position: absolute; inset: 0; z-index: 1; }
.wa-social-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0; pointer-events: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.2s ease,
              box-shadow 0.2s ease;
  transition-delay: 0s; text-decoration: none;
}
.wa-social-btn svg { width: 18px; height: 18px; fill: #fff; }
.wa-group:hover .wa-social-btn,
.wa-group.open  .wa-social-btn { opacity: 1; pointer-events: all; }
.wa-group:hover .wa-social-btn:nth-child(1),
.wa-group.open  .wa-social-btn:nth-child(1) { transform: translate(calc(-50% - 0px),  calc(-50% - 78px)); transition-delay: 0.06s; }
.wa-group:hover .wa-social-btn:nth-child(2),
.wa-group.open  .wa-social-btn:nth-child(2) { transform: translate(calc(-50% - 55px), calc(-50% - 55px)); transition-delay: 0.03s; }
.wa-group:hover .wa-social-btn:nth-child(3),
.wa-group.open  .wa-social-btn:nth-child(3) { transform: translate(calc(-50% - 78px), -50%);              transition-delay: 0s; }
.wa-social-btn:hover { box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35); }
.wa-float {
  width: 56px; height: 56px; border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none; position: relative; z-index: 3;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0, 0, 0, 0.32); }
.wa-float svg   { width: 56px; height: 56px; }

/* ---------- Form input baseline ----------
   Token-driven baseline. Page-specific form layouts may extend or
   override these on the way to a real form (mens-register.html, the
   future generic-modal, contact form, etc.). */

.feonix-input,
.feonix-textarea,
.feonix-select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--t-body-m);
  font-weight: var(--w-regular);
  color: var(--on-light-1);
  background: var(--bone);
  border: 1px solid var(--stroke-light);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  line-height: var(--lh-normal);
  transition: border-color var(--dur-fast) var(--ease-out),
              background   var(--dur-fast) var(--ease-out);
}
.feonix-input:hover,
.feonix-textarea:hover,
.feonix-select:hover { border-color: var(--ash); }
.feonix-input:focus,
.feonix-textarea:focus,
.feonix-select:focus { outline: none; border-color: var(--ember); background: var(--bone); }
.feonix-input::placeholder,
.feonix-textarea::placeholder { color: var(--on-light-3); }

.feonix-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--t-body-s);
  font-weight: var(--w-medium);
  color: var(--on-light-2);
  margin-bottom: 6px;
}

.feonix-field-hint {
  font-size: var(--t-caption);
  color: var(--on-light-3);
  margin-top: 6px;
}

.feonix-field-error {
  font-size: var(--t-caption);
  font-weight: var(--w-medium);
  color: var(--danger);
  margin-top: 6px;
}

/* ---------- Responsive — component-level ---------- */

@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 768px) {
  nav, nav.scrolled { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-book  { display: none; }
  .nav-hamburger { display: flex; }

  footer        { padding: 48px 24px; }
  .bottom-links { padding: 40px 24px; }
  .bottom-links-inner { gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; }
  .footer-links { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
