/* =========================================
   CG Charitable Fund — Global Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:        #402dab;
  --navy-mid:    #5038c4;
  --navy-light:  #8a28f8;
  --gold:        #c9913d;
  --gold-light:  #e8b554;
  --gold-pale:   #f6eddb;
  --green:       #2c6e49;
  --green-light: #3d8b5e;
  --cream:       #f8f6ff;
  --off-white:   #f0ecfa;
  --border:      #e0d8f5;
  --text:        #1a1040;
  --body:        #3d3560;
  --muted:       #7068a0;
  --white:       #ffffff;
  --max-w:       1200px;
  --radius:      6px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:      0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:   0 12px 32px rgba(0,0,0,.12);
  --transition:  0.28s ease;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text);
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: 'Inter', sans-serif; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ----- Utility ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.section { padding: 80px 0; }
.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-headline { margin-bottom: 1rem; }
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
}
.section-sub--white { color: rgba(255,255,255,.72); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-1px);
}
.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-ghost {
  color: var(--gold);
  font-weight: 600;
  padding: 0;
}
.btn-ghost::after { content: ' →'; }
.btn-ghost:hover { color: var(--gold-light); }

/* =========================================
   NAVIGATION
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand img {
  height: 44px;
  width: auto;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

/* =========================================
   HERO — HOMEPAGE
   ========================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #2d1f80 0%, #402dab 50%, #6a20c8 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(138,40,248,.3) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 20%, rgba(201,145,61,.15) 0%, transparent 60%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,.03) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,.03) 80px);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
}
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 580px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========================================
   STATS BAND
   ========================================= */
.stats-band {
  background: linear-gradient(90deg, #402dab, #8a28f8);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}
.stat-item {
  text-align: center;
  padding: 8px 24px;
  border-right: 1px solid rgba(255,255,255,.3);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-label {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
}

/* =========================================
   FEATURE CARDS
   ========================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-pale);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .75rem; }
.card p { color: var(--muted); flex: 1; }
.card-link {
  margin-top: 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: var(--transition);
}
.card-link:hover { color: var(--gold-light); gap: .55rem; }
.card-link::after { content: '→'; }

/* =========================================
   NEWSLETTER SECTION
   ========================================= */
.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.newsletter-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.newsletter-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.newsletter-card-header {
  background: var(--navy);
  padding: 1.5rem 2rem;
}
.newsletter-card-header .tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--white);
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .75rem;
}
.newsletter-card-header h3 { color: var(--white); }
.newsletter-card-body {
  padding: 1.5rem 2rem;
}
.newsletter-card-body p { color: var(--muted); }
.newsletter-topics {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin: 1rem 0;
}
.newsletter-topic {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .88rem;
  color: var(--body);
}
.newsletter-topic::before {
  content: '·';
  color: var(--gold);
  font-size: 1.4rem;
  line-height: .9;
  flex-shrink: 0;
}

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, #2d1f80 0%, #402dab 60%, #6a20c8 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(138,40,248,.25) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span::before { content: '/ '; }

/* =========================================
   QUOTE BLOCK
   ========================================= */
.quote-block {
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  background: var(--gold-pale);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 2rem 0;
}
.quote-block blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.5;
}
.quote-attribution {
  margin-top: .75rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
}

/* =========================================
   FOCUS AREA TAGS
   ========================================= */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
.tag-pill {
  display: inline-block;
  padding: .35rem .9rem;
  background: var(--gold-pale);
  color: var(--navy);
  border: 1px solid #e0ccaa;
  border-radius: 50px;
  font-size: .83rem;
  font-weight: 500;
}

/* =========================================
   TWO-COLUMN CONTENT
   ========================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }

/* =========================================
   ACCENT BOX
   ========================================= */
.accent-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.accent-box h3 { color: var(--white); margin-bottom: 1rem; }
.accent-box p  { color: rgba(255,255,255,.75); }

/* =========================================
   PROCESS STEPS
   ========================================= */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h4 { margin-bottom: .25rem; color: var(--text); }
.step-body p  { font-size: .92rem; color: var(--muted); margin: 0; }

/* =========================================
   PROGRAM AREA CARDS
   ========================================= */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.program-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
}
.program-card-icon {
  font-size: 1.6rem;
  margin-bottom: .75rem;
}
.program-card h4 { color: var(--navy); margin-bottom: .4rem; }
.program-card p  { font-size: .88rem; color: var(--muted); margin: 0; }

/* =========================================
   FORM STYLES
   ========================================= */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}
.form-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.form-header .flag { font-size: 1.6rem; }
.form-header h3 { margin: 0; }
.form-card p { color: var(--muted); margin-bottom: 1.5rem; }
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: .92rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,145,61,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* =========================================
   NOTICE BOX
   ========================================= */
.notice {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.notice-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.notice p { font-size: .9rem; color: #92400e; margin: 0; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.footer-col a {
  font-size: .88rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: .82rem; margin: 0; }
.footer-legal-info {
  display: flex;
  gap: 1.5rem;
  font-size: .82rem;
}

/* =========================================
   TEAM CARDS
   ========================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.team-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.team-initials {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .04em;
}
.team-name {
  font-size: 1.1rem;
  margin-bottom: .15rem;
}
.team-title {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.team-card p { font-size: .92rem; color: var(--muted); }

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

/* =========================================
   DIVIDER
   ========================================= */
.divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .cards-grid    { grid-template-columns: 1fr 1fr; }
  .program-grid  { grid-template-columns: 1fr 1fr; }
  .two-col       { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .stats-grid    { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    width: 100%;
    padding: .7rem 0;
    border-bottom: 1px solid var(--off-white);
    font-size: 1rem;
  }
  .nav-menu a:last-child { border-bottom: none; }
  .nav-hamburger { display: flex; }
  .site-header   { position: relative; }

  .hero    { min-height: auto; padding: 80px 0; }
  .section { padding: 56px 0; }

  .cards-grid       { grid-template-columns: 1fr; }
  .newsletter-grid  { grid-template-columns: 1fr; }
  .program-grid     { grid-template-columns: 1fr; }
  .forms-grid       { grid-template-columns: 1fr; }
  .stats-grid       { grid-template-columns: 1fr; gap: 0; }
  .stat-item        { border-right: none; border-bottom: 1px solid rgba(255,255,255,.3); padding: 16px 0; }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid      { grid-template-columns: 1fr; }
  .footer-bottom    { flex-direction: column; text-align: center; }
  .hero-actions     { flex-direction: column; }
  .btn              { justify-content: center; }
}
