/* ====================== RESET & GLOBAL STYLES ====================== */
/* These styles reset browser defaults and set up your base layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PT Serif', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f4ed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================== HEADER & NAVIGATION (DESKTOP) ====================== */
/* Controls the sticky header and horizontal nav for desktop/tablet */
header {
    background-color: #2c1f14;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;  /* ← FIXED: Anchors mobile dropdown menu here */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 70px;
}

.logo-container h1 {
    font-size: 1.6rem;
    color: #f4e8c1;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #f4e8c1;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: #8f4f2f;
}

/* ====================== HAMBURGER MENU (MOBILE) ====================== */
/* Hidden by default, shown on mobile screens */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 26px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 200;
}

.hamburger span {
    width: 100%;
    height: 4px;
    background-color: #f4e8c1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animates hamburger into X when clicked */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ====================== HERO SECTION ====================== */
.hero {
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
                url('../images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

/* ====================== BUTTON STYLES ====================== */
.btn {
    display: inline-block;
    background: #8f4f2f;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    font-weight: 600;
}

.btn:hover {
    background: #b36b4a;
}

/* ====================== BEER CARDS GRID ====================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 2.5rem;
}

.beer-card {
    text-align: center;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.beer-card:hover {
    transform: translateY(-4px);
}

.beer-card img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 8px;
}

/* ====================== EVENTS GRID ====================== */
.event-item {
    display: flex;
    gap: 30px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    align-items: flex-start;
}

.event-item img {
    width: 280px;
    height: 220px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    flex-shrink: 0;
    padding: 8px;
}

.event-content {
    flex: 1;
}

.event-content h3 {
    color: #8f4f2f;
    margin-bottom: 10px;
}

/* ====================== CONTACT PAGE GRID ====================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ====================== TABLET ADJUSTMENTS (992px and below) ====================== */
@media (max-width: 992px) {
    .container {
        padding: 0 25px;
    }
}

/* ====================== MOBILE (900px and below) - SINGLE BREAKPOINT ====================== */
/* ← SIMPLIFIED: One clean breakpoint replaces all your overlapping rules */
@media (max-width: 900px) {
    /* Show hamburger, hide desktop nav */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c1f14;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
        gap: 0;
        z-index: 150;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 10px 20px;
    }

    /* Contact page becomes single column */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-grid iframe {
        height: 340px;
    }

    /* Hero gets shorter on mobile */
    .hero {
        height: 60vh;
    }

    /* Events stack vertically */
    .event-item {
        flex-direction: column;
    }

    .event-item img {
        width: 100%;
        height: auto;
        max-height: 260px;
    }

    /* Smaller headings */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* ====================== EXTRA SMALL PHONES (480px and below) ====================== */
@media (max-width: 480px) {
    .logo-container img {
        height: 36px;
    }

    .logo-container h1 {
        font-size: 1.05rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        height: 55vh;
    }

    .contact-grid iframe {
        height: 300px;
    }
}