/* ============================================================
   GOVERNANCE.CSS — JEUNES SCOLARISÉS
   Page: Governance & Board
   Aesthetic: Institutional gravitas · refined authority · trust
   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:       16px;
  --radius-sm:    10px;
  --radius-pill:  50px;
  --shadow:       0 4px 28px rgba(27, 77, 48, 0.08);
  --shadow-hover: 0 18px 52px rgba(27, 77, 48, 0.17);
  --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;
}

/* ── Herringbone / chevron background texture ── */
.section::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      60deg,
      transparent,
      transparent 18px,
      rgba(27, 77, 48, 0.028) 18px,
      rgba(27, 77, 48, 0.028) 19px
    ),
    repeating-linear-gradient(
      -60deg,
      transparent,
      transparent 18px,
      rgba(27, 77, 48, 0.018) 18px,
      rgba(27, 77, 48, 0.018) 19px
    );
  pointer-events: none;
  z-index: 0;
}

/* ── Deep emerald glow bottom-right ── */
.section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -140px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(27, 77, 48, 0.09) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

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

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

/* Eyebrow */
.section > h1::before {
  content: 'LEADERSHIP & OVERSIGHT';
  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: 560px;
  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); }
}

/* ════════════════════════════════════════════
   BOARD CARD GRID
════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  animation: gridIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

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

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

/* ── Gold top accent line (always visible, thickens on hover) ── */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--green-deep), var(--gold-warm));
  transition: height 0.3s ease;
}

.card:hover::before {
  height: 5px;
}

/* ── Avatar initial circle ── */
.card::after {
  content: '';
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  opacity: 0.08;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover::after {
  opacity: 0.14;
  transform: scale(1.15);
}

/* ── Hover lift ── */
.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-gold);
}

/* ── Member name (h4) ── */
.card h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 10px;
  line-height: 1.2;
  padding-right: 50px;   /* avoid overlap with circle */
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.card:hover h4 {
  color: var(--green-mid);
}

/* Thin rule under name */
.card h4::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(to right, var(--gold-warm), transparent);
  margin-top: 10px;
  border-radius: 1px;
  transition: width 0.4s ease;
}

.card:hover h4::after {
  width: 56px;
}

/* ── Member title / role (p) ── */
.card p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin: 0;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

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

/* ── Staggered card entrance (first 12) ── */
.card:nth-child(1)  { animation: cardIn 0.65s cubic-bezier(0.22,1,0.36,1) 0.26s both; }
.card:nth-child(2)  { animation: cardIn 0.65s cubic-bezier(0.22,1,0.36,1) 0.33s both; }
.card:nth-child(3)  { animation: cardIn 0.65s cubic-bezier(0.22,1,0.36,1) 0.40s both; }
.card:nth-child(4)  { animation: cardIn 0.65s cubic-bezier(0.22,1,0.36,1) 0.47s both; }
.card:nth-child(5)  { animation: cardIn 0.65s cubic-bezier(0.22,1,0.36,1) 0.54s both; }
.card:nth-child(6)  { animation: cardIn 0.65s cubic-bezier(0.22,1,0.36,1) 0.61s both; }
.card:nth-child(7)  { animation: cardIn 0.65s cubic-bezier(0.22,1,0.36,1) 0.68s both; }
.card:nth-child(8)  { animation: cardIn 0.65s cubic-bezier(0.22,1,0.36,1) 0.75s both; }
.card:nth-child(9)  { animation: cardIn 0.65s cubic-bezier(0.22,1,0.36,1) 0.82s both; }
.card:nth-child(10) { animation: cardIn 0.65s cubic-bezier(0.22,1,0.36,1) 0.89s both; }
.card:nth-child(11) { animation: cardIn 0.65s cubic-bezier(0.22,1,0.36,1) 0.96s both; }
.card:nth-child(12) { animation: cardIn 0.65s cubic-bezier(0.22,1,0.36,1) 1.02s both; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) 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;
}

/* ════════════════════════════════════════════
   DECORATIVE SEAL (bottom of page)
════════════════════════════════════════════ */
.section > .card-grid::after {
  content: '';
  grid-column: 1 / -1;
  display: block;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-gold) 20%,
    var(--gold-warm) 50%,
    var(--border-gold) 80%,
    transparent
  );
  margin-top: 24px;
  opacity: 0.6;
}

/* ════════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════════ */
.card-grid:empty::before {
  content: 'Board members will be listed here.';
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  padding: 52px 20px;
  background: var(--parchment);
  border-radius: var(--radius);
  border: 1px dashed var(--border-gold);
  display: block;
}

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

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
}

@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;
  }

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

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

  .card h4 {
    font-size: 1.15rem;
    padding-right: 0;
  }

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

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

  .card h4 {
    font-size: 1.2rem;
  }
}