/* ============================================================
   REPORTS.CSS — JEUNES SCOLARISÉS
   Page: Annual Reports & Publications
   Aesthetic: Archive · document library · structured 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&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ────────────────────────────────────────────
   ROOT TOKENS  (mirrors about.css palette)
──────────────────────────────────────────── */
: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.12);

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

  --radius:       16px;
  --radius-sm:    10px;
  --radius-pill:  50px;
  --shadow:       0 4px 24px rgba(27, 77, 48, 0.08);
  --shadow-hover: 0 16px 52px 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 120px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

/* ── Background decoration: dot-grid pattern ── */
.section::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(27, 77, 48, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ── Warm glow top-right ── */
.section::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -160px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 168, 37, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

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

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

/* Title */
.section > h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.06;
  color: var(--green-deep);
  letter-spacing: -0.01em;
  margin: 0 0 12px;

  animation: titleIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* Subtitle paragraph */
.section > p:first-of-type {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 0 64px;
  padding-left: 20px;
  border-left: 3px solid var(--gold-warm);

  animation: paraIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

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

/* Divider line below intro */
.section > p:first-of-type::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(to right, var(--gold-warm), var(--green-vivid));
  border-radius: 2px;
  margin-top: 28px;
}

/* ════════════════════════════════════════════
   CARD GRID
════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;

  animation: gridIn 0.85s 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);    }
}

/* Empty state */
.card-grid > p {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  padding: 60px 20px;
  background: var(--parchment);
  border-radius: var(--radius);
  border: 1px dashed rgba(200, 134, 10, 0.35);
}

/* ════════════════════════════════════════════
   REPORT CARD  (.card.card-link)
════════════════════════════════════════════ */
.card.card-link {
  /* Layout */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  text-decoration: none;

  /* Appearance */
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 36px 32px 28px;
  min-height: 220px;

  /* Interaction */
  transition: var(--transition);
  cursor: pointer;
}

/* Top accent bar (animates in on hover) */
.card.card-link::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--green-vivid), var(--gold-warm));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* PDF document icon (decorative watermark) */
.card.card-link::after {
  content: 'PDF';
  position: absolute;
  bottom: 22px;
  right: 24px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  background: var(--green-mid);
  padding: 4px 10px;
  border-radius: 5px;
  opacity: 0.85;
  transition: opacity 0.3s ease, background 0.3s ease;
}

/* ── Hover state ── */
.card.card-link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(233, 168, 37, 0.30);
  text-decoration: none;
}

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

.card.card-link:hover::after {
  background: var(--gold);
  opacity: 1;
}

/* ── Report title (h4) ── */
.card.card-link h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--green-deep);
  margin: 0 0 14px;
  padding-right: 20px;       /* avoid overlap with PDF badge */
  transition: color 0.3s ease;
}

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

/* ── Year (first p inside card) ── */
.card.card-link p:first-of-type {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 auto;
  padding: 5px 14px;
  background: rgba(233, 168, 37, 0.10);
  border-radius: var(--radius-pill);
  display: inline-block;
  transition: background 0.3s ease;
}

.card.card-link:hover p:first-of-type {
  background: rgba(233, 168, 37, 0.20);
}

/* ── Download CTA (last p inside card) ── */
.card.card-link p:last-of-type {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-mid);
  margin: 24px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s ease, color 0.3s ease;

  /* Down-arrow icon via pseudo */
  position: relative;
  padding-left: 0;
}

/* Animated underline on CTA */
.card.card-link p:last-of-type::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-warm);
  transition: width 0.35s ease;
  border-radius: 1px;
}

.card.card-link:hover p:last-of-type {
  gap: 14px;
  color: var(--gold);
}

.card.card-link:hover p:last-of-type::after {
  width: 100%;
}

/* ── Large file-icon watermark (background) ── */
.card.card-link h4::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(52, 160, 88, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

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

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

/* ════════════════════════════════════════════
   SECTION FOOTER NOTE (optional)
════════════════════════════════════════════ */
.section > .reports-note {
  margin-top: 56px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.section > .reports-note a {
  color: var(--green-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

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

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

  .section > p:first-of-type {
    margin-bottom: 44px;
    padding-left: 16px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card.card-link {
    min-height: auto;
    padding: 28px 24px 24px;
  }
}

@media (max-width: 575.98px) {
  .card.card-link h4 {
    font-size: 1.2rem;
  }
}