/* ─── Custom Properties ─── */
:root {
    --navy-900: #0A1628;
    --navy-800: #111F36;
    --gold-500: #C9A84C;
    --gold-400: #D4B85E;
    --gold-600: #B8943F;
    --gold-50: #FBF8F0;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .hero-anim {
        opacity: 0;
        transform: translateY(20px);
        animation: heroFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .hero-anim:nth-child(1) { animation-delay: 0.1s; }
    .hero-anim:nth-child(2) { animation-delay: 0.25s; }
    .hero-anim:nth-child(3) { animation-delay: 0.4s; }
    .hero-anim:nth-child(4) { animation-delay: 0.55s; }
    .hero-anim:nth-child(5) { animation-delay: 0.7s; }
}

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

/* ─── Navbar ─── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold-500);
    transition: width 0.3s ease;
}

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

/* ─── Navbar scroll state ─── */
.nav-scrolled {
    background-color: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav-scrolled .menu-line {
    background-color: white;
}

/* ─── Mobile Menu ─── */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-line:last-child {
    width: 40%;
}

.menu-active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-active .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 100%;
}

/* ─── Form ─── */
input::placeholder,
textarea::placeholder {
    color: rgba(10, 22, 40, 0.2);
}

input:focus,
textarea:focus {
    border-color: var(--gold-500) !important;
}

/* ─── Selection ─── */
::selection {
    background-color: var(--gold-500);
    color: var(--navy-900);
}

/* ─── Smooth focus visible ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

/* ─── Subtle hover lift on service cards ─── */
@media (prefers-reduced-motion: no-preference) {
    .group:hover {
        transform: translateY(-2px);
    }
    
    .group {
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}
