/* ============================================
   Villa Ambulance Service LLC — Custom Styles
   Classic & Elegant Medical Transportation
   ============================================ */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAFAF5;
}
::-webkit-scrollbar-thumb {
    background: #c6dbb8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ec08a;
}

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

/* Selection color */
::selection {
    background: #c6dbb8;
    color: #21341b;
}

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

/* Navbar transition states */
.navbar-scrolled .nav-logo-fill {
    fill: #315027 !important;
}

.navbar-light .nav-logo-fill {
    fill: #315027 !important;
}

.navbar-light .nav-text {
    color: #21341b !important;
}

.navbar-light .nav-subtitle {
    color: #6B6560 !important;
}

.navbar-light nav a:not(.bg-forest-700) {
    color: #21341b !important;
}

.navbar-light .menu-line {
    background: #21341b !important;
}

/* Navbar solid background state */
.navbar-solid {
    background: rgba(250, 250, 245, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(49, 80, 39, 0.08);
}

.navbar-solid .nav-logo-fill {
    fill: #315027 !important;
}

.navbar-solid .nav-text {
    color: #21341b !important;
}

.navbar-solid .nav-subtitle {
    color: #6B6560 !important;
}

.navbar-solid nav a:not(.bg-forest-700):not(.text-offwhite) {
    color: #21341b !important;
}

.navbar-solid .menu-line {
    background: #21341b !important;
}

/* Hero dark state */
.hero-dark .nav-logo-fill {
    fill: #9ec08a !important;
}

.hero-dark .nav-text {
    color: #FAFAF5 !important;
}

.hero-dark .nav-subtitle {
    color: rgba(250, 250, 245, 0.6) !important;
}

.hero-dark nav a:not(.bg-offwhite):not(.bg-forest-700) {
    color: #FAFAF5 !important;
}

.hero-dark .menu-line {
    background: #FAFAF5 !important;
}

.hero-dark .navbar-solid {
    background: rgba(250, 250, 245, 0.97) !important;
}

.hero-dark .navbar-solid .nav-logo-fill {
    fill: #315027 !important;
}

.hero-dark .navbar-solid .nav-text {
    color: #21341b !important;
}

.hero-dark .navbar-solid .nav-subtitle {
    color: #6B6560 !important;
}

.hero-dark .navbar-solid nav a:not(.bg-forest-700):not(.text-offwhite) {
    color: #21341b !important;
}

.hero-dark .navbar-solid .menu-line {
    background: #21341b !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: #9ec08a;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 100%;
}

/* Mobile menu button animation */
.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 6px;
    transform: translateY(-6px) rotate(-45deg);
}

/* Body lock when mobile menu is open */
body.menu-locked {
    overflow: hidden;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    header, #mobile-menu-btn, .reveal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
