/* ============================================================
   GET_INVOLVED.CSS — JEUNES SCOLARISÉS
   Page: Get Involved
   Aesthetic: Warm invitation · action-driven · community pulse
   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);

  /* Per-card accent colours */
  --card-youth-accent:      #34a058;
  --card-volunteer-accent:  #c8860a;
  --card-schools-accent:    #1a6b8a;

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

  --radius:       18px;
  --radius-sm:    10px;
  --radius-pill:  50px;
  --shadow:       0 6px 32px rgba(27, 77, 48, 0.09);
  --shadow-hover: 0 20px 60px 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;
}

/* ════════════════════════════════════════════
   SECTION WRAPPER
════════════════════════════════════════════ */
.section {
  position: relative;
  padding: 100px 24px 130px;
  max-width: 1160px;
  margin: 0 auto;
}

/* ── Honeycomb-ish pattern overlay (fixed, full bleed) ── */
.section::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(27, 77, 48, 0.055) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(233, 168, 37, 0.04) 1px, transparent 1px);
  background-size: 36px 36px, 18px 18px;
  background-position: 0 0, 9px 9px;
  pointer-events: none;
  z-index: 0;
}

/* ── Warm amber bloom top-right ── */
.section::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -180px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.11) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

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

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

/* Eyebrow */
.section > h1::before {
  content: 'JOIN THE MOVEMENT';
  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.06;
  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.22rem);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.85;
  max-width: 580px;
  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); }
}

/* ════════════════════════════════════════════
   CARD GRID
════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 0;
  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); }
}

/* ════════════════════════════════════════════
   INVOLVEMENT CARD  (.card)
════════════════════════════════════════════ */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 44px 36px 36px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}

/* ── Top colour bar (slides in from left on hover) ── */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Card 1 — Youth — green */
.card:nth-child(1)::before {
  background: linear-gradient(to right, var(--card-youth-accent), var(--gold-warm));
}

/* Card 2 — Volunteers — gold */
.card:nth-child(2)::before {
  background: linear-gradient(to right, var(--card-volunteer-accent), var(--amber));
}

/* Card 3 — Schools — teal */
.card:nth-child(3)::before {
  background: linear-gradient(to right, var(--card-schools-accent), var(--green-vivid));
}

/* ── Large number watermark (card index) ── */
.card:nth-child(1)::after { content: '01'; }
.card:nth-child(2)::after { content: '02'; }
.card:nth-child(3)::after { content: '03'; }

.card::after {
  position: absolute;
  bottom: -18px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.04;
  color: var(--ink);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 0;
}

/* ── Hover state ── */
.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(233, 168, 37, 0.22);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  opacity: 0.07;
  transform: scale(1.05) translateY(-4px);
}

/* ── Icon circle above title ── */
.card > h3::before {
  content: '';
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 20px;
  transition: transform 0.35s ease;
}

.card:hover > h3::before {
  transform: rotate(-6deg) scale(1.08);
}

.card:nth-child(1) > h3::before {
  background: linear-gradient(135deg, var(--card-youth-accent), rgba(52,160,88,0.5));
  /* Youth: sprout icon via mask */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22V12m0 0C12 7 7 4 2 5c0 5 3 9 10 7m0 0c0-5 5-8 10-7-1 5-4 8-10 7'/%3E%3C/svg%3E") center/32px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22V12m0 0C12 7 7 4 2 5c0 5 3 9 10 7m0 0c0-5 5-8 10-7-1 5-4 8-10 7'/%3E%3C/svg%3E") center/32px no-repeat;
  background-color: var(--card-youth-accent);
}

.card:nth-child(2) > h3::before {
  background-color: var(--card-volunteer-accent);
}

.card:nth-child(3) > h3::before {
  background-color: var(--card-schools-accent);
}

/* ── Card heading (h3) ── */
.card > h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 20px;
  line-height: 1.18;
  transition: color 0.3s ease;
}

.card:nth-child(1):hover > h3 { color: var(--card-youth-accent); }
.card:nth-child(2):hover > h3 { color: var(--card-volunteer-accent); }
.card:nth-child(3):hover > h3 { color: var(--card-schools-accent); }

/* ── List items ── */
.card ul {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card ul li {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  padding-left: 22px;
  position: relative;
  font-weight: 400;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

/* Custom bullet */
.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.card:nth-child(1) ul li::before { background: var(--card-youth-accent); }
.card:nth-child(2) ul li::before { background: var(--card-volunteer-accent); }
.card:nth-child(3) ul li::before { background: var(--card-schools-accent); }

.card:hover ul li {
  padding-left: 28px;
}

.card:hover ul li::before {
  transform: scale(1.3);
}

/* ── Outline button (.btn-outline) ── */
.btn.btn-outline,
.btn-outline {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: var(--transition);
  align-self: flex-start;
  border: 2px solid;
}

/* Per-card outline colour */
.card:nth-child(1) .btn-outline {
  color: var(--card-youth-accent);
  border-color: var(--card-youth-accent);
  background: transparent;
}

.card:nth-child(1) .btn-outline:hover {
  background: var(--card-youth-accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52, 160, 88, 0.30);
  text-decoration: none;
}

.card:nth-child(2) .btn-outline {
  color: var(--card-volunteer-accent);
  border-color: var(--card-volunteer-accent);
  background: transparent;
}

.card:nth-child(2) .btn-outline:hover {
  background: var(--card-volunteer-accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 134, 10, 0.30);
  text-decoration: none;
}

.card:nth-child(3) .btn-outline {
  color: var(--card-schools-accent);
  border-color: var(--card-schools-accent);
  background: transparent;
}

.card:nth-child(3) .btn-outline:hover {
  background: var(--card-schools-accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 107, 138, 0.30);
  text-decoration: none;
}

/* ── Staggered card entrance ── */
.card:nth-child(1) { animation: cardIn 0.72s cubic-bezier(0.22,1,0.36,1) 0.28s both; }
.card:nth-child(2) { animation: cardIn 0.72s cubic-bezier(0.22,1,0.36,1) 0.40s both; }
.card:nth-child(3) { animation: cardIn 0.72s cubic-bezier(0.22,1,0.36,1) 0.52s both; }

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

/* ── Focus ring ── */
.card:focus-visible {
  outline: 3px solid var(--gold-warm);
  outline-offset: 4px;
}

/* ════════════════════════════════════════════
   FINAL CTA BLOCK  (.final-cta)
════════════════════════════════════════════ */
.final-cta {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 80px 48px 76px;
  text-align: center;

  /* Deep green + gold two-tone split */
  background:
    linear-gradient(135deg, var(--green-deep) 0%, #0f2e1c 55%, #1c3e0e 100%);

  animation: ctaIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

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

/* Radial glow centre */
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.13) 0%, transparent 65%);
  pointer-events: none;
}

/* Fine diagonal stripes texture */
.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -50deg,
      transparent,
      transparent 22px,
      rgba(255,255,255,0.018) 22px,
      rgba(255,255,255,0.018) 23px
    );
  pointer-events: none;
}

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

/* Eyebrow above CTA h2 */
.final-cta h2::before {
  content: 'FUEL THE FUTURE';
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

/* CTA heading */
.final-cta h2,
.final-cta h2.center {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 18px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* CTA subtext */
.final-cta p,
.final-cta p.center {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.8;
  max-width: 460px;
  margin: 0 auto;
  font-weight: 300;
}

/* ── Primary CTA button ── */
.btn.btn-primary,
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 44px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.025em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep */
.btn.btn-primary::before,
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn.btn-primary:hover,
.btn-primary:hover {
  background: var(--gold-warm);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(233, 168, 37, 0.45);
  color: var(--ink);
  text-decoration: none;
}

.btn.btn-primary:hover::before,
.btn-primary:hover::before {
  left: 140%;
}

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

/* ════════════════════════════════════════════
   UTILITY CLASSES
════════════════════════════════════════════ */
.mt-48 { margin-top: 56px !important; }
.mt-24 { margin-top: 24px !important; }
.center { text-align: center !important; }

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

  .card-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    gap: 22px;
  }

  .card {
    padding: 38px 30px 32px;
  }

  .final-cta {
    padding: 60px 36px 56px;
  }
}

@media (max-width: 767.98px) {
  .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;
  }

  .final-cta {
    padding: 48px 24px 44px;
  }

  .final-cta h2,
  .final-cta h2.center {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .card-grid {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .card {
    padding: 30px 22px 26px;
  }

  .card > h3::before {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }

  .card > h3 {
    font-size: 1.45rem;
  }

  .btn.btn-primary,
  .btn-primary {
    padding: 14px 34px;
    font-size: 0.9rem;
  }
}