/* ============================================================
   OUR_WORK.CSS — JEUNES SCOLARISÉS
   Page: Our Work — Six Focus Areas
   Aesthetic: Strategic clarity · purposeful depth · six pillars
   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);

  /* Six pillar accent colours */
  --pillar-1: #2e8b57;   /* Economic — deep emerald */
  --pillar-2: #e07b39;   /* Health — warm terracotta */
  --pillar-3: #1a6b8a;   /* Skills — teal */
  --pillar-4: #9b4dca;   /* Women — plum */
  --pillar-5: #c8860a;   /* Civic — gold */
  --pillar-6: #c0392b;   /* Creative — deep red */

  --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.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: 1220px;
  margin: 0 auto;
}

/* ── Hexagonal-inspired pattern (six pillars metaphor) ── */
.section::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(30deg,  transparent, transparent 28px, rgba(27,77,48,0.022) 28px, rgba(27,77,48,0.022) 29px),
    repeating-linear-gradient(-30deg, transparent, transparent 28px, rgba(27,77,48,0.015) 28px, rgba(27,77,48,0.015) 29px),
    repeating-linear-gradient(90deg,  transparent, transparent 28px, rgba(27,77,48,0.012) 28px, rgba(27,77,48,0.012) 29px);
  pointer-events: none;
  z-index: 0;
}

/* ── Amber arc bloom ── */
.section::after {
  content: '';
  position: absolute;
  top: -100px; right: -160px;
  width: 660px; height: 660px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

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

/* ════════════════════════════════════════════
   PAGE HEADER
════════════════════════════════════════════ */
.section > h1::before {
  content: 'SIX STRATEGIC FOCUS AREAS';
  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.2rem);
  color: var(--text-muted); font-weight: 300; line-height: 1.85;
  max-width: 680px; 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); }
}

/* ════════════════════════════════════════════
   SIX-PILLAR 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(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── Diagonal corner swatch ── */
.card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 90px; height: 90px;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
  opacity: 0.85;
}

.card:nth-child(1)::before { background: linear-gradient(135deg, var(--pillar-1), #5dbb7e); }
.card:nth-child(2)::before { background: linear-gradient(135deg, var(--pillar-2), #f0a87a); }
.card:nth-child(3)::before { background: linear-gradient(135deg, var(--pillar-3), #5abcdc); }
.card:nth-child(4)::before { background: linear-gradient(135deg, var(--pillar-4), #c584f0); }
.card:nth-child(5)::before { background: linear-gradient(135deg, var(--pillar-5), #f5c842); }
.card:nth-child(6)::before { background: linear-gradient(135deg, var(--pillar-6), #e87060); }

.card:hover::before { width: 120px; height: 120px; opacity: 1; }

/* ── Pillar number watermark ── */
.card:nth-child(1)::after { content: '01'; }
.card:nth-child(2)::after { content: '02'; }
.card:nth-child(3)::after { content: '03'; }
.card:nth-child(4)::after { content: '04'; }
.card:nth-child(5)::after { content: '05'; }
.card:nth-child(6)::after { content: '06'; }

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

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

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

.card:nth-child(1):hover { border-color: rgba(46,139,87,0.25); }
.card:nth-child(2):hover { border-color: rgba(224,123,57,0.25); }
.card:nth-child(3):hover { border-color: rgba(26,107,138,0.25); }
.card:nth-child(4):hover { border-color: rgba(155,77,202,0.25); }
.card:nth-child(5):hover { border-color: rgba(200,134,10,0.25); }
.card:nth-child(6):hover { border-color: rgba(192,57,43,0.25); }

/* ── Icon block above title ── */
.card h3::before {
  content: '';
  display: block;
  width: 48px; height: 48px;
  border-radius: 14px;
  margin-bottom: 20px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.card:nth-child(1) h3::before { background: linear-gradient(135deg, var(--pillar-1), #5dbb7e); }
.card:nth-child(2) h3::before { background: linear-gradient(135deg, var(--pillar-2), #f0a87a); }
.card:nth-child(3) h3::before { background: linear-gradient(135deg, var(--pillar-3), #5abcdc); }
.card:nth-child(4) h3::before { background: linear-gradient(135deg, var(--pillar-4), #c584f0); }
.card:nth-child(5) h3::before { background: linear-gradient(135deg, var(--pillar-5), #f5c842); }
.card:nth-child(6) h3::before { background: linear-gradient(135deg, var(--pillar-6), #e87060); }

/* ── Card title (h3) ── */
.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  line-height: 1.2; margin: 0 0 20px;
  position: relative; z-index: 1;
  padding-right: 52px;
  transition: color 0.3s ease;
}

.card:nth-child(1) h3 { color: var(--pillar-1); }
.card:nth-child(2) h3 { color: var(--pillar-2); }
.card:nth-child(3) h3 { color: var(--pillar-3); }
.card:nth-child(4) h3 { color: var(--pillar-4); }
.card:nth-child(5) h3 { color: var(--pillar-5); }
.card:nth-child(6) h3 { color: var(--pillar-6); }

/* Rule under title */
.card h3::after {
  content: '';
  display: block;
  width: 32px; height: 2px;
  border-radius: 1px;
  margin-top: 12px;
  transition: width 0.4s ease;
}

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

.card:nth-child(1) h3::after { background: var(--pillar-1); }
.card:nth-child(2) h3::after { background: var(--pillar-2); }
.card:nth-child(3) h3::after { background: var(--pillar-3); }
.card:nth-child(4) h3::after { background: var(--pillar-4); }
.card:nth-child(5) h3::after { background: var(--pillar-5); }
.card:nth-child(6) h3::after { background: var(--pillar-6); }

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

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

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

.card:nth-child(1) ul li::before { background: var(--pillar-1); }
.card:nth-child(2) ul li::before { background: var(--pillar-2); }
.card:nth-child(3) ul li::before { background: var(--pillar-3); }
.card:nth-child(4) ul li::before { background: var(--pillar-4); }
.card:nth-child(5) ul li::before { background: var(--pillar-5); }
.card:nth-child(6) ul li::before { background: var(--pillar-6); }

.card:hover ul li { padding-left: 26px; }
.card:hover ul li::before { transform: scale(1.35); }

/* ── Staggered card entrance ── */
.card:nth-child(1) { animation: cardIn 0.70s cubic-bezier(0.22,1,0.36,1) 0.26s both; }
.card:nth-child(2) { animation: cardIn 0.70s cubic-bezier(0.22,1,0.36,1) 0.34s both; }
.card:nth-child(3) { animation: cardIn 0.70s cubic-bezier(0.22,1,0.36,1) 0.42s both; }
.card:nth-child(4) { animation: cardIn 0.70s cubic-bezier(0.22,1,0.36,1) 0.50s both; }
.card:nth-child(5) { animation: cardIn 0.70s cubic-bezier(0.22,1,0.36,1) 0.58s both; }
.card:nth-child(6) { animation: cardIn 0.70s cubic-bezier(0.22,1,0.36,1) 0.66s both; }

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

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

/* ════════════════════════════════════════════
   BOTTOM CTA AREA
════════════════════════════════════════════ */
.center {
  text-align: center !important;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

/* Primary button */
.btn.btn-primary,
.btn-primary {
  display: inline-flex;
  align-items: center; gap: 10px;
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.95rem;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  text-decoration: none; border: none;
  cursor: pointer; letter-spacing: 0.025em;
  transition: var(--transition);
  position: relative; overflow: hidden;
  animation: ctaIn 0.72s cubic-bezier(0.22,1,0.36,1) 0.70s both;
}

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

.btn.btn-primary:hover,
.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(27,77,48,0.28);
  color: var(--white); text-decoration: none;
}
.btn.btn-primary:hover::before,
.btn-primary:hover::before { left: 140%; }

/* Outline button */
.btn.btn-outline,
.btn-outline {
  display: inline-flex;
  align-items: center; gap: 8px;
  border: 2px solid var(--green-deep);
  color: var(--green-deep); background: transparent;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  text-decoration: none; letter-spacing: 0.025em;
  transition: var(--transition);
  animation: ctaIn 0.72s cubic-bezier(0.22,1,0.36,1) 0.78s both;
}

.btn.btn-outline:hover,
.btn-outline:hover {
  background: var(--green-deep);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(27,77,48,0.22);
  text-decoration: none;
}

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

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

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1199.98px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

@media (max-width: 991.98px) {
  .section { padding: 80px 24px 100px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .card { padding: 36px 28px 32px; }
}

@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: 18px; }
  .card { padding: 32px 24px 28px; }
  .card h3 { padding-right: 44px; font-size: 1.35rem; }
  .center { flex-direction: column; align-items: center; }
  .btn.btn-primary, .btn.btn-outline,
  .btn-primary, .btn-outline {
    width: 100%; max-width: 360px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .card h3::before { width: 40px; height: 40px; margin-bottom: 14px; }
  .card h3 { font-size: 1.25rem; }
}