/* ═══════════════════════════════════════════════════════════════
   Wildfire Dating — Interior Page Styles
   Shared across about.html, how-it-works.html, ethics.html
   Requires tokens.css to be loaded first.
═══════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ash);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  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.035'/%3E%3C/svg%3E");
  background-size: 256px;
  opacity: .5;
  mix-blend-mode: overlay;
}

/* ── NAVIGATION ────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(12,8,6,.96);
  border-bottom: 1px solid rgba(201,168,76,.12);
  backdrop-filter: blur(12px);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold-lt);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nav-wordmark .flame { color: var(--ember); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-lt); }

.nav-cta {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ash);
  background: linear-gradient(135deg, var(--ember), var(--flame));
  border: none; border-radius: 2px;
  padding: 10px 24px;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

/* Mobile nav */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center;
  align-items: center; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--gold-lt); transition: all .25s;
}

/* ── PAGE HERO (interior pages) ────────────────────────────── */
.page-hero {
  position: relative; z-index: 2;
  padding: 160px 48px 100px;
  text-align: center;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(232,93,32,.45) 30%,
    rgba(201,168,76,.65) 50%,
    rgba(232,93,32,.45) 70%, transparent 100%);
}

.page-eyebrow {
  font-family: var(--font-display);
  font-size: 10px; letter-spacing: .44em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 24px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 24px;
}
.page-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-lt) 0%, var(--flame) 60%, var(--ember) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subtitle {
  font-family: var(--font-body);
  font-style: italic; font-weight: 300;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--smoke);
  max-width: 640px; margin: 0 auto;
  line-height: 1.65;
}

/* ── CONTENT LAYOUT ────────────────────────────────────────── */
.page-content {
  position: relative; z-index: 2;
  max-width: 860px; margin: 0 auto;
  padding: 80px 48px 140px;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: .38em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 20px; margin-top: 72px;
}
.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; letter-spacing: .10em;
  color: var(--cream); margin-bottom: 16px; margin-top: 48px;
}

.page-content p {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.8; color: var(--smoke);
  margin-bottom: 24px;
}

.page-content p strong {
  font-weight: 600; color: var(--cream); font-style: normal;
}

.page-content p em {
  color: var(--gold-lt); font-style: italic;
}

/* Lace divider */
.lace-rule {
  display: flex; align-items: center; gap: 12px;
  margin: 56px 0;
}
.lace-rule .lr-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.30));
}
.lace-rule .lr-line:last-child {
  background: linear-gradient(90deg, rgba(201,168,76,.30), transparent);
}
.lace-rule .lr-diamond {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg); opacity: .5;
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-body);
  font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--cream);
  line-height: 1.6;
  padding: 32px 48px;
  border-left: 3px solid var(--ember);
  margin: 48px 0;
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  position: absolute; top: 8px; left: 16px;
  font-size: 60px; line-height: 1;
  color: rgba(232,93,32,.25);
  font-family: var(--font-body);
}

/* Highlighted block */
.highlight-block {
  background: linear-gradient(160deg, rgba(74,20,40,.40), rgba(22,14,10,.80));
  border: 1px solid rgba(201,168,76,.20);
  border-radius: 4px;
  padding: 40px 48px;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}
.highlight-block::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), var(--gold), var(--ember), transparent);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  position: relative; z-index: 2;
  padding: 48px;
  border-top: 1px solid rgba(201,168,76,.10);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-mark {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-lt);
}
.footer-mark .flame { color: var(--ember); }
.footer-mottos {
  text-align: center;
  font-family: var(--font-body);
  font-style: italic; font-size: 14px;
  color: var(--dim); line-height: 1.8;
}
.footer-links {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-display);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim); text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--gold-lt); }

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .10s; }
.reveal-delay-2 { transition-delay: .22s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 57px; left: 0; right: 0;
    background: rgba(12,8,6,.98);
    padding: 24px; gap: 20px;
    border-bottom: 1px solid rgba(201,168,76,.12);
  }
  .page-hero, .page-content { padding-left: 24px; padding-right: 24px; }
  .pull-quote { padding: 24px 24px 24px 32px; }
  .highlight-block { padding: 28px 24px; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
