/* ============================================
   NOBLE LODGE F&AM #772 — Custom Styles
   Classic & Elegant · Teal + Slate Palette
   ============================================ */

/* ---- Base & Typography ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --color-teal-500: #0D4F4F;
    --color-teal-400: #529191;
    --color-teal-300: #84b5b5;
    --color-slate-950: #0d1320;
    --color-slate-900: #141c2b;
    --color-slate-800: #1a2332;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-slate-950);
    color: #e2e8f0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(13, 79, 79, 0.6);
    color: #f0f7f7;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-slate-950);
}
::-webkit-scrollbar-thumb {
    background: var(--color-teal-500);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-teal-400);
}

/* ---- Navigation ---- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(13, 19, 32, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(13, 79, 79, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

/* ---- Hero Animation ---- */
@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.animate-hero-zoom {
    animation: heroZoom 1.5s ease-out forwards;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* ---- Fade-in on Scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    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; }

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

.mobile-link {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ---- Line Clamp Utility ---- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Focus Styles ---- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
