/* ═══════════════════════════════════════════════
   CWIL Design System
   Corporate Women in Leadership
   ═══════════════════════════════════════════════ */

:root {
  --navy: #0B1A2E;
  --navy-light: #122240;
  --blue: #3B7FB5;
  --blue-deep: #1E5A8A;
  --gold: #B8A06A;
  --gold-light: #D4C48E;
  --gold-dark: #8A7540;
  --teal: #1A8A72;
  --teal-light: #22B494;
  --warm-gray: #F6F4F0;
  --warm-gray-dark: #E8E4DC;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A56;
  --text-light: #8A8A84;
  --white: #FFFFFF;
  --coral: #C4563A;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --max-width: 1200px;
  --section-pad: 100px 48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 48px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(11,26,46,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(11,26,46,0.98); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; }
.nav-logo-text { color: var(--white); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; }
.nav-logo-text span { display: block; font-size: 16px; letter-spacing: 0.1em; font-weight: 700; color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-retreat-link { color: var(--gold) !important; }
.nav-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  padding: 10px 24px; border-radius: 4px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; transition: all 0.2s;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--white); margin: 4px 0; transition: 0.3s; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--navy); position: relative; overflow: hidden;
  padding: 120px 48px 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(59,127,181,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(184,160,106,0.08) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-tag {
  display: inline-block; padding: 6px 16px; border: 1px solid rgba(184,160,106,0.3);
  border-radius: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 32px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(42px, 5.5vw, 68px); font-weight: 400;
  color: var(--white); line-height: 1.08; margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 540px; margin-bottom: 48px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-proof {
  margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; gap: 48px; flex-wrap: wrap;
}
.hero-proof-num { font-family: var(--serif); font-size: 36px; color: var(--gold); line-height: 1; }
.hero-proof-label { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy); padding: 16px 32px;
  border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; transition: all 0.25s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.2); color: var(--white); padding: 16px 32px;
  border-radius: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; transition: all 0.25s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); }
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white); padding: 16px 32px;
  border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; transition: all 0.25s;
}
.btn-dark:hover { background: var(--blue-deep); }
.btn-small { font-size: 12px; padding: 8px 16px; background: var(--gold); color: var(--navy); border-radius: 4px; text-decoration: none; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* ─── IMPACT STRIP ─── */
.impact-strip {
  background: var(--gold); padding: 16px 48px;
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.impact-item { text-align: center; font-size: 13px; }
.impact-item strong { font-weight: 700; color: var(--navy); }
.impact-item span { color: var(--gold-dark); margin-left: 4px; }

/* ─── SECTIONS ─── */
.section { padding: var(--section-pad); }
.section-alt { background: var(--warm-gray); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-center { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 16px; }
.section-title { font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); font-weight: 400; line-height: 1.15; margin-bottom: 20px; }
.section-subtitle { font-size: 17px; color: var(--text-secondary); max-width: 560px; line-height: 1.7; margin-bottom: 48px; font-weight: 300; }
.view-all-link { display: inline-block; margin-top: 24px; font-size: 13px; font-weight: 600; color: var(--blue-deep); text-decoration: none; }
.view-all-link:hover { color: var(--gold-dark); }

/* ─── ABOUT ─── */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: var(--max-width); margin: 0 auto; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.stat-card { padding: 24px; border: 1px solid var(--warm-gray-dark); border-radius: 6px; transition: border-color 0.2s; }
.stat-card:hover { border-color: var(--gold); }
.stat-num { font-family: var(--serif); font-size: 32px; color: var(--blue-deep); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.about-image { aspect-ratio: 4/5; background: var(--warm-gray); border-radius: 8px; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* ─── PROGRAMMES ─── */
.programmes { background: var(--warm-gray); }
.programmes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--max-width); margin: 0 auto; }
.prog-card {
  background: var(--white); border-radius: 8px; padding: 40px 32px;
  border: 1px solid transparent; transition: all 0.3s; position: relative; overflow: hidden;
}
.prog-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.prog-card.featured { border: 2px solid var(--gold); }
.prog-card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 12px; }
.prog-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 24px; }
.prog-link { font-size: 13px; font-weight: 600; color: var(--blue-deep); text-decoration: none; }

/* ─── CHAPTERS ─── */
.chapters { background: var(--navy); color: var(--white); }
.chapters .section-tag { color: var(--gold); }
.chapters .section-title { color: var(--white); }
.chapters-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: var(--max-width); margin: 0 auto 48px; }
.chapter-card {
  display: block; padding: 28px 24px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  transition: all 0.3s; text-decoration: none; color: var(--white);
}
.chapter-card:hover { border-color: var(--gold); background: rgba(255,255,255,0.03); }
.chapter-card.founding { border-color: rgba(184,160,106,0.3); }
.chapter-card.aspirational { opacity: 0.5; border-style: dashed; }
.chapter-flag { font-size: 28px; margin-bottom: 12px; display: block; }
.chapter-name { font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
.chapter-info { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.5; }
.chapter-info strong { color: var(--gold-light); }
.chapters-cta { text-align: center; }
.chapters-cta p { color: rgba(255,255,255,0.5); font-size: 15px; margin-bottom: 20px; }
.chapters-cta em { color: var(--gold-light); font-style: normal; }

/* ─── CHAPTER HUB ─── */
.chapter-hero { background: var(--navy); padding: 140px 48px 80px; text-align: center; color: var(--white); }
.chapter-hero-inner { max-width: 640px; margin: 0 auto; }
.chapter-hero .chapter-flag { font-size: 48px; margin-bottom: 16px; }
.chapter-hero h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); margin-bottom: 8px; }
.chapter-tagline { font-size: 16px; color: var(--gold); margin-bottom: 16px; }
.chapter-meta { display: flex; gap: 24px; justify-content: center; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.chapter-desc { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ─── MEMBER CARDS ─── */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.member-card { border: 1px solid var(--warm-gray-dark); border-radius: 8px; overflow: hidden; transition: all 0.3s; }
.member-card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.member-exec { border-color: var(--gold); }
.member-photo { aspect-ratio: 1; background: var(--warm-gray); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blue-deep), var(--teal)); color: var(--white); font-family: var(--serif); font-size: 48px; }
.member-info { padding: 20px; }
.member-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.member-title { font-size: 13px; color: var(--text-secondary); }
.member-company { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.member-badge { display: inline-block; margin-top: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); padding: 3px 8px; background: rgba(184,160,106,0.12); border-radius: 2px; }
.member-linkedin { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--blue); text-decoration: none; }

/* ─── EVENT CARDS ─── */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.event-card { border: 1px solid var(--warm-gray-dark); border-radius: 8px; overflow: hidden; transition: all 0.3s; }
.event-card:hover { border-color: var(--gold); }
.event-upcoming { border-left: 3px solid var(--coral); }
.event-image { position: relative; aspect-ratio: 16/9; background: var(--warm-gray); overflow: hidden; }
.event-image img { width: 100%; height: 100%; object-fit: cover; }
.event-type-badge { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--navy); color: var(--white); padding: 4px 10px; border-radius: 2px; }
.event-info { padding: 20px; }
.event-date { font-size: 12px; font-weight: 600; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 0.04em; }
.event-title { font-family: var(--serif); font-size: 18px; margin: 8px 0; }
.event-title a { text-decoration: none; }
.event-title a:hover { color: var(--blue-deep); }
.event-venue { font-size: 13px; color: var(--text-light); }
.event-attendees { font-size: 12px; color: var(--text-light); margin-top: 8px; display: block; }

/* ─── NEWS CARDS ─── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { border: 1px solid var(--warm-gray-dark); border-radius: 8px; overflow: hidden; transition: all 0.3s; }
.news-card:hover { border-color: var(--gold); }
.news-image { aspect-ratio: 16/9; background: var(--warm-gray); overflow: hidden; display: block; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .news-image img { transform: scale(1.03); }
.news-info { padding: 20px; }
.news-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.news-category { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); }
.news-meta time { font-size: 12px; color: var(--text-light); }
.news-title { font-family: var(--serif); font-size: 18px; margin-bottom: 8px; }
.news-title a { text-decoration: none; }
.news-title a:hover { color: var(--blue-deep); }
.news-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ─── GALLERY ─── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-thumb { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; display: block; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-thumb-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(11,26,46,0.8)); display: flex; align-items: flex-end; padding: 16px; }
.gallery-thumb-overlay span { color: var(--white); font-size: 13px; font-weight: 500; }

/* ─── PAGINATION ─── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.pagination-pages { display: flex; gap: 4px; }
.pagination-page, .pagination-prev, .pagination-next {
  padding: 8px 14px; border: 1px solid var(--warm-gray-dark); border-radius: 4px;
  font-size: 13px; text-decoration: none; color: var(--text-secondary); transition: all 0.2s;
}
.pagination-page:hover, .pagination-prev:hover, .pagination-next:hover { border-color: var(--gold); color: var(--text-primary); }
.pagination-page.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .disabled { opacity: 0.3; pointer-events: none; }

/* ─── FILTER BAR ─── */
.filter-bar { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-bar [data-filter] {
  padding: 6px 16px; border: 1px solid var(--warm-gray-dark); border-radius: 20px;
  font-size: 12px; font-weight: 500; color: var(--text-secondary); cursor: pointer;
  background: none; transition: all 0.2s; font-family: var(--sans);
}
.filter-bar [data-filter]:hover { border-color: var(--gold); }
.filter-bar [data-filter].active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ─── JOIN CTA ─── */
.join-cta { background: var(--navy); text-align: center; color: var(--white); position: relative; overflow: hidden; }
.join-cta .section-tag { color: var(--gold); }
.join-cta .section-title { color: var(--white); max-width: 700px; margin: 0 auto 20px; }
.join-cta .section-subtitle { color: rgba(255,255,255,0.5); max-width: 560px; margin: 0 auto 40px; }
.join-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── ASPIRATIONAL CTA ─── */
.aspirational-cta { background: var(--warm-gray); }

/* ─── TESTIMONIAL ─── */
.testimonial-section { background: var(--warm-gray); text-align: center; max-width: 800px; margin: 0 auto; }
.testimonial-section blockquote { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); font-style: italic; line-height: 1.45; margin-bottom: 24px; }
.testimonial-section cite { font-style: normal; font-size: 14px; color: var(--text-secondary); }
.testimonial-section cite strong { color: var(--text-primary); font-weight: 600; }

/* ─── FOOTER ─── */
.footer { background: var(--navy); padding: 64px 48px 32px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: var(--max-width); margin: 0 auto 48px; }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 14px; line-height: 1.65; margin-top: 16px; max-width: 300px; }
.footer-parent { font-size: 12px !important; margin-top: 8px !important; }
.footer h4 { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; justify-content: space-between; max-width: var(--max-width); margin: 0 auto; }
.footer-bottom p, .footer-bottom a { color: rgba(255,255,255,0.3); font-size: 12px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .programmes-grid { grid-template-columns: 1fr 1fr; }
  .chapters-map { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-pad: 64px 24px; }
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  body.menu-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy); padding: 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .hero { padding: 120px 24px 60px; }
  .hero-proof { gap: 24px; }
  .programmes-grid { grid-template-columns: 1fr; }
  .chapters-map { grid-template-columns: 1fr; }
  .chapter-meta { flex-direction: column; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero-content > * { animation: fadeUp 0.8s ease-out both; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.45s; }
.hero-content > *:nth-child(5) { animation-delay: 0.6s; }

/* ─── PROSE (markdown content) ─── */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--serif); font-size: 28px; margin: 48px 0 16px; }
.prose h3 { font-family: var(--serif); font-size: 22px; margin: 36px 0 12px; }
.prose p { margin-bottom: 16px; line-height: 1.75; color: var(--text-secondary); }
.prose ul, .prose ol { margin: 16px 0; padding-left: 24px; }
.prose li { margin-bottom: 8px; color: var(--text-secondary); }
.prose blockquote { border-left: 3px solid var(--gold); padding: 16px 24px; margin: 24px 0; font-style: italic; color: var(--text-secondary); }
.prose img { border-radius: 8px; margin: 24px 0; }
.prose a { color: var(--blue-deep); }
.prose a:hover { color: var(--gold-dark); }
