/* Custom styles layered on top of Tailwind utility classes */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --orange: #f97316;
  --orange-dark: #ea580c;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.font-display {
  font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark .glass {
  background: rgba(17, 24, 39, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gradient mesh backdrop for hero */
.hero-mesh {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.18), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(249, 115, 22, 0.16), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.10), transparent 50%);
}

.dark .hero-mesh {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.28), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(249, 115, 22, 0.22), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.16), transparent 50%);
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Card hover lift */
.card-lift {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(37, 99, 235, 0.35);
}

/* FAQ accordion */
.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

summary::-webkit-details-marker {
  display: none;
}

/* Back to top button */
#back-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(8px);
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

/* Skip link */
.skip-link:focus {
  clip: auto !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* Focus ring consistency */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
