/* ─────────────────────────────────────────────────────────────────────────────
   Desert of Louisiana — A.E.A.O.N.M.S., Inc.
   Stylesheet — Cinzel + Crimson Text + Playfair Display
   ───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&family=Playfair+Display:ital,wght@0,700;1,400;1,600&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --primary:       #007046;
  --primary-dark:  #005535;
  --primary-deep:  #002818;
  --gold:          #C9A84C;
  --gold-light:    #E8C96A;
  --gold-muted:    #A88830;
  --red-accent:    #B8232A;
  --cream:         #F2F7F4;
  --parchment:     #E8F3EE;
  --parchment-dark:#CAE0D4;
  --off-white:     #F5FAF7;
  --text-dark:     #081A10;
  --text-mid:      #2A4A38;
  --text-light:    #E8F3EE;
  --border-gold:   rgba(201,168,76,0.35);
  --nav-h:         80px;
  --transition:    cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography Utilities ──────────────────────────────────────────────────── */
.font-cinzel   { font-family: 'Cinzel', serif; }
.font-crimson  { font-family: 'Crimson Text', serif; }
.font-playfair { font-family: 'Playfair Display', serif; }

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-muted);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  line-height: 1.1;
  color: inherit;
}

h1.section-title { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3.section-title { font-size: clamp(1.3rem, 3vw, 1.8rem); }

.pull-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--primary);
}

/* ─── Gold Dividers ─────────────────────────────────────────────────────────── */
.gold-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  border: none;
  margin: 1.5rem 0;
  transform-origin: left center;
}

.gold-divider.centered { margin-left: auto; margin-right: auto; }

.gold-divider-full {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: none;
  margin: 0;
}

/* Cross ornament divider */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-muted));
}
.ornament-divider::after {
  background: linear-gradient(90deg, var(--gold-muted), transparent);
}
.ornament-divider span {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.2rem;
}

/* ─── Layout Containers ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Navigation ────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--primary-deep);
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: box-shadow 0.3s var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.nav-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}

.nav-name {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  line-height: 1.2;
}

.nav-name span {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(232,201,106,0.65);
  text-transform: uppercase;
}

#navLinks {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,234,224,0.75);
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
  transition: color 0.25s, background 0.25s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.1);
}

.nav-cta {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--gold);
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  margin-left: 0.75rem;
  transition: background 0.25s;
  cursor: pointer;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-light); }

/* Dropdown nav */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > .nav-link::after {
  content: ' ▾';
  font-size: 0.55rem;
  opacity: 0.6;
  letter-spacing: 0;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  background: var(--primary-deep);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 3px;
  overflow: hidden;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,234,224,0.75);
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { color: var(--gold-light); background: rgba(201,168,76,0.08); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transform-origin: center;
}

/* ─── Page Sections (SPA Routing) ───────────────────────────────────────────── */
.page-section {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.page-section.active { display: block; }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 6rem;
  overflow: hidden;
  background: var(--primary-deep);
}

/* Parallax background layer */
.hero-parallax-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(123,26,46,0.5) 0%, transparent 70%),
    linear-gradient(160deg, var(--primary-deep) 0%, #0D0205 50%, #1A0509 100%);
  will-change: transform;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(201,168,76,0.06) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(201,168,76,0.06) 60px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  will-change: transform;
}

.hero-seal {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  margin: 0 auto 2rem;
  box-shadow: 0 0 0 6px rgba(201,168,76,0.15), 0 0 40px rgba(123,26,46,0.6);
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-family: 'Crimson Text', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  color: rgba(240,234,224,0.82);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}

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

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold);
}
.btn-outline:hover { background: rgba(201,168,76,0.12); }

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

.btn-red {
  background: var(--red-accent);
  color: #fff;
  border-color: var(--red-accent);
}
.btn-red:hover { background: #8B1A1A; border-color: #8B1A1A; }

/* ─── Content Sections ──────────────────────────────────────────────────────── */
.content-section {
  padding: 6rem 0;
  background: var(--cream);
  color: var(--text-dark);
}

.content-section.alt {
  background: var(--parchment);
}

.content-section.dark {
  background: var(--primary-deep);
  color: var(--text-light);
}

.content-section.dark .section-title { color: var(--gold-light); }
.content-section.dark .section-label { color: var(--gold-muted); }
.content-section.dark p { color: rgba(240,234,224,0.82); }

.content-section.mid-dark {
  background: var(--primary-dark);
  color: var(--text-light);
}
.content-section.mid-dark .section-title { color: var(--gold-light); }

/* Section header block */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 1rem;
  color: var(--text-mid);
}

.content-section.dark .section-header p,
.content-section.mid-dark .section-header p {
  color: rgba(240,234,224,0.75);
}

/* ─── Two-Column Layout ─────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.two-col.asymmetric {
  grid-template-columns: 3fr 2fr;
}

/* ─── Cards — Program ───────────────────────────────────────────────────────── */
.card-group {
  display: grid;
  gap: 1.5rem;
}

.card-group.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-group.cols-3 { grid-template-columns: repeat(3, 1fr); }

.program-card {
  background: #fff;
  border-radius: 4px;
  padding: 2rem 1.75rem;
  border-top: 3px solid var(--red-accent);
  box-shadow: 0 2px 20px rgba(26,5,9,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26,5,9,0.12);
}

.program-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.program-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.program-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-mid);
}

/* ─── Cards — Values / Six Pillars ─────────────────────────────────────────── */
.value-card {
  padding: 2rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(201,168,76,0.04);
}

.value-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(240,234,224,0.78);
}

/* ─── Cards — Membership Benefit ───────────────────────────────────────────── */
.benefit-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
}

.benefit-card .benefit-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.benefit-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.benefit-card p {
  font-size: 0.9rem;
  color: rgba(240,234,224,0.72);
  line-height: 1.5;
}

/* ─── Cards — Tier (Donate) ─────────────────────────────────────────────────── */
.tier-card {
  background: #fff;
  border-radius: 4px;
  padding: 2.5rem 2rem;
  border: 2px solid var(--parchment-dark);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  position: relative;
  will-change: transform;
}

.tier-card.selected,
.tier-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(201,168,76,0.15);
}

.tier-card .tier-amount {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tier-card .tier-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 1rem;
}

.tier-card .tier-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.tier-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark));
  color: var(--text-light);
}
.tier-card.featured .tier-amount { color: var(--gold-light); }
.tier-card.featured .tier-label { color: var(--gold-muted); }
.tier-card.featured .tier-desc { color: rgba(240,234,224,0.75); }

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--primary-deep);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* ─── Cards — Involve ───────────────────────────────────────────────────────── */
.involve-card {
  background: #fff;
  border-radius: 4px;
  padding: 2rem 1.75rem;
  border-top: 3px solid var(--gold);
  text-align: center;
  box-shadow: 0 2px 20px rgba(26,5,9,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.involve-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26,5,9,0.12);
}

.involve-card .involve-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.involve-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.involve-card p {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ─── Stats / Counters ──────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {}

.counter {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,234,224,0.6);
  margin-top: 0.5rem;
  display: block;
}

/* ─── Pull Quote / Brotherhood Section ─────────────────────────────────────── */
.quote-section {
  position: relative;
  padding: 7rem 0;
  text-align: center;
  overflow: hidden;
}

.quote-section .parallax-bg {
  position: absolute;
  inset: -20%;
  will-change: transform;
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.5;
  color: var(--gold-light);
  max-width: 800px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.quote-attribution {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-muted);
  position: relative;
  z-index: 1;
}

/* ─── History Section ───────────────────────────────────────────────────────── */
.history-year {
  font-family: 'Cinzel', serif;
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 900;
  color: rgba(201,168,76,0.08);
  line-height: 0.85;
  pointer-events: none;
  position: absolute;
  right: -1rem;
  bottom: -1rem;
}

/* ─── Temple Cards ──────────────────────────────────────────────────────────── */
.temple-card {
  background: #fff;
  border-radius: 4px;
  padding: 2rem;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 20px rgba(26,5,9,0.07);
  transition: border-left-color 0.25s, transform 0.25s;
}
.temple-card:hover {
  border-left-color: var(--gold);
  transform: translateX(4px);
}

.temple-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.temple-card .temple-location {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 0.75rem;
}

.temple-card p {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ─── Pillars List (Desert Experience) ─────────────────────────────────────── */
.pillars-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dark);
}

.pillars-list li::before {
  content: '✦';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.content-section.dark .pillars-list li {
  color: rgba(240,234,224,0.85);
  border-bottom-color: rgba(201,168,76,0.2);
}

/* Initiatives list with gold bullets */
.initiatives-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.initiatives-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-white);
}

.initiatives-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Forms ─────────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--parchment-dark);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ─── Modals ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,2,4,0.85);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-box {
  background: var(--cream);
  border-radius: 6px;
  padding: 3rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  border-top: 4px solid var(--gold);
  text-align: center;
}

.modal-icon { font-size: 3rem; margin-bottom: 1rem; }

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.modal-body {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-mid);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--primary); }

/* ─── Back to Top ───────────────────────────────────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--primary-deep);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { background: var(--gold-light); }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  background: var(--primary-deep);
  color: var(--text-light);
  border-top: 1px solid var(--border-gold);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-brand {}

.footer-seal-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-seal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}

.footer-name {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.3;
}
.footer-name small {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(232,201,106,0.55);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.footer-tagline {
  font-size: 0.93rem;
  color: rgba(240,234,224,0.6);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-gold);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a,
.footer-col ul li span {
  font-size: 0.88rem;
  color: rgba(240,234,224,0.65);
  transition: color 0.2s;
  cursor: pointer;
}
.footer-col ul li a:hover,
.footer-col ul li span:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(240,234,224,0.45);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
}

.footer-motto {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(201,168,76,0.55);
}

/* ─── Page Hero (inner pages) ───────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary-dark) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(201,168,76,0.03) 18px,
    rgba(201,168,76,0.03) 19px
  );
  pointer-events: none;
}

.page-hero .section-label { color: rgba(201,168,76,0.7); }
.page-hero .section-title { color: var(--gold-light); }

.page-hero p {
  font-size: 1.1rem;
  color: rgba(240,234,224,0.75);
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.65;
}

/* ─── CTA Banner ─────────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner .section-title { color: var(--gold-light); }
.cta-banner p {
  color: rgba(240,234,224,0.78);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 2rem;
}

/* ─── Parallax utilities ────────────────────────────────────────────────────── */
.parallax-section { position: relative; overflow: hidden; }
.parallax-bg { will-change: transform; }
.parallax-deco { pointer-events: none; will-change: transform; }
.parallax-seal { will-change: transform; }

/* ─── Utility classes ───────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.flex-center { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Requirement badge */
.req-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border-gold);
  border-radius: 3px;
  padding: 0.75rem 1.25rem;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

/* ─── Reduced motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-parallax-bg, .parallax-bg, .parallax-deco, .parallax-seal { transform: none !important; }
}

/* ─── Responsive — 1024px ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .two-col.asymmetric { grid-template-columns: 1fr 1fr; }
}

/* ─── Responsive — 768px ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  .nav-toggle { display: flex; }
  #navLinks {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--primary-deep);
    border-bottom: 1px solid var(--border-gold);
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    gap: 0.25rem;
  }
  #navLinks.open { display: flex; }
  .nav-link { width: 100%; padding: 0.75rem 1rem; font-size: 0.75rem; }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }

  .two-col,
  .two-col.asymmetric { grid-template-columns: 1fr; gap: 2.5rem; }

  .card-group.cols-2,
  .card-group.cols-3 { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }

  .form-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .initiatives-list { grid-template-columns: 1fr; }

  .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }

  .content-section { padding: 4rem 0; }

  .modal-box { padding: 2rem 1.5rem; }

  .page-hero { padding: 3.5rem 1.5rem 3rem; }
}

/* ─── Responsive — 480px ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; text-align: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ─── 3D Hover Cards ─────────────────────────────────────────────────────────── */
.card-3d {
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}

.card-3d:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 30px rgba(201,168,76,0.12);
}

/* Disable on touch devices */
@media (hover: none) {
  .card-3d { transform: none !important; }
  .card-shimmer { display: none !important; }
}

/* ─── Immersive Zoom ─────────────────────────────────────────────────────────── */
.zoom-section { position: relative; overflow: hidden; }
.zoom-bg { will-change: transform; }
.hero { overflow: hidden; will-change: transform; }

/* ─── Scroll Hint ────────────────────────────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.hero-scroll-hint span {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232,201,106,0.55);
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(201,168,76,0.6);
  border-bottom: 2px solid rgba(201,168,76,0.6);
  transform: rotate(45deg);
  display: block;
}

/* ─── Hero Floating Ornaments ────────────────────────────────────────────────── */
.hero-float {
  position: absolute;
  font-family: 'Cinzel', serif;
  color: var(--gold);
  pointer-events: none;
  z-index: 2;
  will-change: transform;
  opacity: 0.12;
  user-select: none;
  line-height: 1;
}

/* ─── Cards — Officers ───────────────────────────────────────────────────────── */
.officer-card {
  background: #fff;
  border-radius: 4px;
  border-top: 3px solid var(--gold);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  box-shadow: 0 2px 20px rgba(26,5,9,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.officer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(26,5,9,0.14);
}

.officer-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark));
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  overflow: hidden;
  flex-shrink: 0;
}

.officer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.officer-title {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 0.4rem;
}

.officer-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.officer-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Rank badge on featured officers */
.officer-rank {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-deep);
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

/* Hero word-split spans */
.hero-title .word {
  display: inline-block;
  overflow: hidden;
}
.hero-title .word-inner {
  display: inline-block;
}

/* ─── Hero Photo Overlay ─────────────────────────────────────────────────────── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,40,24,0.75) 0%,
    rgba(0,40,24,0.52) 40%,
    rgba(0,40,24,0.80) 100%
  );
  z-index: 1;
  pointer-events: none;
}
