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

body {
    font-family: 'Lora', Georgia, serif;
}

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

.font-lora {
    font-family: 'Lora', Georgia, serif;
}

/* ── Navigation ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 250, 248, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ── Hero Reveal Animation ── */
.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-reveal:nth-child(2) { animation-delay: 0.25s; }
.hero-reveal:nth-child(3) { animation-delay: 0.4s; }
.hero-reveal:nth-child(4) { animation-delay: 0.55s; }
.hero-reveal:nth-child(5) { animation-delay: 0.7s; }
.hero-reveal:nth-child(6) { animation-delay: 0.85s; }
.hero-reveal:nth-child(7) { animation-delay: 1.0s; }
.hero-reveal:nth-child(8) { animation-delay: 1.15s; }

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

/* ── Scroll Reveal ── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-on-scroll.stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-on-scroll.stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-on-scroll.stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-on-scroll.stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

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

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #0A3D3D;
    transition: width 0.3s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0A3D3D;
}

/* ── Selection ── */
::selection {
    background: rgba(10, 61, 61, 0.15);
    color: #1a2332;
}

/* ── Focus Styles ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 61, 61, 0.1);
}

/* ── Image Hover ── */
img {
    display: block;
}

/* ── Subtle Pattern Overlay ── */
.bg-pattern {
    background-image: radial-gradient(circle, rgba(10, 61, 61, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ── Print ── */
@media print {
    #navbar, #mobile-menu-btn { display: none; }
    body { color: #000; background: #fff; }
}
