/* ═══════════════════════════════════════════════════
   EAB.COM — SHARED THEME
   Navy + Gold · Cloudflare Static
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

:root {
  --navy:       #0a0f1e;
  --navy2:      #0d1529;
  --navy3:      #111e33;
  --navy4:      #162040;
  --gold:       #c9a84c;
  --gold2:      #e8c96a;
  --gold3:      #f5dfa0;
  --gold-dim:   rgba(201,168,76,0.15);
  --gold-glow:  rgba(201,168,76,0.08);
  --text:       #e8edf5;
  --text2:      #8fa3c0;
  --text3:      #3d5473;
  --border:     rgba(201,168,76,0.2);
  --border2:    rgba(201,168,76,0.08);
  --radius:     4px;
  --nav-h:      68px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── CROSSHATCH BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* corner dots */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201,168,76,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* ── GOLD TOP/BOTTOM BARS ── */
.gold-bar-top,
.gold-bar-bottom {
  position: fixed;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold2), var(--gold), transparent);
  z-index: 1000;
}
.gold-bar-top { top: 0; }
.gold-bar-bottom { bottom: 0; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 48px;
  gap: 48px;
  z-index: 500;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { color: var(--text); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all 0.18s;
  position: relative;
}
.nav-link:hover { color: var(--gold2); }
.nav-link.active {
  color: var(--navy);
  background: var(--gold);
  font-weight: 500;
}

/* ── PAGE WRAPPER ── */
.page {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + 3px);
  min-height: 100vh;
}

/* ── SECTION ── */
.section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-sm { padding: 48px 48px; }

/* ── GOLD DIVIDER ── */
.gold-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0;
  opacity: 0.4;
}

/* ── EYEBROW LABEL ── */
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}

/* ── HEADINGS ── */
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 22px; }

.gold-italic { color: var(--gold); font-style: italic; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 500;
}
.btn-gold:hover { background: var(--gold2); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold-dim); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── CARDS ── */
.card {
  background: var(--navy2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--navy2);
  padding: 48px;
  text-align: center;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-social a {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.18s;
}
.footer-social a:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
}
.footer-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 13px;
  margin-top: 8px;
}

/* ── TOAST ── */
#toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 10px 24px;
  border-radius: 4px;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; gap: 16px; }
  .section { padding: 48px 20px; }
  .nav-links { gap: 2px; }
  .nav-link { padding: 6px 10px; font-size: 10px; }
}
