/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ── Font Faces ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

.font-playfair { font-family: 'Playfair Display', Georgia, serif; }
.font-inter  { font-family: 'Inter', system-ui, sans-serif; }

/* ── Navigation ─────────────────────────────────── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c8a45e;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

#navbar.scrolled {
    background: rgba(15, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Mobile Menu ────────────────────────────────── */
#mobileMenu.open { opacity: 1 !important; pointer-events: all !important; }
#mobileMenu .menu-line:last-child { width: 1.5rem; }
body.menu-open { overflow: hidden; }

/* ── Hero ───────────────────────────────────────── */
.hero-content { opacity: 0; transform: translateY(30px); animation: heroIn 1s ease 0.3s forwards; }
@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Reveal ──────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ── Custom Scrollbar ───────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f1a2e; }
::-webkit-scrollbar-thumb { background: #243352; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c8a45e; }

/* ── Selection ──────────────────────────────────── */
::selection { background: rgba(200, 164, 94, 0.3); color: #fff; }

/* ── Focus Visible ──────────────────────────────── */
:focus-visible { outline: 2px solid #c8a45e; outline-offset: 2px; }

/* ── Responsive Tweaks ──────────────────────────── */
@media (max-width: 640px) {
    .font-playfair { font-size: clamp(1.75rem, 8vw, 2.5rem); }
}
