/* Custom styles for A-1 Golf Cart Service */

/* Ensure smooth rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #fbbf24;
    color: #2d1017;
}

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

/* Subtle pattern for section backgrounds */
.bg-pattern {
    background-image: radial-gradient(circle, rgba(168, 80, 110, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}
img[data-src] {
    opacity: 0;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Floating animation for hero stat cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: no-preference) {
    .float-card-1 { animation: float 4s ease-in-out infinite; }
    .float-card-2 { animation: float-delayed 4.5s ease-in-out infinite 0.5s; }
    .float-card-3 { animation: float 5s ease-in-out infinite 1s; }
    .float-card-4 { animation: float-delayed 3.8s ease-in-out infinite 1.5s; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(32px); }
    .reveal.visible { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(45, 16, 23, 0.97) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #2d1017;
}
::-webkit-scrollbar-thumb {
    background: #a8506e;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #be7491;
}

/* Hero section */
#hero {
    min-height: 100vh;
}

/* Button hover lift */
button:hover, a:hover {
    transform: translateY(-1px);
}
button:active, a:active {
    transform: translateY(0);
}

/* Service card icon transition */
.group:hover .group-hover\:text-plum-900 {
    transition: color 0.3s ease;
}
.group:hover .group-hover\:bg-amber-400 {
    transition: background-color 0.3s ease;
}
.group:hover .group-hover\:bg-plum-500 {
    transition: background-color 0.3s ease;
}
.group:hover .group-hover\:text-white {
    transition: color 0.3s ease;
}
