/* AI Middle Way Coalition — Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --navy: #0f1a2e;
  --deep: #162240;
  --navy-light: #1a2d4a;
  --gold: #c9a84c;
  --gold-light: #e8d5a0;
  --gold-dim: rgba(201,168,76,0.15);
  --cream: #f5f0e8;
  --warm: #faf7f2;
  --text: #2c2018;
  --text-light: #8a8275;
  --accent: #2b6b5a;
  --accent-light: #3d9b7a;
  --danger: #8b2020;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--warm); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========= NAVIGATION ========= */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,26,46,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display);
  color: var(--white); font-size: 1.2rem; font-weight: 400;
  letter-spacing: 0.02em;
}
.nav-brand em { font-style: italic; color: var(--gold); }
.nav-links {
  display: flex; gap: 1.8rem; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.7); font-size: 0.85rem;
  font-weight: 400; letter-spacing: 0.04em;
  text-transform: uppercase; transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-mobile {
  display: none; cursor: pointer; color: var(--gold);
  font-size: 1.5rem; background: none; border: none;
}

/* ========= HERO SECTIONS ========= */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3055 50%, var(--deep) 100%);
  color: var(--white); padding: 120px 2rem 80px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(201,168,76,0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(43,107,90,0.05) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15; margin-bottom: 1.2rem; font-weight: 700;
}
.hero h1 span, .hero h1 em { color: var(--gold); }
.hero .subtitle {
  font-size: 1.2rem; font-weight: 300;
  color: rgba(255,255,255,0.75); max-width: 700px; margin: 0 auto 2rem;
}
.hero-meta {
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block; padding: 0.85rem 2rem;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 3px; transition: all var(--transition); cursor: pointer;
}
.btn-gold {
  background: var(--gold); color: var(--navy); border: none;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: rgba(201,168,76,0.1); }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ========= SECTIONS ========= */
.section {
  padding: 5rem 2rem;
  max-width: var(--max-width); margin: 0 auto;
}
.section-dark {
  background: var(--navy); color: var(--white);
  padding: 5rem 2rem;
}
.section-dark .section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-cream { background: var(--cream); padding: 5rem 2rem; }
.section-cream .section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem; font-weight: 600;
}
.section h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.2; margin-bottom: 1.2rem; font-weight: 700;
}
.section-dark h2 { color: var(--white); }
.section-lead {
  font-size: 1.1rem; color: var(--text-light); max-width: 700px;
  line-height: 1.8; margin-bottom: 2.5rem;
}
.section-dark .section-lead { color: rgba(255,255,255,0.6); }

/* ========= CARDS ========= */
.card-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--white); border-radius: 8px;
  padding: 2rem; border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card h3 {
  font-family: var(--font-display); font-size: 1.3rem;
  margin-bottom: 0.8rem; color: var(--navy);
}
.card-dark {
  background: var(--navy-light); border-color: rgba(201,168,76,0.1);
}
.card-dark h3 { color: var(--gold-light); }
.card-dark p { color: rgba(255,255,255,0.7); }

.card-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-dim); color: var(--gold);
  font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem;
}

/* ========= BLOCKQUOTES ========= */
blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.3rem; line-height: 1.5;
  color: var(--gold); padding: 2rem 0;
  border-left: 3px solid var(--gold); padding-left: 1.5rem;
  margin: 2.5rem 0; max-width: 700px;
}
.section-dark blockquote { color: var(--gold-light); border-color: var(--gold); }

/* ========= STAT BOXES ========= */
.stat-row {
  display: flex; gap: 2rem; justify-content: center;
  flex-wrap: wrap; margin: 2rem 0;
}
.stat-box { text-align: center; min-width: 150px; }
.stat-number {
  font-family: var(--font-display); font-size: 2.8rem;
  font-weight: 700; color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: 0.85rem; color: var(--text-light); margin-top: 0.3rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.section-dark .stat-label { color: rgba(255,255,255,0.5); }

/* ========= TIMELINE ========= */
.timeline { position: relative; padding-left: 3rem; margin: 3rem 0; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--gold), var(--accent));
}
.timeline-item {
  position: relative; margin-bottom: 2.5rem; padding-bottom: 1rem;
}
.timeline-item::before {
  content: ''; position: absolute; left: -3.45rem; top: 0.3rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--warm);
}
.timeline-date {
  font-size: 0.8rem; font-weight: 700; color: var(--gold);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.3rem;
}
.timeline-title {
  font-family: var(--font-display); font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

/* ========= TABLE ========= */
.data-table {
  width: 100%; border-collapse: collapse; margin: 2rem 0;
  font-size: 0.95rem;
}
.data-table th {
  background: var(--navy); color: var(--gold-light);
  padding: 0.8rem 1rem; text-align: left; font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.data-table td {
  padding: 0.8rem 1rem; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.data-table tr:hover td { background: rgba(201,168,76,0.04); }

/* ========= TABS ========= */
.tab-nav {
  display: flex; gap: 0; border-bottom: 2px solid rgba(201,168,76,0.2);
  margin-bottom: 2rem; flex-wrap: wrap;
}
.tab-btn {
  padding: 0.8rem 1.5rem; background: none; border: none;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  color: var(--text-light); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--gold); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }

/* ========= BLOG GRID ========= */
.blog-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.blog-card {
  background: var(--white); border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.blog-card-body { padding: 1.5rem; }
.blog-card-date {
  font-size: 0.75rem; color: var(--gold); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.blog-card h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  line-height: 1.3; margin-bottom: 0.6rem; color: var(--navy);
}
.blog-card p { font-size: 0.9rem; color: var(--text-light); }
.blog-featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.blog-featured .blog-card-body { display: flex; flex-direction: column; justify-content: center; }

/* ========= FOOTER ========= */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.6);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 3fr; gap: 3rem;
}
.footer-brand { font-family: var(--font-display); }
.footer-logo { font-size: 1.3rem; color: var(--white); margin-bottom: 0.8rem; }
.footer-logo em { color: var(--gold); font-style: italic; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-support { color: var(--gold); font-size: 0.85rem; margin-top: 0.5rem; }
.footer-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.footer-col h4 {
  color: var(--gold-light); font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1rem; font-weight: 600;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.5);
  font-size: 0.9rem; margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-width); margin: 3rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; font-size: 0.8rem;
}

/* ========= ANIMATED DYNAMICS MAP ========= */
.map-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3055 50%, var(--deep) 100%);
  padding: 70px 2rem 60px; text-align: center; color: white;
}
.map-section .section-inner { max-width: var(--max-width); margin: 0 auto; }
.map-section h2 { color: var(--gold); margin-bottom: 10px; }
.map-section .lead { color: rgba(255,255,255,0.6); margin-bottom: 30px; font-size: 1.1rem; font-weight: 300; }

/* ========= SPECTRUM BAR ========= */
.spectrum-section { padding: 80px 2rem; background: var(--cream); }
.spectrum-section .section-inner { max-width: var(--max-width); margin: 0 auto; }
.spectrum-wrapper { max-width: 900px; margin: 0 auto; }
.spectrum-bar {
  position: relative; height: 80px; border-radius: 40px; margin: 50px 0 80px;
  background: linear-gradient(90deg, #8b2020 0%, #b84030 18%, #c9a84c 50%, #3a7db8 82%, #1a3055 100%);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.1);
}
.spectrum-label {
  position: absolute; top: -32px; font-size: 0.78em; text-transform: uppercase; letter-spacing: 2.5px;
  font-weight: 700; transform: translateX(-50%);
}
.spectrum-label.left { left: 8%; color: var(--danger); }
.spectrum-label.right { right: 8%; color: #1a3055; transform: translateX(50%); }
.spectrum-label.center { left: 50%; color: var(--gold); }

.spectrum-marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
}
.spectrum-marker .dot {
  width: 22px; height: 22px; border-radius: 50%; border: 3px solid white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3); position: relative; z-index: 2;
}
.spectrum-marker .name {
  position: absolute; top: 52px; white-space: nowrap;
  font-family: var(--font-display); font-size: 1.05em; font-weight: 700; color: var(--navy);
  background: white; padding: 4px 14px; border-radius: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}
.spectrum-marker .flag { font-size: 1.3em; position: absolute; top: -38px; }

/* ========= THIRD WAY CONTENT ========= */
.tw-lead { font-size: 1.2em; color: var(--text-light); font-weight: 300; }
.tw-pullquote {
  border-left: 4px solid var(--gold); padding: 25px 30px; margin: 40px 0; background: rgba(201,168,76,0.06);
  font-family: var(--font-display); font-size: 1.25em; font-style: italic; color: var(--navy); line-height: 1.5;
}
.tw-pullquote cite { display: block; font-size: 0.7em; font-style: normal; color: var(--text-light); margin-top: 10px; font-family: var(--font-body); }
.tw-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.nation-card {
  background: white; border-radius: 14px; padding: 35px; box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s;
}
.nation-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.nation-card .flag-big { font-size: 2.4em; margin-bottom: 12px; }
.nation-card h3 { font-family: var(--font-display); font-size: 1.5em; color: var(--navy); margin-bottom: 10px; }
.nation-card p { font-size: 0.95em; color: var(--text-light); margin-bottom: 10px; }
.nation-card .tag { display: inline-block; background: rgba(201,168,76,0.12); color: var(--gold); padding: 3px 12px; border-radius: 20px; font-size: 0.8em; font-weight: 600; letter-spacing: 0.5px; }

/* Third Way Timeline */
.tw-timeline { position: relative; max-width: 800px; margin: 40px auto 0; }
.tw-timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--accent)); transform: translateX(-50%);
}
.tl-item { position: relative; margin-bottom: 50px; display: flex; align-items: flex-start; }
.tl-item:nth-child(odd) { flex-direction: row-reverse; text-align: right; }
.tl-item .tl-content { width: 45%; padding: 25px 30px; background: white; border-radius: 12px; box-shadow: 0 2px 20px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.06); }
.tl-item:nth-child(odd) .tl-content { margin-right: 5%; }
.tl-item:nth-child(even) .tl-content { margin-left: 5%; }
.tl-dot {
  position: absolute; left: 50%; top: 30px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 3px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transform: translateX(-50%); z-index: 2;
}
.tl-year { font-family: var(--font-display); font-size: 1.4em; color: var(--gold); margin-bottom: 6px; }
.tl-content h3 { font-family: var(--font-display); font-size: 1.15em; color: var(--navy); margin-bottom: 8px; }
.tl-content p { font-size: 0.95em; color: var(--text-light); margin-bottom: 0; }

/* Third Way CTA */
.tw-cta-section {
  background: linear-gradient(135deg, var(--navy), #1a3055); color: white; padding: 80px 2rem; text-align: center;
}
.tw-cta-section h2 { color: var(--gold); font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 1.2rem; }
.tw-cta-section p { color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto 30px; font-size: 1.05rem; }
.tw-cta-btn {
  display: inline-block; background: var(--gold); color: var(--navy); padding: 16px 40px;
  font-size: 1.1em; font-weight: 700; text-decoration: none; border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s; letter-spacing: 1px;
}
.tw-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,168,76,0.3); }

/* ========= ANIMATIONS ========= */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .nav-links { 
    display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--navy);
    padding: 1.5rem 2rem; gap: 1rem;
    border-bottom: 1px solid rgba(201,168,76,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-mobile { display: block; }
  .hero { padding: 100px 1.5rem 60px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 3rem 1.5rem; }
  .section-dark, .section-cream { padding: 3rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .blog-featured { grid-template-columns: 1fr; }
  .stat-row { gap: 1rem; }
  .stat-number { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .spectrum-bar { height: 60px; }
  .spectrum-marker .name { font-size: 0.85em; top: 42px; }
  .spectrum-marker .flag { top: -32px; }
  .tw-two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .tw-timeline::before { left: 20px; }
  .tl-item, .tl-item:nth-child(odd) { flex-direction: column; text-align: left; }
  .tl-item .tl-content, .tl-item:nth-child(odd) .tl-content { width: 100%; margin: 0 0 0 50px; }
  .tl-dot { left: 20px; }
  .map-section { padding: 50px 1.5rem 40px; }
  .spectrum-section { padding: 50px 1.5rem; }
}
