/* ═══════════════════════════════════════════════════════════════
   home.css — homepage-only styles
   Shared components live in components.css.
   ═══════════════════════════════════════════════════════════════ */

/* ─── HOME HERO ──────────────────────────────────────────────── */

.home-hero {
  background: #faf9f7;
  min-height: max(560px, 88vh);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid texture */
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(4, 30, 66, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.home-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  padding-top: clamp(5.5rem, 11vw, 8rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  z-index: 1;
  width: 100%;
}

/* LEFT: text block */

.home-hero__eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-ui-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fade-up var(--duration-slow) var(--ease-out) 80ms both;
}

.home-hero__eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  background: var(--color-orange);
  flex-shrink: 0;
}

.home-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  animation: fade-up var(--duration-slow) var(--ease-out) 200ms both;
}

.home-hero__accent {
  color: var(--color-orange);
}

.home-hero__body {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  color: rgba(4, 30, 66, 0.62);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2.25rem;
  animation: fade-up var(--duration-slow) var(--ease-out) 320ms both;
}

.home-hero__ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fade-up var(--duration-slow) var(--ease-out) 440ms both;
}

/* Ghost button override for light hero background */
.home-hero .btn-ghost {
  color: var(--color-navy);
  background: transparent;
  border-color: rgba(4, 30, 66, 0.22);
}
.home-hero .btn-ghost:hover,
.home-hero .btn-ghost:focus {
  color: var(--color-navy);
  background: var(--color-green);
  border-color: var(--color-green);
}

.home-hero__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(4, 30, 66, 0.10);
  animation: fade-up var(--duration-slow) var(--ease-out) 560ms both;
}

.home-hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.home-hero__stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.73rem;
  color: rgba(4, 30, 66, 0.45);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-hero__stat-divider {
  width: 1px;
  height: 2.75rem;
  background: rgba(4, 30, 66, 0.12);
  flex-shrink: 0;
}

/* RIGHT: photo mosaic */

.home-hero__visual {
  display: flex;
  justify-content: center;
  align-items: stretch;
  animation: fade-in 900ms var(--ease-out) 300ms both;
}

.home-hero__mosaic-wrap {
  position: relative;
  width: 100%;
}

/* Orange-to-green accent bar on left edge */
.home-hero__mosaic-wrap::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 12%;
  bottom: 12%;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-orange), var(--color-green));
  border-radius: 4px;
  z-index: 2;
}

.home-hero__mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.625rem;
  height: 500px;
}

.home-hero__mosaic-main {
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  display: block;
}

.home-hero__mosaic-sm {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

/* Caption badge overlaid on main photo */
.home-hero__mosaic-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(4, 30, 66, 0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.90);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
}

/* Mobile */
@media (max-width: 767.98px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: clamp(5rem, 12vw, 6.5rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
    gap: 2rem;
  }

  .home-hero__eyebrow {
    justify-content: center;
  }

  .home-hero__body {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero__ctas {
    justify-content: center;
  }

  .home-hero__stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .home-hero__visual {
    order: -1;
  }

  .home-hero__mosaic {
    height: 260px;
  }

  .home-hero__mosaic-wrap::before {
    display: none;
  }
}

/* ─── PHOTO FILMSTRIP ────────────────────────────────────────── */

.photo-strip {
  display: flex;
  overflow: hidden;
  padding-block: 1.5rem;
  background: var(--surface-soft);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.photo-strip__track {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-right: 0.75rem;
  animation: photo-scroll 36s linear infinite;
}

.photo-strip__img {
  width: 220px;
  height: 155px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  pointer-events: none;
}

@keyframes photo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - 0.75rem)); }
}

/* ─── PROGRAM CARDS ──────────────────────────────────────────── */

.home-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hpg-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-default);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}

.hpg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.hpg-card__img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.hpg-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
  will-change: transform;
}

.hpg-card:hover .hpg-card__img img {
  transform: scale(1.07);
}

.hpg-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 30, 66, 0.6) 0%, rgba(4, 30, 66, 0.05) 55%, transparent 100%);
}

.hpg-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hpg-card__tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
  display: inline-block;
  margin-bottom: 0.9rem;
  width: fit-content;
}

.hpg-card__tag.tag-green {
  background: var(--color-green-tint);
  color: var(--color-green-text);
}

.hpg-card__tag.tag-pink {
  background: rgba(252, 92, 255, 0.10);
  color: #C020C8;
}

.hpg-card__tag.tag-orange {
  background: var(--color-orange-tint);
  color: var(--color-orange-text);
}

.hpg-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.hpg-card__desc {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: var(--text-body);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.35rem;
}

.hpg-card__link {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--text-ui);
  letter-spacing: 0.04em;
  color: var(--color-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--duration-default) var(--ease-out), color var(--duration-default) var(--ease-out);
}

.hpg-card__link:hover {
  gap: 0.85rem;
  color: var(--color-orange-hover);
}

/* Tablet: 2-column */
@media (min-width: 576px) and (max-width: 991.98px) {
  .home-programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-programs-grid .hpg-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    justify-self: center;
    width: 100%;
  }
}

/* Mobile: 1-column */
@media (max-width: 575.98px) {
  .home-programs-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── IMPACT STATS ───────────────────────────────────────────── */

.home-impact {
  background: #F5EFE4;
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.home-impact__eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-ui-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-orange);
  text-align: center;
  margin-bottom: 0.6rem;
}

.home-impact__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.home-impact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.home-impact__stat {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(4, 30, 66, 0.08);
  background: rgba(255, 255, 255, 0.60);
  transition: border-color var(--duration-default) var(--ease-out), background var(--duration-default) var(--ease-out), box-shadow var(--duration-default) var(--ease-out);
}

.home-impact__stat:hover {
  border-color: rgba(255, 130, 0, 0.30);
  background: #fff;
  box-shadow: 0 8px 28px rgba(4, 30, 66, 0.08);
}

.home-impact__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.home-impact__num--orange { color: var(--color-orange); }
.home-impact__num--green  { color: #3d9e00; }
.home-impact__num--white  { color: var(--color-navy); }

.home-impact__stat-label {
  font-family: var(--font-body);
  font-size: var(--text-ui);
  color: rgba(4, 30, 66, 0.55);
  line-height: 1.55;
}

@media (max-width: 767.98px) {
  .home-impact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 399.98px) {
  .home-impact__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── EVENTS CALENDAR ────────────────────────────────────────── */

.calendar-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.calendar-wrapper iframe {
  width: 100%;
  height: clamp(440px, 60vh, 650px);
  display: block;
  border: 0;
}

/* ─── REDUCED MOTION ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .home-hero__eyebrow,
  .home-hero__headline,
  .home-hero__body,
  .home-hero__ctas,
  .home-hero__stats,
  .home-hero__visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hpg-card {
    transition: none;
  }

  .hpg-card:hover {
    transform: none;
  }

  .hpg-card__img img {
    transition: none;
  }

  .photo-strip__track {
    animation: none;
    flex-wrap: wrap;
  }

  .home-hero .btn-ghost {
    transition: none;
  }
}
