/* ===== VARIABLES CSS ===== */
:root {
    --header-height: 4rem;

    /* Colors */
    --primary-color: #2d7a4f;
    --primary-dark: #1f5438;
    --primary-light: #4a9d6f;
    --secondary-color: #8bc34a;
    --accent-color: #cddc39;
    
    --white-color: #ffffff;
    --off-white: #fafafa;
    --light-gray: #f5f5f5;
    --gray-color: #e0e0e0;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --dark-color: #1a1a1a;
    
    /* Typography */
    --title-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
    
    --h1-font-size: 3rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
    
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Spacing */
    --mb-0-5: 0.5rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;
    
    /* Z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Responsive Typography */
@media screen and (max-width: 968px) {
    :root {
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.25rem;
    }
}

/* ===== BASE ===== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--off-white);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--title-font);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: var(--body-font);
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.section {
    padding: 6rem 0 4rem;
}

.section__subtitle {
    display: inline-block;
    font-size: var(--small-font-size);
    font-weight: var(--font-semibold);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--mb-1);
}

.section__title {
    font-size: var(--h2-font-size);
    color: var(--dark-color);
    margin-bottom: var(--mb-2);
}

.section__description {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.section__header {
    text-align: center;
    margin-bottom: var(--mb-3);
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: var(--font-medium);
    transition: var(--transition);
    text-align: center;
}

.button-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.button-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.button-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.button-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

/* ===== HEADER & NAV ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-fixed);
    transition: var(--transition);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--title-font);
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.nav__logo i {
    font-size: 1.75rem;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-color);
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* ===== HERO SECTION WITH CAROUSEL ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero__carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero__slide--active {
    opacity: 1;
}

.hero__slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 122, 79, 0.80) 0%, rgba(31, 84, 56, 0.75) 100%);
    z-index: 2;
}

.hero__container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: var(--h1-font-size);
    color: var(--white-color);
    margin-bottom: var(--mb-1);
}

.hero__title-accent {
    color: var(--accent-color);
    display: block;
    font-size: calc(var(--h1-font-size) * 1.2);
}

.hero__description {
    color: var(--white-color);
    font-size: 1.125rem;
    margin-bottom: var(--mb-2-5);
    opacity: 0.95;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Carousel Arrows */
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__arrow:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.hero__arrow--left {
    left: 2rem;
}

.hero__arrow--right {
    right: 2rem;
}

/* Carousel Indicators */
.hero__indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 0.75rem;
}

.hero__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
}

.hero__indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero__indicator--active {
    background-color: var(--white-color);
    width: 40px;
    border-radius: 6px;
}

/* ===== ABOUT SECTION ===== */
.about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.about__image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about__image:hover img {
    transform: scale(1.1);
}

.about__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.about__badge {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about__badge i {
    font-size: 2rem;
}

.about__badge span {
    font-weight: var(--font-semibold);
    line-height: 1.2;
}

.about__content {
    padding-left: 2rem;
}

.about__description {
    color: var(--text-light);
    margin-bottom: var(--mb-1-5);
}

.about__features {
    display: grid;
    gap: 1.5rem;
    margin-top: var(--mb-2-5);
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about__feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.about__feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.about__feature h3 {
    font-size: var(--normal-font-size);
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.about__feature p {
    font-size: var(--small-font-size);
    color: var(--text-light);
}

/* ===== MENU SECTION ===== */
.menu {
    background-color: var(--white-color);
}

.menu__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.menu__card {
    background-color: var(--off-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.menu__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.menu__card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.menu__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu__card:hover .menu__card-image img {
    transform: scale(1.1);
}

.menu__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--white-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: var(--small-font-size);
    font-weight: var(--font-semibold);
}

.menu__badge-popular {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.menu__badge-new {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.menu__card-content {
    padding: 1.5rem;
}

.menu__card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--mb-1);
}

.menu__card-title {
    font-size: var(--h3-font-size);
    color: var(--dark-color);
}

.menu__card-price {
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.menu__card-description {
    color: var(--text-light);
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-1);
}

.menu__card-footer {
    display: flex;
    gap: 0.25rem;
}

.menu__card-footer i {
    color: var(--secondary-color);
}

.menu__vegetarian {
    color: var(--primary-color);
}

/* ===== GALLERY SECTION ===== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery__item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    height: 300px;
}

.gallery__item-large {
    grid-row: span 2;
    height: 100%;
}

.gallery__item-wide {
    grid-column: span 2;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 122, 79, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery__overlay i {
    font-size: 3rem;
    color: var(--white-color);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__item:hover img {
    transform: scale(1.1);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--white-color);
}

.contact__container {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 3rem;
}

.contact__description {
    color: var(--text-light);
    margin-bottom: var(--mb-2);
}

.contact__info {
    display: grid;
    gap: 1.5rem;
    margin-bottom: var(--mb-2-5);
}

.contact__info-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 15px;
    transition: var(--transition);
}

.contact__info-item:hover {
    background-color: var(--primary-light);
    color: var(--white-color);
    transform: translateX(10px);
}

.contact__info-item:hover h3,
.contact__info-item:hover p {
    color: var(--white-color);
}

.contact__info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact__info-item:hover i {
    color: var(--white-color);
}

.contact__info-item h3 {
    font-size: var(--normal-font-size);
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.contact__info-item p {
    font-size: var(--small-font-size);
    color: var(--text-light);
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white-color);
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: var(--font-semibold);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.whatsapp-button i {
    font-size: 1.75rem;
}

.whatsapp-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact__map {
    height: 100%;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact__map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial__card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial__stars {
    display: flex;
    gap: 0.25rem;
    color: #ffc107;
    margin-bottom: var(--mb-1);
}

.testimonial__text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--mb-1-5);
    line-height: 1.8;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__author h4 {
    font-size: var(--normal-font-size);
    color: var(--dark-color);
}

.testimonial__author span {
    font-size: var(--small-font-size);
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 4rem 0 2rem;
}

.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--title-font);
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--white-color);
    margin-bottom: var(--mb-1);
}

.footer__logo i {
    font-size: 1.75rem;
    color: var(--secondary-color);
}

.footer__description {
    color: var(--gray-color);
    margin-bottom: var(--mb-1-5);
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: var(--white-color);
    transition: var(--transition);
}

.footer__social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1-5);
}

.footer__links {
    display: grid;
    gap: 0.75rem;
}

.footer__link {
    color: var(--gray-color);
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--secondary-color);
    padding-left: 0.5rem;
}

.footer__schedule {
    color: var(--gray-color);
    display: grid;
    gap: 0.5rem;
}

.footer__newsletter-text {
    color: var(--gray-color);
    margin-bottom: var(--mb-1);
}

.footer__form {
    display: flex;
    background-color: var(--white-color);
    padding: 0.5rem;
    border-radius: 50px;
}

.footer__input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-color);
}

.footer__button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer__button:hover {
    background-color: var(--secondary-color);
}

.footer__copy {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-color);
    font-size: var(--small-font-size);
}

/* ===== FLOATING ELEMENTS ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-tooltip);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
    }
}

.scrollup {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    z-index: var(--z-tooltip);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}

.scrollup.show-scroll {
    opacity: 1;
    pointer-events: auto;
}

.scrollup:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background-color: var(--white-color);
        box-shadow: var(--shadow-lg);
        padding: 4rem 2rem;
        transition: var(--transition);
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .nav__toggle {
        display: block;
    }

    .about__container {
        grid-template-columns: 1fr;
    }

    .about__content {
        padding-left: 0;
        margin-top: 2rem;
    }

    .contact__container {
        grid-template-columns: 1fr;
    }

    .gallery__item-wide {
        grid-column: span 1;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .button {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .section {
        padding: 4rem 0 2rem;
    }

    .menu__grid {
        grid-template-columns: 1fr;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .scrollup {
        display: none;
    }

    .hero__arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero__arrow--left {
        left: 1rem;
    }

    .hero__arrow--right {
        right: 1rem;
    }

    .hero__indicators {
        bottom: 1rem;
    }
}

@media screen and (max-width: 350px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero__title {
        font-size: 2rem;
    }
}
