/* Transform Creatively — site-wide visual polish */

/* ── Typography refinements ── */
body.site-redesign {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

body.site-redesign h1,
body.site-redesign h2 {
  letter-spacing: -0.015em;
}

/* ── Hero gradient highlight ── */
body.site-redesign .hero--premium h1 span,
body.site-enhanced .hero--premium h1 span {
  background: linear-gradient(135deg, #6b1fab 0%, #e91e8e 55%, #ffb000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  padding-bottom: 0.05em;
}

/* ── Top nonprofit bar: hidden by request ── */
.nonprofit-bar {
  display: none !important;
}

body.has-nonprofit-bar {
  --nonprofit-bar-h: 0px;
}

/* ── Site header polish ── */
.site-header {
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(107, 31, 171, 0.08);
}

.site-header.scrolled,
.site-header.is-scrolled {
  background: rgba(255, 253, 249, 0.96) !important;
  box-shadow: 0 4px 24px rgba(13, 18, 54, 0.06);
  border-bottom: 1px solid rgba(107, 31, 171, 0.12);
}

.site-header .logo img {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-header .logo:hover img {
  transform: scale(1.04);
}

.site-header .nav-desktop a {
  font-weight: 500;
  color: rgba(13, 18, 54, 0.78);
  transition: color 0.2s ease;
}

.site-header .nav-desktop a:hover,
.site-header .nav-desktop a.is-active {
  color: #0d1236;
}

/* ── Hero badge refinement ── */
.hero-badge {
  background: linear-gradient(135deg, rgba(107, 31, 171, 0.1), rgba(233, 30, 142, 0.08));
  border: 1px solid rgba(107, 31, 171, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #6b1fab;
  font-weight: 700;
  margin-bottom: 28px;
}

.hero-badge strong {
  color: #e91e8e;
  font-weight: 800;
}

/* ── Hero image: framed float ── */
.hero-visual__stage {
  border-radius: 22px;
  box-shadow:
    0 30px 80px -24px rgba(107, 31, 171, 0.28),
    0 18px 36px -20px rgba(233, 30, 142, 0.18),
    0 0 0 1px rgba(107, 31, 171, 0.08);
  overflow: hidden;
  animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual__stage {
    animation: none;
  }
}

/* ── Mission statement bar ── */
.mission-statement {
  background: linear-gradient(180deg, rgba(247, 244, 252, 0.6), rgba(255, 253, 249, 0));
  padding: 22px 0;
  border-bottom: 1px solid rgba(107, 31, 171, 0.06);
}

.mission-statement p {
  color: rgba(13, 18, 54, 0.78);
}

.mission-statement strong {
  color: #6b1fab;
  font-weight: 700;
}

.mission-statement a {
  color: #e91e8e;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 30, 142, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.mission-statement a:hover {
  color: #6b1fab;
  border-bottom-color: #6b1fab;
}

/* ── Cards: refined depth ── */
.feature-card,
.pillar,
.impact-card,
.school-card,
.get-involved-card,
.testimonial-card,
.contact-card,
.step {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(107, 31, 171, 0.1);
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(13, 18, 54, 0.04),
    0 10px 30px -12px rgba(107, 31, 171, 0.1);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.feature-card::after,
.pillar::after,
.impact-card::after,
.get-involved-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 60%,
    rgba(233, 30, 142, 0.06) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-card:hover,
.pillar:hover,
.impact-card:hover,
.get-involved-card:hover,
.testimonial-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 2px rgba(13, 18, 54, 0.06),
    0 22px 50px -16px rgba(233, 30, 142, 0.22),
    0 10px 24px -12px rgba(107, 31, 171, 0.18);
  border-color: rgba(233, 30, 142, 0.32);
}

.feature-card:hover::after,
.pillar:hover::after,
.impact-card:hover::after,
.get-involved-card:hover::after {
  opacity: 1;
}

.feature-card > *,
.pillar > *,
.impact-card > *,
.get-involved-card > * {
  position: relative;
  z-index: 1;
}

.school-card:hover {
  border-color: rgba(255, 176, 0, 0.45);
  box-shadow:
    0 1px 2px rgba(13, 18, 54, 0.06),
    0 22px 50px -16px rgba(255, 176, 0, 0.22);
}

/* ── Trust pillars: glass cards ── */
.trust-pillar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(107, 31, 171, 0.12);
  border-radius: 14px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.trust-pillar:hover,
a.trust-pillar:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(233, 30, 142, 0.4);
  box-shadow: 0 14px 36px -16px rgba(233, 30, 142, 0.25);
}

.trust-pillar__value {
  background: linear-gradient(135deg, #6b1fab, #e91e8e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
}

/* ── Section labels: accent bar ── */
.section__label {
  position: relative;
  display: inline-block;
  padding-left: 36px;
}

.section__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, #6b1fab, #e91e8e);
  border-radius: 2px;
}

/* ── Stats: gradient numbers ── */
.stat__number,
.stat-number {
  background: linear-gradient(135deg, #6b1fab 0%, #e91e8e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Buttons polish ── */
.btn {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.btn--primary {
  background: linear-gradient(135deg, #6b1fab 0%, #e91e8e 100%) !important;
  color: #fff !important;
  border: none;
}

.btn--lg {
  padding: 14px 30px;
  font-size: 15px;
}

.btn--outline {
  border: 1.5px solid rgba(107, 31, 171, 0.5);
  color: #6b1fab;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.btn--outline:hover {
  background: #6b1fab;
  color: #fff;
  border-color: #6b1fab;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(107, 31, 171, 0.3);
}

/* ── Give band: rich gradient ── */
.give-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1236 0%, #2b1a5e 50%, #4a1d7a 100%) !important;
  border-radius: 24px;
  margin: 60px auto;
  max-width: calc(100% - 48px);
}

.give-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 176, 0, 0.22), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(233, 30, 142, 0.22), transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.give-band > * {
  position: relative;
  z-index: 2;
}

.give-band h2,
.give-band p {
  color: #fff !important;
}

.give-band p {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ── Testimonial card: decorative quote ── */
.testimonial-card {
  background: rgba(255, 255, 255, 0.96);
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: Georgia, "Playfair Display", serif;
  font-size: 90px;
  line-height: 1;
  color: #ffb000;
  opacity: 0.3;
  font-weight: 700;
  pointer-events: none;
}

.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.testimonial-card blockquote p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(13, 18, 54, 0.85);
  font-style: normal;
}

/* ── Founder card: warm glow ── */
.founder-card {
  background: linear-gradient(165deg, #fff 0%, rgba(247, 244, 252, 0.6) 100%);
  border: 1px solid rgba(107, 31, 171, 0.12);
  border-radius: 24px;
  box-shadow:
    0 20px 60px -24px rgba(107, 31, 171, 0.2),
    0 8px 24px -12px rgba(233, 30, 142, 0.1);
}

.founder-card__photo img {
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.95),
    0 0 0 6px rgba(255, 176, 0, 0.35),
    0 18px 40px -10px rgba(107, 31, 171, 0.4);
}

/* ── Footer polish ── */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0d1236 0%, #06081f 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(107, 31, 171, 0.5) 30%,
    rgba(233, 30, 142, 0.5) 70%,
    transparent 100%
  );
}

.site-footer,
.site-footer p,
.site-footer span,
.site-footer li {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer a:hover {
  color: #ffb000;
  padding-left: 6px;
}

/* ── Sticky give bar polish ── */
.sticky-give {
  border-top: 1px solid rgba(255, 176, 0, 0.3);
  background: linear-gradient(180deg, rgba(13, 18, 54, 0.96), rgba(13, 18, 54, 0.99));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sticky-give p,
.sticky-give span {
  color: #fff;
}

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #6b1fab 0%, #e91e8e 50%, #ffb000 100%);
  z-index: 10000;
  pointer-events: none;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(233, 30, 142, 0.5);
}

/* ── Focus states ── */
*:focus-visible {
  outline: 2px solid #e91e8e;
  outline-offset: 3px;
  border-radius: 6px;
}

.btn:focus-visible {
  outline-offset: 4px;
}

/* ── Selection ── */
::selection {
  background: rgba(233, 30, 142, 0.25);
  color: #0d1236;
}

/* ── Image card refinements ── */
.feature-card__img,
.pillar__img,
.impact-card__img,
.school-card__img {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
}

.feature-card__img::after,
.pillar__img::after,
.impact-card__img::after,
.school-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13, 18, 54, 0.15));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover .feature-card__img::after,
.pillar:hover .pillar__img::after,
.impact-card:hover .impact-card__img::after,
.school-card:hover .school-card__img::after {
  opacity: 1;
}

.feature-card img,
.pillar img,
.impact-card img,
.school-card img,
.who-visuals img {
  transition:
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.4s ease;
}

.feature-card:hover img,
.pillar:hover img,
.impact-card:hover img,
.school-card:hover img {
  filter: brightness(1.04) saturate(1.06);
}

/* ── Back-to-top refinement ── */
.back-to-top {
  background: linear-gradient(135deg, #6b1fab 0%, #e91e8e 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow:
    0 8px 24px rgba(233, 30, 142, 0.45),
    0 2px 6px rgba(13, 18, 54, 0.15);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #e91e8e 0%, #ffb000 100%) !important;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 32px rgba(233, 30, 142, 0.55);
}

/* ── Section spacing rhythm ── */
.section,
section.section--alt,
section.section--purple,
section.section--mesh,
.get-involved,
.trust-pillars,
.partner-proof,
.testimonials {
  padding-block: clamp(64px, 8vw, 110px);
}

/* ── Smoother section dividers ── */
.section + .section,
section + section {
  position: relative;
}

/* ── Mobile polish ── */
@media (max-width: 768px) {
  .hero-badge {
    font-size: 10.5px;
    padding: 6px 14px;
    letter-spacing: 1.2px;
  }

  .nonprofit-bar {
    font-size: 11.5px;
    padding: 7px 0;
  }

  .feature-card,
  .pillar,
  .impact-card,
  .school-card,
  .get-involved-card,
  .testimonial-card {
    border-radius: 16px;
  }

  .give-band {
    margin: 40px auto;
    max-width: calc(100% - 24px);
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
  }
}

/* ── Print: clean look ── */
@media print {
  .nonprofit-bar,
  .site-header,
  .site-footer,
  .back-to-top,
  .sticky-give,
  .scroll-progress {
    display: none !important;
  }
}
