/* ============================================================
   Longitude Policy — design tokens from website_idea.pdf
   Deep teal ground, cream type, fine-line Capitol motif
   ============================================================ */

:root {
  --teal: #0b5866;
  --teal-deep: #094a56;
  --teal-line: rgba(244, 236, 216, 0.18);
  --cream: #f4ecd8;
  --cream-dim: rgba(244, 236, 216, 0.72);
  --gold: #e8ae33;
  --gold-deep: #c98f1d; /* for accents on the lighter teal */
  --font-display: "Poppins", "Helvetica Neue", sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --max-w: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--teal);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

a { color: var(--cream); }

/* ============ NAV ============ */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  /* the nav rule runs all the way to the right page border */
  padding: 1.75rem 0 0 max(2rem, calc((100vw - var(--max-w)) / 2 + 2rem));
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  border-bottom: 1px solid var(--cream);
  padding-bottom: 0.9rem;
  padding-right: 3rem; /* keeps links off the edge; the rule continues to it */
  flex: 1;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  font-size: 1.05rem;
  opacity: 0.9;
}

.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* ============ BUTTONS ============ */

.btn {
  display: inline-block;
  background: var(--cream);
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 3px;
  border: 1px solid var(--cream);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--cream); }

.btn-small { padding: 0.4rem 1rem; font-size: 0.95rem; }

.btn-large { padding: 1rem 2.2rem; font-size: 1.1rem; }

/* ============ HERO ============ */

.hero {
  display: grid;
  /* copy on the left, Capitol taking ~2/3 and bleeding to the right edge */
  grid-template-columns: minmax(280px, 1fr) min(36vw, 600px);
  align-items: end;
  gap: 2.5rem;
  padding: 4.5rem 0 0 max(2rem, calc((100vw - var(--max-w)) / 2 + 2rem));
  min-height: 80vh;
}

.hero-copy { padding-bottom: 3.5rem; }

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin-top: 0.75rem;
  color: var(--cream-dim);
}

.hero-box {
  border: 1px solid var(--cream);
  border-left: 4px solid var(--gold-deep);
  padding: 2.25rem 2rem;
  margin-top: 2.5rem;
  max-width: 34rem;
}

.hero-box-kicker {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.hero-box-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.75rem;
}

.hero-box p { color: var(--cream-dim); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-art {
  min-width: 0;
  align-self: end;
  overflow: hidden; /* the Capitol bleeds off the right page border */
}

#capitol {
  /* wider than its column, so ~30% of the building is cut off
     by the right edge of the page */
  width: 143%;
  height: auto;
  display: block;
}

/* ============ STATS ============ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--teal-line);
  border: 1px solid var(--teal-line);
  margin-bottom: 3.5rem;
}

.stat {
  background: var(--teal-deep);
  padding: 2.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--gold);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ SECTIONS ============ */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5.5rem 2rem;
}

.section-alt {
  max-width: none;
  background: var(--teal-deep);
  padding-left: max(2rem, calc((100vw - var(--max-w)) / 2 + 2rem));
  padding-right: max(2rem, calc((100vw - var(--max-w)) / 2 + 2rem));
}

.section-kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 1.75rem;
}

.section-lede {
  font-size: 1.25rem;
  max-width: 46rem;
  margin-bottom: 3rem;
  color: var(--cream-dim);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 60rem;
}

/* ============ CARDS (why section) ============ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.card {
  border: 1px solid var(--teal-line);
  padding: 2rem;
}

.card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }

.card p { color: var(--cream-dim); font-size: 1rem; }

.card-lines {
  height: 26px;
  margin-bottom: 1.4rem;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 1px,
    transparent 1px 5px
  );
  width: 72px;
}

/* ============ PILLARS (DC intensive) ============ */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem auto;
}

.pillar {
  border: 1px solid var(--teal-line);
  background: var(--teal);
  padding: 2rem;
}

.pillar-num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.pillar h3 { font-size: 1.45rem; margin: 0.5rem 0 1rem; }

.pillar ul { list-style: none; }

.pillar li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--teal-line);
  color: var(--cream-dim);
  font-size: 1rem;
}

.pillar li:last-child { border-bottom: none; }

.who { margin: 4rem auto 0; }

.who h3, .timeline h3 { font-size: 1.6rem; margin-bottom: 1.25rem; }

/* ============ TIMELINE ============ */

.timeline { margin: 4rem auto 0; }

.timeline ol {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.timeline li {
  counter-increment: step;
  border-top: 2px solid var(--gold);
  padding-top: 1rem;
}

.timeline li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.4rem;
}

.timeline li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.timeline li span { color: var(--cream-dim); font-size: 0.98rem; }

/* ============ CTA ============ */

.cta-row {
  margin: 4.5rem auto 0;
  text-align: center;
}

.cta-note { margin-top: 1.25rem; color: var(--cream-dim); }

/* ============ EVENTS ============ */

.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.event {
  border: 1px solid var(--teal-line);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.event-date {
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.event h3 { font-size: 1.4rem; }

.event p { color: var(--cream-dim); flex: 1; }

.event-meta { font-size: 0.95rem; color: var(--cream-dim); }

/* ============ PARTNERS (inside DC Intensive) ============ */

.partners-block { margin-top: 4.5rem; }

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

/* logo slots — swap the text for <img> once logo files exist */
.partner {
  display: flex;
  align-items: center;
  border: 1px solid var(--teal-line);
  padding: 1.1rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  opacity: 0.9;
}

.partner img {
  max-height: 44px;
  max-width: 190px;
  display: block;
}

/* ============ TEAM ============ */

.team {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
}

.person { text-align: center; }

.person-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid var(--cream);
  margin: 0 auto 1rem;
  background: repeating-linear-gradient(
    90deg,
    var(--teal-line) 0 1px,
    transparent 1px 6px
  );
}

.person h3 { font-size: 1.15rem; }

.person p { color: var(--cream-dim); font-size: 0.95rem; }

/* ============ FAQ ============ */

.faq { max-width: 48rem; }

.faq details {
  border-bottom: 1px solid var(--teal-line);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.25rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 400;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  padding: 0 0 1.5rem;
  color: var(--cream-dim);
  max-width: 44rem;
}

/* ============ FOOTER ============ */

.footer {
  background: var(--teal-deep);
  margin-top: 0;
}

.footer-lines { line-height: 0; }

#footer-wave {
  width: 100%;
  height: 90px;
  display: block;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: end;
}

.footer h2 { font-size: 2.2rem; margin-bottom: 0.75rem; }

.footer p { color: var(--cream-dim); margin-bottom: 1.75rem; }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream);
}

/* ============ REVEAL ANIMATION ============ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 3rem 0 0 2rem; }
  .hero-art { order: -1; }
  .hero-copy { padding-bottom: 2.5rem; padding-right: 2rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cards, .pillars { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 1.25rem; }
  .timeline ol { grid-template-columns: 1fr 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
  .nav { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .nav-links { width: 100%; justify-content: flex-start; gap: 1.5rem; flex-wrap: wrap; }
}
