/**
 * public/assets/css/pages/home.css
 * ─────────────────────────────────────────────────────
 * All styles specific to the homepage (index.php).
 * Includes:
 *   - Full-screen hero (circles design)
 *   - Pillars strip
 *   - Stats strip
 *   - About strip
 *   - Programs / Industries / Stories / Events grids
 *   - Donate section
 *   - Responsive overrides
 */

/* ══════════════════════════════════════════════════════
   FULL-SCREEN CENTRE HERO
══════════════════════════════════════════════════════ */
/**
 * REPLACES the old circles-based hero CSS in home.css.
 * Delete everything from ".hero-full {" down to the end
 * of ".hero-scroll-hint__arrow {...}" and paste this in
 * its place.
 * ─────────────────────────────────────────────────────
 */

/* ══════════════════════════════════════════════════════
   FULL-BLEED IMAGE HERO
══════════════════════════════════════════════════════ */
.hero-full {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--clr-primary); /* fallback while images load */
}

/* ── Background slideshow ─────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-bg__slide.active {
  opacity: 1;
}

.hero-bg__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ── Overlay — ensures text stays readable ────────────── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 40, 0.75) 0%,
    rgba(28, 58, 94, 0.72) 45%,
    rgba(17, 24, 40, 0.85) 100%
  );
}

/* Optional dot texture on top of overlay for brand feel */
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(245, 166, 35, 0.08) 1px,
    transparent 1px
  );
  background-size: 36px 36px;
}

/* ── Content sits above bg + overlay ──────────────────── */
.hero-name-block,
.hero-bottom {
  position: relative;
  z-index: 2;
}

.hero-name-block {
  text-align: center;
  padding: 0 20px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: clamp(12px, 2vh, 22px);
  animation: fadeDown 0.7s var(--ease) 0.1s both;
}
.hero-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
  animation: pulseRing 2s ease-out infinite;
}

.hero-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--clr-white);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 7vw, 80px);
  animation: fadeUp 0.9s var(--ease) 0.2s both;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero-name-scale {
  display: block;
  transform-origin: center;
}

.hero-name__accent {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--clr-accent);
  font-size: clamp(30px, 5vw, 66px);
  font-weight: 500;
  display: block;
  margin-top: -0.05em;
  animation: fadeUp 0.9s var(--ease) 0.35s both;
  letter-spacing: -0.01em;
}

/* ── Bottom: tagline + CTAs ───────────────────────────── */
.hero-bottom {
  text-align: center;
  padding: clamp(28px, 5vh, 48px) 20px clamp(40px, 7vh, 64px);
  animation: fadeUp 0.9s var(--ease) 0.55s both;
}

.hero-tagline {
  font-size: clamp(var(--fs-sm), 1.6vw, var(--fs-md));
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto clamp(20px, 3vh, 30px);
  line-height: var(--lh-relaxed);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Scroll hint ──────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.35);
  font-size: var(--fs-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.1s both;
  z-index: 2;
}
.hero-scroll-hint__arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
  animation: float 1.8s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-name {
    font-size: clamp(38px, 8vw, 84px);
    white-space: normal;
  }
  .hero-name__accent {
    font-size: clamp(26px, 5vw, 50px);
  }
}

@media (max-width: 640px) {
  .hero-name {
    font-size: clamp(30px, 9.5vw, 50px);
    letter-spacing: -0.01em;
  }
  .hero-name__accent {
    font-size: clamp(20px, 6vw, 34px);
  }
  .hero-tagline {
    font-size: var(--fs-sm);
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .hero-scroll-hint {
    display: none;
  }
}

.hero-mv {
  display: flex;
  align-items: stretch;
  background: var(--clr-primary); /* same navy as hero — seamless join */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-mv__item {
  flex: 1;
  padding: var(--sp-lg) var(--sp-xl);
  text-align: center;
}

.hero-mv__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 10px;
}

.hero-mv__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--fs-base), 1.4vw, var(--fs-md));
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--lh-snug);
  max-width: 420px;
  margin: 0 auto;
}

.hero-mv__divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  margin: var(--sp-md) 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-mv {
    flex-direction: column;
  }
  .hero-mv__item {
    padding: var(--sp-md);
  }
  .hero-mv__divider {
    width: auto;
    height: 1px;
    margin: 0 var(--sp-md);
  }
  .hero-mv__text {
    font-size: var(--fs-base);
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-mv__item {
    padding: var(--sp-sm) var(--sp-md);
  }
  .hero-mv__text {
    font-size: var(--fs-sm);
  }
}

/* ══════════════════════════════════════════════════════
   PILLARS STRIP
   Shows all 6 arms of the centre at a glance.
══════════════════════════════════════════════════════ */
.pillars-strip {
  background: var(--clr-white);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-lg) 0;
}

.pillars-strip__label {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-text-light);
  margin-bottom: var(--sp-md);
}

.pillars-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.pillar-item {
  flex: 1;
  min-width: 130px;
  max-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-sm);
  border-right: 1px solid var(--clr-border);
  text-decoration: none;
  transition: background var(--t-fast);
}
.pillar-item:last-child {
  border-right: none;
}
.pillar-item:hover {
  background: var(--clr-bg-alt);
}

.pillar-item__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 10px;
  transition: transform var(--t-mid) var(--ease);
}
.pillar-item:hover .pillar-item__icon {
  transform: translateY(-3px);
}

.pillar-item__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-primary);
  line-height: 1.3;
  margin-bottom: 3px;
}
.pillar-item__sub {
  font-size: var(--fs-xs);
  color: var(--clr-text-light);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════════════════ */
.stats-strip {
  background: var(--clr-accent);
  padding: 20px 0;
}
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats-strip .stat-item {
  border-right: 1px solid rgba(28, 58, 94, 0.15);
}
.stats-strip .stat-item:last-child {
  border-right: none;
}
.stats-strip .stat-item__num {
  color: var(--clr-primary);
}
.stats-strip .stat-item__label {
  color: var(--clr-accent-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   ABOUT STRIP
══════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  filter: brightness(0.9);
  display: block;
}

/* Decorative accent border */
.about-visual::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--clr-accent-light);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-img-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--clr-earth);
  color: var(--clr-white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-img-badge__year {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1;
}
.about-img-badge__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════
   CONTENT GRIDS
══════════════════════════════════════════════════════ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
}
.stories-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

/* ══════════════════════════════════════════════════════
   DONATE SECTION
══════════════════════════════════════════════════════ */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.impact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.impact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.8);
}
.impact-dot {
  width: 8px;
  height: 8px;
  background: var(--clr-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Donate widget panel */
.donate-widget__inner {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
}
.donate-widget__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}
.donate-widget__freq {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.donate-widget__amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.freq-btn {
  flex: 1;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 7px;
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  cursor: pointer;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
}
.freq-btn:hover,
.freq-btn.active {
  background: var(--clr-accent);
  color: var(--clr-primary);
  border-color: var(--clr-accent);
  font-weight: 600;
}

.amount-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast);
}
.amount-btn:hover,
.amount-btn.active {
  background: rgba(245, 166, 35, 0.2);
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Hero */
  .hero-name {
    font-size: clamp(40px, 8vw, 90px);
    white-space: normal;
  }
  .hero-name__accent {
    font-size: clamp(28px, 5vw, 55px);
  }
  .hero-circle {
    width: clamp(130px, 18vw, 210px);
    height: clamp(130px, 18vw, 210px);
  }

  /* Pillars */
  .pillar-item {
    min-width: 110px;
  }

  /* Stats */
  .stats-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip .stat-item:nth-child(2) {
    border-right: none;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
  .about-visual {
    max-width: 560px;
    margin: 0 auto;
  }
  .about-visual::before {
    display: none;
  }
  .about-img-main {
    height: 340px;
  }
  .about-img-badge {
    bottom: -12px;
    right: -12px;
  }

  /* Content grids */
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stories-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Donate */
  .donate-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Hero */
  .hero-name {
    font-size: clamp(30px, 9.5vw, 52px);
    letter-spacing: -0.01em;
  }
  .hero-name__accent {
    font-size: clamp(22px, 6vw, 36px);
  }

  .hero-circles-wrap {
    padding: 16px 0;
  }
  .hero-circle:nth-child(4) {
    display: none;
  } /* hide 4th on mobile */
  .hero-circle {
    width: clamp(100px, 26vw, 150px);
    height: clamp(100px, 26vw, 150px);
  }
  .hero-circle__label {
    font-size: 8px;
    padding: 3px 8px;
    bottom: 8px;
  }

  .hero-tagline {
    font-size: var(--fs-sm);
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .hero-scroll-hint {
    display: none;
  }

  /* Pillars */
  .pillars-strip {
    padding: var(--sp-md) 0;
  }
  .pillar-item {
    min-width: 100px;
    padding: 10px 6px;
  }
  .pillar-item__icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .pillar-item__name {
    font-size: 11px;
  }
  .pillar-item__sub {
    display: none;
  }

  /* About */
  .about-img-main {
    height: 260px;
  }
  .about-img-badge {
    bottom: 10px;
    right: 10px;
    padding: 14px 18px;
  }
  .about-img-badge__year {
    font-size: var(--fs-xl);
  }

  /* Content grids */
  .programs-grid {
    grid-template-columns: 1fr;
  }
  .industries-grid {
    grid-template-columns: 1fr;
  }
  .stories-grid-3 {
    grid-template-columns: 1fr;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }

  /* Donate widget */
  .donate-widget__amounts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — SMALL (≤ 380px)
══════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .hero-name {
    font-size: 28px;
  }
  .hero-circle {
    width: 90px;
    height: 90px;
  }
  .hero-circle__label {
    display: none;
  }
  .pillar-item {
    min-width: 80px;
  }
}

/* ══════════════════════════════════════════════════════
   MISSION · VISION · VALUES SECTION
   Paste this at the bottom of home.css
══════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────── */
.mvv-section {
  background: var(--clr-primary);
  padding: var(--sp-2xl) 0;
  position: relative;
  overflow: hidden;
}

/* Dot grid texture */
.mvv-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(245, 166, 35, 0.07) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
}

/* ── Mission + Vision ────────────────────────────────── */
.mvv-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: var(--sp-xl);
  position: relative;
  z-index: 1;
}

/* Vertical divider between mission and vision */
.mvv-top::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.mvv-card {
  padding: var(--sp-lg) var(--sp-xl);
}
.mvv-card:first-child {
  padding-right: calc(var(--sp-xl) + 16px);
}
.mvv-card:last-child {
  padding-left: calc(var(--sp-xl) + 16px);
}

.mvv-card__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}
.mvv-card__label-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.mvv-card--mission .mvv-card__label {
  color: var(--clr-accent);
}
.mvv-card--mission .mvv-card__label-icon {
  background: rgba(245, 166, 35, 0.15);
}
.mvv-card--vision .mvv-card__label {
  color: rgba(255, 255, 255, 0.5);
}
.mvv-card--vision .mvv-card__label-icon {
  background: rgba(255, 255, 255, 0.08);
}

.mvv-card__text {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-lg), 2.2vw, var(--fs-xl));
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  font-style: italic;
}
.mvv-card--mission .mvv-card__text {
  color: var(--clr-white);
}
.mvv-card--vision .mvv-card__text {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Divider line between MV and Values ──────────────── */
.mvv-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 0 var(--sp-xl);
  position: relative;
  z-index: 1;
}

/* ── Values header ───────────────────────────────────── */
.mvv-values-label {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: var(--sp-lg);
  position: relative;
  z-index: 1;
}

/* ── Values grid ─────────────────────────────────────── */
.values-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}

.value-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast);
}
.value-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 166, 35, 0.35);
  transform: translateY(-2px);
}

.value-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.value-item__body {
}
.value-item__name {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 4px;
  line-height: 1.3;
}
.value-item__desc {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  line-height: var(--lh-relaxed);
}

/* ── MVV Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .mvv-card {
    padding: var(--sp-md) var(--sp-lg);
  }
  .mvv-card:first-child {
    padding-right: var(--sp-lg);
  }
  .mvv-card:last-child {
    padding-left: var(--sp-lg);
  }
  .mvv-card__text {
    font-size: var(--fs-md);
  }
  .values-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mvv-top {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mvv-top::before {
    display: none;
  }
  .mvv-card {
    padding: var(--sp-md);
  }
  .mvv-card:first-child {
    padding-right: var(--sp-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mvv-card:last-child {
    padding-left: var(--sp-md);
  }
  .values-grid-home {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .value-item {
    padding: 14px;
  }
}
