/* ============================================
   670 on Oak Tavern and Grille — Custom Styles
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

/* Selection */
::selection {
    background: #c8a45e;
    color: #0a1f3f;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(10, 31, 63, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #c8a45e;
}

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

.mobile-link {
    position: relative;
}

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

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

/* Menu lines animation */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
}

.hero-element {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 0.9s ease forwards;
}

.hero-element:nth-child(1) { animation-delay: 0.2s; }
.hero-element:nth-child(2) { animation-delay: 0.5s; }
.hero-element:nth-child(3) { animation-delay: 0.8s; }
.hero-element:nth-child(4) { animation-delay: 1.1s; }

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

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

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

/* ============================================
   Image Hover Effects
   ============================================ */
img {
    transition: transform 0.6s ease;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 164, 94, 0.15);
}

/* Date input styling */
input[type="date"] {
    color-scheme: light;
}

/* ============================================
   Divider Ornament
   ============================================ */
section.bg-navy-900 blockquote p {
    position: relative;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    #about .relative > div:first-child img,
    .reveal-right > div:first-child img {
        height: 350px;
    }

    .reveal-right > div:first-child img {
        height: 300px;
    }
}

@media (max-width: 640px) {
    #navbar nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #mobile-menu,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}
