:root {
    --primary: #2e7d32;
    --secondary: #f9a825;
    --accent: #fffde7;
    --dark: #222;
    --light: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--accent);
    color: var(--dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
    background: var(--primary);
    color: var(--light);
    padding: 8px 16px;
    border-radius: var(--radius);
}
.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-nav {
    background: var(--primary);
    color: var(--light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-image {
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--secondary);
}
.logo-text {
    font-family: 'Alfa Slab One', cursive;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--secondary);
    text-shadow: 1px 1px 0 #0002;
}
.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}
.nav-link:hover,
.nav-link:focus {
    background: var(--secondary);
    color: var(--primary);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Responsive Nav */
@media (max-width: 900px) {
    .nav-menu {
        position: absolute;
        top: 64px;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        align-items: flex-end;
        width: 220px;
        padding: 16px 0;
        gap: 0;
        box-shadow: var(--shadow);
        border-radius: 0 0 0 var(--radius);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s, transform 0.2s;
    }
    .nav-menu.active,
    .nav-menu.nav-menu-active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-link {
        display: block;
        width: 100%;
        padding: 14px 24px;
        border-radius: 0;
    }
    .hamburger {
        display: flex;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(120deg, var(--primary) 60%, var(--secondary) 100%);
    color: var(--light);
    padding: 60px 0 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-content {
    max-width: 700px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}
.hero h1 {
    font-family: 'Alfa Slab One', cursive;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}
.hero-tagline {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.hero-quote {
    font-style: italic;
    margin-bottom: 2rem;
    color: #fffde7cc;
}
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 8px #0001;
}
.button-primary {
    background: var(--secondary);
    color: var(--primary);
}
.button-primary:hover,
.button-primary:focus {
    background: #ffd54f;
    color: var(--primary);
}
.button-secondary {
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--secondary);
}
.button-secondary:hover,
.button-secondary:focus {
    background: var(--secondary);
    color: var(--light);
}

/* Section Titles */
.section-title {
    font-family: 'Alfa Slab One', cursive;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 1px;
}

/* About Section */
.about-section {
    background: var(--light);
    padding: 60px 0;
}
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}
.about-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 350px;
    max-width: 100%;
    object-fit: cover;
}
.about-text {
    max-width: 500px;
    font-size: 1.1rem;
    color: var(--dark);
}

/* Menu Section */
.menu-section {
    background: var(--accent);
    padding: 60px 0;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* FIXED: Menu Item Animation */
.menu-item {
    background: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, box-shadow 0.2s;
}
.menu-item.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.menu-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.menu-item-images {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.menu-item-images img {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.5s;
    border-radius: var(--radius) var(--radius) 0 0;
}
.menu-item-images .image-main {
    opacity: 1;
    z-index: 1;
}
.menu-item-images .image-hover {
    opacity: 0;
    z-index: 2;
}
.menu-item-content {
    padding: 24px 20px 20px 20px;
}
.menu-item-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: var(--primary);
    font-family: 'Alfa Slab One', cursive;
}
.menu-item-content p {
    margin: 0 0 12px 0;
    color: #444;
}
.price {
    font-weight: bold;
    color: var(--secondary);
    font-size: 1.1rem;
}

/* FIXED: Testimonials Animation */
.testimonials-section {
    background: var(--light);
    padding: 60px 0;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
.testimonial {
    background: var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 24px 24px 24px;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.testimonial.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.testimonial-content i {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.testimonial-content p {
    font-size: 1.1rem;
    margin: 0 0 12px 0;
}
.testimonial-content cite {
    font-style: normal;
    color: var(--primary);
    font-weight: 600;
}

/* FIXED: Location Section Animation */
.location-section {
    background: var(--accent);
    padding: 60px 0;
}
.location-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.location-content.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.location-info {
    max-width: 400px;
}
.location-intro {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.map-container {
    min-width: 320px;
    flex: 1 1 400px;
    max-width: 600px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* FIXED: Pay It Forward Section Animation */
.pay-it-forward-section {
    background: var(--light);
    padding: 60px 0;
}
.pay-it-forward-content {
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.pay-it-forward-content.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.pay-it-forward-intro {
    font-size: 1.15rem;
    margin-bottom: 32px;
}
.pay-it-forward-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

/* FIXED: Stat Animation */
.stat {
    background: var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.stat.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.stat i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}
.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}
.stat-label {
    font-size: 1rem;
    color: #555;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}
.modal.modal-active {
    opacity: 1;
    pointer-events: auto;
}
.modal-container {
    background: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 90vw;
    padding: 0;
    position: relative;
    animation: modalIn 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
    from { transform: translateY(-40px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 10px 24px;
    border-bottom: 1px solid #eee;
}
.modal-title {
    font-size: 1.3rem;
    color: var(--primary);
    font-family: 'Alfa Slab One', cursive;
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}
.modal-body {
    padding: 20px 24px 24px 24px;
}
.contact-form .form-group {
    margin-bottom: 18px;
}
.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--primary);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
    transition: border 0.2s;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border: 1.5px solid var(--secondary);
    outline: none;
}
.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 8px;
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: var(--light);
    padding: 32px 0 24px 0;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer-info {
    display: flex;
    align-items: center;
    gap: 18px;
}
.footer-logo {
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--secondary);
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}
.social-links a {
    color: var(--secondary);
    font-size: 1.5rem;
    margin: 0 8px;
    transition: color 0.2s;
    display: inline-block;
}
.social-links a:hover,
.social-links a:focus {
    color: #ffd54f;
}

/* Responsive Tweaks */
@media (max-width: 900px) {
    .about-content,
    .location-content {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .pay-it-forward-stats {
        flex-direction: column;
        gap: 24px;
    }
    .map-container {
        width: 100%;
        min-width: unset;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .menu-item-content {
        padding: 16px 16px 16px 16px;
    }
    .modal-container {
        padding: 0;
        margin: 16px;
    }
}

/* FIXED: Animations */
body.loaded .hero,
body.loaded .main-nav,
body.loaded .site-footer {
    animation: fadeInDown 1s ease-out;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Global animation class - this ensures elements stay visible after animation */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Utility */
::-webkit-scrollbar {
    width: 8px;
    background: #eee;
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}