/* ================================
   Harvard House Montessori — Premium Styles
   ================================ */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(circle at 10% 0%, rgba(30, 58, 138, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(220, 38, 38, 0.05) 0%, transparent 40%),
    #fffaf2;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Premium gradient text */
.gradient-text {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #dc2626 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Logo glow */
.logo-glow {
  filter: drop-shadow(0 10px 30px rgba(30, 58, 138, 0.25));
}

.logo-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1e3a8a, #16a34a, #dc2626, #1e3a8a);
  opacity: 0.15;
  filter: blur(20px);
  z-index: -1;
  animation: spin 12s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Pulse ring on call button */
.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid currentColor;
  animation: pulseRingAnim 2.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
  pointer-events: none;
}

@keyframes pulseRingAnim {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Action card hover */
.action-card {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  transform: translateX(-100%) rotate(0deg);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.action-card:hover::before {
  transform: translateX(100%) rotate(0deg);
}

.action-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.action-card:active {
  transform: translateY(-2px) scale(0.99);
}

/* Premium border ring */
.premium-ring {
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%) border-box;
  border: 2px solid transparent;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: linear-gradient(135deg, #1e3a8a, #172554);
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 20px 50px -10px rgba(30, 58, 138, 0.5);
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Decorative dots pattern */
.dots-bg {
  background-image: radial-gradient(circle, rgba(30, 58, 138, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Custom scroll bar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #fffaf2;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(#1e3a8a, #dc2626);
  border-radius: 10px;
}

/* Floating call button (mobile) */
.fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
}

/* Card lift */
.lift {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -15px rgba(30, 58, 138, 0.3);
}

/* Hide tailwind FOUC */
[x-cloak] { display: none !important; }

/* Ribbon */
.ribbon {
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #1e3a8a 100%);
  background-size: 200% 100%;
  animation: shine 5s linear infinite;
}

/* Make sure links inherit color cleanly */
a { -webkit-tap-highlight-color: transparent; }
button { -webkit-tap-highlight-color: transparent; }

/* Mobile-first nice tap targets */
@media (max-width: 640px) {
  .action-card {
    min-height: 110px;
  }
}
