:root {
    --font-family: 'Montserrat', sans-serif;
    --btn-font-family: var(--font-family);
    --btn-font-size: 1rem;
    --btn-color: white;
    --btn-color-alt: var(--text-brown);
    --bg-cream: #F5F0EB;
    --text-brown: #5A3B2E;
    --button-brown: #5A3B2E;
    --input-bg: #E8E4E0;
    --border-light: #D4CFC9;
    --font-business-title: 5rem;
    --font-section-title: 3rem;
    --font-body: 1.5rem;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-brown);
    line-height: 1.6;
}

.heading-font {
    font-family: var(--font-family);
    font-size: var(--font-section-title);
    font-weight: 400;
    color: var(--text-brown);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 500px;
}

.hero-bg {
    width: 100%;
    min-height: 500px;
    overflow: hidden;
    background-color: #fff;
}

.hero-bg img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 900px) {
    .hero-bg {
        height: 500px;
        min-height: 500px;
    }

    .hero-bg img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-top: 50px;
    pointer-events: none;
}

.hero-overlay .brand {
    font-family: var(--font-family);
    font-size: var(--font-section-title);
    color: white;
    margin-bottom: 0px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-overlay .welcome {
    font-family: var(--font-family);
    font-size: var(--font-business-title);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.4);
}

.hero-overlay .hero-logo {
    display: block;
    margin: 0 auto;
    width: calc(320px + 20vw);
    max-width: 90vw;
    height: auto;
}

/* Header intro — body text below hero image */
.header-intro {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.header-intro .about-text {
    text-align: center;
}

/* Section spacing */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Button text - driven by CSS variables */
button {
    font-family: var(--btn-font-family);
    font-size: var(--btn-font-size);
    color: var(--btn-color);
}

/* Our Menu */
.menu-tabs {
    display: flex;
    justify-content: center;
    justify-content: safe center;
    gap: 10px;
    margin-bottom: 2.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.menu-tabs::-webkit-scrollbar {
    height: 6px;
}

.menu-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.menu-tabs::-webkit-scrollbar-thumb {
    background: rgba(90, 59, 46, 0.2);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .menu-tabs {
        gap: 6px;
    }
}

.menu-tab {
    font-weight: 600;
    color: var(--btn-color-alt);
    background: none;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
}

.menu-tab:hover {
    border-color: var(--text-brown);
}

.menu-tab.active {
    background-color: rgb(255, 255, 255);
    border: 2px solid var(--text-brown);
    border-radius: 8px;
}

.menu-scroll-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.menu-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.menu-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(90, 59, 46, 0.1);
    border-radius: 4px;
}

.menu-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(90, 59, 46, 0.3);
    border-radius: 4px;
}

.menu-grid {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding: 0 1.5rem;
}

.menu-item {
    position: relative;
    flex: 0 0 280px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(90, 59, 46, 0.08);
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.menu-item.category-start {
    margin-left: calc(100px - 1rem);
}

.edit-food-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    z-index: 10;
}
.edit-food-btn:hover {
    opacity: 0.9;
}

.menu-item-image {
    width: 100%;
    height: 480px;
    background-color: #9E9E9E;
    overflow: hidden;
    border-radius: 8px;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-item-info {
    padding: 1.25rem;
    text-align: center;
}

.menu-item-name {
    font-family: var(--font-family);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-brown);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.menu-item-price {
    font-size: var(--font-body);
    color: var(--text-brown);
}

@media (max-width: 768px) {
    .menu-item {
        flex: 0 0 280px;
    }

    .menu-item-image {
        height: 400px;
    }
}

/* Our Location - map stays at native size; container crops on narrow screens */
.location-map {
    width: 100%;
    margin: 0 auto 1.5rem;
    aspect-ratio: 1093 / 587;
    max-height: 587px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.location-map-link {
    display: block;
    width: 1093px;
    height: 587px;
    max-width: none;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.location-address-link {
    text-decoration: none;
    color: inherit;
}

.location-address-link:hover {
    text-decoration: underline;
}

.location-map img {
    width: 1093px;
    height: 587px;
    max-width: none;
    display: block;
}

.location-address {
    text-align: center;
    font-size: var(--font-body);
    font-family: var(--font-family);
    color: var(--text-brown);
}

.location-address p {
    margin-bottom: 0.25rem;
}

/* About Us — image stacked above text */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.about-image {
    width: 100%;
    max-height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #9E9E9E;
}

.about-image img {
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: cover;
    display: block;
}

.about-text p {
    margin-bottom: 1rem;
}

/* Follow us on Social - inner wrapper matches contact section width */
#social {
    padding: 0;
}

#social .social-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.social-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: nowrap;
}

.social-tile {
    position: relative;
    width: 150px;
    flex: 0 0 150px;
    aspect-ratio: 1 / 1;
}

/* Shrink only when three 150px tiles + gaps won't fit */
@media (max-width: 577px) {
    .social-grid {
        gap: 12px;
    }

    .social-tile {
        width: 80px;
        flex: 0 0 80px;
    }
}

.social-tile .social-link,
.social-tile .social-thumb-fallback,
.social-tile .social-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    border-radius: 8px;
}

.social-tile .social-link:focus {
    outline: 2px solid var(--text-brown);
    outline-offset: 2px;
}

.social-tile .social-link img,
.social-tile .social-thumb-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.social-tile .social-thumb-fallback {
    background-color: #9E9E9E;
}

.social-tile .social-image {
    background-color: #9E9E9E;
}

/* Get in Touch - title above form container, aligned with sections above */
#contact {
    padding: 4rem 1.5rem 0;
}

#contact .contact-inner {
    max-width: 1140px;
    margin: 2rem auto 0;
    padding: 4rem 1.5rem;
    background-color: #EAE4DF;
    border-radius: 8px;
}

/* Contact form - white inputs, brown focus */
#contact .form-group input,
#contact .form-group textarea {
    background-color: #fff;
}

#contact .form-group input:focus,
#contact .form-group textarea:focus {
    outline: none;
    border-color: var(--text-brown);
    box-shadow: 0 0 0 2px rgba(90, 59, 46, 0.2);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

#contact .contact-feedback {
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: var(--font-body);
    font-family: var(--font-family);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background-color: var(--input-bg);
    font-family: var(--font-family);
    font-size: var(--font-body);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--button-brown);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* Site footer — legal (same page background as body) */
.site-footer {
    margin-top: 3rem;
    padding: 2rem 1.5rem 3rem;
    background-color: var(--bg-cream);
    color: var(--text-brown);
}

.site-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

.site-footer-line {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Section EDIT buttons (edit.php) */
.section-wrapper {
    position: relative;
}

.edit-section-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
}

.edit-section-btn:hover {
    opacity: 0.9;
}

/* Modal (edit.php) */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.modal-content h3 {
    margin-bottom: 1.5rem;
}

.modal-content .form-group {
    margin-bottom: 1rem;
}

.modal-content label {
    display: block;
    margin-bottom: 0.25rem;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: var(--font-body);
}

.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.modal-actions button {
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    border-radius: 6px;
}

.modal-actions .modal-cancel {
    background: var(--border-light);
    color: var(--btn-color-alt);
    border: none;
}
