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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

/* Scroll Reveal (progressive enhancement — hidden by default, shown via JS) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero entrance (only hero elements, no above-fold content gating) */
@media (prefers-reduced-motion: no-preference) {
    .hero-subtitle {
        opacity: 0;
        transform: translateY(16px);
        animation: heroFadeUp 0.8s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    .hero-title {
        opacity: 0;
        transform: translateY(20px);
        animation: heroFadeUp 0.8s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    .hero-desc {
        opacity: 0;
        transform: translateY(16px);
        animation: heroFadeUp 0.8s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    .hero-cta {
        opacity: 0;
        transform: translateY(16px);
        animation: heroFadeUp 0.8s 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
}

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

/* Navbar transitions */
.nav-link {
    color: rgba(255, 255, 255, 0.75);
}

.navbar-scrolled .nav-link,
.navbar-light .nav-link {
    color: rgba(44, 40, 36, 0.7);
}

.navbar-scrolled .nav-link:hover,
.navbar-light .nav-link:hover {
    color: rgba(44, 40, 36, 1);
}

.navbar-scrolled .logo-text,
.navbar-light .logo-text {
    color: rgba(44, 40, 36, 0.85);
}

/* Mobile menu */
.mobile-link {
    color: rgba(44, 40, 36, 0.7);
}

.mobile-link:hover {
    color: rgba(184, 57, 23, 1);
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #e8673b !important;
    box-shadow: 0 0 0 1px rgba(232, 103, 59, 0.15);
}

/* Selection color */
::selection {
    background: rgba(212, 74, 31, 0.15);
    color: inherit;
}

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