/* Shared Styles for Grab n Go Grub Website */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    line-height: 1.6;
}

header {
    background-color: #d32f2f;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffcccc;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #d32f2f;
    padding: 1rem;
}

.mobile-menu li {
    margin: 0.5rem 0;
}

/* This ensures mobile menu links stay white (overrides any blue defaults) */
.mobile-menu a {
    color: white !important;
}

.mobile-menu a:hover {
    color: #ffcccc;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/PizzaVend.jpeg') center/cover no-repeat;
    height: 80vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin: 0 0 1rem 0;
}

/* Sections */
section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    color: #d32f2f;
}

/* Grid */
.grid, .menu-grid, .feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards */
.card, .menu-item, .feature-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover, .menu-item:hover {
    transform: translateY(-5px);
}

.card img, .menu-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Buttons */
.btn {
    background-color: #d32f2f;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #b71c1c;
}

/* Contact Info */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

/* Top Announcement */
.top-announcement {
    background-color: #fff;
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-bottom: 5px solid #d32f2f;
}

.top-announcement h2 {
    font-size: 2.5rem;
    margin: 0 auto;
    max-width: 1100px;
    line-height: 1.2;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    section {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .hero {
        height: 50vh;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .grid, .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .top-announcement h2 {
        font-size: 1.8rem;
    }
}

/* Form Styles */
form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}