/* ==========================================================================
   NUVOX — Core stylesheet
   Design tokens, reset, typography, navigation, buttons, footer, loader
   (Fonts are enqueued separately via functions.php — no @import here,
   since @import forces a slow, serial extra request.)
   ========================================================================== */

:root {
  /* ---- Palette ---- */
  --bg-0: #08090b;          /* base background, blue-charcoal black */
  --bg-1: #0f1114;          /* raised surface */
  --bg-2: #16191d;          /* elevated surface */
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text-0: #f4f3f0;        /* primary text, warm off-white */
  --text-1: rgba(244, 243, 240, 0.68);
  --text-2: rgba(244, 243, 240, 0.42);

  --gold: #c9a15a;          /* Alloy Gold — luxury accent */
  --gold-dim: #8a7043;
  --ion: #4c7cff;           /* Ion Blue — kinetic/interactive accent */
  --ion-dim: #2c4aa8;
  --ember: #b23a2f;         /* Street colorway accent */

  --glass-fill: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.12);

  /* ---- Type ---- */
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ---- Layout ---- */
  --container: 1360px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------------------------- Reset ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
input, select { font-family: inherit; }

::selection { background: var(--gold); color: #14120c; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-2); border-radius: 10px; border: 2px solid var(--bg-0); }

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

/* ---------------------------- Type scale ---------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
}

.display-xl { font-size: clamp(3rem, 9vw, 8.5rem); }
.display-l  { font-size: clamp(2.4rem, 6vw, 5.2rem); }
.display-m  { font-size: clamp(1.8rem, 3.4vw, 3rem); }

.text-lede { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--text-1); font-weight: 300; max-width: 46ch; }

.mono { font-family: var(--font-mono); }

/* ---------------------------- Buttons ---------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease-out), background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--text-0); color: var(--bg-0); }
.btn-primary:hover { background: var(--gold); }
.btn-outline { border-color: var(--line-strong); color: var(--text-0); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { color: var(--text-1); background: transparent; padding: 10px 4px; }
.btn-ghost:hover { color: var(--text-0); }
.btn-sm { padding: 11px 22px; font-size: 11.5px; }
.btn-icon {
  width: 46px; height: 46px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--glass-fill); color: var(--text-0);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .3s ease, transform .3s var(--ease-out);
}
.btn-icon:hover { border-color: var(--gold); color: var(--gold); }

/* magnetic wrapper target */
[data-magnetic] { will-change: transform; }

/* ---------------------------- Glassmorphism ---------------------------- */
.glass {
  background: var(--glass-fill);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
}

/* ---------------------------- Loader ---------------------------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-0);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity 0.8s var(--ease-in-out), visibility 0.8s;
}
#loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  font-family: var(--font-display); font-size: 15px; letter-spacing: 0.3em;
  color: var(--text-0); text-transform: uppercase;
}
.loader-bar {
  width: 220px; height: 1px; background: var(--line); position: relative; overflow: hidden;
}
.loader-bar::after {
  content: ""; position: absolute; inset: 0; width: var(--p, 0%);
  background: var(--gold); transition: width 0.25s ease;
}
.loader-pct { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.1em; }

/* ---------------------------- Cursor ---------------------------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--gold); }
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid var(--line-strong);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s ease, background .25s ease;
}
.cursor-ring.is-active { width: 64px; height: 64px; border-color: var(--gold); background: rgba(201, 161, 90, 0.08); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------------------------- Navbar ---------------------------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 22px 0;
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  padding: 14px 0;
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(16px);
  border-color: var(--line);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
.brand span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links li, .mobile-menu li { list-style: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-1); position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold);
  transition: width .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text-0); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -4px; right: -4px; background: var(--gold); color: #14120c;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1200;
  background: var(--bg-0);
  transform: translateX(100%);
  transition: transform 0.55s var(--ease-in-out);
  display: flex; flex-direction: column; padding: 100px var(--gutter) 40px;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-display); font-size: 34px; padding: 14px 0; border-bottom: 1px solid var(--line);
  display: block; width: 100%;
}
.mobile-menu-close { position: absolute; top: 24px; right: var(--gutter); }

/* ---------------------------- Footer ---------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 90px 0 30px; margin-top: 140px; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px;
  padding-bottom: 64px; border-bottom: 1px solid var(--line);
}
.footer-brand p { color: var(--text-1); max-width: 34ch; margin-top: 18px; font-weight: 300; }
.footer-col h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 18px; }
.footer-col li { list-style: none; }
.footer-col a { display: block; color: var(--text-1); padding: 7px 0; font-size: 14.5px; transition: color .3s ease, transform .3s ease; }
.footer-col a:hover { color: var(--gold); transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { color: var(--text-2); font-size: 12.5px; font-family: var(--font-mono); }

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

/* ---------------------------- Utility ---------------------------- */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.section { padding: 140px 0; position: relative; }
@media (max-width: 700px) { .section { padding: 90px 0; } }
.divider { height: 1px; background: var(--line); width: 100%; }
