/* Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #fdfbf7;
    color: #064e3b;
}

/* Navigation */
.nav {
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
}

.nav.scrolled {
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #065f46;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu.active .mobile-link {
    animation: fadeUp 0.4s ease forwards;
}

.mobile-menu .mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu .mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu .mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu .mobile-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero */
.hero-gradient {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 30%, #065f46 55%, #047857 80%, #059669 100%);
}

.hero-line {
    opacity: 0;
    animation: lineReveal 0.8s ease forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.5s; }
.hero-line:nth-child(2) { animation-delay: 0.6s; }
.hero-line:nth-child(3) { animation-delay: 0.7s; }
.hero-line:nth-child(4) { animation-delay: 0.55s; }
.hero-line:nth-child(5) { animation-delay: 0.65s; }
.hero-line:nth-child(6) { animation-delay: 0.75s; }

@keyframes lineReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-headline {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-desc {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-scroll {
    opacity: 0;
    animation: fadeIn 0.8s ease 1.2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes scroll {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #064e3b;
    padding: 14px 28px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid white;
}

.btn-primary:hover {
    background: transparent;
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: white;
    padding: 14px 28px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Section */
.section-label {
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.divider {
    margin: 0 auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.service-card {
    padding: 2.5rem;
    border: 1px solid rgba(6, 78, 59, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    background: rgba(6, 78, 59, 0.02);
    border-color: rgba(6, 78, 59, 0.15);
}

.service-card:hover .service-line {
    width: 100%;
}

.service-icon {
    color: #065f46;
}

.service-title {
    font-family: 'Cormorant Garamond', serif;
}

.service-desc {
    font-size: 0.9rem;
}

/* About */
.about-image {
    position: relative;
}

.about-image-accent {
    z-index: -1;
}

.about-stat {
    border-left: 1px solid rgba(6, 78, 59, 0.1);
    padding-left: 1rem;
}

/* Vehicles */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.vehicle-card {
    transition: transform 0.4s ease;
}

.vehicle-card:hover {
    transform: translateY(-4px);
}

/* Contact */
.form-input {
    font-family: 'Manrope', sans-serif;
}

.form-input::placeholder {
    color: #a7c4b8;
}

.form-success {
    animation: fadeUp 0.4s ease forwards;
}

/* Scroll Reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* No-reduced-motion: ensure content is visible by default */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-wrap: wrap;
    }
    
    .about-stat {
        border-left: none;
        border-bottom: 1px solid rgba(6, 78, 59, 0.1);
        padding-left: 0;
        padding-bottom: 1rem;
        width: 50%;
    }
}

@media (max-width: 640px) {
    .about-stat {
        width: 100%;
    }
}
