*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #C8A84E;
    border-radius: 3px;
}

/* Selection */
::selection {
    background: rgba(200, 168, 78, 0.3);
    color: #0A1628;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(6, 13, 31, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(200, 168, 78, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C8A84E;
    transition: width 0.3s ease;
}

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

/* Hero */
.hero-bg {
    will-change: transform;
}

.hero-img {
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero-bg.loaded .hero-img {
    transform: scale(1);
}

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(6, 13, 31, 0.55) 0%,
        rgba(6, 13, 31, 0.45) 40%,
        rgba(6, 13, 31, 0.65) 70%,
        rgba(6, 13, 31, 0.9) 100%
    );
}

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s ease forwards 0.3s;
}

.hero-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s ease forwards 0.1s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s ease forwards 0.5s;
}

.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s ease forwards 0.7s;
}

.hero-scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

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

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-btn-primary {
    box-shadow: 0 4px 20px rgba(200, 168, 78, 0.3);
}

.hero-btn-primary:hover {
    box-shadow: 0 8px 30px rgba(200, 168, 78, 0.4);
    transform: translateY(-2px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Section styles */
.section-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C8A84E;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: #0A1628;
    line-height: 1.15;
}

/* Reveal animations — progressive enhancement, only when JS runs */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-up { transform: translateY(30px); }

.reveal-left.revealed,
.reveal-right.revealed,
.reveal-up.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 1.1rem;
}

/* Menu list hover */
#menu li:hover span:first-child {
    color: #C8A84E;
    transition: color 0.2s ease;
}

#menu li:hover span:last-child {
    color: rgba(10, 22, 40, 0.7);
    transition: color 0.2s ease;
}

/* CTA section hover */
#visit a:hover {
    text-decoration: none;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

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

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C8A84E;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

/* Image hover zoom */
.reveal-right .aspect-\[4\/5\] img,
#visit .aspect-\[4\/3\] img {
    transition: transform 0.6s ease;
}

.reveal-right:hover .aspect-\[4\/5\] img,
#visit:hover .aspect-\[4\/3\] img {
    transform: scale(1.03);
}

.reveal-right .aspect-\[4\/5\],
#visit .aspect-\[4\/3\] {
    overflow: hidden;
}
