/* ============================================================
   JABEZV AULT.ORG — GLOBAL STYLESHEET
   Designer Notes:
   - Fonts: Cinzel (headings) + Cormorant Garamond (body/display)
   - Palette: Deep charcoal bg, gold accents, cream text
   - All pages share this file + page-specific overrides
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dim:    #8B6914;
  --gold-muted:  rgba(201,168,76,0.15);
  --cream:       #F5F0E8;
  --parchment:   #EDE4D0;
  --deep:        #0D0B08;
  --dark:        #1A1710;
  --mid:         #2C2820;
  --text-body:   rgba(245,240,232,0.82);
  --text-muted:  rgba(245,240,232,0.45);

  --font-display: 'Cinzel', Georgia, serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;

  --max-width: 1100px;
  --content-width: 760px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.beta-banner {
  position: sticky;
  top: 72px;
  z-index: 1100;
  margin-top: 72px;
  padding: 18px 22px;
  background: #C9A84C;
  color: #FFFFFF;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(255,255,255,0.12);
}

img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── GRAIN TEXTURE OVERLAY ──────────────────────────────────── */
body::after {
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(13,11,8,0.95), transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.08);
  transition: background var(--transition);
}

.site-nav.scrolled {
  background: rgba(13,11,8,0.97);
  border-bottom-color: rgba(201,168,76,0.18);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cream);
  text-transform: uppercase;
}

.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid var(--gold-dim);
  color: var(--gold) !important;
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--deep) !important;
  border-color: var(--gold);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: all var(--transition);
}

/* ── PAGE HERO (shared) ────────────────────────────────────── */
.page-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 28px 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Vertical rule from top */
.hero-rule {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  margin: 0 auto 32px;
  animation: growDown 1.8s ease forwards;
}

@keyframes growDown {
  from { height: 0; opacity: 0; }
  to   { height: 80px; opacity: 1; }
}

.hero-cross {
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 20px;
  margin-bottom: 12px;
  animation: fadeIn 1.5s ease 0.3s both;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 24px;
  animation: fadeIn 1.5s ease 0.5s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 12px;
  animation: fadeUp 1.5s ease 0.7s both;
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  color: var(--gold-light);
  margin-bottom: 40px;
  animation: fadeUp 1.5s ease 0.9s both;
}

.gold-bar {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 20px auto;
  animation: fadeIn 2s ease 1s both;
}

.hero-verse {
  max-width: 520px;
  margin: 0 auto;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  border-left: 1px solid var(--gold-dim);
  padding-left: 20px;
  text-align: left;
  animation: fadeIn 2s ease 1.2s both;
}

.hero-verse cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gold-dim);
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 3s ease 2s both;
}

.scroll-cue span {
  font-family: var(--font-display);
  font-size: 0.52rem;
  letter-spacing: 0.4em;
  color: var(--text-muted);
}

.scroll-cue-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* ── SECTIONS & LAYOUT ──────────────────────────────────────── */
.section {
  padding: 96px 28px;
  position: relative;
}

.section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-inner.wide {
  max-width: var(--max-width);
}

/* ── SECTION LABEL ──────────────────────────────────────────── */
.section-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 20px;
}

/* ── DIVIDERS ───────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 64px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.3));
}

.divider-line.r {
  background: linear-gradient(to left, transparent, rgba(201,168,76,0.3));
}

.divider-sym {
  color: var(--gold-dim);
  font-size: 0.75rem;
}

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(201,168,76,0.12);
  padding: 40px 36px;
  position: relative;
  margin-bottom: 28px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 1px;
  background: var(--gold);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 400;
}

.card p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 14px;
}

.card p:last-child { margin-bottom: 0; }

/* ── PULL QUOTE ─────────────────────────────────────────────── */
.pull-quote {
  border-top: 1px solid rgba(201,168,76,0.25);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  padding: 48px 40px;
  margin: 56px 0;
  text-align: center;
}

.pull-quote p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1.65;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  transition: all var(--transition);
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: var(--gold);
  color: var(--deep);
  border-color: var(--gold);
}

.btn-solid {
  background: var(--gold);
  color: var(--deep);
  border-color: var(--gold);
}

.btn-solid:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--deep);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 60px 40px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: var(--cream);
  margin-bottom: 8px;
}

.footer-logo span { color: var(--gold); }

.footer-tagline {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  list-style: none;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-nav a:hover { color: var(--gold); }

.footer-verse {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.footer-copy {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: rgba(245,240,232,0.2);
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal class (toggled by JS) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  body { font-size: 16px; }

  .site-nav { padding: 0 20px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(13,11,8,0.98);
    flex-direction: column;
    padding: 32px 28px 40px;
    gap: 28px;
    border-bottom: 1px solid rgba(201,168,76,0.15);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: flex; }

  .section { padding: 64px 20px; }

  .card { padding: 28px 22px; }

  .pull-quote { padding: 32px 20px; }
}
