/* =============================================================
   OUR APPROACH — public/css/our-approach.css
   Durable Impact — Cameroon
   Depends on public/css/styles.css for brand tokens, nav, footer
   ============================================================= */

:root {
  --teal:        #3ab5b8;
  --teal-light:  #eaf7f7;
  --green:       #7EBB55;
  --green-dark:  #5e9a38;
  --green-light: #F2F7EE;
  --navy:        #1a2214;
  --max-w:       1200px;
  --header-h:    76px;
}

/* =============================================================
   1. HERO
   ============================================================= */
.approach-hero {
  min-height: 52vh;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.72) 40%, rgba(0,0,0,0.1) 100%),
    url('/assets/images/all_pics/Our_Approach/45.jpg');
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: flex-end;
  padding: 0 110px 70px;
}

.approach-hero-inner {
  max-width: 600px;
}

.approach-hero-inner h1 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.approach-hero-inner p {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

/* =============================================================
   2. SHARED SECTION LAYOUT
   ============================================================= */
.approach-section {
  background: #fff;
  padding: 100px 0;
}

.approach-section--alt {
  background: #fafaf8;
}

.approach-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 110px;
  display: flex;
  align-items: flex-start;
  gap: 90px;
}

.approach-section-inner--text-left,
.approach-section-inner--image-left {
  flex-direction: row;
}

/* Text column */
.approach-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.approach-text-col h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  color: #000;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Point items */
.approach-points {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.approach-point h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.4;
  margin: 0 0 10px;
}

/* Green variant for ecosystem section */
.approach-section--alt .approach-point h3 {
  color: var(--green);
}

.approach-point p {
  font-size: 16px;
  line-height: 1.78;
  color: #444;
  margin: 0;
}

/* Image column */
.approach-image-col {
  flex: 0 0 40%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* =============================================================
   3. BLOB PHOTO TREATMENT
   (organic shape + floating icon badge)
   ============================================================= */
.approach-blob-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.approach-blob-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3% 3% 3% 3% / 3% 3% 3% 3%;
  /* border-radius: 30px transparent solid; */
  display: block;
}

/* .approach-blob-wrap--green img {
  border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
} */

/* Floating icon circle */
/* .approach-blob-icon {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
} */

/* .approach-blob-icon--teal { background: var(--teal); } */

.approach-blob-icon--green {
  background: var(--green);
  bottom: 20px;
  left: -10px;
  right: auto;
}

.approach-blob-icon svg {
  width: 46px;
  height: 46px;
}

/* =============================================================
   4. COLLECTIVE ACTION
   ============================================================= */
.approach-collective {
  background: #fff;
  padding: 100px 0 80px;
}

.approach-collective-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 110px;
}

.approach-collective-header {
  margin-bottom: 60px;
}

.approach-collective-header h2 {
  font-size: clamp(28px, 3.8vw, 50px);
  font-weight: 800;
  color: #000;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.approach-collective-header p {
  font-size: 18px;
  color: #555;
  margin: 0;
}

/* 6-card audience grid — 3 columns × 2 rows */
.approach-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.approach-audience-card {
  border-radius: 16px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Alternating teal-light / pink-light, matching reference */
.approach-audience-card:nth-child(odd)  { background: #EBF5F6; }
.approach-audience-card:nth-child(even) { background: #e6bebe; }

.approach-audience-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
  margin: 0;
}

.approach-audience-card p {
  font-size: 15px;
  line-height: 1.72;
  color: #444;
  margin: 0;
}

/* =============================================================
   5. FOCUS AREAS  (heading + single full-width photo)
   ============================================================= */
.approach-focus {
  background: #fff;
  padding: 100px 0;
}

.approach-focus-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 110px;
}

.approach-focus-inner h2 {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 800;
  color: #000;
  margin: 0 0 48px;
  letter-spacing: -0.02em;
}

.approach-focus-image {
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
}

.approach-focus-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
}

/* =============================================================
   6. CTA SPLIT (green text left + image panels right)
   ============================================================= */
.approach-cta-split {
  display: flex;
  min-height: 500px;
}

.approach-cta-left {
  flex: 0 0 50%;
  background: var(--green-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 80px 80px 110px;
  gap: 24px;
}

.approach-cta-left h2 {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

.approach-cta-left p {
  font-size: 17px;
  line-height: 1.72;
  color: #444;
  margin: 0;
}

.approach-cta-panels {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.approach-cta-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  min-height: 250px;
}

.approach-cta-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.approach-cta-panel:hover img {
  transform: scale(1.04);
}

/* Default dark overlay */
.approach-cta-panel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  transition: opacity 0.35s ease;
  z-index: 1;
}

/* Teal overlay on hover — Programs panel */
.approach-cta-panel--programs .approach-cta-panel-overlay-hover {
  position: absolute;
  inset: 0;
  background: rgba(58, 181, 184, 0.84);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

/* Green overlay on hover — Stories panel */
.approach-cta-panel--stories .approach-cta-panel-overlay-hover {
  position: absolute;
  inset: 0;
  background: rgba(94, 154, 56, 0.84);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.approach-cta-panel:hover .approach-cta-panel-overlay-hover { opacity: 1; }
.approach-cta-panel:hover .approach-cta-panel-overlay       { opacity: 0; }

/* Panel content — always visible at bottom */
.approach-cta-panel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
}

.approach-cta-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.approach-cta-panel-content .panel-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.approach-cta-arrow {
  font-size: 32px;
  color: #fff;
  flex-shrink: 0;
}

/* Description — hidden by default, revealed on hover */
.approach-cta-panel-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.approach-cta-panel:hover .approach-cta-panel-desc {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   SCROLL REVEAL  (JS adds .approach-visible)
   ============================================================= */
.approach-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.approach-reveal.approach-visible {
  opacity: 1;
  transform: none;
}

/* =============================================================
   7. RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  .approach-hero             { padding: 0 60px 60px; }
  .approach-section-inner    { padding: 0 60px; gap: 60px; }
  .approach-collective-inner { padding: 0 60px; }
  .approach-focus-inner      { padding: 0 60px; }
  .approach-audience-grid    { grid-template-columns: repeat(3, 1fr); }
  .approach-cta-left         { padding: 60px 40px 60px 60px; }
}

@media (max-width: 960px) {
  .approach-audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .approach-section-inner--text-left,
  .approach-section-inner--image-left { flex-direction: column; }
  .approach-image-col  { flex: none; width: 100%; }
  .approach-blob-wrap  { max-width: 320px; margin: 0 auto; }
  .approach-cta-split  { flex-direction: column; }
  .approach-cta-left   { flex: none; padding: 60px 40px; }
}

@media (max-width: 640px) {
  .approach-hero             { padding: 0 20px 48px; min-height: 55vh; }
  .approach-section          { padding: 70px 0; }
  .approach-section-inner    { padding: 0 20px; gap: 40px; }
  .approach-collective-inner,
  .approach-focus-inner      { padding: 0 20px; }
  .approach-collective       { padding: 70px 0 60px; }
  .approach-focus            { padding: 70px 0; }
  .approach-audience-grid    { grid-template-columns: 1fr; }
  .approach-cta-left         { padding: 50px 20px; }
  .approach-cta-panel-content .panel-title { font-size: 22px; }
  .approach-cta-arrow        { font-size: 22px; }
}