/* 
 * Drive Right Driving School — Custom Styles
 * Minimalist, clean aesthetic with emerald green + cream palette
 */

/* Base reset and typography refinements */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: rgba(4, 120, 87, 0.15);
    color: #064e3b;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fdfcf8;
}

::-webkit-scrollbar-thumb {
    background: rgba(6, 78, 59, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 78, 59, 0.4);
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Smooth transitions for interactive elements */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    #mobile-menu {
        transition: none;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu, .reveal {
        display: block !important;
        opacity: 1 !important;
    }
    
    .gradient-hero {
        background: #064e3b !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .font-serif {
        line-height: 1.05;
    }
}

/* Large desktop adjustments */
@media (min-width: 1280px) {
    .max-w-6xl {
        max-width: 72rem;
    }
}

/* Utility: thin decorative line */
.thin-line {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(6, 78, 59, 0.12) 50%,
        transparent 100%
    );
}

/* Hover lift effect for cards */
.group:hover .group-hover\:rotate-1 {
    transform: rotate(1deg);
}

/* Subtle shimmer on CTA buttons */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure form inputs are readable */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #064e3b;
    -webkit-box-shadow: 0 0 0px 1000px #fdfcf8 inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Mobile menu button animation states */
#menu-toggle[aria-expanded="true"] #bar1 {
    transform: translateY(5px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] #bar2 {
    opacity: 0;
}

#menu-toggle[aria-expanded="true"] #bar3 {
    transform: translateY(-5px) rotate(-45deg);
}
