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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1a3a70;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c8962e;
}

/* Selection color */
::selection {
    background: rgba(200, 150, 46, 0.3);
    color: #fff;
}

/* Section utilities */
.section-eyebrow {
    display: block;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
}

.section-desc {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Hero animations — above the fold, no JS needed for visibility */
.hero-eyebrow,
.hero-headline,
.hero-subheadline,
.hero-ctas {
    /* Default state: visible, no JS required */
    opacity: 1;
}

/* Hero entrance animation — progressive enhancement via JS */
.hero-eyebrow,
.hero-headline,
.hero-subheadline,
.hero-ctas {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-eyebrow {
    transform: translateY(20px);
}
.hero-headline {
    transform: translateY(30px);
}
.hero-subheadline {
    transform: translateY(20px);
}
.hero-ctas {
    transform: translateY(20px);
}

/* Scroll reveal animations — below the fold only */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS adds the hidden state, these become invisible initially */
.js-reveal .reveal-section {
    opacity: 0;
    transform: translateY(30px);
}
.js-reveal .reveal-card {
    opacity: 0;
    transform: translateY(20px);
}

/* Card hover effects */
.reveal-card {
    transition: transform 0.4s ease;
}
.reveal-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero-eyebrow,
    .hero-headline,
    .hero-subheadline,
    .hero-ctas,
    .reveal-section,
    .reveal-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .reveal-card:hover {
        transform: none;
    }
    .reveal-card img {
        transition: none;
    }
    .reveal-card:hover img {
        transform: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .section-title {
        font-size: 3rem;
    }
}
