/*
 * Project-only styles for the static build. Nothing here is from the original theme.
 *
 * Hero sizing. The live page puts a <video> in the banner; that MP4 is hotlink-blocked
 * (HTTP 403) so this build uses a still image. The theme relies on a `.w-100` utility
 * that no longer exists — app_base.min.css is served empty upstream — so the banner
 * needs an explicit width/crop or the 1124px image sits short of the viewport edge.
 */

/* ------------------------------------------------------------------- hero banner */
.banner__desktop img.changemaker_video1,
.banner__mobile img.changemaker_video1 {
  display: block;
  width: 100%;
  height: clamp(340px, 44vw, 620px);
  object-fit: cover;
  object-position: center 38%;
}

@media (max-width: 767px) {
  .banner__desktop img.changemaker_video1,
  .banner__mobile img.changemaker_video1 {
    height: clamp(260px, 62vw, 420px);
  }
}

/* Layout-builder wrappers also expect the missing .w-100 utility. */
.w-100 { width: 100%; }

/* Paired with the aosFallback() check in assets/js/drupal-shim.js: if the scroll
   animation library never initialises, show the content rather than leaving half
   the page invisible. Needs to outrank [data-aos^="fade"][data-aos^="fade"]. */
html.aos-fallback [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* ==================================================================================
   Interior pages
   The captured homepage carries no interior-page template, so these components are
   written for the project. They reuse the theme's Bootstrap 5 grid (.container/.row/
   .col-*) and inherit its typography, so they sit consistently with the cloned chrome.
   ================================================================================== */

:root {
  --gitam-green: #007367;
  --gitam-green-dark: #0b3b36;
  --gitam-ink: #1d2b28;
  --gitam-muted: #5b6b67;
  --gitam-line: #e2e8e6;
  --gitam-tint: #f4f8f7;
}

/* --------------------------------------------------------------- page title band */
.interior-hero {
  background: linear-gradient(135deg, var(--gitam-green-dark) 0%, var(--gitam-green) 100%);
  color: #fff;
  padding: clamp(38px, 6vw, 72px) 0 clamp(34px, 5vw, 60px);
}

.interior-hero h1 {
  color: #fff;
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.12;
}

.interior-lede {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

.interior-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}

.interior-crumbs a { color: #ffd24d; text-decoration: none; }
.interior-crumbs a:hover { text-decoration: underline; }
.interior-crumbs span[aria-hidden] { opacity: .5; }

/* -------------------------------------------------------------------- body copy */
.interior h2 {
  color: var(--gitam-green);
  margin: 0 0 26px;
  font-size: clamp(24px, 3vw, 34px);
}

.interior-prose p {
  color: var(--gitam-ink);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 18px;
}

.interior-prose p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------------- cards */
.interior-card {
  height: 100%;
  padding: 26px 24px;
  border: 1px solid var(--gitam-line);
  border-left: 3px solid var(--gitam-green);
  border-radius: 4px;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}

.interior-card:hover {
  box-shadow: 0 10px 28px rgba(11, 59, 54, .12);
  transform: translateY(-2px);
}

.interior-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--gitam-green-dark);
}

.interior-card p {
  margin: 0;
  color: var(--gitam-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* The grid has no vertical gutter by default; give stacked cards breathing room. */
.interior .row > [class*="col-"] { margin-bottom: 24px; }
.interior .row > [class*="col-"]:last-child { margin-bottom: 0; }

@media (min-width: 992px) {
  .interior .row > [class*="col-"]:last-child { margin-bottom: 24px; }
}

/* -------------------------------------------------------------------- stat band */
.interior-statband { background: var(--gitam-tint); padding: 44px 0; margin: 0; }

.interior-stat { text-align: center; padding: 8px 4px; }

.interior-stat strong {
  display: block;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  color: var(--gitam-green);
}

.interior-stat span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--gitam-muted);
}

/* Interior pages have no hero slider, so the sticky header must not overlap them. */
.interior-page .interior { display: block; }
