/* Five Star Driving Academy — Custom Styles */

/* Base font loading */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Selection color */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #fff;
}

/* Body background texture */
body {
  background-color: #040a14;
}

/* Smooth image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

/* Custom select styling */
select option {
  background: #0f1f38;
  color: #e5e7eb;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(4, 10, 20, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold glow effect for cards on hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(201, 168, 76, 0.1);
}

.service-card {
  position: relative;
}

.service-card:hover::after {
  opacity: 1;
}

/* Button ripple on click */
.cta-btn:active {
  transform: scale(0.98);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .float-anim,
  .float-anim-delay {
    animation: none;
  }
}

/* Print styles */
@media print {
  nav, .mobile-menu, #menuOverlay {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero-overlay {
    display: none;
  }
}
