/* All Star Driver Education — Custom Styles */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    font-weight: 300;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Playfair Display weight fix */
.font-serif {
    font-weight: 500;
}

/* Thin decorative lines */
.thin-line {
    height: 1px;
    background: rgba(45, 45, 45, 0.12);
}

/* Scroll reveal animation — progressive enhancement */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 0 rgba(45, 45, 45, 0.08);
}

.nav-scrolled .nav-link {
    color: #2D2D2D !important;
}

.nav-scrolled .nav-logo-text {
    color: #2D2D2D !important;
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    max-height: 400px;
}

/* Hero overlay gradient */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.75) 0%,
        rgba(26, 26, 26, 0.48) 60%,
        rgba(26, 26, 26, 0.35) 100%
    );
}

/* Coral button with hover effect */
.btn-coral {
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-coral::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(0, 0, 0, 0.08);
    transition: height 0.3s ease;
}

.btn-coral:hover::after {
    height: 100%;
}

.btn-coral:hover {
    transform: translateY(-1px);
}

.btn-coral:active {
    transform: translateY(0);
}

/* Service card hover */
.service-card {
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    border-color: rgba(255, 107, 94, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(45, 45, 45, 0.08);
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #FF6B5E !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 94, 0.1);
}

/* Star divider */
.star-divider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.star-divider::before,
.star-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(45, 45, 45, 0.15);
}

/* Mobile menu button animation */
#menu-toggle.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active #bar2 {
    opacity: 0;
}

#menu-toggle.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 94, 0.2);
    color: #1A1A1A;
}

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

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

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Image loading placeholder */
img {
    background-color: #f0f0f0;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #FF6B5E;
    outline-offset: 2px;
    border-radius: 4px;
}
