/* ============================================================
   BASE.CSS — Shared across all pages
   Variables · Reset · Nav · Footer · Buttons · Scroll bar
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,800;1,9..144,300&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:      #0a1628;
  --slate:     #0f2040;
  --steel:     #1e3a5f;
  --gold:      #c8962c;
  --amber:     #e8b44a;
  --ivory:     #f8f6f1;
  --offwhite:  #f0ece4;
  --muted:     #8fa3b8;
  --dark:      #111827;
  --bd-dark:   rgba(255,255,255,0.07);
  --bd-light:  rgba(0,0,0,0.08);
  --r:         7px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --font-d:    'Fraunces', Georgia, serif;
  --font-b:    'DM Sans', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-b); background: var(--ivory); color: var(--dark); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }
button { font-family: var(--font-b); cursor: pointer; border: none; background: none; }

/* ── Scroll progress bar ─────────────────────────────────────── */
.scroll-prog {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 2px; background: rgba(200,150,44,0.15);
  pointer-events: none;
}
.scroll-prog-fill {
  height: 100%; width: 0; background: var(--gold);
  transform-origin: left;
  transition: width 0.08s linear;
}

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 2px; left: 0; right: 0; z-index: 200;
  height: 60px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,22,40,0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bd-dark);
}
.nav-logo { font-family: var(--font-d); font-size: 18px; font-weight: 700; color: var(--offwhite); letter-spacing: -0.3px; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--offwhite); }
.nav-cta { /* shared button style applied */ }

@media (max-width: 640px) { .nav-links { display: none; } }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--bd-dark);
  padding: 24px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-logo { font-family: var(--font-d); font-size: 15px; font-weight: 700; color: var(--offwhite); }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--offwhite); }
.footer-copy { font-size: 12px; color: #2e4060; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--navy);
  font-family: var(--font-b); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--r); padding: 0 24px; height: 46px;
  position: relative; overflow: hidden;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 3.5s ease infinite;
}
.btn-primary:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(200,150,44,0.35);
}
.btn-primary:active { transform: translateY(0); }
@keyframes shimmer { 0% { left: -100%; } 55%, 100% { left: 160%; } }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--offwhite);
  font-family: var(--font-b); font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid rgba(240,236,228,0.2); border-radius: var(--r);
  padding: 0 22px; height: 46px;
  transition: border-color 0.2s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
}
.btn-outline:hover { border-color: rgba(240,236,228,0.5); transform: translateY(-2px); }

/* ── Scroll-reveal utility ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
