/* ============================================================
   DAAKHLA — Design-heavy additions
   Appended to styles.css via separate link
   ============================================================ */

/* —— Focus visible ——————————————————————————————————————————— */
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

/* —— Scroll reveal ——————————————————————————————————————————— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: none; }

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* —— Full-bleed photo strip ———————————————————————————————— */
.photo-strip {
  width: 100%;
  height: clamp(260px, 44vw, 560px);
  overflow: hidden;
  display: block;
  position: relative;
  background: var(--sand-soft);
}
.photo-strip image-slot,
.photo-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* —— Alternating image-text split ————————————————————————— */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  overflow: hidden;
}
.split-row--reverse { direction: rtl; }
.split-row--reverse > * { direction: ltr; }
.split-media {
  overflow: hidden;
  position: relative;
  background: var(--sand-soft);
}
.split-media image-slot,
.split-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.split-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5.5rem);
  background: var(--bone);
  gap: 20px;
}
.split-body--dark {
  background: var(--navy);
  color: var(--bone);
}
.split-body--sand { background: var(--sand); }

@media (max-width: 768px) {
  .split-row, .split-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .split-media { height: 280px; }
  .split-row--reverse .split-media { order: -1; }
}

/* —— Massive stat callout ————————————————————————————————— */
.stat-callout {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(3rem, 8vw, 7rem) var(--gutter);
  text-align: center;
}
.stat-callout--row {
  display: flex;
  justify-content: center;
  gap: clamp(2.5rem, 8vw, 8rem);
  flex-wrap: wrap;
}
.stat-callout__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-callout__number {
  font-size: clamp(4.5rem, 14vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: var(--clay);
  display: block;
  letter-spacing: -0.03em;
}
.stat-callout__label {
  font-family: var(--mono);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.72);
  margin-top: 0.75rem;
  display: block;
  max-width: 18ch;
  line-height: 1.4;
}
.stat-callout--single .stat-callout__number {
  font-size: clamp(6rem, 20vw, 14rem);
}

/* —— Get-involved cards ——————————————————————————————————— */
.involve-card {
  border: 1px solid rgba(245,241,232,0.18);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  text-decoration: none;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.22s ease, border-color 0.22s ease;
}
.involve-card:hover,
.involve-card:focus-visible {
  background: rgba(184,84,58,0.14);
  border-color: var(--clay);
}

/* —— Callout aid box ————————————————————————————————————— */
.callout-aid {
  border-left: 3px solid var(--clay);
  padding: 1.25rem 1.5rem;
  background: var(--sand);
  margin: 2rem 0;
}

/* —— Problem stats strip ————————————————————————————————— */
.problem-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(245,241,232,0.15);
  margin-top: clamp(3rem, 6vw, 5rem);
  flex-wrap: wrap;
}
.problem-stat {
  flex: 1;
  min-width: 200px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid rgba(245,241,232,0.12);
}
.problem-stat:last-child { border-right: none; }
.problem-stat__num {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  color: var(--clay);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
}
.problem-stat__label {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: rgba(245,241,232,0.65);
  margin-top: 0.6rem;
  display: block;
  max-width: 22ch;
  line-height: 1.45;
}

/* —— Full-bleed CTA band with photo overlay ———————————————— */
.cta-band {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 40vw, 500px);
  display: flex;
  align-items: center;
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-band__bg image-slot,
.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38) saturate(0.7);
}
.cta-band__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}

/* —— Stagger delay helpers ————————————————————————————————— */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.13s; }
.stagger > *:nth-child(3) { transition-delay: 0.21s; }
.stagger > *:nth-child(4) { transition-delay: 0.29s; }
.stagger > *:nth-child(5) { transition-delay: 0.37s; }
.stagger > *:nth-child(6) { transition-delay: 0.45s; }

/* —— Involve grid ——————————————————————————————————————————— */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
