/*
Theme Name: Project Catalyst Theme
Theme URI: https://projectcatalyst.pages.dev/
Author: Blackbox AI
Description: A modern fundraising landing page theme inspired by Project Catalyst.
Version: 2.0.0
Text Domain: project-catalyst-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --navy: #14161f;
  --orange: #f05a28;
  --orange-dark: #d84c1e;
  --orange-soft: #fdece3;
  --text: #16181f;
  --muted: #6b7178;
  --border: #e7e5e2;
  --bg: #f5f4f2;
  --surface: #ffffff;
  --shadow: 0 20px 45px rgba(20, 22, 31, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button, input { font: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--navy);
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
}
.navbar__links {
  display: none;
  gap: 1.9rem;
  align-items: center;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
}
@media (min-width: 768px) { .navbar__links { display: flex; } }
.navbar__links a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transition: right 0.25s ease;
}
.navbar__links li.current-menu-item a::after,
.navbar__links a.is-active::after {
  right: 0;
}
.navbar__links a:hover::after, .navbar__links a:focus-visible::after { right: 0; }
.navbar__links a:hover, .navbar__links a:focus-visible { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.nav-pill {
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}
.nav-pill--lang {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
}
@media (min-width: 768px) { .nav-pill { display: inline-flex; } }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s cubic-bezier(.22,1,.36,1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(240, 90, 40, 0.25); }
.btn--primary:hover { background: var(--orange-dark); box-shadow: 0 14px 30px rgba(240, 90, 40, 0.32); }
.btn--ghost { color: var(--navy); border-color: var(--border); background: #fff; }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); box-shadow: 0 10px 22px rgba(20, 22, 31, 0.08); }
.btn--white { background: #fff; color: var(--orange); }
.btn--white:hover { background: #fff5f0; box-shadow: 0 14px 30px rgba(0,0,0,0.15); }
.btn--outline-block { display: flex; width: 100%; color: var(--navy); border-color: var(--border); background: #fff; padding: 0.7rem 1rem; font-size: 0.9rem; }
.btn--outline-block:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
}
@media (min-width: 768px) { .mobile-toggle { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: #fff; }
.mobile-nav.is-open { display: block; }
.mobile-nav__inner { padding: 1rem 0 1.5rem; display: grid; gap: 0.75rem; }
.mobile-nav a { display: block; padding: 0.55rem 0; color: var(--navy); font-weight: 600; }

/* Eyebrow / section header */
.hero__eyebrow, .section__eyebrow {
  display: inline-flex;
  margin-bottom: 0.9rem;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section__header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.section h2 { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.35rem); color: var(--navy); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.section__lead { margin-top: 0.75rem; color: var(--muted); max-width: 40rem; }

/* Hero */
.hero { padding: 2.5rem 0 0; }
.hero__inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 992px) { .hero__inner { grid-template-columns: 1fr 0.92fr; gap: 2.5rem; } }
.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p { margin: 0 0 1.6rem; color: var(--muted); font-size: 1.05rem; max-width: 33rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__visual { border-radius: 1.5rem; overflow: hidden; }
.hero__visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero__visual:hover img { transform: scale(1.04); }

/* Sections */
.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg); }

/* Campaign cards */
.campaign-grid { display: grid; gap: 1.4rem; }
@media (min-width: 768px) { .campaign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .campaign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.campaign-card, .child-card {
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.campaign-card:hover, .child-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20, 22, 31, 0.12);
  border-color: transparent;
}
.campaign-card__media, .child-card__media { overflow: hidden; }
.campaign-card__media { aspect-ratio: 16 / 10; }
.campaign-card__media img, .child-card__media img {
  transition: transform 0.55s ease;
}
.campaign-card:hover .campaign-card__media img,
.child-card:hover .child-card__media img {
  transform: scale(1.08);
}
.campaign-card__media img { height: 100%; width: 100%; object-fit: cover; }
.campaign-card__body { padding: 1.25rem 1.3rem 1.4rem; }
.campaign-card__tag {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.campaign-card h3 { margin: 0.85rem 0 0.3rem; font-size: 1.08rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.campaign-card__byline { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.87rem; }
.progress-bar { height: 6px; border-radius: 999px; background: #ece9e6; overflow: hidden; margin: 0 0 0.7rem; }
.progress-bar span { display: block; height: 100%; background: var(--orange); border-radius: inherit; }
.campaign-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.87rem; color: var(--text); font-weight: 500; }
.campaign-meta strong { color: var(--orange); font-weight: 700; }

/* Children */
.children-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .children-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .children-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.child-card__media { aspect-ratio: 1 / 1; }
.child-card__media img { height: 100%; width: 100%; object-fit: cover; }
.child-card__body { padding: 1.1rem; }
.child-card__waiting {
  display: inline-flex;
  margin-bottom: 0.7rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
}
.child-card h3 { margin: 0 0 0.25rem; font-size: 1.02rem; font-weight: 700; color: var(--navy); }
.child-card__meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.9rem; }

/* Steps */
.steps { display: grid; gap: 2rem; position: relative; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.step-card { position: relative; }
.step-card__num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}
.step-card:hover .step-card__num {
  transform: scale(1.12);
  box-shadow: 0 10px 22px rgba(240, 90, 40, 0.35);
}
@media (min-width: 768px) {
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: calc(34px + 0.6rem);
    right: -1.5rem;
    height: 1px;
    background: var(--border);
  }
}
.step-card h3 { margin: 0 0 0.5rem; color: var(--navy); font-weight: 700; font-size: 1.08rem; }
.step-card p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 22rem; }

/* Impact / stats */
.impact-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.5rem; }
.impact-top__text { max-width: 38rem; }
.stats-row { display: grid; gap: 1.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats-row__item strong {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.02em;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1);
}
.stats-row__item:hover strong { transform: translateY(-3px); }
.stats-row__item span { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.92rem; max-width: 14rem; }
.impact-note { margin-top: 2rem; color: var(--muted); font-size: 0.84rem; }

/* Video / story carousel */
.carousel { position: relative; }
.carousel__track,
.story-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 68%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
}
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.story-scroll::-webkit-scrollbar,
.carousel__track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .carousel__track, .story-scroll { grid-auto-columns: 42%; } }
@media (min-width: 992px) { .carousel__track, .story-scroll { grid-auto-columns: 23%; } }

.story-card {
  position: relative;
  scroll-snap-align: start;
  border-radius: 1.1rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--navy);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.story-card:hover,
.story-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(20, 22, 31, 0.25);
}
.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.6s ease, opacity 0.35s ease;
}
.story-card:hover img { transform: scale(1.08); opacity: 1; }
.story-card__duration {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.3s ease;
}
.story-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.story-card:hover .story-card__play {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--orange);
  color: #fff;
}
.story-card__play:hover,
.story-card__play:focus-visible {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--orange);
  color: #fff;
}
.story-card__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.9rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  color: #fff;
  transform: translateY(4px);
  transition: transform 0.35s ease;
}
.story-card:hover .story-card__caption { transform: translateY(0); }
.story-card__caption p { margin: 0 0 0.3rem; font-weight: 700; font-size: 0.92rem; line-height: 1.3; }
.story-card__caption span { font-size: 0.78rem; color: rgba(255,255,255,0.8); }

/* Carousel arrows + dots (shared component) */
.carousel__arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20, 22, 31, 0.12);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  z-index: 2;
}
.carousel__arrow:hover,
.carousel__arrow:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.carousel__arrow.is-disabled { opacity: 0.35; pointer-events: none; }
.carousel__arrow--prev { left: -6px; }
.carousel__arrow--next { right: -6px; }
@media (min-width: 768px) {
  .carousel__arrow--prev { left: -22px; }
  .carousel__arrow--next { right: -22px; }
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
}
.carousel-dot:hover { background: #d9d5cf; }
.carousel-dot.is-active { background: var(--orange); width: 22px; border-radius: 999px; }

/* CTA banner */
.cta-banner {
  background: var(--orange);
  padding: 3rem 0;
}
.cta-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-banner h2 { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.3rem); color: #fff; font-weight: 800; letter-spacing: -0.02em; max-width: 30rem; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
}
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 0.8fr 0.8fr; } }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer__grid > div:first-child p { max-width: 24rem; color: rgba(255,255,255,0.6); }
.site-footer h4 { color: rgba(255,255,255,0.5); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: 0.65rem; }
.site-footer li, .site-footer a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.site-footer a:hover { color: var(--orange); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.site-footer__bottom-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer__bottom-links a { color: rgba(255,255,255,0.5); }

@media (max-width: 767px) {
  .hero__visual img { height: 260px; }
  .cta-banner__inner { flex-direction: column; align-items: flex-start; }
  .steps { gap: 2rem; }
}
