:root {
  --forest: #2E7DB8;
  --forest-deep: #1B4F73;
  --paper: #F5F9F1;
  --paper-dim: #E9F1E2;
  --gold: #F2B705;
  --gold-deep: #C99400;
  --rust: #4C8C4B;
  --ink: #23261F;
  --ink-soft: #4B4E43;
  --line: #D2DBCB;
  --cream-text: #F6FBF8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Big Shoulders Display', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.9rem;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ----------------------------------------------------
   SITE NAVIGATION
---------------------------------------------------- */
nav#site-nav {
  background: var(--forest-deep);
  color: var(--cream-text);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav#site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 44px;
  width: auto;
  display: block;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-item-link-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.nav-link {
  color: var(--cream-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 0;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-item:hover > .nav-item-link-wrap > .nav-link,
.nav-item:focus-within > .nav-item-link-wrap > .nav-link {
  opacity: 1;
  color: var(--gold);
}

.nav-link.current {
  opacity: 1;
  border-bottom: 2px solid var(--gold);
}

.dropdown-trigger {
  background: none;
  border: 0;
  padding: 4px 2px;
  margin: 0;
  cursor: pointer;
  color: var(--cream-text);
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.dropdown-trigger:hover,
.nav-item:hover .dropdown-trigger,
.nav-item.is-open .dropdown-trigger {
  opacity: 1;
  color: var(--gold);
}

.chevron-icon {
  display: block;
  transition: transform 0.2s ease;
}

.nav-item:hover .chevron-icon,
.nav-item.is-open .chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Card */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  background: #143e5c;
  border: 1px solid rgba(246, 251, 248, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

.nav-item:hover > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu,
.nav-item.is-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  position: relative;
  list-style: none;
}

.dropdown-link-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.dropdown-link {
  display: block;
  flex: 1;
  padding: 9px 18px;
  color: var(--cream-text);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.dropdown-link:hover,
.dropdown-item:hover > .dropdown-link-wrap > .dropdown-link,
.dropdown-item:focus-within > .dropdown-link-wrap > .dropdown-link {
  background: rgba(242, 183, 5, 0.12);
  color: var(--gold);
  padding-left: 22px;
}

.sub-indicator {
  color: var(--cream-text);
  opacity: 0.6;
  padding-right: 14px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.dropdown-item:hover .sub-indicator {
  color: var(--gold);
  opacity: 1;
}

/* Sub-Dropdown Menu (Flyout) */
.sub-dropdown-menu {
  position: absolute;
  top: -6px;
  left: 100%;
  margin-left: 3px;
  min-width: 210px;
  background: #10334d;
  border: 1px solid rgba(246, 251, 248, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 101;
  pointer-events: none;
}

.dropdown-item:hover > .sub-dropdown-menu,
.dropdown-item:focus-within > .sub-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.sub-dropdown-item {
  list-style: none;
}

.sub-dropdown-link {
  display: block;
  padding: 8px 18px;
  color: var(--cream-text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.sub-dropdown-link:hover {
  background: rgba(242, 183, 5, 0.12);
  color: var(--gold);
  padding-left: 22px;
}

.navlinks a.nav-join {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--forest-deep);
  padding: 8px 16px;
  border-radius: 3px;
  opacity: 1;
  border-bottom: none;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.navlinks a.nav-join:hover {
  background: #FFCB2E;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  color: var(--cream-text);
}

.nav-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close {
  display: none;
}

/* Mobile Navigation Panel */
.mobile-panel {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: var(--forest-deep);
  border-top: 1px solid rgba(246, 251, 248, 0.12);
  transition: max-height 0.35s ease;
}

.mobile-nav-list {
  padding: 12px 24px 28px;
}

.mobile-item {
  border-bottom: 1px solid rgba(246, 251, 248, 0.08);
}

.mobile-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-link {
  display: block;
  padding: 14px 0;
  color: var(--cream-text);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mobile-link:hover,
.mobile-link.current {
  color: var(--gold);
}

.mobile-expand-btn {
  background: none;
  border: 0;
  padding: 12px 14px;
  margin-right: -10px;
  color: var(--cream-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-chevron {
  transition: transform 0.25s ease;
}

.mobile-item.is-expanded .mobile-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.mobile-submenu {
  padding: 4px 0 12px 14px;
  border-left: 2px solid var(--gold);
  margin-left: 4px;
  margin-bottom: 8px;
}

.mobile-sub-item {
  margin: 4px 0;
}

.mobile-sub-link {
  display: block;
  padding: 8px 0;
  color: var(--cream-text);
  opacity: 0.9;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.mobile-sub-link:hover {
  color: var(--gold);
  opacity: 1;
}

.mobile-nested-children {
  padding-left: 12px;
  margin: 4px 0 6px;
  border-left: 1px dashed rgba(246, 251, 248, 0.2);
}

.mobile-nested-link {
  display: block;
  padding: 5px 0;
  color: var(--cream-text);
  opacity: 0.8;
  font-size: 0.85rem;
  text-decoration: none;
}

.mobile-nested-link:hover {
  color: var(--gold);
  opacity: 1;
}

.mobile-join-btn {
  display: block;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--forest-deep);
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 20px;
}

.mobile-join-btn:hover {
  background: #FFCB2E;
}

@media (max-width: 900px) {
  .navlinks {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .mobile-panel {
    display: block;
  }
  nav#site-nav.nav-open .mobile-panel {
    max-height: 85vh;
    overflow-y: auto;
  }
  nav#site-nav.nav-open .nav-toggle .icon-open {
    display: none;
  }
  nav#site-nav.nav-open .nav-toggle .icon-close {
    display: block;
  }
}

/* ----------------------------------------------------
   BUTTONS
---------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 3px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 0;
  line-height: 1.2;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--forest-deep);
}

.btn-primary:hover {
  background: #FFCB2E;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--cream-text);
  border: 1px solid rgba(246, 251, 248, 0.4);
}

.btn-ghost:hover {
  border-color: var(--cream-text);
  background: rgba(246, 251, 248, 0.08);
}

/* ----------------------------------------------------
   HERO SECTION
---------------------------------------------------- */
.hero {
  background: var(--forest);
  color: var(--cream-text);
  padding: 56px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 183, 5, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  color: var(--cream-text);
}

.hero-sub {
  margin: 26px auto 0;
  max-width: 560px;
  font-size: 1.08rem;
  color: rgba(246, 251, 248, 0.86);
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ----------------------------------------------------
   WHY JOIN / IMPACT LIST
---------------------------------------------------- */
.why {
  padding: 76px 0 40px;
}

.why-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.why-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.why-list {
  border-top: 1px solid var(--line);
}

.why-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.why-item .mark {
  flex-shrink: 0;
  width: 26px;
  padding-top: 4px;
}

.why-item .mark img {
  width: 22px;
  height: 22px;
  display: block;
}

.why-item p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 640px;
}

/* ----------------------------------------------------
   CONTEXT / 2-COL GRID
---------------------------------------------------- */
.context {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.context .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.context p {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0;
}

.context h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--forest);
}

.ctx-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 14px;
}

.ctx-head h3 {
  margin-bottom: 0;
}

.learn-more {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-deep);
  background: rgba(201, 148, 0, 0.12);
  border: 1px solid rgba(201, 148, 0, 0.4);
  border-radius: 20px;
  padding: 5px 12px;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.learn-more:hover {
  background: var(--gold);
  color: var(--forest-deep);
  border-color: var(--gold);
}

@media (max-width: 760px) {
  .context .wrap {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------
   CALLOUT BANNERS
---------------------------------------------------- */
.join-banner {
  background: var(--rust);
  color: var(--cream-text);
  padding: 40px 0;
}

.join-banner .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.join-banner h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  max-width: 520px;
}

.join-banner p {
  margin: 10px 0 0;
  color: rgba(246, 251, 248, 0.9);
  max-width: 480px;
}

.volunteer-banner {
  background: var(--gold);
  color: var(--forest-deep);
  padding: 40px 0;
}

.volunteer-banner .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.volunteer-banner h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  max-width: 520px;
}

.volunteer-banner .btn-primary {
  background: var(--forest-deep);
  color: var(--cream-text);
}

.volunteer-banner .btn-primary:hover {
  background: var(--forest);
}

/* ----------------------------------------------------
   CONVERSATION / CONTACT SECTION
---------------------------------------------------- */
.conversation {
  padding: 60px 0;
  background: var(--forest-deep);
  color: var(--cream-text);
  text-align: center;
}

.conversation .wrap {
  max-width: 640px;
}

.conversation h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.conversation p {
  margin: 18px 0 0;
  color: rgba(246, 251, 248, 0.85);
  font-size: 1.05rem;
}

.conversation a.contact {
  display: inline-block;
  margin-top: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

/* ----------------------------------------------------
   VOLUNTEER PAGE SPECIFIC STYLES
---------------------------------------------------- */
.equation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.eq-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 22px;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 900;
}

.equation .op {
  color: var(--gold);
  font-size: 0.6em;
  font-weight: 700;
}

.equation .bike-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.equation .bike-token img {
  width: clamp(90px, 13vw, 150px);
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.25));
}

.equation .result {
  color: var(--cream-text);
}

.eq-answer {
  color: var(--gold);
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  line-height: 1.05;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--paper);
  padding: 28px 26px 26px;
  transition: background 0.2s ease;
  display: block;
  text-decoration: none;
}

.card:hover {
  background: var(--paper-dim);
}

.card .cta {
  display: inline-block;
  margin-top: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
}

.card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  display: block;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--forest);
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.crucial {
  padding: 76px 0;
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.crucial-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.crucial-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.crucial-head p {
  color: var(--ink-soft);
  margin-top: 12px;
}

.crucial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 860px) {
  .crucial-grid {
    grid-template-columns: 1fr;
  }
}

.crucial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-deep);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.crucial-card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.crucial-card h3 {
  font-size: 1.4rem;
  color: var(--forest);
  margin-bottom: 12px;
}

.crucial-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0 0 20px;
  flex-grow: 1;
}

.crucial-card a.jd-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid var(--rust);
  padding-bottom: 2px;
  align-self: flex-start;
}

.crucial-card a.jd-link:hover {
  color: var(--forest);
  border-color: var(--forest);
}

.photo-band {
  margin: 0 auto;
  max-width: 1080px;
  padding: 0 28px;
}

.photo-band .frame {
  height: 320px;
  border-radius: 4px;
  overflow: hidden;
}

.photo-band .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .photo-band .frame {
    height: 240px;
  }
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
footer#site-footer {
  background: var(--forest);
  color: var(--cream-text);
  padding: 44px 0 28px;
  text-align: center;
}

.footer-sub {
  margin-top: 14px;
  color: rgba(246, 251, 248, 0.6);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.footer-links {
  margin-top: 22px;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-links a {
  text-decoration: none;
  color: rgba(246, 251, 248, 0.8);
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-bottom-color: var(--gold);
  color: var(--cream-text);
}

/* ----------------------------------------------------
   INNER / CONTENT PAGE COMPATIBILITY
---------------------------------------------------- */
.inner-page-container {
  max-width: 900px;
  margin: 40px auto 60px;
  padding: 0 28px;
}

.inner-page-container h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--forest);
  margin-bottom: 20px;
}

.inner-page-container h2 {
  font-size: 1.8rem;
  color: var(--forest-deep);
  margin: 32px 0 14px;
}

.inner-page-container h3 {
  font-size: 1.4rem;
  color: var(--forest);
  margin: 24px 0 10px;
}

.inner-page-container p {
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.inner-page-container a {
  color: var(--forest);
  text-decoration: underline;
}

.inner-page-container a:hover {
  color: var(--forest-deep);
}

.inner-page-container ul, .inner-page-container ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.inner-page-container li {
  margin-bottom: 0.5rem;
}

.inner-page-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.inner-page-container th, .inner-page-container td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.inner-page-container th {
  background: var(--paper-dim);
  font-weight: 700;
}

.inner-page-container blockquote {
  border-left: 4px solid var(--gold);
  background: var(--paper-dim);
  margin: 20px 0;
  padding: 14px 20px;
  font-style: italic;
}
