/* Custom styles for Famous Driving School */

/* Smooth focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #d9a8be;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c47a96;
}

/* Selection color */
::selection {
    background: #d9a8be;
    color: #2a0e15;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(75, 30, 45, 0.08);
}

.nav-scrolled .menu-line {
    background: #4b1e2d;
}

/* Hero gradient overlay for image */
.hero-img-overlay {
    background: linear-gradient(135deg, rgba(75, 30, 45, 0.15) 0%, transparent 60%);
}

/* Service card hover lift */
.service-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(75, 30, 45, 0.15);
}

/* FAQ button active state */
.faq-btn[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}
.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 5px;
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Decorative pattern */
.pattern-grid {
    background-image: radial-gradient(circle, rgba(217, 168, 190, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}
</style>
