/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #f3c0b3;
    color: #6e2621;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf5eb;
}
::-webkit-scrollbar-thumb {
    background: #d8c5bc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c4a497;
}

/* ===== Navigation ===== */
#navbar {
    background: rgba(253, 251, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(253, 251, 245, 0.95);
    border-bottom-color: rgba(216, 197, 188, 0.4);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

.nav-link {
    position: relative;
}

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

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

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

.mobile-menu-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s 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; }

/* ===== Hero Animations ===== */
.hero-eyebrow {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.2s;
}

.hero-title {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.6s;
}

.hero-cta-primary {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.8s;
}

.hero-cta-secondary {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.9s;
}

.hero-image-wrapper {
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.hero-stat-card {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 1s;
}

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

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

/* ===== Scroll Indicator ===== */
.scroll-line {
    animation: scrollDown 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(400%); opacity: 0; }
}

/* ===== Section Styles ===== */
.section-eyebrow {
    animation: fadeIn 0.6s ease forwards;
}

.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-desc {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.section-desc.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Service Cards ===== */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5) { transition-delay: 0.32s; }
.service-card:nth-child(6) { transition-delay: 0.4s; }

/* ===== About Images ===== */
.about-img-wrapper {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-img-wrapper.visible {
    opacity: 1;
    transform: scale(1);
}

.about-img-wrapper:nth-child(1) { transition-delay: 0s; }
.about-img-wrapper:nth-child(2) { transition-delay: 0.1s; }
.about-img-wrapper:nth-child(3) { transition-delay: 0.2s; }
.about-img-wrapper:nth-child(4) { transition-delay: 0.3s; }

/* ===== Fleet Image ===== */
.fleet-image-wrapper {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fleet-image-wrapper.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Quote Section ===== */
blockquote {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== Clip diagonal for about section ===== */
.clip-diagonal {
    clip-path: polygon(70% 0, 100% 0, 100% 100%, 50% 100%);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: no-preference) {
    .no-js .hero-eyebrow,
    .no-js .hero-title,
    .no-js .hero-subtitle,
    .no-js .hero-cta-primary,
    .no-js .hero-cta-secondary,
    .no-js .hero-image-wrapper,
    .no-js .hero-stat-card {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ===== Mobile hamburger animation ===== */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* ===== Utility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
