/* The Resilient Open — shared styles for inner pages
 * Loaded by /itinerary, /sponsors, /faq and future phase-3 pages.
 * Mirrors the palette/typography of index.html without duplicating hero/section styles.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #26372c;
  --green-mid:  #344d3f;
  --green-dark: #1a2620;
  --cream:      #fff4e9;
  --cream-mid:  #f5ead8;
  --white:      #ffffff;
  --gold:       #b8732e;
  --gold-light: rgba(184,115,46,0.12);
  --gold-border:rgba(184,115,46,0.3);
  --text:       #1a2419;
  --text-2:     #4a5c4e;
  --text-3:     #8a9e8e;
  --border:     rgba(38,55,44,0.1);
  --serif:      'Fraunces', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --mono:       'Courier Prime', ui-monospace, monospace;
}

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }

/* ── NAV (matches index.html) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px;
  background: rgba(26,46,31,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(184,115,46,0.2);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  height: 72px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  padding: 0 52px;
  position: relative;
}
.nav-left, .nav-right {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.nav-right { justify-content: flex-end; gap: 22px; }
.nav-left a, .nav-right a {
  font-size: 11px; font-weight: 500;
  color: rgba(255,244,233,0.65);
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
  line-height: 1;
}
.nav-left a.active, .nav-right a.active { color: var(--gold); }
.nav-left a:hover, .nav-right a:hover { color: var(--cream); }

.nav-logo-center {
  display: flex; align-items: flex-start; justify-content: center;
  position: relative; z-index: 10;
}
.nav-logo-tab-wrap {
  overflow: hidden;
  display: flex; justify-content: center;
  height: 144px;
}
.nav-logo-tab {
  background: #1a2e1f;
  border-left: 1px solid rgba(184,115,46,0.4);
  border-right: 1px solid rgba(184,115,46,0.4);
  border-bottom: 1px solid rgba(184,115,46,0.4);
  padding: 22px 40px 50px;
  display: flex; align-items: flex-start; justify-content: center;
  width: 240px;
  flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}
.nav-logo-full {
  width: 110px; height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.96;
  display: block;
}

.nav-cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--cream) !important;
  padding: 10px 22px; border-radius: 0;
  font-weight: 600; font-size: 11px !important;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--gold);
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--cream);
  transform: translateX(-101%);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}
.nav-cta::after {
  content: '→'; font-size: 13px; display: inline-block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-cta:hover { color: var(--green) !important; }
.nav-cta:hover::before { transform: translateX(0); }
.nav-cta:hover::after { transform: translateX(4px); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--cream); padding: 4px; flex-direction: column;
  gap: 5px; align-items: center; justify-content: center;
  width: 36px; height: 36px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255,244,233,0.75); border-radius: 2px;
}
.nav-mobile-logo { display: none; }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(14,28,18,0.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif); font-size: 28px; font-weight: 700;
  color: var(--cream); letter-spacing: -0.01em;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,244,233,0.5); font-size: 28px; line-height: 1;
}
.mobile-menu-cta {
  background: var(--gold) !important; color: var(--cream) !important;
  padding: 14px 36px; border-radius: 32px;
  font-family: var(--sans) !important; font-size: 15px !important;
  font-weight: 600 !important;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--green);
  color: var(--cream);
  padding: 180px 52px 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(184,115,46,0.09) 0, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(184,115,46,0.05) 0, transparent 50%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.page-hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.page-hero-eyebrow::before {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--gold);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 900px;
}
.page-hero p.lead {
  font-size: 17px;
  color: rgba(255,244,233,0.72);
  line-height: 1.75;
  max-width: 640px;
  margin-top: 28px;
  font-weight: 300;
}

/* ── SECTIONS ── */
section.inner {
  padding: 96px 52px;
  background: var(--cream);
}
section.inner.alt { background: var(--white); }
section.inner.dark { background: var(--green); color: var(--cream); }
.inner-wrap { max-width: 1200px; margin: 0 auto; }
.narrow-wrap { max-width: 780px; margin: 0 auto; }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  max-width: 820px;
}
section.inner.dark .section-title { color: var(--cream); }
.section-lead {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 640px;
  font-weight: 300;
  margin-bottom: 2.5rem;
}
section.inner.dark .section-lead { color: rgba(255,244,233,0.72); }

/* ── BUTTONS ── */
.btn-gold, .btn-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0;
  transition: color 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-gold {
  background: var(--gold);
  color: var(--cream);
  border: 1px solid var(--gold);
}
.btn-gold::before {
  content: ''; position: absolute; inset: 0;
  background: var(--cream);
  transform: translateX(-101%);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}
.btn-gold:hover { color: var(--green); }
.btn-gold:hover::before { transform: translateX(0); }
.btn-gold::after {
  content: '→'; font-size: 14px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-gold:hover::after { transform: translateX(4px); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}
.btn-outline::before {
  content: ''; position: absolute; inset: 0;
  background: var(--green);
  transform: translateX(-101%);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}
.btn-outline:hover { color: var(--cream); }
.btn-outline:hover::before { transform: translateX(0); }
.btn-outline::after {
  content: '→'; font-size: 14px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-outline:hover::after { transform: translateX(4px); }

/* ── FOOTER (matches index.html) ── */
footer {
  background: var(--green);
  padding: 40px 52px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  border-top: 1px solid rgba(184,115,46,0.15);
}
.footer-brand { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--cream); font-style: italic; }
.footer-copy { font-size: 10px; color: rgba(255,244,233,0.35); margin-top: 4px; letter-spacing: 0.06em; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 11px; color: rgba(255,244,233,0.45); letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }
.footer-lls { font-size: 11px; color: rgba(255,244,233,0.35); text-align: right; }
.footer-lls a { color: var(--gold); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .page-hero { padding: 140px 24px 72px; }
  section.inner { padding: 72px 24px; }
  footer { padding: 32px 20px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .nav-left { display: none !important; }
  .nav-logo-center { display: none !important; }
  .nav-right a:not(.nav-cta):not(.hamburger) { display: none !important; }
  .nav-inner {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 64px;
  }
  .nav-mobile-logo { display: flex !important; align-items: center; }
  .nav-mobile-logo img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
  .nav-right { display: flex !important; height: 64px; justify-content: flex-end; align-items: center; gap: 12px; }
  .hamburger { display: flex !important; }
  nav { height: 64px; }
  .page-hero { padding-top: 110px; }
}

/* ── MOTION ── */
@keyframes roFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-hero > .page-hero-inner > * {
  opacity: 0;
  animation: roFadeUp 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.page-hero-inner > *:nth-child(1) { animation-delay: 100ms; }
.page-hero-inner > *:nth-child(2) { animation-delay: 220ms; }
.page-hero-inner > *:nth-child(3) { animation-delay: 340ms; }
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .page-hero > .page-hero-inner > *,
  [data-reveal] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
