/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: color-mix(in srgb, #d9a020 30%, transparent);
    color: #102a43;
}

/* ── Section Utilities ── */
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #d9a020;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #102a43;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #627d98;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Navbar ── */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

.navbar-scrolled .nav-text-color {
    color: #102a43 !important;
}

.navbar-transparent .nav-text-color {
    color: #f0f4f8 !important;
}

.navbar-transparent .nav-link {
    color: rgba(240, 244, 248, 0.85) !important;
}

.navbar-transparent .nav-link:hover {
    color: #f5e0a8 !important;
}

.navbar-transparent .mobile-nav-link {
    color: #102a43 !important;
}

.navbar-transparent #mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* ── Service Cards ── */
.service-card {
    will-change: transform;
}

/* ── Market Cards ── */
.market-card {
    will-change: transform;
}

.market-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    transition: border-color 0.5s ease;
}

.market-card:hover::after {
    border-color: rgba(245, 224, 168, 0.4);
}

/* ── Testimonial Cards ── */
.testimonial-card {
    will-change: transform;
}

/* ── Scroll Reveal Animations ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-delay-1 { transition-delay: 0.1s; }
.reveal.reveal-delay-2 { transition-delay: 0.2s; }
.reveal.reveal-delay-3 { transition-delay: 0.3s; }
.reveal.reveal-delay-4 { transition-delay: 0.4s; }
.reveal.reveal-delay-5 { transition-delay: 0.5s; }
.reveal.reveal-delay-6 { transition-delay: 0.6s; }

/* Default state: fully visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal.reveal-from-bottom {
        /* JS will add the animated state */
    }
}

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

/* ── Input Focus ── */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ── Smooth Scroll Offset for Fixed Nav ── */
section[id] {
    scroll-margin-top: 80px;
}

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

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

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: #bcccdc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9fb3c8;
}

/* ── Loading State ── */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f4f8 25%, #d9e2ec 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
