/* ============================================================
   Beauty Boost Global — Design System (main.css)
   Dark + gold luxury. Cormorant Garamond (display) + DM Sans (body).
   Single source of truth for public site tokens; app/app.css imports these.
   ============================================================ */

:root {
  /* --- Brand palette --- */
  --black:   #090909;
  --deep:    #0f0f0f;
  --card:    #141414;
  --card-2:  #191506;
  --gold:    #C9A84C;
  --gold-2:  #E5C96A;
  --cream:   #F2EDE3;
  --dim:     #7a7a7a;
  --muted:   #444444;
  --green:   #25D366;
  --red:     #e05555;

  --border:  rgba(201,168,76,0.18);
  --border-2:rgba(201,168,76,0.35);
  --overlay: rgba(9,9,9,0.72);

  /* --- Typography --- */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-hero:  clamp(2.6rem, 6vw, 5rem);
  --fs-h1:    clamp(2rem, 4.5vw, 3.4rem);
  --fs-h2:    clamp(1.5rem, 3vw, 2.2rem);
  --fs-h3:    1.35rem;
  --fs-body:  1.02rem;
  --fs-sm:    0.9rem;
  --fs-xs:    0.78rem;

  /* --- Layout --- */
  --radius:   2px;
  --radius-lg:6px;
  --maxw:     1200px;
  --gutter:   clamp(1.2rem, 4vw, 3rem);
  --transition: .25s ease;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top:    env(safe-area-inset-top, 0px);

  /* --- Elevation --- */
  --shadow:   0 10px 40px rgba(0,0,0,0.45);
  --glow:     0 0 0 1px var(--border-2), 0 8px 30px rgba(201,168,76,0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--cream);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-2); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; color: var(--cream); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
.display { font-size: var(--fs-hero); font-weight: 300; letter-spacing: -0.5px; }
.eyebrow {
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}
.lead { font-size: 1.15rem; color: var(--dim); max-width: 60ch; }
.text-gold { color: var(--gold); }
.serif-accent { font-family: var(--font-display); font-style: italic; color: var(--gold-2); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.flex { display: flex; gap: 1rem; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; align-items: center; }
.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 1rem; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: var(--radius);
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: .04em;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--black); }
.btn-primary:hover { color: var(--black); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.25); }
.btn-outline { border: 1px solid var(--border-2); color: var(--cream); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(201,168,76,0.05); }
.btn-ghost { color: var(--dim); }
.btn-ghost:hover { color: var(--gold-2); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem);
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.card-elevated { box-shadow: var(--shadow); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--overlay); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: var(--safe-top);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .02em; color: var(--cream); }
.nav-logo b { color: var(--gold); font-weight: 600; }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a { font-size: var(--fs-sm); color: var(--dim); }
.nav-links a:hover, .nav-links a.active { color: var(--gold-2); }
.nav-toggle { display: none; font-size: 1.5rem; color: var(--gold); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--deep); padding-block: 3rem; color: var(--dim); font-size: var(--fs-sm); }
.footer a { color: var(--dim); }
.footer a:hover { color: var(--gold-2); }

/* ---------- Utility ---------- */
.divider { height: 1px; background: var(--border); border: 0; margin-block: 2rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border: 1px solid var(--border-2); border-radius: 999px; font-size: var(--fs-xs); color: var(--gold); text-transform: uppercase; letter-spacing: .1em; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(4rem, 12vw, 9rem); text-align: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at top, rgba(201,168,76,0.08), transparent 60%); }

/* ---------- Language switcher ---------- */
.lang-switch { display: inline-flex; gap: .25rem; }
.lang-switch button { font-size: var(--fs-xs); padding: .25rem .5rem; color: var(--dim); border-radius: var(--radius); text-transform: uppercase; }
.lang-switch button.active { color: var(--gold); background: rgba(201,168,76,0.08); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: var(--deep); padding: 1.5rem var(--gutter); border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform var(--transition); }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
