/* Jesca Foundation Family Trust — custom styles
   Ported from src/index.css (Tailwind @layer utilities + animations).
   Tailwind utility classes are loaded via the Play CDN; this file holds the
   custom helper classes, gradients, fonts and keyframe animations. */

:root {
  --background: 210 40% 98%;
  --foreground: 222.2 84% 4.9%;
  --primary: 221 83% 53%;
  --border: 214.3 31.8% 91.4%;
  --radius: 0.5rem;
}

html {
  scroll-behavior: smooth;
}

.font-heading { font-family: 'Poppins', sans-serif; }
.font-body { font-family: 'Inter', sans-serif; }
.font-accent { font-family: 'Playfair Display', serif; }

.grad-primary { background-image: linear-gradient(135deg, #7A1F7A 0%, #EC1E79 100%); }
.grad-secondary { background-image: linear-gradient(135deg, #2DA9E1 0%, #63C6F2 100%); }
.grad-hero { background-image: linear-gradient(135deg, #7A1F7A 0%, #EC1E79 50%, #2DA9E1 100%); }
.grad-cta { background-image: linear-gradient(90deg, #EC1E79 0%, #7A1F7A 100%); }
/* variants of custom gradient (Tailwind cannot generate hover: variants for plain CSS classes) */
.hover\:grad-primary:hover { background-image: linear-gradient(135deg, #7A1F7A 0%, #EC1E79 100%); }
.hover\:grad-secondary:hover { background-image: linear-gradient(135deg, #2DA9E1 0%, #63C6F2 100%); }
.hover\:grad-cta:hover { background-image: linear-gradient(90deg, #EC1E79 0%, #7A1F7A 100%); }
.text-grad-primary {
  background-image: linear-gradient(135deg, #7A1F7A 0%, #EC1E79 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

#loader {
  /* Safety net: even if a script fails before it can hide the loader, the
     page is revealed automatically after a short delay. */
  animation: jescaLoaderAutoHide 0.7s ease 1.6s forwards;
}
@keyframes jescaLoaderAutoHide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@keyframes jescaFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}
.animate-float { animation: jescaFloat 6s ease-in-out infinite; }

@keyframes jescaFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Only hide content once JS has opted in, so a script failure can never
   leave the whole page invisible. */
.reveal.will-reveal { opacity: 0; }
.reveal.in-view { animation: jescaFadeUp 0.7s ease forwards; }

@keyframes jescaSpin { to { transform: rotate(360deg); } }
.animate-jspin { animation: jescaSpin 1.2s linear infinite; }

@keyframes ripple {
  to { transform: scale(2.5); opacity: 0; }
}
.ripple-span {
  position: absolute;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

.donate-card-field {
  height: 48px;
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  background: #FFFFFF;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.donate-card-field:focus-within {
  border-color: #2DA9E1;
  box-shadow: 0 0 0 3px rgba(45, 169, 225, 0.2);
}
.donate-card-field iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
#donatePayPalButton paypal-button {
  --paypal-button-border-radius: 9999px;
  width: 100%;
  max-width: 100%;
}
