/* style.css — Core layout + components (PHP/static site, cPanel-friendly) */

/* ══════════════════════════════════════════════════════════════
   LAYOUT PRIMITIVES
══════════════════════════════════════════════════════════════ */

.site-main { padding-top: 64px; }

.container-custom {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.section-padding {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.surface-warm  { background-color: hsl(var(--surface-warm)); }
.surface-green { background-color: hsl(var(--surface-green)); }
.surface-dark  { background-color: hsl(150 25% 8%); }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */

.btn-primary,
.btn-secondary,
.btn-accent,
.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  transition: transform 300ms, box-shadow 300ms, background-color 300ms,
              color 300ms, border-color 300ms;
  will-change: transform;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 14px 0 hsl(var(--primary) / 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px 0 hsl(var(--primary) / 0.45);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  box-shadow: 0 4px 14px 0 hsl(var(--secondary) / 0.35);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px 0 hsl(var(--secondary) / 0.45);
}

.btn-accent {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  box-shadow: 0 4px 14px 0 hsl(var(--accent) / 0.35);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px 0 hsl(var(--accent) / 0.45);
}

.btn-outline-primary {
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
  background: transparent;
}
.btn-outline-primary:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-2px);
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  transition: background 300ms, transform 300ms;
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════════ */

.card-hover {
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1), box-shadow 300ms;
  backface-visibility: hidden;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.12), 0 8px 16px -6px rgb(0 0 0 / 0.08);
}

.card-premium {
  background: hsl(var(--card));
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1), box-shadow 300ms;
}
.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -12px rgb(0 0 0 / 0.14);
  border-color: hsl(var(--primary) / 0.2);
}

.card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.card-icon-wrap--primary { background: hsl(var(--primary) / 0.1); }
.card-icon-wrap--secondary { background: hsl(var(--secondary) / 0.12); }
.card-icon-wrap--accent { background: hsl(var(--accent) / 0.1); }

/* ══════════════════════════════════════════════════════════════
   SECTION HEADING
══════════════════════════════════════════════════════════════ */

.section-heading { margin-bottom: 3rem; }
.section-heading.is-center { text-align: center; }

.section-heading__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--secondary));
  margin-bottom: 0.5rem;
}

.section-heading__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-heading__bar {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-heading.is-center .section-heading__bar {
  margin-left: auto;
  margin-right: auto;
}

.section-heading__subtitle {
  font-size: 1.0625rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  line-height: 1.7;
}
.section-heading.is-center .section-heading__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════════════════════════════
   HERO — STATIC SINGLE IMAGE (no slideshow, no JS frames)
══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  margin-top: -64px;
  padding-top: 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: hsl(150 40% 8%);
}

.hero picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* animation defined in animations.css → .hero__bg-img */
}

/* Multi-layer overlay: dark + subtle green gradient */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      hsla(150 60% 6% / 0.82) 0%,
      hsla(150 40% 10% / 0.65) 60%,
      hsla(207 60% 20% / 0.55) 100%
    );
  z-index: 1;
}

/* Bottom vignette for text legibility */
.hero__overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, hsla(150 60% 6% / 0.6), transparent);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--secondary));
  flex-shrink: 0;
  animation: pulseGlow 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero__title-accent { color: hsl(var(--secondary)); }

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-icon {
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,0.7);
  animation: heroScrollBounce 1.8s ease-in-out infinite;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   TRUST STRIP
══════════════════════════════════════════════════════════════ */

.trust-strip {
  background: hsl(var(--muted));
  border-top: 3px solid hsl(var(--primary));
  border-bottom: 1px solid hsl(var(--border));
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: hsl(var(--primary));
  padding: 0.25rem 0.5rem;
}

.trust-strip__item-text {
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   IMPACT STATS BAND
══════════════════════════════════════════════════════════════ */

.stats-band {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(120 45% 18%) 100%);
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item { position: relative; text-align: center; }

.stat-item__number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: hsl(var(--secondary));
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

.stat-item__label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.02em;
}

.stat-item__icon {
  display: block;
  width: 28px;
  height: 28px;
  color: hsl(var(--secondary) / 0.7);
  margin: 0 auto 0.75rem;
}

/* Divider between stats */
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.15);
  align-self: center;
}

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════════ */

.testimonials-section {
  background: hsl(var(--surface-warm));
}

.testimonial-card {
  background: hsl(var(--card));
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid hsl(var(--border));
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  font-family: var(--font-display);
  font-size: 6rem;
  color: hsl(var(--primary) / 0.08);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: hsl(var(--foreground));
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testimonial-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.star-filled { color: #f59e0b; }

.testimonials-carousel {
  margin-top: 2.5rem;
  padding: 0 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-carousel .testimonial-card {
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.testimonials-carousel .testimonial-card__text {
  flex: 1;
}

/* ══════════════════════════════════════════════════════════════
   STEP CAROUSEL (partners + testimonials)
══════════════════════════════════════════════════════════════ */

.step-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.step-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: max-content;
  will-change: transform;
}

.step-carousel__track > * {
  flex: 0 0 auto;
  min-width: 0;
}

/* ══════════════════════════════════════════════════════════════
   CSR PARTNERS LOGO CAROUSEL (4 visible, infinite scroll)
══════════════════════════════════════════════════════════════ */

.partners-strip {
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  padding: 4rem 0 4.5rem;
}

.partners-strip__title {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2.5rem;
}

.partners-carousel {
  width: 100%;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.partners-carousel .step-carousel__viewport {
  max-width: 1200px;
  margin: 0 auto;
}

.partner-logo-card {
  flex: 0 0 auto;
  min-width: 0;
}

.partner-logo-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  height: 100%;
  padding: 1.25rem 1rem 1rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: 0 4px 20px -8px rgb(0 0 0 / 0.1);
  text-decoration: none;
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.partner-logo-card__link:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 0.25);
  box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.15);
}

.partner-logo-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border) / 0.6);
}

.partner-logo-card__img {
  width: 100%;
  max-width: 180px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  object-position: center;
}

.partner-logo-card__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-align: center;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .partners-strip { padding: 3rem 0 3.5rem; }

  .partner-logo-card__media {
    min-height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-carousel__track {
    transform: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   DONATION MOTIVATION SECTION
══════════════════════════════════════════════════════════════ */

.donation-section {
  background: linear-gradient(
    135deg,
    hsl(var(--secondary)) 0%,
    hsl(120 50% 38%) 100%
  );
  position: relative;
  overflow: hidden;
}

.donation-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.donation-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.donation-amount-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.donation-amount-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 1rem;
  padding: 1.25rem 1.75rem;
  text-align: center;
  cursor: pointer;
  transition: background 200ms, transform 200ms, border-color 200ms;
  min-width: 130px;
}
.donation-amount-card:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.5);
}

.donation-amount-card__amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: block;
}

.donation-amount-card__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════
   PROGRAM CARDS (enhanced)
══════════════════════════════════════════════════════════════ */

.prog-card {
  background: hsl(var(--card));
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1), box-shadow 300ms;
}
.prog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.14);
  border-color: hsl(var(--primary) / 0.2);
}

.prog-card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 14rem;
}
.prog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22,1,0.36,1);
}
.prog-card:hover .prog-card__img { transform: scale(1.06); }

.prog-card__badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.prog-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.prog-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.prog-card__desc {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}
.prog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 700;
  transition: gap 200ms;
}
.prog-card:hover .prog-card__link { gap: 0.6rem; }

.prog-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.prog-card--link:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 3px;
}

.featured-programs-cta {
  margin-top: 3.5rem;
  padding-top: 0.5rem;
}

/* Who We Are — highlight cards */
.highlight-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem 1.375rem;
  height: 100%;
}
.highlight-card .card-icon-wrap {
  margin-bottom: 1rem;
}
.highlight-card h3 {
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════
   GALLERY GRID
══════════════════════════════════════════════════════════════ */

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
}
.gallery-item:nth-child(3n+1) { grid-row: span 2; }

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22,1,0.36,1);
  display: block;
  min-height: 180px;
}
.gallery-item:hover .gallery-item__img { transform: scale(1.07); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 300ms;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__label {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.gallery-preview-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════════════════════ */

.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
  background-size: cover;
  background-position: center;
  background-color: hsl(150 40% 10%);
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    hsla(150 56% 8% / 0.82) 0%,
    hsla(150 50% 12% / 0.65) 100%
  );
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.page-hero__subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.page-hero--blog-image {
  background-repeat: no-repeat;
  min-height: 46vh;
}

/* ══════════════════════════════════════════════════════════════
   OBJECTIVES / FEATURE CARDS
══════════════════════════════════════════════════════════════ */

.objective-card {
  background: hsl(var(--card));
  border-radius: 1rem;
  padding: 1.75rem;
  border: 1px solid hsl(var(--border));
  transition: transform 300ms, box-shadow 300ms, border-color 300ms;
}
.objective-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgb(0 0 0 / 0.1);
  border-color: hsl(var(--primary) / 0.3);
}

/* ══════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════════════════════════════════════ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: transparent;
}
.scroll-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
  width: 0%;
  transition: width 100ms linear;
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: hsl(var(--background) / 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
  transition: box-shadow 300ms;
}
.site-nav.is-scrolled {
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.08);
}

.site-nav__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-nav__logo {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  padding: 2px;
}

.site-nav__brand-text {
  display: block; /* Show on all screens now */
}
.site-nav__brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  color: hsl(var(--primary));
  line-height: 1.15;
  display: block;
}
.site-nav__brand-subtitle {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  display: block;
}

@media (min-width: 640px) {
  .site-nav__brand-title { font-size: 0.9375rem; line-height: 1.2; }
  .site-nav__brand-subtitle { font-size: 0.6875rem; }
}

/* Mobile Actions (Donate + Hamburger) */
.site-nav__mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-donate-pill {
  display: inline-flex;
  align-items: center;
  background: hsl(var(--secondary));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 200ms, transform 200ms;
}
.nav-donate-pill:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

@media (min-width: 992px) {
  .site-nav__mobile-actions { display: none; }
}

.site-nav__desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  border-radius: 0.375rem;
  transition: color 200ms, background-color 200ms;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: hsl(var(--primary));
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 250ms cubic-bezier(0.22,1,0.36,1);
  transform-origin: left;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link:hover { color: hsl(var(--primary)); }
.nav-link.is-active {
  color: hsl(var(--primary));
  font-weight: 600;
}

/* Dropdown */
.nav-dd { position: relative; }
.nav-link--dd {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-chevron {
  display: inline-block;
  width: 14px;
  height: 14px;
  position: relative;
  flex-shrink: 0;
}
.nav-chevron::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(20% 35%, 50% 65%, 80% 35%, 88% 43%, 50% 80%, 12% 43%);
  transition: transform 200ms;
}
.nav-dd.is-open .nav-chevron::before { transform: rotate(180deg); }

.nav-dd__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 200px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.12), 0 4px 8px rgb(0 0 0 / 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms, transform 200ms;
  z-index: 100;
}
.nav-dd.is-open .nav-dd__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dd__item {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  border-radius: 0.5rem;
  transition: background-color 150ms, color 150ms;
}
.nav-dd__item:hover {
  background: hsl(var(--muted));
  color: hsl(var(--primary));
}
.nav-dd__item.is-active {
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
  font-weight: 600;
}

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  border: 0;
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background-color 150ms;
}
.nav-toggle:hover { background: hsl(var(--muted)); }
.nav-toggle__icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: inline-block;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms, top 200ms, opacity 200ms;
}
.nav-toggle__icon::before { top: 8px; }
.nav-toggle__icon::after  { top: 14px; }
.site-nav.is-mobile-open .nav-toggle__icon::before { top: 11px; transform: rotate(45deg); }
.site-nav.is-mobile-open .nav-toggle__icon::after  { top: 11px; transform: rotate(-45deg); }

.site-nav__mobile {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  max-height: 70vh;
  overflow-y: auto;
}
.site-nav__mobile-inner { display: block; }

.m-link {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid hsl(var(--border));
  transition: background-color 200ms, color 200ms;
}
.m-link:hover { background: hsl(var(--muted)); }
.m-link.is-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.m-acc { border-bottom: 1px solid hsl(var(--border)); }
.m-acc__row { display: flex; align-items: center; }
.m-acc__link {
  flex: 1;
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 200ms, color 200ms;
}
.m-acc__link.is-active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.m-acc__toggle {
  padding: 0.75rem 1rem;
  border: 0;
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background-color 200ms;
}
.m-acc__toggle:hover { background: hsl(var(--muted)); }
.m-acc__chev {
  width: 16px;
  height: 16px;
  display: inline-block;
  transition: transform 200ms;
  position: relative;
}
.m-acc__chev::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(20% 35%, 50% 65%, 80% 35%, 88% 43%, 50% 82%, 12% 43%);
}
.m-acc.is-open .m-acc__chev { transform: rotate(180deg); }
.m-acc__panel { background: hsla(var(--muted) / 0.5); }
.m-acc__child {
  display: block;
  padding: 0.625rem 1.5rem 0.625rem 2.5rem;
  font-size: 0.875rem;
  transition: color 200ms;
  color: hsl(var(--muted-foreground));
}
.m-acc__child:hover { color: hsl(var(--foreground)); }
.m-acc__child.is-active { color: hsl(var(--primary)); font-weight: 500; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */

.site-footer { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand__logo { width: 48px; height: 48px; border-radius: 9999px; background: #fff; padding: 2px; }
.footer-brand__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0;
}
.footer-brand__subtitle { font-size: 0.875rem; opacity: 0.8; margin: 0; }
.footer-desc { font-size: 0.875rem; opacity: 0.8; line-height: 1.625; }
.footer-heading { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; margin: 0 0 1rem; }
.footer-links, .footer-contact, .footer-legal { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 0.5rem; }
.footer-links a { font-size: 0.875rem; opacity: 0.8; transition: opacity 200ms; }
.footer-links a:hover { opacity: 1; }
.footer-contact { display: grid; gap: 0.75rem; font-size: 0.875rem; opacity: 0.8; }
.footer-contact__item { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-contact__item a { opacity: 0.95; }
.footer-ic { width: 16px; height: 16px; margin-top: 0.125rem; flex: 0 0 16px; color: hsla(var(--primary-foreground) / 0.8); }
.footer-legal { display: grid; gap: 0.5rem; font-size: 0.875rem; opacity: 0.8; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsla(var(--primary-foreground) / 0.2);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.6;
  display: grid;
  gap: 0.25rem;
}

/* Footer social icons */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-social__link {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  transition: background 200ms, color 200ms, transform 200ms;
  flex-shrink: 0;
}
.footer-social__link:hover {
  background: hsl(var(--secondary));
  color: #fff;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   FLOATING CONTACT
══════════════════════════════════════════════════════════════ */

.floating-contact {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.floating-contact__panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 300ms, transform 300ms;
}
.floating-contact.is-open .floating-contact__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.12), 0 4px 6px -4px rgb(0 0 0 / 0.12);
  transition: box-shadow 200ms, transform 200ms;
}
.floating-contact__item:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.15);
  transform: translateX(-3px);
}
.floating-contact__item--accent { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.floating-contact__item--secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.floating-contact__label { font-size: 0.875rem; font-weight: 500; }
.floating-ic { width: 18px; height: 18px; color: hsla(var(--accent-foreground) / 0.95); }
.floating-contact__toggle {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  border: 0;
  cursor: pointer;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.12), 0 4px 6px -4px rgb(0 0 0 / 0.12);
  transition: transform 200ms, box-shadow 200ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.floating-contact__toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.15);
}
.floating-contact__toggle-ic { width: 24px; height: 24px; color: hsla(var(--primary-foreground) / 0.95); position: absolute; inset: 0; margin: auto; }
.floating-contact__toggle-ic--close { display: none; }
.floating-contact.is-open .floating-contact__toggle-ic--open { display: none; }
.floating-contact.is-open .floating-contact__toggle-ic--close { display: block; }

/* ══════════════════════════════════════════════════════════════
   LEAD POPUP
══════════════════════════════════════════════════════════════ */

.lead-popup {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lead-popup:not([hidden]) {
  display: flex;
}
.lead-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.lead-popup__dialog {
  position: relative;
  background: hsl(var(--card));
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 40px 80px -20px rgb(0 0 0 / 0.3);
  animation: fadeInUp 0.35s ease-out;
}
.lead-popup__close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 34px;
  height: 34px;
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: 50%;
  cursor: pointer;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 200ms, border-color 200ms, color 200ms;
  flex-shrink: 0;
}
.lead-popup__close:hover {
  background: hsl(var(--foreground));
  color: hsl(var(--card));
  border-color: hsl(var(--foreground));
}
.lead-popup__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.lead-popup__subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.lead-form { display: grid; gap: 0.75rem; }
.lead-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: border-color 200ms, box-shadow 200ms;
}
.lead-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}
.lead-textarea { resize: vertical; min-height: 80px; }
.lead-submit {
  width: 100%;
  justify-content: center;
  font-size: 0.9375rem;
}
.lead-popup__privacy { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.75rem; text-align: center; }
.lead-popup__check {
  width: 60px; height: 60px; border-radius: 50%;
  background: hsl(var(--secondary) / 0.12);
  color: hsl(var(--secondary));
  font-size: 1.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.lead-popup__thanks { text-align: center; }
.lead-popup__thanks-title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }
.lead-popup__thanks-subtitle { color: hsl(var(--muted-foreground)); }

/* ══════════════════════════════════════════════════════════════
   GALLERY MODAL
══════════════════════════════════════════════════════════════ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.is-open {
  display: flex;
}
.modal[hidden] {
  display: none !important;
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.88); cursor: pointer; }
.modal__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: rgba(255,255,255,0.15);
  border: 0;
  border-radius: 50%;
  width: 38px; height: 38px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms;
}
.modal__close:hover { background: rgba(255,255,255,0.3); }
.modal__image { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 0.75rem; }

/* ══════════════════════════════════════════════════════════════
   BLOG STYLES
══════════════════════════════════════════════════════════════ */

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  border-radius: inherit;
  outline-offset: 2px;
}
.blog-card-link:hover .blog-card-link__title { color: hsl(var(--primary)); }
.blog-card-link:focus-visible { outline: 2px solid hsl(var(--ring)); }

.blog-card-link__article {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-link__img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  display: block;
}

.blog-card-link__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.blog-card-link__meta {
  margin-bottom: 0.75rem;
}

.blog-card-link__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.375;
  margin: 0 0 0.75rem;
}

.blog-card-link__excerpt {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}

.blog-card-link__cta {
  margin-top: auto;
}

.blog-cards-grid {
  align-items: stretch;
}

.blog-cards-grid--related {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.blog-breadcrumb { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-bottom: 1.25rem; }
.blog-breadcrumb a { color: hsl(var(--primary)); text-decoration: none; font-weight: 600; }
.blog-breadcrumb a:hover { text-decoration: underline; }

.blog-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }
.blog-detail-body { font-size: 1rem; line-height: 1.75; color: hsl(var(--foreground)); }
.blog-detail-body p { margin: 0 0 1.125rem; }
.blog-detail-body h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: hsl(var(--foreground)); margin: 2rem 0 0.75rem; }
.blog-detail-body blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid hsl(var(--secondary)); background: hsl(var(--muted)); border-radius: 0 0.5rem 0.5rem 0; font-style: italic; color: hsl(var(--foreground)); }
.blog-tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }

/* ══════════════════════════════════════════════════════════════
   FORMS (contact, CSR, donate)
══════════════════════════════════════════════════════════════ */

.form-panel {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 30px -12px rgb(0 0 0 / 0.12);
  display: grid;
  gap: 1rem;
}

.form-panel__note { margin-top: 0.25rem; }

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.form-input,
.form-textarea,
.form-panel select {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1.5px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color 200ms, box-shadow 200ms;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.form-input:hover,
.form-textarea:hover {
  border-color: hsl(var(--primary) / 0.35);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-textarea--full {
  grid-column: 1 / -1;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.csr-form .btn-primary {
  margin-top: 0.25rem;
}

/* ── Form field validation states ──────────────────────────── */

.form-input.is-invalid,
.form-textarea.is-invalid,
.form-panel select.is-invalid {
  border-color: hsl(0 72% 51%);
  box-shadow: 0 0 0 3px hsl(0 72% 51% / 0.12);
  animation: formShake 0.35s cubic-bezier(0.36,0.07,0.19,0.97) both;
}

@keyframes formShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.form-error-msg {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: hsl(0 72% 51%);
  margin-top: -0.25rem;
  animation: fadeInUp 0.2s ease both;
}

/* ── Submit button loading state ───────────────────────────── */

.btn-primary.is-loading {
  pointer-events: none;
  opacity: 0.82;
  position: relative;
}

.btn-text { display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary.is-loading .btn-text { opacity: 0; }

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.btn-primary.is-loading .btn-spinner { display: block; }

@keyframes btnSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Form body hide/show for success transition ─────────────── */

.form-body { display: contents; }
.form-body.is-hidden { display: none; }

/* ── Form success card (shown after successful submission) ─── */

.form-success-card {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 2rem;
  animation: popScaleIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  min-height: 260px;
}

.form-success-card.is-visible {
  display: flex;
}

@keyframes popScaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.success-check-circle {
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.success-check-bg {
  fill: none;
  stroke: hsl(120 56% 24% / 0.12);
  stroke-width: 2;
}

.success-check-ring {
  fill: none;
  stroke: hsl(122 39% 49%);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: ringDraw 0.6s 0.15s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.success-check-mark {
  fill: none;
  stroke: hsl(122 39% 49%);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkDraw 0.35s 0.72s ease forwards;
}

@keyframes ringDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

.form-success-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.form-success-card__msg {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
  max-width: 340px;
  margin-bottom: 1.5rem;
}

.form-success-card__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  cursor: pointer;
  background: none;
  border: 1.5px solid hsl(var(--primary) / 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  transition: background 200ms, border-color 200ms;
}
.form-success-card__reset:hover {
  background: hsl(var(--primary) / 0.07);
  border-color: hsl(var(--primary) / 0.5);
}

/* ── Inline status message (error / fallback) ───────────────── */

[data-form-status]:not([hidden]) {
  display: block;
  padding: 0.65rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
[data-form-status][data-state="ok"] {
  background: hsl(122 39% 49% / 0.1);
  color: hsl(120 56% 24%);
  border: 1px solid hsl(122 39% 49% / 0.25);
}
[data-form-status][data-state="err"] {
  background: hsl(0 72% 51% / 0.08);
  color: hsl(0 72% 38%);
  border: 1px solid hsl(0 72% 51% / 0.2);
}


/* Contact page */
.contact-info-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px -8px rgb(0 0 0 / 0.1);
  height: 100%;
}

.contact-info-card__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 1rem;
  color: hsl(var(--primary));
}

.contact-info-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.625rem;
}

.contact-info-card__text,
.contact-info-card__link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.contact-info-card__link {
  color: hsl(var(--accent));
  text-decoration: underline;
  word-break: break-word;
}

.contact-info-card__link:hover {
  color: hsl(var(--primary));
}

/* Programs page */
.program-nav {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.04);
}

.program-nav__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.program-nav__scroll::-webkit-scrollbar { display: none; }

.program-nav__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0.875rem 0;
  min-width: min-content;
}

.program-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 200ms, border-color 200ms, color 200ms;
}

.program-nav__link:hover,
.program-nav__link:focus-visible {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
}

.program-nav__link i,
.program-nav__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.program-img-wrap {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.program-img-wrap__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.program-img-wrap:hover .program-img-wrap__img {
  transform: scale(1.08);
}

/* Program tag / badge soft backgrounds */
.bg-primary-soft { background: hsl(var(--primary) / 0.1); }
.bg-secondary-soft { background: hsl(var(--secondary) / 0.12); }
.bg-accent-soft { background: hsl(var(--accent) / 0.1); }

/* ══════════════════════════════════════════════════════════════
   UTILITY CLASSES
══════════════════════════════════════════════════════════════ */

.text-gradient {
  background-image: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Color backgrounds */
.bg-primary { background: hsl(var(--primary)); }
.bg-secondary { background: hsl(var(--secondary)); }
.bg-muted { background: hsl(var(--muted)); }
.bg-card { background: hsl(var(--card)); }
.bg-background { background: hsl(var(--background)); }

/* Color text */
.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary)); }
.text-accent { color: hsl(var(--accent)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }

/* Layout */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.flex         { display: flex; }
.grid         { display: grid; }
.items-center { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.inline-flex  { display: inline-flex; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.p-4  { padding: 1rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.border  { border: 1px solid hsl(var(--border)); }
.border-border { border-color: hsl(var(--border)); }
.shadow-sm { box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }

.font-display { font-family: var(--font-display); }
.font-bold    { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium  { font-weight: 500; }
.text-xs  { font-size: 0.75rem; line-height: 1rem; }
.text-sm  { font-size: 0.875rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.leading-tight   { line-height: 1.2; }
.leading-snug    { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.uppercase      { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.underline      { text-decoration: underline; }

.w-full { width: 100%; }
.h-48 { height: 12rem; }
.h-56 { height: 14rem; }
.h-64 { height: 16rem; }
.h-72 { height: 18rem; }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }

/* Pill */
.pill { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 600; border-radius: 9999px; padding: 0.25rem 0.75rem; }
.pill--muted { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.pill--primary { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.pill--secondary { background: hsl(var(--secondary) / 0.12); color: hsl(var(--secondary)); }

/* Divider */
.divider { height: 1px; background: hsl(var(--border)); margin: 2rem 0; }
