/* Basic Reset & Mobile-First Body Styling */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
img { max-width: 100%; height: auto; }

/* General Button Styling */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-primary { background-color: #ff9900; color: white; }
.btn-primary:hover { background-color: #e68a00; }

.btn-secondary { background-color: transparent; color: white; border: 2px solid white; }
.btn-secondary:hover { background-color: white; color: #1a2333; }

.btn-light { background-color: white; color: #1a2333; }
.btn-light:hover { background-color: #f0f0f0; }

.btn-dark-outline { background-color: transparent; color: white; border: 2px solid white; }
.btn-dark-outline:hover { background-color: white; color: #1a2333; }

.btn-outline {
    background-color: transparent;
    color: #ff9900;
    border: 2px solid #ff9900;
}
.btn-outline:hover {
    background-color: #ff9900;
    color: white;
}

/* Header & Navigation Bar (Mobile) */
.main-header {
    background-color: #1a2333;
    padding: 1rem;
    color: white;
    position: relative;
    z-index: 100;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 45px;
}
.nav-actions {
    display: none; /* Hide desktop actions on mobile */
}

/* Hamburger Menu Icon */
.hamburger {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* Mobile Navigation Menu Overlay */
.nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #1a2333;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-links.active {
    display: flex;
}
.nav-links li {
    margin: 1.5rem 0;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}
.signin-link-mobile {
    font-size: 1.2rem;
    font-weight: 500;
}

/* When menu is active, transform hamburger to an "X" */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* General Hero Section Styling */
.page-hero {
    color: white;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem; 
    box-sizing: border-box; 
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.page-hero .container { 
    position: relative; 
    z-index: 2; 
    max-width: 800px;
}
.page-hero h1 { 
    font-size: 2.5rem; 
    font-weight: 900; 
    margin-bottom: 1rem; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.page-hero p { 
    font-size: 1.1rem; 
    margin-bottom: 2rem; 
    line-height: 1.6; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Homepage Hero Section */
.hero-section {
    color: white;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    padding: 5rem 1rem; 
    box-sizing: border-box; 
    text-align: center;
    position: relative;
    background: url('images/index-hero-bg.jpg') no-repeat center center/cover;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); z-index: 1;
}
.hero-content { 
    position: relative; 
    z-index: 2; 
}
.hero-content h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 1rem; }
.hero-content p { 
    font-size: 1.1rem; 
    margin-bottom: 2rem; 
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; }

/* Logo in Hero Section */
.hero-top-image {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}
.hero-top-image img {
    height: auto;
    width: 100%;
    max-width: 250px;
}

/* Sections General Styling (Mobile) */
.how-it-works-section, .food-battles-section, .giving-back-section, .cta-section, .why-foodfeud-section, .mission-section, .how-it-helps-section, .intelligence-section {
    padding: 3rem 1rem;
    text-align: center;
}
h2 { font-size: 2rem; font-weight: 700; color: #1a2333; margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1rem; color: #555; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto;}

/* How It Works (Mobile) */
.steps-container { display: flex; flex-direction: column; gap: 1.5rem; }
.step-card { background-color: #f9f9f9; padding: 1.5rem; border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
.step-icon { margin-bottom: 1rem; }
.step-icon img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}
.step-card h3 { font-size: 1.25rem; color: #1a2333; margin-bottom: 0.5rem; }
.step-card p { color: #666; line-height: 1.6; }

/* Why FoodFeud Section */
.why-foodfeud-section {
    background-color: #ffffff;
}
.why-foodfeud-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.why-foodfeud-image {
    flex: 1;
}
.why-foodfeud-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.why-foodfeud-content {
    flex: 1;
}
.why-foodfeud-content h2 {
    text-align: center;
}
.why-foodfeud-content .intro-paragraph {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}
.pillars-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pillars-list li {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}
.pillars-list h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #1a2333;
    font-size: 1.25rem;
}
.pillars-list p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Epic Food Battles Section */
.food-battles-section {
    padding: 3rem 1rem;
    background-color: #ffffff;
}
.food-battles-section h2 {
    text-align: center;
}
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
    z-index: 1;
}
.category-card:hover {
    transform: scale(1.05);
}
.category-card span {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
}

/* Giving Back (Mobile) */
.giving-back-section {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
}
.giving-back-container { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
    align-items: center;
}
.giving-back-content {
    text-align: center;
}
.giving-back-content h2 { 
    font-size: 2rem; 
    font-weight: 700; 
    color: #1a2333; 
    margin-bottom: 0.5rem;
}
.giving-back-content .section-subtitle {
    margin-bottom: 1.5rem;
}
.giving-back-content p { 
    color: #555; 
    line-height: 1.6; 
    margin-bottom: 1.5rem; 
}
.giving-back-content ul { 
    list-style: none; 
    padding-left: 0; 
    margin-bottom: 1.5rem; 
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.giving-back-content li { 
    padding-left: 2rem; 
    position: relative; 
    margin-bottom: 1rem; 
    font-weight: 500; 
    color: #333; 
}
.giving-back-content li::before { 
    content: '✔'; 
    color: #ff9900; 
    position: absolute; 
    left: 0; 
    font-size: 1.2rem; 
}
.giving-back-image {
    width: 100%;
}
.giving-back-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* CTA (Mobile) */
.cta-section { background-color: #d97706; color: white; }
.cta-buttons { display: flex; flex-direction: column; gap: 1rem; }

/* Footer (Mobile) */
.main-footer { background-color: #1a2333; color: #a0aec0; padding: 3rem 1rem 1rem 1rem; }
.footer-grid { display: flex; flex-direction: column; text-align: center; gap: 2rem; margin-bottom: 2rem; }
.footer-links h4 { color: white; margin-bottom: 1rem; font-size: 1.1rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #a0aec0; text-decoration: none; }
.footer-bottom { text-align: center; border-top: 1px solid #2d3748; padding-top: 2rem; font-size: 0.9rem; }

/* =================================== */
/* EVENTS PAGE STYLES                  */
/* =================================== */

.page-header {
    padding: 3rem 1rem;
    text-align: center;
    background: url('images/events-hero-map-v2.jpg') no-repeat center center/cover;
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}
.page-header .container {
    position: relative;
    z-index: 2;
}
.page-header h1 {
    color: white; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}
.page-header .section-subtitle {
    color: #f0f0f0; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.page-cta {
    background-color: #f9f9f9;
    text-align: center;
    padding-bottom: 3rem;
    padding-top: 3rem;
}
.events-section {
    padding: 3rem 1rem;
    background-color: #ffffff;
}
.events-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.event-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}
.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}
.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1a2333;
}
.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff9900;
}
.location {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 1rem 0;
}
.details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 0.9rem;
}
.details-list li {
    margin-bottom: 0.5rem;
}
.card-buttons {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}
.card-buttons .btn {
    flex: 1;
}
.champions-section {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
}
.champions-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}
.champions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.champion-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.champion-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.champion-card .card-content {
    padding: 1.5rem;
}
.champion-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #1a2333;
}
.champion-details {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}
.champion-details li {
    margin-bottom: 0.5rem;
}
.champion-details strong {
    color: #1a2333;
}

/* =================================== */
/* RESTAURANTS PAGE STYLES             */
/* =================================== */

.restaurants-hero {
    background: url('images/restaurants-hero-bg-v2.jpg') no-repeat center center/cover;
}

.benefits-section {
    padding: 3rem 1rem;
    background-color: #ffffff;
}
.benefits-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.benefit-card {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}
.benefit-card img {
    width: 100%;
    max-width: 250px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.benefit-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1a2333;
}
.benefit-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.how-it-works-restaurants-section {
    padding: 3rem 1rem;
    background-color: #f0f4f8;
    text-align: center;
}
.how-it-works-restaurants-section .section-subtitle {
    margin-bottom: 3rem;
}
.how-it-works-restaurants-section .steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.how-it-works-restaurants-section .step-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.how-it-works-restaurants-section .step-card img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.how-it-works-restaurants-section .step-card h3 {
    font-size: 1.4rem;
    color: #1a2333;
    margin-bottom: 0.75rem;
}
.how-it-works-restaurants-section .step-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}
.signup-section {
    padding: 3rem 1rem;
    background-color: #ffffff;
}
.signup-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}
.restaurant-signup-form {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: left;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    font-style: italic;
}
.restaurant-signup-form .btn {
    width: 100%;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}
.form-note {
    font-size: 0.8rem;
    color: #777;
    text-align: center;
    margin-top: 1rem;
}
.intelligence-section {
    padding: 3rem 1rem;
    background-color: #ffffff;
}
.intelligence-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}
.intelligence-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.intelligence-card {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}
.intelligence-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.intelligence-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1a2333;
}
.intelligence-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* =================================== */
/* FEUD FOR CAUSE PAGE STYLES          */
/* =================================== */

.cause-hero {
    background: url('images/feud-for-cause-hero-bg.jpg') no-repeat center center/cover;
}
.mission-section {
    padding: 3rem 1rem;
    background-color: #ffffff;
}
.mission-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.mission-content {
    flex: 1;
    text-align: center;
}
.mission-image {
    flex: 1;
}
.mission-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.mission-bullets {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: inline-block;
    text-align: left;
}
.mission-bullets li {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}
.how-it-helps-section {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
    text-align: center;
}

/* =================================== */
/* TABLET & DESKTOP STYLES             */
/* =================================== */
@media (min-width: 768px) {
    .container { padding: 0 2rem; }

    /* Corrected Navigation Styles */
    .hamburger {
        display: none;
    }
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background-color: transparent;
        gap: 2rem; 
    }
    .nav-links li {
        margin: 0;
    }
    .nav-links a {
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        transition: color 0.3s ease;
    }
    .signin-link-mobile {
        display: none;
    }
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
    .nav-actions .signin-link {
        color: white;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        border: 1px solid white; 
        padding: 0.5rem 1rem;   
        border-radius: 5px;     
        transition: background-color 0.3s, color 0.3s;
    }
    .nav-actions .signin-link:hover {
        background-color: white;
        color: #1a2333;
    }
    .nav-links a:hover {
        color: #ff9900;
    }
    
    /* Other Tablet+ Styles */
    .page-hero h1 { 
        font-size: 3.5rem;
    }
    .hero-content h1 { 
        font-size: 3.5rem;
        white-space: nowrap; 
    }
    .hero-buttons { flex-direction: row; justify-content: center; }
    h2 { font-size: 2.5rem; }
    .section-subtitle { font-size: 1.1rem; }
    .steps-container { flex-direction: row; }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .category-card {
        height: 250px;
    }
    .category-card span {
        font-size: 1.8rem;
    }
    .why-foodfeud-container {
        flex-direction: row;
        gap: 3rem;
        align-items: flex-start;
    }
    .why-foodfeud-content h2,
    .why-foodfeud-content .intro-paragraph,
    .pillars-list li {
        text-align: left;
    }
    .giving-back-container { 
        flex-direction: row;
        text-align: left;
        gap: 3rem;
        justify-content: space-between;
        align-items: flex-start;
    }
    .giving-back-content {
        flex: 1;
        text-align: left;
        padding-right: 1.5rem;
    }
    .giving-back-content ul {
        margin-left: 0;
        margin-right: 0;
    }
    .giving-back-image {
        flex: 1;
        width: auto;
        max-width: 50%;
    }
    .giving-back-image img {
        height: 350px;
    }
    .cta-buttons { flex-direction: row; justify-content: center; }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; text-align: left; }

    /* Events Page Tablet+ Styles */
    .page-header h1 {
        font-size: 3.5rem;
    }
    .page-cta {
        padding-bottom: 4rem;
    }
    .events-grid {
        grid-template-columns: 1fr 1fr;
    }
    .champions-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Restaurants Page Tablet+ Styles */
    .restaurants-hero {
        min-height: 80vh;
    }
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    .benefit-card img {
        width: 100%;
        max-width: 250px;
        height: 200px;
    }
    .how-it-works-restaurants-section .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .intelligence-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Feud for Cause Page Tablet+ Styles */
    .mission-container {
        flex-direction: row;
        gap: 3rem;
        align-items: center;
    }
    .mission-content {
        text-align: left;
    }
}

/* =================================== */
/* LARGE DESKTOP STYLES                */
/* =================================== */
@media (min-width: 1024px) {
    .hero-section { background-image: url('images/index-hero-bg.jpg'); }
    .restaurants-hero {
        min-height: 90vh; 
    }
    .page-hero h1, .hero-content h1, .page-header h1 {
        font-size: 4rem;
    }
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .champions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .how-it-works-restaurants-section .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .giving-back-image img {
        height: 400px;
    }
}