/* ════════════════════════════════════════════════
   QUONA — Shared Site Chrome
   Reset · Variables · Body · Nav · Footer ·
   Mobile Nav · Accessibility · Animations
   ════════════════════════════════════════════════ */

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

/* ── VARIABLES ── */
:root {
  --bg:          #100e14;
  --bg2:         #18141c;
  --bg3:         #201a28;
  --gold:        #c8922a;
  --gold-dim:    #7a5510;
  --gold-hi:     #e4a83a;
  --plum:        #7a4a9a;
  --plum-dim:    #4a2a6a;
  --plum-hi:     #a070c8;
  --cream:       #ede8d8;
  --cream-dim:   #8878a0;
  --border:      rgba(180,140,220,0.12);
  --border-hi:   rgba(200,146,42,0.35);
  --border-gold: rgba(200,146,42,0.2);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035; pointer-events: none; z-index: 1000;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  margin-top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 48px;
  background: linear-gradient(to bottom, rgba(16,14,20,0.97) 0%, transparent 100%);
  transition: background .35s ease, backdrop-filter .35s ease;
}
nav.scrolled {
  background: rgba(16,14,20,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 22px; font-weight: 500;
  color: var(--gold); text-decoration: none;
  letter-spacing: 0.15em;
  transition: color .3s;
}
.nav-logo:hover { color: var(--gold-hi); }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); text-decoration: none;
  position: relative; transition: color .3s;
}
.nav-links a.active { color: var(--cream); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--plum-hi);
  transition: width .3s ease;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ── FOOTER ── */
footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 16px; color: var(--gold-dim); letter-spacing: 0.15em;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 16px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cream-dim); text-decoration: none; transition: color .3s;
}
.footer-links a:hover { color: var(--plum-hi); }
.footer-copy {
  font-size: 16px; color: var(--cream-dim); opacity: 0.6; letter-spacing: 0.1em;
}

/* ── DIVIDER ── */
.divider {
  display: flex; align-items: center; gap: 18px;
  padding: 0 48px;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-gem {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; color: var(--gold-dim); opacity: 0.7;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

/* ── STATUS DOT ── */
.status-dot {
  width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
  animation: pulse 2.5s ease infinite;
}

/* ── SELECTION ── */
::selection { background: rgba(122,74,154,0.3); color: var(--cream); }

/* ── MOBILE NAV ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 300;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16,14,20,0.98);
  z-index: 250;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 8vw, 52px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color .3s;
  padding: 10px 0;
}
.nav-overlay a:hover, .nav-overlay a.active { color: var(--cream); }
.nav-overlay-close {
  position: absolute;
  top: 28px; right: 24px;
  font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-dim);
  background: none; border: none;
  transition: color .3s;
}
.nav-overlay-close:hover { color: var(--cream); }
.nav-overlay-footer {
  position: absolute;
  bottom: 36px;
  display: flex; gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 20px;
  width: 100%;
}
.nav-overlay-footer a {
  font-family: 'Jost', sans-serif;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 0;
  transition: color .3s;
}
.nav-overlay-footer a:hover { color: var(--gold); }

/* ── ACCESSIBILITY ── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--plum-hi);
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 9999;
  background: var(--gold);
  color: var(--bg);
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 20px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 24px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── WORDPRESS ADMIN BAR ── */
.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar nav { top: 46px; }
}

/* ── RESPONSIVE NAV ── */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 16px; letter-spacing: 0.12em; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 480px) {
  nav { padding: 16px 20px; }
  .nav-hamburger { display: flex; }
}

/* ── RESPONSIVE FOOTER ── */
@media (max-width: 600px) {
  footer {
    padding: 32px 20px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }
}
