/* ── Reset & 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 {
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background: rgba(6, 95, 70, 0.15);
    color: #064e3b;
}

/* ── Navigation ──────────────────────────────────────── */
#nav {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#nav.scrolled {
    background: rgba(250, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

.nav-link {
    position: relative;
    color: rgba(45, 42, 34, 0.7);
    transition: color 0.3s ease;
}

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

.nav-link:hover {
    color: #065f46;
}

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

.nav-text {
    color: #065f46;
    transition: color 0.3s ease;
}

#nav.scrolled .nav-text {
    color: #065f46;
}

.nav-icon {
    transition: transform 0.3s ease;
}

.nav-btn:hover .nav-icon {
    transform: scale(1.1);
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

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

.menu-line-1 {
    width: 24px;
}

.menu-line-3 {
    width: 16px;
}

body.menu-open {
    overflow: hidden;
}

/* ── Hero ────────────────────────────────────────────── */
.hero-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-subtext {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.9s;
}

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

.cta-primary {
    box-shadow: 0 4px 24px rgba(6, 95, 70, 0.3);
    transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.cta-primary:hover {
    box-shadow: 0 8px 32px rgba(6, 95, 70, 0.4);
    transform: translateY(-2px);
}

.cta-secondary {
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta-secondary:hover {
    transform: translateY(-2px);
}

.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ── Section Utilities ───────────────────────────────── */
.section-eyebrow {
    letter-spacing: 0.3em;
}

.section-title {
    letter-spacing: -0.01em;
}

.section-desc {
    line-height: 1.8;
}

/* ── Bike Cards ──────────────────────────────────────── */
.bike-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bike-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.bike-card-img-wrap {
    transition: box-shadow 0.3s ease;
}

.bike-card:hover .bike-card-img-wrap {
    box-shadow: 0 16px 48px rgba(6, 95, 70, 0.12);
}

/* ── Service Cards ───────────────────────────────────── */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Form ────────────────────────────────────────────── */
#contact-form input,
#contact-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: rgba(6, 95, 70, 0.4);
    box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.06);
}

#contact-form button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#contact-form button[type="submit"]:hover {
    box-shadow: 0 8px 32px rgba(6, 95, 70, 0.25);
}

#contact-form button[type="submit"]:active {
    transform: scale(0.98);
}

/* ── Divider ─────────────────────────────────────────── */
.divider-line {
    opacity: 0.4;
}

/* ── Footer ──────────────────────────────────────────── */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(212, 197, 169, 0.5);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.75rem !important;
    }

    .section-title {
        font-size: 2.25rem !important;
    }

    .service-card {
        padding: 2rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 3.5rem !important;
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 4rem !important;
    }
}

/* ── Reduced Motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .bike-card,
    .service-card {
        opacity: 1;
        transform: none;
    }
}
