/* ===== BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: color-mix(in srgb, currentColor 15%, transparent);
}

/* ===== NAV ===== */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav-fixed.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 60, 42, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* ===== MOBILE MENU ===== */
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    transition: opacity 0.2s ease;
}

.mobile-menu-link:hover {
    opacity: 0.6;
}

/* ===== HERO ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-eyebrow {
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.2s;
}

.hero-title {
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.6s;
}

.hero-cards {
    animation: fadeUp 0.8s ease both;
    animation-delay: 0.8s;
}

.card-float {
    animation: fadeUp 0.7s ease both, float 5s ease-in-out infinite;
}

.card-float.card-1 { animation-delay: 0.8s, 0s; }
.card-float.card-2 { animation-delay: 0.9s, 0.5s; }
.card-float.card-3 { animation-delay: 1.0s, 1s; }
.card-float.card-4 { animation-delay: 1.1s, 1.5s; }

/* ===== SCROLL REVEAL ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ===== CONTACT FORM ===== */
.contact-form button:active {
    transform: scale(0.98);
}

.contact-success {
    animation: fadeUp 0.4s ease both;
}

/* ===== FOCUS ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 1px solid color-mix(in srgb, currentColor 50%, transparent);
    outline-offset: 2px;
}

/* ===== IMAGE PLACEHOLDERS ===== */
img {
    display: block;
    max-width: 100%;
}

/* ===== 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: 0;
}
