/* ============================================================
   IMPACT.CSS — JEUNES SCOLARISÉS
   Page: Impact
   Aesthetic: Data vitality · measured hope · evidence-driven
   Fonts: Cormorant Garamond (display) + Outfit (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ────────────────────────────────────────────
   ROOT TOKENS
──────────────────────────────────────────── */
:root {
  --green-deep:   #1b4d30;
  --green-mid:    #276140;
  --green-vivid:  #34a058;
  --gold:         #c8860a;
  --gold-warm:    #e9a825;
  --amber:        #f5c842;
  --cream:        #faf6ef;
  --parchment:    #f0e9d8;
  --ink:          #161c18;
  --text-dark:    #1a1a1a;
  --text-body:    #2e2e2e;
  --text-muted:   #5a5a5a;
  --white:        #ffffff;
  --border:       rgba(27, 77, 48, 0.11);
  --border-gold:  rgba(200, 134, 10, 0.18);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;

  --radius:       18px;
  --radius-sm:    10px;
  --radius-pill:  50px;
  --shadow:       0 4px 28px rgba(27, 77, 48, 0.08);
  --shadow-hover: 0 18px 56px rgba(27, 77, 48, 0.18);
  --transition:   all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ────────────────────────────────────────────
   BASE
──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  margin: 0;
}

/* ════════════════════════════════════════════
   OUTER SECTION WRAPPER
════════════════════════════════════════════ */
body > .section,
.section:not(.section .section) {
  position: relative;
  padding: 100px 24px 130px;
  max-width: 1160px;
  margin: 0 auto;
}

/* ── Graph-paper grid texture (fixed, full bleed) ── */
body > .section::before,
.section:not(.section .section)::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 77, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 77, 48, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(27, 77, 48, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 77, 48, 0.015) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  pointer-events: none;
  z-index: 0;
}

/* ── Large amber arc top-right ── */
body > .section::after,
.section:not(.section .section)::after {
  content: '';
  position: absolute;
  top: -160px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 2px solid rgba(233, 168, 37, 0.12);
  box-shadow: 0 0 0 60px rgba(233, 168, 37, 0.04),
              0 0 0 130px rgba(52, 160, 88, 0.03);
  pointer-events: none;
  z-index: 0;
}

.section > * { position: relative; z-index: 1; }

/* ════════════════════════════════════════════
   PAGE HEADER
════════════════════════════════════════════ */

/* Eyebrow */
.section > h1::before {
  content: 'MEASURABLE CHANGE';
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* Title */
.section > h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--green-deep);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  animation: titleIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Subtitle */
.section > p:first-of-type {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.85;
  max-width: 600px;
  margin: 0 0 72px;
  padding-left: 22px;
  border-left: 4px solid var(--gold-warm);
  animation: paraIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes paraIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   STAT CARD GRID
════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
  animation: gridIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.20s both;
}

@keyframes gridIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   STAT CARD  (.card)
════════════════════════════════════════════ */
.card {
  position: relative;
  background: var(--green-deep);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  padding: 44px 32px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

/* ── Radial glow inside each card ── */
.card::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(245, 200, 66, 0.14) 0%,
    transparent 70%
  );
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.card:hover::before {
  transform: scale(1.4);
  opacity: 0.8;
}

/* ── Corner accent bracket ── */
.card::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  border-top: 2px solid rgba(233, 168, 37, 0.35);
  border-left: 2px solid rgba(233, 168, 37, 0.35);
  border-radius: 4px 0 0 0;
  transition: border-color 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.card:hover::after {
  border-color: rgba(233, 168, 37, 0.75);
  width: 36px;
  height: 36px;
}

/* ── Hover lift ── */
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(233, 168, 37, 0.20);
  background: var(--green-mid);
}

/* ── Stat number (h3) ── */
.card h3 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--gold-warm);
}

/* Animated underline bar beneath number */
.card h3::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: linear-gradient(to right, var(--gold-warm), transparent);
  margin-top: 12px;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.card:hover h3::after {
  width: 52px;
}

/* ── Stat label (p) ── */
.card p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  margin: 0;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.card:hover p {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Per-card accent colour variation ── */
.card:nth-child(1) h3 { color: var(--amber); }
.card:nth-child(2) h3 { color: #7ee8a2; }
.card:nth-child(3) h3 { color: var(--gold-warm); }
.card:nth-child(4) h3 { color: #a8d8ea; }
.card:nth-child(5) h3 { color: var(--amber); }
.card:nth-child(6) h3 { color: #c5e8b0; }

/* ── Staggered entrance ── */
.card:nth-child(1) { animation: cardIn 0.68s cubic-bezier(0.22,1,0.36,1) 0.28s both; }
.card:nth-child(2) { animation: cardIn 0.68s cubic-bezier(0.22,1,0.36,1) 0.36s both; }
.card:nth-child(3) { animation: cardIn 0.68s cubic-bezier(0.22,1,0.36,1) 0.44s both; }
.card:nth-child(4) { animation: cardIn 0.68s cubic-bezier(0.22,1,0.36,1) 0.52s both; }
.card:nth-child(5) { animation: cardIn 0.68s cubic-bezier(0.22,1,0.36,1) 0.60s both; }
.card:nth-child(6) { animation: cardIn 0.68s cubic-bezier(0.22,1,0.36,1) 0.68s both; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ════════════════════════════════════════════
   HOW WE MEASURE  (.section inside .section)
════════════════════════════════════════════ */
.section .section {
  position: relative;
  background: var(--parchment);
  border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  padding: 52px 52px 48px;
  margin-bottom: 0;
  overflow: hidden;
  animation: measureIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.70s both;
}

@keyframes measureIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Left accent bar */
.section .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--green-vivid), var(--gold-warm));
  border-radius: var(--radius) 0 0 var(--radius);
}

/* Decorative quote-mark watermark */
.section .section::after {
  content: '"';
  position: absolute;
  bottom: -30px;
  right: 28px;
  font-family: var(--font-display);
  font-size: 14rem;
  line-height: 1;
  color: var(--green-vivid);
  opacity: 0.05;
  pointer-events: none;
}

/* Heading inside measure section */
.section .section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 28px;
  position: relative;
  z-index: 1;
}

/* Eyebrow on h2 */
.section .section h2::before {
  content: 'OUR METHODOLOGY';
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ── Method list ── */
.section .section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.section .section ul li {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.65;
  font-weight: 400;
  padding-left: 28px;
  position: relative;
  transition: padding-left 0.25s ease, color 0.25s ease;
}

/* Animated check bullet */
.section .section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-vivid);
  transition: transform 0.25s ease, background 0.25s ease;
}

/* Inner check mark via box-shadow */
.section .section ul li::after {
  content: '✓';
  position: absolute;
  left: 2px;
  top: 5px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.section .section ul li:hover {
  padding-left: 34px;
  color: var(--green-deep);
}

.section .section ul li:hover::before {
  transform: scale(1.2);
  background: var(--gold-warm);
}

/* ════════════════════════════════════════════
   CTA BUTTON AREA
════════════════════════════════════════════ */
.center {
  text-align: center;
}

.mt-48 {
  margin-top: 56px !important;
}

/* "View Annual Reports" outline button */
.btn.btn-outline,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--green-deep);
  color: var(--green-deep);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  letter-spacing: 0.03em;
  background: transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Fill sweep on hover */
.btn.btn-outline::before,
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.btn.btn-outline span,
.btn-outline span { position: relative; z-index: 1; }

.btn.btn-outline:hover,
.btn-outline:hover {
  color: var(--white);
  border-color: var(--green-deep);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(27, 77, 48, 0.28);
  text-decoration: none;
}

.btn.btn-outline:hover::before,
.btn-outline:hover::before {
  transform: scaleX(1);
}

/* Text content sits above the fill */
.btn.btn-outline,
.btn-outline {
  position: relative;
}

/* Simpler approach — just swap bg/color */
.btn.btn-outline:hover,
.btn-outline:hover {
  background: var(--green-deep);
  color: var(--white);
}

.btn.btn-outline:focus-visible,
.btn-outline:focus-visible {
  outline: 3px solid var(--gold-warm);
  outline-offset: 4px;
}

/* Arrow icon after text */
.btn.btn-outline::after,
.btn-outline::after {
  content: '→';
  font-size: 1.1em;
  transition: transform 0.25s ease;
}

.btn.btn-outline:hover::after,
.btn-outline:hover::after {
  transform: translateX(5px);
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  body > .section,
  .section:not(.section .section) {
    padding: 80px 24px 100px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .section .section {
    padding: 40px 36px 36px;
  }
}

@media (max-width: 767.98px) {
  body > .section,
  .section:not(.section .section) {
    padding: 64px 20px 80px;
  }

  .section > h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .section > p:first-of-type {
    margin-bottom: 52px;
    padding-left: 16px;
    border-left-width: 3px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 56px;
  }

  .card {
    padding: 32px 24px 28px;
  }

  .card h3 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .section .section {
    padding: 32px 24px 28px;
  }

  .section .section::after {
    font-size: 10rem;
    bottom: -20px;
    right: 16px;
  }
}

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

  .card {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 26px 24px;
  }

  .card h3 {
    margin-bottom: 0;
    min-width: 80px;
    font-size: 2.4rem;
  }

  .card h3::after {
    display: none;
  }

  .card::after {
    display: none;
  }
}