/* ============================================================
   shared.css
   CSS variables, reset, scrollbar, ticker, nav, footer
   + responsive rules shared across all pages
   ============================================================ */

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

:root {
  --bg:        #FAFAF5;
  --surface:   #FFFFFF;
  --surface2:  #F2F0E8;
  --border:    #E0DDD4;
  --text:      #1A1628;
  --text-dim:  #6A6078;
  --text-muted:#AFA8BC;

  --lime:      #A2E048;
  --lime-dark: #7AB830;
  --purple:    #5B2BCC;
  --purple2:   #7B4BE8;
  --pink:      #EE50EE;
  --yellow:    #FCC85F;
  --green:     #7FD46A;

  --ticker-h:  40px;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Montserrat', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 4px; }

/* ─── TICKER ─────────────────────────────────────────── */
.ticker-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1001;
  height: var(--ticker-h);
  background: var(--lime);
  overflow: hidden;
  border-bottom: 2px solid var(--lime-dark);
}
.ticker-track {
  display: flex; white-space: nowrap; height: 100%;
  animation: tickerScroll 30s linear infinite;
}
.ticker-item {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text);
  padding: 0;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.ticker-sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: rgba(26,22,40,.35); margin: 0 24px; align-self: center; flex-shrink: 0; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── NAV ───────────────────────────────────────────── */
nav {
  position: fixed; top: var(--ticker-h); left: 0; right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 48px;
  background: rgba(250,250,245,.95);
  box-shadow: 0 2px 20px rgba(91,43,204,.08);
  backdrop-filter: blur(14px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 26px; width: auto; display: block; }
.nav-sun {
  height: 28px !important;
  width: 28px !important;
  animation: navSunSpin 8s linear infinite;
  flex-shrink: 0;
}
@keyframes navSunSpin { to { transform: rotate(360deg); } }
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 800;
  color: var(--text); letter-spacing: -.01em;
}
.nav-links {
  display: flex; gap: 2px; list-style: none;
  justify-content: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--text-dim); text-decoration: none;
  padding: 7px 16px; border-radius: 100px;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(91,43,204,.08); color: var(--text); }
.nav-right {
  display: flex; align-items: center; justify-content: flex-end; gap: 20px;
}
.nav-date {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .1em;
  color: var(--text-muted);
  white-space: nowrap;
}
.nav-cta {
  background: var(--text);
  color: #fff !important;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 22px; border-radius: 100px;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--purple) !important; }
.nav-back {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text-dim); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 100px;
  transition: border-color .2s, color .2s;
}
.nav-back:hover { border-color: var(--purple); color: var(--purple); }

/* ─── FOOTER ─────────────────────────────────────────── */
footer { background: var(--text); color: rgba(255,255,255,.7); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-col { padding: 52px 40px; border-right: 1px solid rgba(255,255,255,.08); }
.footer-col:last-child { border-right: none; }
.footer-logo img { height: 108px; width: auto; display: block; margin-bottom: 14px; }
.footer-tagline { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: .06em; line-height: 1.9; }
.footer-col-title { font-family: var(--font-mono); font-size: 10px; color: var(--lime); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-links { list-style: none; }
.footer-links li { border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-links a { display: block; font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none; padding: 9px 0; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--lime); padding-left: 5px; }
.footer-contact-item { font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,.5); padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); line-height: 1.5; }
.footer-contact-item a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-contact-item a:hover { color: var(--lime); }
.patron-img { width: 100%; height: auto; display: block; margin-top: 8px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.25); letter-spacing: .06em; }
.footer-socials { display: flex; gap: 0; }
.footer-social { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.35); text-decoration: none; padding: 8px 16px; border-left: 1px solid rgba(255,255,255,.08); letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.footer-social:hover { color: var(--lime); }

/* ─── HAMBURGER MENU ────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: calc(var(--ticker-h) + 57px);
  left: 0; right: 0;
  background: rgba(250,250,245,.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 20px 24px 28px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.nav-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-drawer ul a {
  display: block;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  color: var(--text); text-decoration: none;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.01em;
  transition: color .2s;
}
.nav-drawer ul a:hover { color: var(--purple); }
.nav-drawer .nav-drawer-cta {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 800;
  color: #fff; background: var(--purple);
  border-radius: 100px; padding: 13px 24px;
  text-decoration: none;
  transition: background .2s;
}
.nav-drawer .nav-drawer-cta:hover { background: var(--pink); }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 14px 24px; grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col:nth-child(2) { border-right: none; }
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }
  .footer-col:nth-child(4) { border-right: none; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-col { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer-col { padding: 32px 20px; }
}
