/* ═══════════════════════════════════════
   BestSelf Studio — main.css
   Design tokens, reset, typography, nav, footer
═══════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --gold:         #d4af37;
  --gold-dark:    #c9a430;
  --gold-bg:      #0f0d08;
  --gold-border:  #2a2210;
  --black:        #0f0f0f;
  --black-2:      #0a0a0a;
  --surface:      #141414;
  --surface-2:    #1c1c1c;
  --border:       #222222;
  --border-2:     #2a2a2a;
  --text-white:   #ffffff;
  --text-sub:     #e0e0e0;
  --text-muted:   #999999;
  --text-dim:     #555555;

  /* Glassmorphism & shadow */
  --glass-bg:     rgba(20, 20, 20, 0.72);
  --glass-border: rgba(255, 255, 255, 0.05);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.5);
  --shadow-hover: 0 20px 56px rgba(0,0,0,0.7);
  --glow-gold:    0 0 0 1px rgba(212,175,55,0.4), 0 16px 48px rgba(212,175,55,0.14);

  /* Class type colours */
  --c-sila:       #d4af37;
  --c-mobility:   #6499ff;
  --c-glute:      #e06898;
  --c-pk:         #50c878;
  --c-pt:         #b464ff;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--black);
  /* Subtle premium dot-grid texture */
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(212,175,55,0.06) 0%, transparent 55%),
    radial-gradient(circle, rgba(212,175,55,0.04) 1px, transparent 1px);
  background-size: auto, 44px 44px;
  color: var(--text-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── TYPOGRAPHY — shared section header ── */
.eyebrow {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.section-title {
  color: var(--text-white);
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 6px;
}
.section-title span { color: var(--gold); }
.gold-line {
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin: 16px 0 24px;
}
.section-sub {
  color: var(--text-sub);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 96px 0; }

/* ── NAVIGATION ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 80px;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 68px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212,175,55,0.6);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--text-white); }
.nav-cta {
  background: var(--gold);
  color: #000 !important;
  padding: 9px 18px;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-dark) !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  transition: transform 0.25s, opacity 0.25s;
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay a {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #555;
  transition: color 0.2s;
}
.nav-overlay a:hover { color: var(--text-white); }
.nav-overlay .nav-cta {
  font-size: 12px !important;
  padding: 14px 32px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-tagline {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.social-btn {
  border: 1px solid var(--border-2);
  color: #555;
  font-size: 0; /* hide text label — show only icon */
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.social-btn:hover { border-color: var(--gold); background: rgba(212,175,55,0.08); }
.social-btn::before {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.45;
  transition: opacity 0.2s, filter 0.2s;
}
.social-btn:hover::before { opacity: 1; filter: sepia(1) saturate(4) hue-rotate(8deg); }

/* SVG icon data URIs per platform */
.social-btn[href*="instagram"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
}
.social-btn[href*="facebook"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z'/%3E%3C/svg%3E");
}
.social-btn[href*="youtube"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M22.54 6.42a2.78 2.78 0 00-1.95-1.96C18.88 4 12 4 12 4s-6.88 0-8.59.46a2.78 2.78 0 00-1.95 1.96C1 8.14 1 12 1 12s0 3.86.46 5.58a2.78 2.78 0 001.95 1.96C5.12 20 12 20 12 20s6.88 0 8.59-.46a2.78 2.78 0 001.95-1.96C23 15.86 23 12 23 12s0-3.86-.46-5.58zM9.75 15.02V8.98L15.5 12l-5.75 3.02z'/%3E%3C/svg%3E");
}
.social-btn[href*="tiktok"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.59 6.69a4.83 4.83 0 01-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 01-2.88 2.5 2.89 2.89 0 01-2.89-2.89 2.89 2.89 0 012.89-2.89c.28 0 .54.04.79.1V9.01a6.34 6.34 0 00-.79-.05 6.34 6.34 0 00-6.34 6.34 6.34 6.34 0 006.34 6.34 6.34 6.34 0 006.33-6.34V8.69a8.22 8.22 0 004.8 1.52V6.75a4.85 4.85 0 01-1.03-.06z'/%3E%3C/svg%3E");
}
.footer-col h4 {
  color: var(--text-white);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 800;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--text-white); }
.footer-col .contact-line {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 1px;
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--text-muted); }

/* ── FADE IN / SLIDE UP (scroll-triggered) ── */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: none; }

/* Stagger helpers (set by JS) */
.fade-in:nth-child(2) { transition-delay: 80ms; }
.fade-in:nth-child(3) { transition-delay: 160ms; }
.fade-in:nth-child(4) { transition-delay: 240ms; }

/* ── GOLDEN GLOW HOVER LIFT ── */
.hover-glow {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease !important;
}
.hover-glow:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--glow-gold), var(--shadow-hover) !important;
  border-color: rgba(212,175,55,0.45) !important;
  z-index: 2;
  position: relative;
}

/* ── LANG TOGGLE ── */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-2);
  padding: 2px;
  gap: 1px;
  margin-left: 8px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.lang-btn.active {
  background: var(--gold);
  color: #000;
}
.lang-btn:not(.active):hover { color: var(--text-white); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  /* Hide desktop nav links — show hamburger on all non-desktop screens */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 30px; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  section { padding: 64px 0; }
  .section-title { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .nav-logo img { height: 44px; }
}
