/* ============================================
   The Dog House Bar and Grill — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ============================================
   Navigation
   ============================================ */
#nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#nav.scrolled {
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 21, 18, 0.06);
}

.nav-link {
    position: relative;
}

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

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

.nav-link.scrolled {
    color: rgba(26, 21, 18, 0.7) !important;
}

/* ============================================
   Hero
   ============================================ */
.hero-line {
    animation: growLine 1s ease-out 0.2s both;
}

.hero-eyebrow {
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.hero-title {
    animation: fadeUp 0.8s ease-out 0.6s both;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease-out 0.8s both;
}

.hero-ctas {
    animation: fadeUp 0.8s ease-out 1s both;
}

.hero-scroll {
    animation: fadeIn 0.8s ease-out 1.4s both;
}

@keyframes growLine {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 96px;
        opacity: 1;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   Section Reveal Animations
   ============================================ */
.section-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-line {
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
    transform-origin: center;
}

.divider {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-image {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-accent {
    opacity: 0;
    transition: opacity 0.6s ease 0.4s;
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-stats {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.visit-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ============================================
   Menu Items
   ============================================ */
.menu-item-name {
    transition: color 0.3s ease;
}

.menu-item-desc {
    transition: color 0.3s ease;
}

.menu-item:hover .menu-item-desc {
    color: rgba(26, 21, 18, 0.7);
}

.menu-note {
    transition: opacity 0.3s ease;
}

/* ============================================
   Visit Cards
   ============================================ */
.visit-card {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.visit-card-icon {
    transition: transform 0.3s ease;
}

.visit-card:hover .visit-card-icon {
    transform: scale(1.1);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

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

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s 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.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; }

/* Burger Animation */
#menu-btn.active .burger-line:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

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

#menu-btn.active .burger-line:nth-child(3) {
    top: 50%;
    left: 0;
    width: 24px;
    transform: rotate(-45deg);
}

/* ============================================
   Utility
   ============================================ */
::selection {
    background: rgba(212, 97, 58, 0.15);
    color: #1a1512;
}

/* Smooth focus outlines */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4613a;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title span {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-image {
        transform: translateY(20px);
    }
    
    .about-content {
        transform: translateY(20px);
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .about-accent {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title span {
        font-size: 2rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
