/* ==========================================================================
   Queenreal's Beauty Stop — Base Design System
   Shared across all pages: reset, tokens, typography, nav, footer, widgets
   ========================================================================== */

/* ---- Font loading ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- Design tokens ---- */
:root {
  /* Purples & plums */
  --plum-950: #130a19;
  --plum-900: #1b0f24;
  --plum-850: #22132d;
  --plum-800: #2a1838;
  --plum-700: #3a2049;
  --purple-600: #5b2a8c;
  --purple-500: #7a3fb8;
  --purple-400: #9a5fd6;
  --purple-glow: #8b3dff;

  /* Gold */
  --gold-300: #ecd9a3;
  --gold-400: #ddbd73;
  --gold-500: #c9a24b;
  --gold-600: #a9823a;
  --gold-glow: #f1d78a;

  /* Neutrals */
  --cream-50: #fdfaf4;
  --cream-100: #f7efe0;
  --cream-200: #ece0c9;
  --ink: #130a19;

  /* Semantic */
  --bg-body: var(--cream-50);
  --bg-dark: var(--plum-950);
  --text-dark: var(--plum-950);
  --text-muted: #5c4e66;
  --text-on-dark: var(--cream-100);
  --text-on-dark-muted: #c9b8d4;
  --border-soft: rgba(19, 10, 25, 0.1);
  --border-on-dark: rgba(247, 239, 224, 0.14);

  /* Type */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease-luxe: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 0.3s;
  --dur-med: 0.6s;
  --dur-slow: 1s;

  /* Layout */
  --container-max: 1360px;
  --nav-h: 92px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--bg-body);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
img, picture, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.12; }

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

/* ---- Typography scale ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  display: block;
}
.eyebrow--on-dark { color: var(--gold-400); }

.display-1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
}
.display-3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.15;
}
.body-lg {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}
.body-md { font-size: 1rem; line-height: 1.75; color: var(--text-muted); }
.on-dark { color: var(--text-on-dark); }
.on-dark .body-lg, .on-dark.body-lg { color: var(--text-on-dark-muted); }

.word-reveal span { display: inline-block; overflow: hidden; }
.word-reveal span > span { display: inline-block; will-change: transform; }

/* ---- Layout helpers ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}
.section { padding-block: clamp(72px, 10vw, 150px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--plum { background: linear-gradient(175deg, var(--plum-900), var(--plum-950)); color: var(--text-on-dark); }

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1.05em 2.1em;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--plum-950);
  box-shadow: 0 10px 30px -10px rgba(201, 162, 75, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(201, 162, 75, 0.7); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--text-on-dark);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-300); transform: translateY(-2px); }
.btn-ghost--dark {
  border: 1px solid rgba(19,10,25,0.25);
  color: var(--plum-950);
  background: transparent;
}
.btn-ghost--dark:hover { border-color: var(--gold-600); color: var(--gold-600); transform: translateY(-2px); }
.btn-sm { padding: 0.8em 1.6em; font-size: 0.74rem; }
.btn .btn-arrow { transition: transform var(--dur-fast) var(--ease-soft); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.magnetic-wrap { display: inline-block; }

/* ---- Icon badge (circular icon used in why-us / contact cards) ---- */
.why-icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-600);
  margin-bottom: 22px;
}
.why-icon svg { width: 24px; height: 24px; flex-shrink: 0; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-med) var(--ease-soft), height var(--dur-med) var(--ease-soft), box-shadow var(--dur-med);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19,10,25,0.55), rgba(19,10,25,0));
  opacity: 1;
  transition: opacity var(--dur-med);
  z-index: -1;
}
.site-header.is-scrolled {
  height: 76px;
  background: rgba(19, 10, 25, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.6);
}
.site-header.is-scrolled::before { opacity: 0; }
.nav-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-on-dark);
}
.brand img { height: 38px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3)); }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  color: var(--cream-100);
}
.brand-word em { font-style: italic; color: var(--gold-400); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 44px);
}
.nav-links a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  padding-block: 6px;
  transition: color var(--dur-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--gold-400);
  transition: width var(--dur-med) var(--ease-luxe);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--cream-50); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-on-dark-muted);
}
.nav-call:hover { color: var(--gold-300); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--cream-100);
  transition: transform var(--dur-fast) var(--ease-soft), opacity var(--dur-fast), background var(--dur-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: linear-gradient(165deg, var(--plum-900), var(--plum-950));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 8vw, 60px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity var(--dur-med) var(--ease-soft), visibility var(--dur-med), transform var(--dur-med) var(--ease-soft);
}
.mobile-drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-drawer-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-drawer-links a {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 11vw, 3.1rem);
  color: var(--cream-100);
  padding-block: 10px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-luxe), transform 0.6s var(--ease-luxe), color 0.3s;
  border-bottom: 1px solid var(--border-on-dark);
}
.mobile-drawer.is-open .mobile-drawer-links a { opacity: 1; transform: translateY(0); }
.mobile-drawer-links a:hover { color: var(--gold-400); }
.mobile-drawer-links a:nth-child(1) { transition-delay: 0.08s; }
.mobile-drawer-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-drawer-links a:nth-child(3) { transition-delay: 0.22s; }
.mobile-drawer-links a:nth-child(4) { transition-delay: 0.29s; }
.mobile-drawer-foot {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-luxe) 0.4s, transform 0.6s var(--ease-luxe) 0.4s;
}
.mobile-drawer.is-open .mobile-drawer-foot { opacity: 1; transform: translateY(0); }
.mobile-drawer-foot a { color: var(--text-on-dark-muted); font-size: 0.95rem; }
.mobile-drawer-foot a:hover { color: var(--gold-300); }

/* ---- Scroll progress ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--purple-glow));
  z-index: 1300;
  transition: width 0.08s linear;
}

/* ---- Custom cursor ---- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 1400;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--gold-400); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(221, 189, 115, 0.55);
  transition: width 0.25s var(--ease-soft), height 0.25s var(--ease-soft), border-color 0.25s, background 0.25s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(221,189,115,0.08); border-color: var(--gold-400); }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---- Floating contact widget ---- */
.float-contact {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.float-panel {
  background: rgba(27, 15, 36, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md);
  padding: 18px;
  width: 232px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft), visibility var(--dur-fast);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55);
}
.float-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.float-panel-title { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 4px; }
.float-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-on-dark);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.03);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.float-link:hover { background: rgba(201,162,75,0.14); color: var(--gold-300); }
.float-toggle {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 36px -10px rgba(201,162,75,0.65);
  transition: transform var(--dur-fast) var(--ease-soft);
  position: relative;
}
.float-toggle:hover { transform: scale(1.06); }
.float-toggle svg { width: 24px; height: 24px; stroke: var(--plum-950); transition: transform 0.3s var(--ease-soft); }
.float-toggle.is-open svg { transform: rotate(135deg); }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  left: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 940;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-on-dark);
  background: rgba(27,15,36,0.85);
  color: var(--gold-300);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur-fast), transform var(--dur-fast), visibility var(--dur-fast);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--plum-950);
  color: var(--text-on-dark);
  padding-block: clamp(56px, 7vw, 96px) 28px;
  position: relative;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-on-dark);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand img { height: 46px; width: auto; object-fit: contain; }
.footer-tagline { color: var(--text-on-dark-muted); font-size: 0.92rem; line-height: 1.7; }
.footer-col-title { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--text-on-dark-muted); font-size: 0.92rem; transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--gold-300); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
}
.footer-bottom a:hover { color: var(--gold-300); }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SHARED SECTION PATTERNS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-luxe), transform 0.9s var(--ease-luxe);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 1s var(--ease-luxe), transform 1s var(--ease-luxe); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.9s var(--ease-luxe), transform 0.9s var(--ease-luxe); }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.9s var(--ease-luxe), transform 0.9s var(--ease-luxe); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.stagger > * { transition-delay: calc(var(--i, 0) * 0.09s); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale, .reveal-left, .reveal-right {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

.gold-rule {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}
.gold-rule--center { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head--center { margin-inline: auto; align-items: center; text-align: center; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(10, 6, 14, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-soft), visibility var(--dur-med);
  padding: 32px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(90vw, 1100px); max-height: 84vh; border-radius: 10px; box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7); }
.lightbox-close {
  position: absolute;
  top: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-on-dark);
  color: var(--cream-100);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { border-color: var(--gold-400); color: var(--gold-400); }
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-on-dark);
  color: var(--cream-100);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { border-color: var(--gold-400); color: var(--gold-400); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-caption {
  position: absolute;
  bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--gold-400);
  color: var(--plum-950);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2000;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 12px; }

/* No-js / no-scroll state */
.no-scroll { overflow: hidden; height: 100%; }

/* ---- Responsive nav breakpoint ---- */
@media (max-width: 920px) {
  .nav-links, .nav-call { display: none; }
  .nav-toggle { display: flex; }
}
