/* ============================================================
   PARTNERSHIPS.CSS — JEUNES SCOLARISÉS
   Page: Partnerships
   Aesthetic: Strategic alliance · bold collaboration · growth
   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 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; }

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

/* ── Interlocking circles background (partnership metaphor) ── */
.section::before {
  content: '';
  position: fixed;
  top: -120px; right: -180px;
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1.5px solid rgba(52, 160, 88, 0.07);
  box-shadow:
    0 0 0 100px rgba(52, 160, 88, 0.035),
    0 0 0 200px rgba(233, 168, 37, 0.025),
    0 0 0 320px rgba(27, 77, 48, 0.015);
  pointer-events: none;
  z-index: 0;
}

/* ── Second overlapping circle — offset left ── */
.section::after {
  content: '';
  position: fixed;
  top: -80px; right: 140px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1.5px solid rgba(233, 168, 37, 0.07);
  box-shadow:
    0 0 0 80px rgba(233, 168, 37, 0.03),
    0 0 0 180px rgba(52, 160, 88, 0.02);
  pointer-events: none;
  z-index: 0;
}

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

/* ════════════════════════════════════════════
   PAGE HEADER
════════════════════════════════════════════ */
.section > h1::before {
  content: 'GROW TOGETHER';
  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;
}

.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); }
}

.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: 620px; 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); }
}

/* ════════════════════════════════════════════
   INNER SECTION BLOCKS  (.section .section)
════════════════════════════════════════════ */
.section .section {
  position: relative;
  padding: 0;
  margin: 0 0 72px;
  max-width: 100%;
  background: none;
  overflow: visible;
}

/* Remove inherited bg pseudo-elements on nested sections */
.section .section::before,
.section .section::after { display: none !important; }

/* ── Inner section h2 ── */
.section .section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Dot accent before h2 */
.section .section h2::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-vivid), var(--gold-warm));
  flex-shrink: 0;
}

/* Thin rule after heading text */
.section .section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-gold), transparent);
  margin-left: 8px;
}

/* ════════════════════════════════════════════
   "WHY PARTNER" LIST
════════════════════════════════════════════ */
.section .section ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  animation: listIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}
@keyframes listIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section .section ul li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 20px 20px 52px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  font-weight: 400;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.section .section ul li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(27, 77, 48, 0.12);
  border-color: var(--border-gold);
}

/* Numbered bullet */
.section .section ul li::before {
  content: counter(li-counter, decimal-leading-zero);
  counter-increment: li-counter;
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-warm);
  line-height: 1;
}

.section .section ul {
  counter-reset: li-counter;
}

/* ════════════════════════════════════════════
   OPPORTUNITY CARD GRID
════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  animation: gridIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
@keyframes gridIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Diagonal colour wedge in top-right corner */
.card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  transition: width 0.4s ease, height 0.4s ease;
}

.card:nth-child(1)::before { background: linear-gradient(135deg, var(--green-vivid), var(--gold-warm)); }
.card:nth-child(2)::before { background: linear-gradient(135deg, var(--gold), var(--amber)); }
.card:nth-child(3)::before { background: linear-gradient(135deg, #1a6b8a, var(--green-vivid)); }

.card:hover::before { width: 110px; height: 110px; }

/* Large number watermark */
.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: -12px; right: 16px;
  font-family: var(--font-display);
  font-size: 5.5rem; font-weight: 700;
  line-height: 1; color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.card:hover::after { opacity: 0.07; }

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-gold);
}

/* Card title (h4) */
.card h4 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 14px;
  line-height: 1.2;
  position: relative; z-index: 1;
  transition: color 0.3s ease;
  padding-right: 48px; /* avoid corner wedge overlap */
}

.card:nth-child(1):hover h4 { color: var(--green-mid); }
.card:nth-child(2):hover h4 { color: var(--gold); }
.card:nth-child(3):hover h4 { color: #1a6b8a; }

/* Expanding rule under h4 */
.card h4::after {
  content: '';
  display: block;
  width: 28px; 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: 52px; }

/* Card body text */
.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7; margin: 0;
  font-weight: 300; flex: 1;
  position: relative; z-index: 1;
}

/* Stagger */
.card:nth-child(1) { animation: cardIn 0.68s cubic-bezier(0.22,1,0.36,1) 0.30s both; }
.card:nth-child(2) { animation: cardIn 0.68s cubic-bezier(0.22,1,0.36,1) 0.40s both; }
.card:nth-child(3) { animation: cardIn 0.68s cubic-bezier(0.22,1,0.36,1) 0.50s both; }

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

/* ════════════════════════════════════════════
   PARTNER LOGO GRID  (.logo-grid)
════════════════════════════════════════════ */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  animation: gridIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both;
}

/* Empty state */
.logo-grid > p {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-style: italic; font-size: 1.1rem;
  color: var(--text-muted); text-align: center;
  padding: 48px 20px;
  background: var(--parchment);
  border-radius: var(--radius);
  border: 1px dashed var(--border-gold);
}

/* ════════════════════════════════════════════
   PARTNER LOGO TILE  (.logo-tile)
════════════════════════════════════════════ */
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 24px 20px;
  min-height: 100px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.logo-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(27, 77, 48, 0.12);
  border-color: var(--border-gold);
}

.logo-tile a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  text-decoration: none;
}

/* Logo image — override inline styles */
.logo-tile img {
  max-width: 100% !important;
  max-height: 70px !important;
  width: auto;
  object-fit: contain;
  filter: grayscale(60%) opacity(0.75);
  transition: filter 0.4s ease, transform 0.4s ease;
  display: block;
}

.logo-tile:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* Stagger logo tiles */
.logo-tile:nth-child(1)  { animation: tileIn 0.55s cubic-bezier(0.22,1,0.36,1) 0.30s both; }
.logo-tile:nth-child(2)  { animation: tileIn 0.55s cubic-bezier(0.22,1,0.36,1) 0.37s both; }
.logo-tile:nth-child(3)  { animation: tileIn 0.55s cubic-bezier(0.22,1,0.36,1) 0.44s both; }
.logo-tile:nth-child(4)  { animation: tileIn 0.55s cubic-bezier(0.22,1,0.36,1) 0.51s both; }
.logo-tile:nth-child(5)  { animation: tileIn 0.55s cubic-bezier(0.22,1,0.36,1) 0.58s both; }
.logo-tile:nth-child(6)  { animation: tileIn 0.55s cubic-bezier(0.22,1,0.36,1) 0.65s both; }
.logo-tile:nth-child(7)  { animation: tileIn 0.55s cubic-bezier(0.22,1,0.36,1) 0.72s both; }
.logo-tile:nth-child(8)  { animation: tileIn 0.55s cubic-bezier(0.22,1,0.36,1) 0.79s both; }

@keyframes tileIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ════════════════════════════════════════════
   FINAL CTA  (.final-cta)
════════════════════════════════════════════ */
.final-cta {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 80px 48px 76px;
  text-align: center;
  background: linear-gradient(135deg, var(--green-deep) 0%, #0f2e1c 55%, #1a3d10 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); }
}

/* Interlocking circles on CTA (matches page metaphor) */
.final-cta::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 80px rgba(255,255,255,0.03),
    0 0 0 160px rgba(255,255,255,0.015);
  pointer-events: none;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

/* Eyebrow */
.final-cta h2::before {
  content: 'READY TO COLLABORATE?';
  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(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700; color: var(--white);
  margin: 0 0 16px; 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: 480px;
  margin: 0 auto; font-weight: 300;
}

/* ── 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
════════════════════════════════════════════ */
.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: repeat(2, 1fr); gap: 20px; }
  .logo-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .final-cta { padding: 60px 36px 56px; }
  .section .section ul { grid-template-columns: 1fr 1fr; }
}

@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: 1fr; gap: 16px; }
  .card { padding: 32px 26px 28px; }
  .section .section ul { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .logo-tile { padding: 18px 12px; min-height: 80px; }
  .final-cta { padding: 48px 24px 44px; }
}

@media (max-width: 480px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .section .section h2 { font-size: 1.5rem; }
  .section .section h2::after { display: none; }
}