/*
 * Mr. Good Bar Nation - Craft Beer & Gastro Pub
 * Modern, rustic styling with warm beer-inspired colors
 */

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

:root {
    /* Color Palette */
    --primary: #B25D34;      /* Amber Brown */
    --primary-dark: #8A4428; /* Dark Amber */
    --secondary: #F2A71B;    /* Golden Yellow */
    --accent: #2E4052;       /* Deep Navy */
    --light: #F4F4F4;        /* Off White */
    --dark: #1F1F1F;         /* Near Black */
    --gray: #585858;         /* Medium Gray */
    --light-gray: #E0E0E0;   /* Light Gray */
    
    /* Typography */
    --heading-font: 'Oswald', sans-serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Spacing and Sizes */
    --section-padding: 90px 0;
    --container-padding: 0 20px;
    --radius: 4px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    font-weight: 300;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--dark);
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-header p {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
}

section {
    padding: var(--section-padding);
    position: relative;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--heading-font);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.primary-btn {
    background-color: var(--primary);
    color: var(--light);
    border: 2px solid var(--primary);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-btn:hover {
    background-color: var(--primary);
    color: var(--light);
}

.btn-nav {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-nav:hover {
    background-color: var(--primary);
    color: var(--light);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header and Navigation */
header {
    background-color: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: var(--dark);
}

header.scrolled h1,
header.scrolled nav ul li a {
    color: var(--light);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    margin-left: 15px;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark);
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('https://via.placeholder.com/1920x1080?text=Craft+Beer+Bar') center/cover no-repeat;
    color: var(--light);
    text-align: center;
    position: relative;
    margin-top: 0;
    padding: 0;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 31, 31, 0.7);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 70px;
}

.hero h2 {
    color: var(--light);
    font-size: 3.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    color: var(--light);
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-family: var(--heading-font);
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Beer Section */
.beers {
    background-color: var(--light);
}

.beer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.beer-card {
    background-color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 20px;
    border-left: 4px solid var(--primary);
}

.beer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.beer-label {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 2px solid var(--light-gray);
}

.beer-color {
    width: 100%;
    height: 100%;
}

.beer-info {
    flex: 1;
}

.beer-info h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.beer-style {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.beer-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.beer-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stars {
    color: var(--secondary);
    font-size: 0.9rem;
}

.untappd {
    background-color: #FFCC00;
    color: var(--dark);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.section-cta {
    text-align: center;
}

/* Food Section */
.food {
    background-color: var(--light-gray);
    position: relative;
}

.menu-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.menu-category h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.menu-item {
    margin-bottom: 25px;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.menu-item-header h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
}

.price {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--primary);
}

.menu-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Events Section */
.events {
    background-color: var(--dark);
    color: var(--light);
}

.events .section-header h2 {
    color: var(--light);
}

.events .section-header p {
    color: var(--light-gray);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
    border-left: 3px solid var(--secondary);
}

.event-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.event-date {
    background-color: var(--secondary);
    color: var(--dark);
    min-width: 60px;
    height: 60px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.event-date .month {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-details h3 {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.event-time {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.event-details p {
    color: var(--light-gray);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Resources Section */
.resources {
    background-color: var(--light);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.resource-column {
    display: flex;
    flex-direction: column;
}

.resource-column a {
    margin-bottom: 10px;
    padding: 10px 15px;
    background-color: var(--light-gray);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--dark);
}

.resource-column a:hover {
    background-color: var(--secondary);
    color: var(--dark);
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card,
.hours-card,
.reservation-cta {
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-card h3,
.hours-card h3,
.reservation-cta h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.info-card p {
    margin-bottom: 10px;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-top: 10px;
}

.reservation-cta p {
    margin-bottom: 20px;
}

.contact-form {
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    background-color: #fff;
    transition: var(--transition);
    font-family: var(--body-font);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(178, 93, 52, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo svg {
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--light);
    font-family: var(--heading-font);
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    justify-content: space-between;
}

.footer-column {
    min-width: 120px;
}

.footer-column h3 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.legal-links a:hover {
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-padding: 70px 0;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        height: 24px;
        width: 30px;
        position: relative;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        height: 3px;
        width: 30px;
        background-color: var(--primary);
        position: absolute;
        transition: all 0.3s ease;
    }
    
    .nav-toggle-label span {
        top: 10px;
    }
    
    .nav-toggle-label span::before {
        content: '';
        top: -8px;
    }
    
    .nav-toggle-label span::after {
        content: '';
        top: 8px;
    }
    
    .nav-toggle:checked + .nav-toggle-label span {
        background-color: transparent;
    }
    
    .nav-toggle:checked + .nav-toggle-label span::before {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle:checked + .nav-toggle-label span::after {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--light);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
    }
    
    header.scrolled nav {
        background-color: var(--dark);
    }
    
    .nav-toggle:checked ~ nav {
        height: auto;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo {
        align-items: center;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 80%;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .menu-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .beer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
