/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #404040; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #e8645a; }

/* ── Selection ── */
::selection { background: rgba(232, 100, 90, 0.3); color: #f7f7f7; }

/* ── Nav ── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #e8645a;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile menu animation ── */
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }
#mobile-menu.closed { opacity: 0 !important; pointer-events: none !important; }

/* ── Hero animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes growWidth {
    from { width: 0; opacity: 0; }
    to { width: 48px; opacity: 1; }
}
@keyframes floatDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.hero-subtitle { animation: fadeInUp 0.8s ease forwards; animation-delay: 0.2s; }
.hero-headline { animation: fadeInUp 0.8s ease forwards; animation-delay: 0.4s; }
.hero-divider { animation: growWidth 0.6s ease forwards; animation-delay: 0.7s; }
.hero-body { animation: fadeInUp 0.8s ease forwards; animation-delay: 0.9s; }
.hero-ctas { animation: fadeInUp 0.8s ease forwards; animation-delay: 1.1s; }
#hero-scroll { animation: fadeIn 1s ease forwards; animation-delay: 1.5s; }

/* ── Scroll reveal base (progressive enhancement) ── */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-32px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(32px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ── Parallax hero image ── */
#hero img {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ── Form focus styles ── */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 1px rgba(232, 100, 90, 0.2);
}

/* ── Date/time input styling ── */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6) sepia(1) saturate(5) hue-rotate(350deg);
    cursor: pointer;
}

/* ── Smooth image loading ── */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ── Hover lift for cards ── */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ── Button ripple effect ── */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

/* ── Mobile menu link stagger ── */
.mobile-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* ── Mobile menu closed state ── */
#mobile-menu.closed .mobile-link {
    opacity: 0;
    transform: translateY(16px);
}
