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

body {
  font-family: 'Roboto', sans-serif;
  color: #333333;
  background-color: #F5F5F5;
}

h1, h2, h3, h4, h5, h6, .font-primary {
  font-family: 'Montserrat', sans-serif;
}

/* Animations */
@keyframes pulsate {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate-pulse-slow {
  animation: pulsate 3s infinite;
}

@keyframes slideInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTAs */
.cta-primary {
  display: inline-block;
  background-color: #BF0A30;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cta-primary:hover, .cta-primary:focus-visible {
  background-color: #FFFFFF;
  color: #BF0A30;
  border-color: #BF0A30;
  outline: none;
  text-decoration: none;
}

.cta-secondary {
  display: inline-block;
  background-color: transparent;
  color: #002868;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid #002868;
  transition: all 0.3s ease;
  text-align: center;
}

.cta-secondary:hover, .cta-secondary:focus-visible {
  background-color: #002868;
  color: #FFFFFF;
  outline: none;
  text-decoration: none;
}

/* Header Sticky */
header {
  transition: all 0.3s ease;
  z-index: 50;
}

header.sticky {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Navigation Underline Effect */
.nav-link {
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #002868;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Mobile Menu */
#mobile-nav {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 100;
}

#mobile-nav.open {
  transform: translateX(0);
}

/* Hero Parallax */
.hero-parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .hero-parallax {
    background-attachment: scroll;
  }
}

/* Icons Glow */
.hover-glow {
  transition: all 0.3s ease;
}
.hover-glow:hover {
  box-shadow: 0 0 8px rgba(0, 40, 104, 0.3);
  border-radius: 50%;
  transform: scale(1.1);
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.open {
  max-height: 500px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Testimonial Carousel */
.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}
.carousel-item {
  flex: 0 0 100%;
  padding: 1rem;
}

@media (min-width: 768px) {
  .carousel-item {
    flex: 0 0 50%;
  }
}
@media (min-width: 1024px) {
  .carousel-item {
    flex: 0 0 33.333333%;
  }
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid #002868;
  outline-offset: 2px;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}