/* ============================================================
   THE EMPIRE BEAUTY BAR — SHARED THEME & DESIGN SYSTEM
   Loaded by every page. Page-specific CSS files sit on top of this.
   ============================================================ */

:root {
  --plum: #2B1620;
  --plum-deep: #1D0F17;
  --plum-panel: #3A1F2B;
  --plum-translucent: rgba(29, 15, 23, 0.88);
  --gold: #C9A66B;
  --gold-light: #E7D3A6;
  --gold-glow: rgba(201, 166, 107, 0.3);
  --blush: #D9A597;
  --bone: #F4EEE3;
  --bone-dim: #E7DECD;
  --ink: #20141A;
  --ink-soft: #5A4A52;
  --line: rgba(201, 166, 107, 0.28);
  --line-dim: rgba(201, 166, 107, 0.15);
  --display: 'Fraunces', serif;
  --body: 'Manrope', sans-serif;
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--bone);
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--gold);
  color: var(--plum-deep);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 44px;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  display: inline-block;
}

/* ============================================================
   BUTTONS & CTAs
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 16px 34px;
  border: 1px solid var(--gold);
  color: var(--bone);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease-luxury), border-color 0.4s var(--ease-luxury), background 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury), letter-spacing 0.35s ease;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(102%);
  transition: transform 0.4s var(--ease-luxury);
  z-index: -1;
}

.btn:hover {
  color: var(--plum-deep);
  border-color: var(--gold);
  letter-spacing: 0.26em;
  box-shadow: 0 8px 24px var(--gold-glow);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn.dark {
  color: var(--plum-deep);
  border-color: var(--plum-deep);
}

.btn.dark::before {
  background: var(--plum-deep);
}

.btn.dark:hover {
  color: var(--bone);
  border-color: var(--plum-deep);
}

.btn.gold-fill {
  background: var(--gold);
  color: var(--plum-deep);
  border-color: var(--gold);
}

.btn.gold-fill::before {
  background: var(--gold-light);
}

.btn.gold-fill:hover {
  color: var(--plum-deep);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 48px;
  transition: background 0.45s var(--ease-luxury), padding 0.4s var(--ease-luxury), backdrop-filter 0.45s var(--ease-luxury), border-color 0.45s var(--ease-luxury), box-shadow 0.45s var(--ease-luxury);
}

header.site-header.scrolled,
header.site-header.solid {
  background: rgba(29, 15, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 48px;
  border-bottom: 1px solid rgba(201, 166, 107, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.logo {
  height: 42px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 510;
  text-decoration: none;
}

.logo img {
  height: 38px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo:hover img {
  opacity: 0.92;
  transform: scale(1.02);
}

nav.links {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: auto;
}

nav.links a {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bone);
  opacity: 0.82;
  position: relative;
  padding: 6px 0;
  transition: opacity 0.3s ease, color 0.3s ease;
}

nav.links a:hover,
nav.links a.current {
  opacity: 1;
  color: var(--gold-light);
}

nav.links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-luxury);
}

nav.links a:hover::after,
nav.links a.current::after {
  width: 100%;
}

.nav-cta {
  position: relative;
  overflow: hidden;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 11px 24px;
  background: linear-gradient(135deg, #D4B57E 0%, #C9A66B 50%, #B89355 100%);
  color: #1D0F17 !important;
  border: 1px solid rgba(244, 238, 227, 0.4);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(201, 166, 107, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.35s var(--ease-luxury), box-shadow 0.35s var(--ease-luxury), letter-spacing 0.3s ease, background 0.35s ease;
  margin-left: 8px;
  z-index: 1;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease-luxury);
  pointer-events: none;
  z-index: 2;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #E7D3A6 0%, #D4B57E 50%, #C9A66B 100%) !important;
  color: #12090E !important;
  transform: translateY(-1px);
  letter-spacing: 0.26em;
  box-shadow: 0 6px 24px rgba(201, 166, 107, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.nav-cta:hover::before {
  left: 140%;
}

.nav-cta:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(201, 166, 107, 0.3);
}

.continent-pill {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201, 166, 107, 0.35);
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 700;
  background: rgba(43, 22, 32, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2px;
  font-family: var(--body);
  transition: all 0.35s var(--ease-luxury);
}

.continent-pill:hover {
  border-color: var(--gold);
  background: rgba(201, 166, 107, 0.18);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(201, 166, 107, 0.25);
  transform: translateY(-1px);
}

.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 520;
}

.menu-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.35s var(--ease-luxury), opacity 0.35s ease, background 0.35s ease;
  display: block;
}

.menu-toggle:hover span {
  background: var(--gold);
}

header.site-header.scrolled .menu-toggle span,
header.site-header.solid .menu-toggle span {
  background: var(--bone);
}

/* ============================================================
   MOBILE NAVIGATION DRAWER
   ============================================================ */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: radial-gradient(120% 100% at 50% 0%, #3D202E 0%, var(--plum-deep) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease-luxury), opacity 0.4s ease;
  padding: 40px 24px;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mobile-nav a {
  font-family: var(--display);
  font-size: 1.75rem;
  color: var(--bone);
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s var(--ease-luxury), transform 0.45s var(--ease-luxury), color 0.3s ease;
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.14s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.20s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.26s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.32s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.38s; }
.mobile-nav.open a:nth-child(7) { transition-delay: 0.44s; }

.mobile-nav a:hover,
.mobile-nav a.current {
  color: var(--gold);
}

.mobile-nav .close-nav {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 16px;
  font-family: var(--body);
  transition: all 0.3s ease;
}

.mobile-nav .close-nav:hover {
  background: var(--gold);
  color: var(--plum-deep);
}

.mobile-nav-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s var(--ease-luxury), transform 0.45s var(--ease-luxury);
}

.mobile-nav.open .mobile-nav-footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* ============================================================
   PAGE HERO BANNER (NON-LANDING PAGES)
   ============================================================ */

.page-banner {
  background: radial-gradient(120% 90% at 50% 0%, #48283A 0%, var(--plum) 46%, var(--plum-deep) 100%);
  color: var(--bone);
  padding: 190px 0 90px;
  text-align: center;
  position: relative;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.page-banner .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.page-banner h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-banner p {
  margin: 18px auto 0;
  max-width: 480px;
  color: var(--bone-dim);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ============================================================
   GENERIC SECTION SHELL
   ============================================================ */

section {
  position: relative;
  z-index: 2;
}

.panel {
  padding: 120px 0;
}

.panel-dark {
  background: var(--plum-deep);
  color: var(--bone);
}

.section-head {
  max-width: 660px;
  margin-bottom: 60px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
  display: block;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 520px;
}

.panel-dark .section-head p {
  color: #C9BAC2;
}

/* ============================================================
   REVEAL ANIMATIONS (INTERSECTION OBSERVER)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-luxury), transform 0.85s var(--ease-luxury);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-luxury), transform 0.75s var(--ease-luxury);
  will-change: opacity, transform;
}

.reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 0.04s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 0.20s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 0.28s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 0.36s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(6) { transition-delay: 0.44s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(7) { transition-delay: 0.52s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(8) { transition-delay: 0.60s; opacity: 1; transform: translateY(0); }

/* ============================================================
   PAGE TRANSITION OVERLAY
   ============================================================ */

.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--plum-deep);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page-transition-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   FOOTER (SHARED)
   ============================================================ */

footer.site-footer {
  background: var(--plum-deep);
  color: var(--bone-dim);
  padding: 70px 44px 34px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-top .logo img {
  height: 38px;
}

.footer-top .logo {
  font-size: 1.3rem;
}

.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 0.85rem;
  color: var(--bone-dim);
  margin-bottom: 10px;
  opacity: 0.85;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding-top: 26px;
  border-top: 1px dashed var(--line-dim);
  color: #9C8891;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--gold-light);
  padding: 14px 28px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease-luxury);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 880px) {
  .container {
    padding: 0 24px;
  }

  header.site-header {
    padding: 16px 24px;
  }

  header.site-header.scrolled,
  header.site-header.solid {
    padding: 12px 24px;
  }

  .logo img {
    height: 32px;
  }

  nav.links {
    display: none !important;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
  }

  .mobile-header-actions .nav-cta {
    margin-left: 0;
    padding: 8px 14px;
    font-size: 0.6rem;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-cols {
    gap: 36px;
  }

  .panel {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  header.site-header {
    padding: 14px 18px;
  }

  .logo img {
    height: 28px;
  }

  .mobile-header-actions .nav-cta {
    padding: 6px 10px;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
