/* ========================================
   BEGAS GASTROBAR — Custom Styles
   Classic & Elegant · Forest Green + Off-White
======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #294423;
    color: #fdfcf8;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4f8440;
}

/* ========================================
   NAVIGATION
======================================== */
#navbar {
    backdrop-filter: blur(0px);
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(41, 68, 35, 0.08);
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu.active .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

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

/* Hamburger Animation */
.menu-line {
    transition: all 0.3s ease;
}

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

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

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

/* ========================================
   HERO SECTION
======================================== */
.hero-title {
    animation: heroTitle 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-eyebrow {
    animation: heroFade 0.6s ease forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: heroFade 0.6s ease 0.3s forwards;
    opacity: 0;
}

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

@keyframes heroFade {
    to {
        opacity: 1;
    }
}

/* Scroll Indicator */
.scroll-line {
    width: 1px;
    height: 48px;
    background-color: #c5dfb8;
    position: relative;
    overflow: hidden;
}

.scroll-line-inner {
    width: 100%;
    height: 50%;
    background-color: #294423;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ========================================
   BUTTONS
======================================== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ========================================
   MENU CARDS
======================================== */
.menu-card {
    transition: transform 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
}

.menu-card img {
    transition: transform 0.7s ease;
}

/* ========================================
   GALLERY
======================================== */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 30, 14, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ========================================
   SCROLL 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; }

/* ========================================
   BACK TO TOP
======================================== */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top:not(.visible) {
    transform: translateY(10px);
}

/* ========================================
   FORM STYLES
======================================== */
input:focus,
select:focus,
textarea:focus {
    border-color: #3d6832 !important;
    box-shadow: 0 0 0 3px rgba(61, 104, 50, 0.1);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 3.5rem !important;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.75rem !important;
    }
}
