/* --- Base Styles & Variables --- */
:root {
    --primary-color: #D2691E; /* Example: Chocolate Brown */
    --secondary-color: #87CEEB; /* Example: Sky Blue */
    --accent-color: #FFD700; /* Example: Gold */
    --text-color: #333;
    --bg-light: #F8F8F8;
    --bg-white: #FFFFFF;
    --border-color: #ddd;
    --diner-red: #c0392b; /* Classic diner red accent */
    --creamy-white: #fdf6e3; /* Warmer background */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on header height */
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Simple, clean font */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--diner-red);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    margin-bottom: 0.8em;
    line-height: 1.3;
    color: #2c3e50; /* Darker blue-grey for headings */
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

/* --- Facebook Specials Section --- */
.facebook-specials {
    text-align: center; /* Center the heading, paragraph, and button */
}

.facebook-specials p {
    margin-bottom: 20px; /* Add some space below the paragraph */
    font-size: 1.1rem; /* Slightly larger text */
    max-width: 600px; /* Limit text width */
    margin-left: auto;
    margin-right: auto;
}

.section-padding {
    padding: 60px 0;
}

.alternate-bg {
    background-color: var(--creamy-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 5px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--diner-red);
    color: white;
}

.btn-primary:hover {
    background-color: #a5281a;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid #777;
}

.btn-secondary:hover {
    background-color: #76c3e6;
    transform: translateY(-2px);
    color: var(--text-color);
     text-decoration: none;
}

.link-arrow {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--diner-red);
    text-decoration: none;
}
.logo a:hover {
    color: var(--primary-color);
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
}

.main-nav .nav-links li {
    margin-left: 25px;
}

.main-nav .nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
    color: var(--diner-red);
    border-bottom: 2px solid var(--diner-red);
}

.header-phone a {
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.header-phone a:hover {
    color: var(--diner-red);
}

.menu-toggle {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

/* --- Hero Section --- */
.hero {
    /* Use your diner photo */
    background-image: url('images/Diner-June-2021.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; /* This handles dynamic cropping */
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative; /* Needed for the overlay */
    min-height: 400px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before { /* The overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Adjust color and opacity (0.5 = 50% transparent black) */
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0; /* Behind the content */
}

.hero-content {
    position: relative; /* To sit above overlay */
    z-index: 1;
    max-width: 700px;
}

/* Make sure headings within hero are white */
.hero h1, .hero p {
    color: white;
     text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* Keep shadow for contrast */
}

/*.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5em;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 1.5em;
}
*/

.hero-buttons .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* --- Info Bar --- */
.info-bar {
    background-color: var(--text-color);
    color: white;
    padding: 15px 0;
    text-align: center;
}

.info-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.info-container div {
    margin: 5px 15px;
    font-size: 0.95rem;
}
.info-container a {
    color: var(--secondary-color);
}
.info-container a:hover {
    color: white;
}

/* --- Menu Highlights --- */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.highlight-item {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.highlight-item img {
    border-radius: 5px;
    margin-bottom: 15px;
    width: 100%; /* Make image take full width of its container */
    height: 200px; /* Fixed height, adjust as needed */
    object-fit: cover; /* Crop image nicely to fit dimensions */
}

.highlight-item h3 {
    color: var(--diner-red);
    margin-bottom: 10px;
}

.footer .disclaimer {
    font-size: 0.8em;
    color: #aaa; /* Lighter grey */
    margin-top: 15px;
    line-height: 1.4;
}

/* --- HTML Menu Section --- */
.menu-section .section-title {
    margin-bottom: 15px;
}
.menu-intro {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

.menu-intro.note {
    font-size: 0.9em;
    font-style: italic;
    color: #555;
    margin-top: -20px; /* Pull it closer to title */
    margin-bottom: 30px;
    max-width: 800px; /* Limit width */
    margin-left: auto;
    margin-right: auto;
}

.new-item {
    display: inline-block;
    background-color: var(--diner-red);
    color: white;
    font-size: 0.7em;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle; /* Align with text */
    font-weight: bold;
}

.menu-category {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px dashed var(--border-color);
}
.menu-category:last-child {
    border-bottom: none;
}

.menu-category h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    /* border-bottom: 2px solid var(--secondary-color); */
    /* display: inline-block; */
    /* padding-bottom: 5px; */
}
.category-description {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Allow wrapping for long descriptions */
}

.menu-item h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
    flex-basis: 100%; /* Take full width initially */
}

.menu-item-description {
    font-size: 0.95rem;
    color: #555;
    margin-right: 15px; /* Space before price */
    flex-grow: 1; /* Allow description to take available space */
     flex-basis: 70%; /* Give description more initial space */
     padding-right: 10px;
}

.menu-item-price {
    font-weight: bold;
    color: var(--diner-red);
    font-size: 1.1rem;
    white-space: nowrap; /* Prevent price wrapping */
    flex-shrink: 0; /* Prevent price from shrinking */
}

/* --- About Section --- */
.about-content {
    display: flex;
    /* Increase gap slightly if needed, or decrease */
    gap: 40px;
    align-items: center; /* Vertically align items if heights differ */
}

.about-image {
    /* Explicitly set flex properties: grow 0, shrink 1 (allow shrinking), basis 40% */
    flex: 0 1 40%;
    /* Ensure image doesn't exceed its container's calculated width */
    max-width: 40%; /* This is often more direct than just flex-basis */
    height: auto; /* Maintain aspect ratio */
    /* Remove the fixed flex-basis and flex-shrink from previous attempts if they exist */
    /* flex-basis: 40%; REMOVE IF PRESENT */
    /* flex-shrink: 0; REMOVE IF PRESENT */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    /* Ensure it behaves as a block for sizing */
    display: block;
}

.about-text {
    /* Explicitly set flex: grow 1 (take extra space), shrink 1 (allow shrinking), basis 60% */
    flex: 1 1 60%;
    /* Helps prevent text overflow issues in some flex scenarios */
    min-width: 0;
     /* Remove fixed flex-basis if present */
     /* flex-basis: 60%; REMOVE IF PRESENT */
}
.about-text p {
    margin-bottom: 1em;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1; /* Make them square */
    object-fit: cover; /* Crop nicely */
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3, .contact-map h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 10px;
}
.contact-form small {
    display: block;
    margin-top: 10px;
    color: #777;
}

.map-placeholder iframe {
     border-radius: 5px;
     max-width: 100%;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--text-color);
    color: #ccc;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.site-footer p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.2rem; }

    .about-content {
        flex-direction: column;
        align-items: center;
    }
    .about-image {
        /* Reset flex properties for stacked layout */
        flex: none; /* Turn off flex item behavior */
        width: 80%;
        max-width: 400px; /* Keep max-width constraint for mobile */
        margin-bottom: 30px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    .about-text {
        /* Reset flex properties for stacked layout */
        flex: none; /* Turn off flex item behavior */
        width: 100%;
        text-align: center; /* Optional: center text when stacked */
        min-width: auto; /* Reset min-width */
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-container {
        position: relative; /* Needed for absolute positioning of mobile menu */
    }

    .main-nav .nav-links {
        display: none; /* Hide desktop nav */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        text-align: center;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

    .main-nav .nav-links.active {
        display: flex; /* Show mobile nav when active */
    }

    .main-nav .nav-links li {
        margin: 10px 0;
    }
     .main-nav .nav-links a {
        padding: 10px 15px;
        display: block;
     }
      .main-nav .nav-links a.active,
      .main-nav .nav-links a:hover {
        border-bottom: none; /* Remove border in mobile view */
        background-color: var(--creamy-white);
      }

    .menu-toggle {
        display: block; /* Show hamburger */
    }

    .header-phone {
        display: none; /* Hide phone in header on small screens (put in footer/contact) */
    }

    .info-container {
        flex-direction: column;
        align-items: center;
    }
     .info-container div {
        margin: 8px 0;
    }

    .hero {
        padding: 80px 15px;
        min-height: 300px;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero-buttons .btn { font-size: 1rem; padding: 12px 20px; }

    .menu-item {
        /* flex-direction: column; */ /* Stacking items vertically if needed */
        /* align-items: flex-start; */
    }
    .menu-item-description {
       flex-basis: 100%; /* Let description take full width */
       margin-right: 0;
       margin-bottom: 5px; /* Space between description and price */
    }
    .menu-item-price {
         margin-left: 0; /* Align price left if needed */
         width: 100%; /* Take full width on new line */
         text-align: right; /* Align price right */
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
     h1 { font-size: 2rem; }
     h2 { font-size: 1.6rem; }
     .section-title { font-size: 1.8rem; }
     .hero h1 { font-size: 2rem; }
     .hero p { font-size: 1rem; }

     .highlight-grid {
        grid-template-columns: 1fr; /* Stack highlights */
     }

     .footer p {
        font-size: 0.8rem;
     }
}
