/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

/* Scroll reveal — progressive enhancement, hidden by default, revealed by JS */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.is-revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
    }
}

/* Navbar scroll state */
.nav.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Mobile menu transition */
.nav-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-mobile.open {
    max-height: 400px;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #0d9488;
    color: white;
}

/* Subtle pattern for hero overlay gradient */
#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(15, 23, 42, 0.3) 100%);
    pointer-events: none;
}
