/* ========================================
   Mae Maes Joint — Custom Styles
   Classic & Elegant Dining
   ======================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #0d4a3a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #b8943e;
}

/* Selection Color */
::selection {
    background: #c9a84c;
    color: #0d4a3a;
}

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

#navbar.scrolled {
    background-color: rgba(13, 74, 58, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.transparent {
    background-color: transparent;
}

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

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #0d4a3a, transparent);
    pointer-events: none;
}

/* ========================================
   Mobile Menu
   ======================================== */
#mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Menu Lines Animation */
.menu-line {
    transition: transform 0.4s ease, opacity 0.4s ease, width 0.4s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Mobile Links */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

/* ========================================
   Reveal Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========================================
   Section Transitions
   ======================================== */
section {
    position: relative;
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
select:focus,
textarea:focus {
    border-color: #c9a84c !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* ========================================
   Image Hover Effects
   ======================================== */
.aspect-square img,
.aspect-\[4\/5\] img,
.aspect-\[4\/5\] img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   Gold Accent Line
   ======================================== */
.gold-line {
    position: relative;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #c9a84c, transparent);
}

/* ========================================
   Button Hover Glow
   ======================================== */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    #hero::after {
        height: 120px;
    }

    .font-serif.text-4xl,
    .font-serif.text-5xl {
        font-size: 2.25rem;
    }
}

@media (max-width: 640px) {
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    #navbar,
    #mobile-menu,
    button,
    form {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}
