/* ============================================================
   RIVERSTONES — CORE DESIGN SYSTEM
   Navy/gold intelligence aesthetic. Cormorant Garamond + Inter.
   ============================================================ */

:root {
  --navy:    #0B1623;
  --navy2:   #111D2E;
  --navy3:   #0E1828;
  --navy4:   #16243A;
  --gold:    #A8922A;
  --gold2:   #C4A951;
  --gold3:   #DCC580;
  --teal:    #3E7C8C;
  --teal2:   #5A9BAC;
  --cream:   #F0EDE6;
  --muted:   #8C9BAD;
  --rule:    rgba(168,146,42,0.25);
  --rule2:   rgba(168,146,42,0.12);
  --rule3:   rgba(240,237,230,0.08);
  --white:   #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  background: var(--navy);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--gold); color: var(--navy); }

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 1.5px solid var(--gold2);
  outline-offset: 3px;
}

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(11,22,35,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule2);
}
.nav-logo { display: flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 40px; width: 40px; }
.nav-brand { display: flex; flex-direction: column; }
.nav-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--gold2); text-transform: uppercase; white-space: nowrap;
}
.nav-brand-tag { font-size: 8.5px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.current { color: var(--gold2); }
.nav-links a.current { border-bottom: 1px solid var(--gold2); padding-bottom: 4px; }

.nav-cta {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); background: var(--gold);
  border: none; padding: 10px 20px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 600;
  transition: background 0.2s; white-space: nowrap; text-decoration: none;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold2); }

.nav-burger { display: none; }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  padding: 168px 48px 72px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--rule2);
}
.page-hero-eyebrow {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.page-hero-eyebrow::before { content:''; width: 28px; height: 1px; background: var(--gold); }
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5.2vw, 72px); font-weight: 300; line-height: 1.05;
  letter-spacing: -0.01em; max-width: 880px;
}
.page-hero-title em { font-style: italic; color: var(--gold2); }
.page-hero-sub {
  font-size: 15px; color: var(--muted); max-width: 600px; line-height: 1.8;
  margin-top: 24px;
}

/* ── SECTION BASE ── */
section { padding: 96px 48px; position: relative; }
.section-inner { max-width: 1140px; margin: 0 auto; }
.section-inner.narrow { max-width: 880px; }
.section-eyebrow {
  font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 3.6vw, 52px); font-weight: 300; line-height: 1.12;
  letter-spacing: -0.01em; margin-bottom: 22px;
}
.section-title em { font-style: italic; color: var(--gold2); }
.section-intro {
  font-size: 15px; color: var(--muted); max-width: 620px; line-height: 1.8;
  margin-bottom: 56px;
}
.bg-alt { background: var(--navy2); }
.gold-rule { width: 100%; height: 1px; background: var(--rule); }

/* ── BUTTONS ── */
.btn-primary {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); background: var(--gold);
  padding: 14px 30px; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 600;
  transition: background 0.2s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--gold2); }
.btn-outline {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold2); background: transparent;
  padding: 13px 30px; border: 1px solid var(--rule);
  cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 500;
  transition: border-color 0.2s, color 0.2s; text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: var(--gold2); color: var(--gold2); }

/* ── STAT STRIP ── */
.stat-strip {
  display: flex; flex-wrap: wrap; gap: 56px;
  border-top: 1px solid var(--rule2); border-bottom: 1px solid var(--rule2);
  padding: 40px 0;
}
.stat { }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px; font-weight: 300; color: var(--gold2); line-height: 1;
}
.stat-label { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ── CARDS ── */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule2); }
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule2); }
.panel { background: var(--navy3); padding: 38px; }
.panel-tag { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.panel-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; margin-bottom: 10px; color: var(--cream); }
.panel-text { font-size: 13px; color: var(--muted); line-height: 1.75; }

.bullet-list { list-style: none; }
.bullet-list li {
  font-size: 12.5px; color: rgba(240,237,230,0.78);
  padding: 7px 0; border-bottom: 1px solid var(--rule2);
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.bullet-list li::before { content: '◆'; color: var(--gold); font-size: 6px; margin-top: 5px; flex-shrink: 0; }
.bullet-list li:last-child { border-bottom: none; }

/* ── QUOTE BLOCK ── */
.quote-block {
  background: var(--navy3);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 72px 48px; text-align: center;
}
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.6vw, 32px); font-style: italic;
  font-weight: 300; max-width: 820px; margin: 0 auto 18px;
  color: var(--cream); line-height: 1.45;
}
.quote-attr { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* ── FOOTER ── */
footer.site-footer {
  background: var(--navy3); border-top: 1px solid var(--rule2);
  padding: 56px 48px 28px;
}
.footer-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid var(--rule3);
}
.footer-col-title { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold2); }
.footer-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-logo img { height: 36px; width: 36px; }
.footer-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: var(--gold2); letter-spacing: 0.08em; }
.footer-desc { font-size: 12.5px; color: var(--muted); line-height: 1.7; max-width: 320px; }
.footer-bottom {
  max-width: 1140px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-left { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.footer-bottom-right { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer-gold { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.85s ease both; }
.fade-d1 { animation-delay: 0.08s; }
.fade-d2 { animation-delay: 0.2s; }
.fade-d3 { animation-delay: 0.34s; }
.fade-d4 { animation-delay: 0.48s; }
.fade-d5 { animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Reveal-on-scroll animation was removed (it caused content to stay
   invisible when the JS observer didn't fire in some viewers).
   .reveal is kept as a plain marker class with no visual effect, so
   existing markup doesn't need to change. */
.reveal { opacity: 1; }

/* ── ICON (thin-line SVG wrapper) ── */
.icon-sm { width: 22px; height: 22px; stroke: var(--gold2); fill: none; stroke-width: 1.3; }
.icon-md { width: 32px; height: 32px; stroke: var(--gold2); fill: none; stroke-width: 1.2; }

/* ── SCENE PANELS (original generative imagery, no stock photos) ── */
.scene {
  position: relative; overflow: hidden; background: var(--navy3);
  min-height: 320px; display: flex; align-items: center; justify-content: center;
}
.scene svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.scene-caption {
  position: absolute; bottom: 18px; left: 24px;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold3);
  opacity: 0.85;
}

/* Generic scene frame used across all pages for embedded SVG illustrations */
.scene-frame {
  position: relative; overflow: hidden;
  background: var(--navy3); border: 1px solid var(--rule2);
  aspect-ratio: 16/9; margin-bottom: 8px;
}
.scene-frame.tall { aspect-ratio: 4/3.3; }
.scene-frame.wide { aspect-ratio: 21/7; }
.scene-frame .scene-svg { width: 100%; height: 100%; display: block; }
.scene-frame .scene-caption {
  position: absolute; bottom: 14px; left: 20px;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold3); opacity: 0.8; margin: 0;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold2); }
.breadcrumb span { color: var(--gold2); }

/* ── MOBILE ── */
@media (max-width: 980px) {
  nav.site-nav { padding: 14px 20px; }
  .nav-links { display: none; }
  section { padding: 64px 22px; }
  .page-hero { padding: 130px 22px 56px; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-brand-tag { display: none; }
}
