/* ============================================================
   Sunzom — Custom Styles (Tailwind CDN handles most styling)
   ============================================================ */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, #1a56db, #b8860b);
  transition: width 0.1s linear;
  width: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  padding: 8px 16px; background: #1a56db; color: #fff;
}
.skip-link:focus { left: 16px; top: 16px; border-radius: 8px; }

/* Fade-up animation */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Gradient text */
.text-primary-gradient {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gold-gradient {
  background: linear-gradient(135deg, #b8860b, #d4a853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass effect */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.glass-light {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Card shadow */
.card-shadow {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-shadow:hover {
  box-shadow: 0 18px 40px -12px rgba(26, 86, 219, 0.22);
  transform: translateY(-4px);
}

/* Background image overlay */
.bg-image-overlay {
  position: relative;
}
.bg-image-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.92), rgba(255,255,255,0.65), rgba(255,255,255,0.3));
}

/* FAQ details animation */
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 30s linear infinite; }
.animate-marquee:hover { animation-play-state: paused; }

/* Keyframe animations */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(26, 86, 219, 0.3); }
  50% { box-shadow: 0 0 20px rgba(26, 86, 219, 0.6); }
}
@keyframes scroll-indicator {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f2f7; }
::-webkit-scrollbar-thumb { background: #c1c8d4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0a8b8; }
* { scrollbar-width: thin; scrollbar-color: #c1c8d4 #f0f2f7; }

/* Back to top button */
.back-to-top { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* Field error */
.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

/* Tab switchers — generic active state (toggled via .is-active in main.js) */
.tabs-pills button,
.tabs-cards button { transition: all .3s ease; }
.tabs-pills button.is-active {
  background: #1a56db;
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(26, 86, 219, 0.4);
}
.tabs-cards button.is-active {
  background: #fff;
  color: #1a56db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Line clamp utility (used across cards; survives even without typography plugin) */
.line-clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Mobile bottom CTA bar offset — avoid covering footer content */
@media (max-width: 1023px) {
  body { padding-bottom: 60px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero-slide { opacity: 1; transition: none; }
  .animate-marquee { animation: none; }
  .animate-bounce { animation: none; }
  .animate-pulse { animation: none; }
}
