/* =========================================================
   Malkia Africa — Premium Components (reusable, on-brand)
   Tokens: --accent-color #d1156c, --accent-light #e44d8a
   Spacing scale (4pt rhythm): 12 / 15 / 20 / 25 / 30 / 50 / 60
   ========================================================= */

/* Consistent section rhythm (balanced, not wasteful) */
.section-lg {
  padding: 90px 0;
}

@media (max-width: 991px) {
  .section-lg {
    padding: 60px 0;
  }
}

/* Small uppercase accent label (use sparingly) */
.eyebrow {
  display: inline-block;
  font-family: var(--nav-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 16px;
}

/* Centered section header block */
.section-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  font-family: var(--heading-font);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-head p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* =========================================================
   Hero: text and image share EQUAL height and stay aligned.
   - stretch makes both columns the same height (bottoms align)
   - static removes the sticky drift that misaligned the image
   - text is vertically centered against the image
   ========================================================= */
.project-details .modern-split-layout {
  margin: 0;
  align-items: stretch;
}

.project-details .split-content-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-details .split-image-right {
  position: static;
}

.project-details .image-wrapper {
  width: 100%;
  max-height: 420px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 15px;
}

.project-details .image-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ---------- Shared card (from Our-Interventions style, tokenized) ---------- */
.int-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 40px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.int-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(209, 21, 108, 0.12);
}

.int-card .icon-box {
  margin: 0 auto 25px;
  width: 70px;
  height: 70px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: transform 0.3s ease;
}

.int-card:hover .icon-box {
  transform: scale(1.06);
}

.int-card h3 {
  font-family: var(--heading-font);
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--heading-color);
  line-height: 1.3;
}

.int-card p {
  color: #666;
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* feature-card titles (legacy split layout) */
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 5px 0;
}

/* ---------- Gallery polish ---------- */
.accordion-gallery .accordion-item {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.4s ease;
}

.accordion-gallery .accordion-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Image-led feature splits (HER functions) ---------- */
.split-feature .modern-split-layout {
  margin: 0;
  align-items: stretch;
}

.split-feature .split-content-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-feature .split-image-right {
  position: static;
}

.split-feature .image-wrapper {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.split-feature .image-wrapper img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* ---------- Responsive photo gallery (mobile-first) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 576px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 992px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.photo-grid figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-grid figure:hover img {
  transform: scale(1.05);
}

.int-card-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.int-card-list li {
  font-size: 0.92rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .int-card,
  .feature-card,
  .accordion-gallery .accordion-item,
  .photo-grid img {
    transition: none !important;
  }
}
