* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif; 
    color: #3e3b3b;
    background-color: #f9f8f4;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: #2c241b;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Stil Buton General */
.btn {
    display: inline-block;
    background-color: #6b705c;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid #6b705c;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #fff;
    color: #6b705c;
    cursor: pointer;
    transform: translateY(-2px);
}

/* Stil Buton Navigare Desktop */
.btn-nav {
    display: inline-block;
    background-color: #6b705c;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #6b705c;
}

.btn-nav:hover {
    background-color: white;
    color: #6b705c;
}

/* --- HEADER & NAV --- */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container a {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 55px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

/* Ascundem hamburger-ul pe Desktop */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #2c241b;
}

/* --- HERO SECTION --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/sala.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    padding: 20px;
    animation: fadeInDown 1.5s ease-out;
    transform: translateY(-40px); /* ridică textul */

}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
    color: wheat;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}


.scroll-down {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* --- ABOUT SECTION --- */
.about {
    padding: 80px 0;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #a44a3f;
    margin: 15px auto 0;
}

.about p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #555;
}

/* --- FEATURES --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 80px;
}

.feature-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.feature-text {
    padding: 25px;
    text-align: center;
}

.feature-text h3 {
    margin-bottom: 10px;
    color: #6b705c;
}

/* --- MENU TEASER --- */
.menu-teaser {
    background-color: #2c241b;
    color: white;
    padding: 90px 0;
    text-align: center;
    background-image: url('https://www.transparenttextures.com/patterns/dark-wood.png');
}

.menu-teaser h2 {
    color: white;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.menu-item {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: 0.3s;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #6b705c;
}

.menu-item h3 {
    color: #e0d0b0;
    margin-bottom: 10px;
}

/* --- FOOTER --- */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
    border-top: 5px solid #6b705c;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-column p {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-column i {
    color: #6b705c;
    margin-top: 5px;
    min-width: 20px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* --- FLOAT BTN --- */
.float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animatii Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
           RESPONSIVE (TELEFON) 
   ========================================= */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .desktop-only {
        display: none;
    }

    .hamburger {
        display: block;
        z-index: 1002;
    }

    .hamburger.toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        right: 0px;
        top: 80px;
        height: calc(100vh - 80px);
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
        padding-top: 50px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0;
        animation: navLinkFade 0.5s ease forwards 0.3s;
    }

    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0); }
    }

    .hero-content h1 { font-size: 2.2rem; }
    .features { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: 1fr; }
    .footer-grid { text-align: center; }
    .footer-column p { justify-content: center; }
}


/* =========================================
   STILURI SPECIFICE PAGINA MENIU
   ========================================= */

.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/sala.jpg'); 
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: wheat;
}

.category-title {
    text-align: center;
    margin: 40px 0 30px;
    color: #6b705c;
    font-size: 2rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.menu-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.menu-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-details {
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.card-header h3 {
    font-size: 1.2rem;
    margin: 0;
    font-family: 'Merriweather', serif;
    color: #2c241b;
}

.card-header .price {
    font-weight: 700;
    color: #a44a3f;
    font-size: 1.1rem;
    white-space: nowrap;
}

.ingredients {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.weight {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
    display: block;
    text-align: right;
}

.menu-divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 40px 0;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.nav-links a.active {
    color: #6b705c;
    font-weight: 700;
}
.nav-links a.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    .card-header {
        flex-direction: column;
    }
    .card-header .price {
        margin-top: 5px;
    }
}

/* =========================================
   GALERIE FOTO (MODAL) - MODIFICAT AICI
   ========================================= */

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.card-image-wrapper .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0;
    transition: 0.3s;
    gap: 10px;
}

.feature-card:hover .card-image-wrapper .overlay {
    opacity: 1;
}

/* Fundalul Modalului (Ecranul negru) */
.modal-gallery {
    display: none; /* Ascuns implicit, activat de JS cu flex */
    position: fixed; 
    z-index: 9999; /* Deasupra la orice */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Negru aproape opac */
    
    /* Centrare conținut */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Wrapper pentru a ține imaginea și a o centra */
.modal-content-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* IMAGINEA - Fixul principal */
.modal-img {
    max-width: 90%;      /* Nu mai lata de 90% din ecran */
    max-height: 85vh;    /* Nu mai inalta de 85% din ecran */
    object-fit: contain; /* Păstrează proporțiile imaginii fara a o deforma */
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Butonul X (Inchidere) */
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}

.close-modal:hover {
    color: #a44a3f;
}

/* Săgețile Stânga/Dreapta */
.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -25px; /* Centrare verticala */
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    z-index: 10000;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Pozitionarea sagetilor relativ la ecran/wrapper */
.prev-btn { left: 10px; border-radius: 3px 0 0 3px; }
.next-btn { right: 10px; border-radius: 3px 0 0 3px; }

/* Textul de sub poza */
.modal-caption {
    position: absolute;
    bottom: 20px;
    color: #ccc;
    text-align: center;
    width: 100%;
    font-size: 0.9rem;
}

/* Responsive pt Galerie */
@media (max-width: 768px) {
    .modal-img {
        max-width: 95%;
        max-height: 70vh; /* Pe mobil lăsăm mai mult loc */
    }
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    .prev-btn, .next-btn {
        padding: 10px;
        font-size: 20px;
    }
}