/* ===========================================================
   Fight Night For Hope styles
   Palette: black & white base, red used sparingly as an accent.
   Typography: Bebas Neue (display) + Inter (body), both sans-serif.
   Mobile-first throughout.
   =========================================================== */

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #121212;
  --color-surface: #1a1a1a;
  --color-border: #2a2a2a;
  --color-text: #f5f5f5;
  --color-text-muted: #a8a8a8;
  --color-accent: #c8102e; /* tasteful red, swap once an exact brand hex is provided */
  --color-accent-hover: #a50d26;

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1140px;
  --max-width-narrow: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow { max-width: var(--max-width-narrow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); }

.btn-ghost {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand { text-decoration: none; }

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

.main-nav {
  display: none;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.main-nav a:hover { color: var(--color-text); }

.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  width: 100%;
}

/* mobile nav panel */
.main-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 1.25rem;
  gap: 1.25rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at top right, rgba(200, 16, 46, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.68) 45%, rgba(0, 0, 0, 0.93) 100%),
    url('../assets/photos/hero-bg.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center 30%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  z-index: 0;
}

/* DEMO: glow near the truss lights that intensifies as you scroll through the hero.
   --scroll-progress is set by JS in script.js, 0 at top of hero, 1 once scrolled past it. */
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 65% 18%,
    rgba(255, 255, 255, calc(0.22 + var(--scroll-progress, 0) * 0.5)) 0%,
    rgba(200, 16, 46, calc(0.05 + var(--scroll-progress, 0) * 0.25)) 22%,
    transparent 48%
  );
}

/* DEMO: drifting bokeh specks over the hero */
.hero-bokeh {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bokeh span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.25) 55%, transparent 100%);
  filter: blur(1px);
  opacity: 0.5;
  animation: bokehFloat var(--duration, 12s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes bokehFloat {
  0% { transform: translate(0, 0) scale(1); opacity: 0.45; }
  100% { transform: translate(16px, -30px) scale(1.3); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bokeh span { animation: none; opacity: 0.4; }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0;
  opacity: 0;
  animation: heroImpactIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0.5rem 0 1.75rem;
  opacity: 0;
  animation: heroCinematicFade 1.2s ease-out 0.85s forwards;
}

.hero-tagline {
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  opacity: 0;
  animation: heroFadeUp 0.7s ease-out 1.05s forwards;
}

.hero-date {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 2rem;
  opacity: 0;
  animation: heroFadeUp 0.7s ease-out 1.3s forwards;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 1.55s forwards;
}

.hero-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }

.hero-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.hero-meta-value { font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 1.8s forwards;
}

.hero-hosted-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 2.05s forwards;
}

.hero-hosted-by-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.hero-hosted-by-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-hosted-by-partner {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-hosted-by-logos a {
  display: inline-flex;
  transition: opacity 0.2s ease;
}
.hero-hosted-by-logos a:hover { opacity: 0.75; }

.hero-hosted-by-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.hero-hosted-by-logo-badge {
  height: 84px;
}

/* on narrow/tall screens, cover-fitting the landscape photo crops out the fighter on the right; shift the crop window to keep him in frame.
   placed after the base hero rules above so these overrides actually win the cascade at matching specificity. */
@media (max-width: 639px) {
  .hero-bg {
    background-position: center, center, 62% 30%;
  }

  /* the hero reads as a wall of text on narrow screens; shrink the tagline to a
     tighter caption instead of a full paragraph, and tighten spacing elsewhere
     so it scans faster. desktop is untouched */
  .hero-tagline {
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0 0 1.25rem;
  }

  .hero-subtitle { margin-bottom: 1.25rem; }
  .hero-date { margin-bottom: 1.5rem; }

  .hero-meta {
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-top: 1.25rem;
  }

  .hero-hosted-by {
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
  }

  /* keep millan logo, label, and coalition logo on one row like desktop -
     just tighter, so "in partnership with" has room to sit on one line
     instead of wrapping mid-phrase and leaving an odd gap before the logo. */
  .hero-hosted-by-logos {
    gap: 0.65rem;
  }

  .hero-hosted-by-partner { gap: 0.45rem; }

  .hero-hosted-by-label {
    font-size: 0.62rem;
    white-space: nowrap;
  }

  .hero-hosted-by-logo { height: 38px; }
  .hero-hosted-by-logo-badge { height: 52px; }
}

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

/* confident, controlled entrance: rises and sharpens into place, no bounce */
@keyframes heroImpactIn {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* slow, cinematic reveal for the subtitle */
@keyframes heroCinematicFade {
  from { opacity: 0; transform: translateY(10px); letter-spacing: 0.3em; }
  to { opacity: 1; transform: translateY(0); letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-subtitle, .hero-tagline, .hero-date, .hero-meta, .hero-actions, .hero-hosted-by {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }

/* short single-paragraph section; full section padding leaves too big a gap before Event Details */
#be-part-of-the-fight { padding-bottom: 2rem; }
#details { padding-top: 2.5rem; }
.section-alt { background: var(--color-bg-alt); }

#fight-card {
  background-color: var(--color-bg-alt);
  background-image: linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.82) 45%, rgba(10, 10, 10, 0.95) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* background photo loads in via JS once the section is about to scroll into view, see script.js */
#fight-card.bg-loaded {
  background-image:
    linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.82) 45%, rgba(10, 10, 10, 0.95) 100%),
    url('../assets/photos/fight-card-bg.jpg');
  background-size: cover, cover;
  background-position: center, center top;
  background-repeat: no-repeat, no-repeat;
}

#faq {
  background-color: var(--color-bg-alt);
  background-image: linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.82) 45%, rgba(10, 10, 10, 0.95) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* background photo loads in via JS once the section is about to scroll into view, see script.js */
#faq.bg-loaded {
  background-image:
    linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.82) 45%, rgba(10, 10, 10, 0.95) 100%),
    url('../assets/photos/855186833_1474733024557248_2336091382022154015_n.jpg');
  background-size: cover, cover;
  background-position: center, center 25%;
  background-repeat: no-repeat, no-repeat;
}

@media (max-width: 639px) {
  #faq.bg-loaded {
    background-image:
      linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.82) 45%, rgba(10, 10, 10, 0.95) 100%),
      url('../assets/photos/865844211_1473037271393490_3053771390761360439_n.jpg');
    background-position: center, center 20%;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}
.section-title.center { text-align: center; }

.section-lede {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}
.section-lede.center { text-align: center; }

.placeholder-copy {
  color: var(--color-text-muted);
  font-style: italic;
  border-left: 2px solid var(--color-accent);
  padding-left: 1rem;
}
.placeholder-copy.center {
  border-left: none;
  padding-left: 0;
}

/* ---------- Beneficiaries ---------- */
.beneficiaries { margin-top: 3.5rem; text-align: center; }

.beneficiaries-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.beneficiary-logos {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.beneficiary-logos a,
.beneficiary-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 225px;
  height: 205px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1rem;
  transition: border-color 0.2s ease;
}
.beneficiary-logos a:hover { border-color: var(--color-accent); }

.beneficiary-logo {
  max-height: 145px;
  max-width: 94%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* a circular mark optically reads smaller than a wordmark at the same bounding height, so size it up slightly */
.beneficiary-logo-badge {
  max-height: 94px;
}

/* holds a logo plus a caption explaining what it is, stacked inside the same box */
.beneficiary-logo-box-stacked {
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* a logo paired with a caption needs to leave room for that text, so cap it shorter than a standalone logo */
.beneficiary-logo-box-stacked .beneficiary-logo { max-height: 100px; }

.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 210px;
  height: 150px;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-placeholder-name { color: var(--color-text); }

.logo-placeholder-note {
  font-size: 0.7rem;
  font-style: italic;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

/* ---------- Details grid ---------- */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.detail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.75rem;
}

.detail-card h3 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--color-accent);
}

.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.detail-list li:last-child { border-bottom: none; }

.detail-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-accent);
  text-decoration: none;
}

/* ---------- Coming soon badge (reused by fight card + stream CTA) ---------- */
.coming-soon-badge {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto 1rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Fight card ---------- */

.bout-group { margin-top: 3rem; }
.bout-group:first-of-type { margin-top: 2.5rem; }

.bout-group-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.fight-card-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 2rem 0 0;
}

.bout-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bout-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1rem;
}

.bout-fighters {
  display: flex;
  gap: 2px;
  width: 100%;
  max-width: 220px;
}

.bout-fighter-slot {
  flex: 1;
  aspect-ratio: 1;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* red corner / blue corner convention */
.bout-fighter-slot:first-child { background: rgba(200, 16, 46, 0.16); }
.bout-fighter-slot:last-child { background: rgba(37, 99, 235, 0.18); }

.bout-fighter-slot svg {
  width: 50%;
  height: 50%;
  fill: #fff;
}

.bout-info { display: flex; flex-direction: column; gap: 0.25rem; }

.bout-number {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.bout-matchup {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.2rem;
  margin: 0;
}

.bout-extra { display: none; }
.bout-list.show-all .bout-extra { display: flex; }

.bout-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bout-toggle:hover {
  background: var(--color-accent);
  color: #fff;
}

.bout-toggle-count {
  background: var(--color-accent);
  color: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.bout-toggle:hover .bout-toggle-count {
  background: #fff;
  color: var(--color-accent);
}

.bout-toggle-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.bout-toggle[aria-expanded="true"] .bout-toggle-icon {
  transform: rotate(180deg);
}

/* ---------- Sponsors ---------- */
.sponsor-cta {
  text-align: center;
}
.sponsor-cta p { margin-bottom: 1rem; color: var(--color-text-muted); }

/* ---------- Tickets ---------- */
.ticket-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.ticket-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0 0 0.5rem;
}
.ticket-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  margin: 0;
}
.ticket-subtitle {
  font-size: 0.85rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.ticket-price {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  margin: 0;
}

.givebutter-embed {
  background: #fff;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.vip-inquiry, .stream-cta {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}

/* room for the sticky header when jumping straight to this anchor */
#stream { scroll-margin-top: 90px; }
.vip-inquiry h3, .stream-cta h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.5rem;
}
.vip-inquiry p, .stream-cta p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--color-accent);
  font-size: 1.2rem;
}
.faq-item[open] summary::after { content: '\2212'; }

.faq-content {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.faq-content p {
  margin: 1rem 0 0;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.footer-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.25rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.footer-social a {
  color: var(--color-text-muted);
  display: inline-flex;
  transition: color 0.2s ease;
}
.footer-social a:hover { color: var(--color-accent); }

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-contact a:hover { color: var(--color-accent); }

/* ---------- Policy page ---------- */
.policy-page {
  padding-top: 1rem;
}

.policy-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: -1rem 0 2.5rem;
}

.policy-page h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.4rem;
  color: var(--color-accent);
  margin: 2.5rem 0 0.75rem;
}

.policy-page p {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.policy-page a {
  color: var(--color-text);
}
.policy-page a:hover { color: var(--color-accent); }

/* ===========================================================
   Breakpoints
   =========================================================== */
@media (min-width: 640px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .beneficiary-logos { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .footer-contact { align-items: flex-end; }
  .bout-row { flex-direction: row; align-items: center; }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .nav-cta { display: inline-block; }
  .nav-toggle { display: none; }
}

/* ===========================================================
   Scroll reveal
   Sections/cards fade up into place as they enter the viewport.
   JS (script.js) adds .is-visible via IntersectionObserver.
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

/* stagger direct .reveal children of a .reveal-stagger container */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===========================================================
   DEMO: hero-only dust + film grain atmosphere (not yet deployed)
   =========================================================== */
.hero-dust {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-dust span {
  position: absolute;
  left: var(--x);
  bottom: -5%;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  filter: blur(0.5px);
  opacity: 0;
  animation: dustRise var(--duration, 20s) linear var(--delay, 0s) infinite;
}

@keyframes dustRise {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: 0.14; }
  92% { opacity: 0.14; }
  100% { transform: translate(var(--drift, 20px), -100vh); opacity: 0; }
}

.hero-grain {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  opacity: 0.015;
  mix-blend-mode: overlay;
  animation: grainShift 1s steps(6) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2%, -3%); }
  40% { transform: translate(-4%, 2%); }
  60% { transform: translate(2%, -4%); }
  80% { transform: translate(-3%, 3%); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dust { display: none; }
  .hero-grain { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-content { transition: none; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover { background: var(--color-accent); }

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* desktop only, per request */
@media (max-width: 899px) {
  .back-to-top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.15s linear;
    transform: none;
  }
}
