/* Custom styles for Kess Driving School */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdf8;
}
::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* Selection color */
::selection {
    background: #047857;
    color: #fefdf8;
}

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

/* Subtle card hover effect */
.card-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -15px rgba(4, 120, 87, 0.15);
}

/* Smooth focus outlines */
*:focus-visible {
    outline: 2px solid #047857;
    outline-offset: 2px;
}

/* Navigation active state */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #047857;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Hero decorative animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Pulse animation for CTA */
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Decorative line animation */
@keyframes line-grow {
    from { width: 0; }
    to { width: 60px; }
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobile-menu.open {
    max-height: 400px;
    padding: 1.5rem 0;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #mobile-menu-btn {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
