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

:root {
    --primary-black: #121212;
    --secondary-black: #1d1d1d;
    --dark-gray: #404040;
    --light-gray: #8a8a8a;
    --gold: #d4af37;
    --gold-dark: #b8941f;
    --white: #ffffff;
    --whatsapp-green: #25d366;
}

/* Font local Melodrame */
@font-face {
    font-family: "Melodrame";
    src: url("../fonts/melodrame.woff2") format("woff2"),
         url("../fonts/melodrame.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-black);
    color: var(--white);
    line-height: 1.6;
    font-size: 0.95rem;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-image: url('https://i.imgur.com/zzCnVHS.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    position: relative;
}

/* Overlay opcional para mejorar la legibilidad del texto */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Melodrame', 'Playfair Display', serif;
    font-weight: normal;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.hero .description {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 3rem;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-whatsapp {
    background: var(--gold-dark);
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #20c75a;
    transform: translateY(-2px);
}

.btn-whatsapp i {
    font-size: 20px;
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--gold-dark);
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20c75a;
    transform: scale(1.1);
}

.my-whatsapp-icon {
    color: white;
}

/* Menu Section */
.menu {
    padding: 5rem 0;
    background: var(--secondary-black);
}

.section-title {
    font-family: 'Melodrame', 'Playfair Display', serif;
    font-weight: normal;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gold);
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.menu-item {
    background: var(--primary-black);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--dark-gray);
    cursor: pointer;
    display: flex;
    align-items: stretch;
}

.menu-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    border-color: var(--gold);
}

.menu-item-image {
    flex: 0 0 32%;
    min-height: 220px;
    background: var(--dark-gray);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.menu-item-image::after {
    content: "";
}

.menu-item:hover .menu-item-image::after {
    opacity: 1;
}

.menu-item-content {
    flex: 1;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-item h3 {
    font-family: 'Melodrame', 'Playfair Display', serif;
    font-weight: normal;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.menu-item h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 1px;
    background-color: var(--light-gray);
}

.menu-item p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.menu-item .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

/* Punts de venda - mapa */
.map-section {
    padding: 5rem 0;
    background: var(--secondary-black);
}

.map-intro {
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
    color: var(--light-gray);
    font-size: 1.05rem;
}

.map-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

#map {
    width: 100%;
    height: 420px;
    border-radius: 20px;
    border: 1px solid var(--dark-gray);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-image: url('https://i.imgur.com/zzCnVHS.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.services-intro {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    text-align: center;
    color: var(--light-gray);
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--secondary-black);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--dark-gray);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.service-card-image {
    height: 260px;
    background-size: cover;
    background-position: center;
}

.service-card-content {
    padding: 2rem;
}

.service-card h3 {
    font-family: 'Melodrame', 'Playfair Display', serif;
    font-weight: normal;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.service-highlight {
    margin-top: 0.5rem;
    font-weight: 500;
    color: var(--white);
}

.service-catering-image {
    background-image: url('https://i.imgur.com/ZvIZ3fF.jpeg');
}

.service-quintagamma-image {
    background-image: url('https://i.imgur.com/tS4SOht.jpeg');
}

/* About Section */
.about {
    padding: 5rem 0;
    background-image: url('https://i.imgur.com/zzCnVHS.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Melodrame', 'Playfair Display', serif;
    font-weight: normal;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image {
    height: 500px;
    background: var(--dark-gray);
    border-radius: 20px;
    background-image: url('https://i.imgur.com/LfvgnHI.jpeg');
    background-size: cover;
    background-position: center;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--secondary-black);
}

.contact-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-info {
    flex: 1.1;
}

.contact-info h3 {
    font-family: 'Melodrame', 'Playfair Display', serif;
    font-weight: normal;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.contact-form {
    flex: 1;
    background: var(--primary-black);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--dark-gray);
}

.contact-form h3 {
    font-family: 'Melodrame', 'Playfair Display', serif;
    font-weight: normal;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-black);
    border: 1px solid var(--dark-gray);
    border-radius: 10px;
    color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* Footer */
footer {
    background: var(--primary-black);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--dark-gray);
}

footer p {
    color: var(--light-gray);
}

/* Modal Gallery */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.95);
}

.modal-content {
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-family: 'Melodrame', 'Playfair Display', serif;
    font-weight: normal;
    font-size: 2.5rem;
    color: var(--gold);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.modal-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-gallery img:hover {
    transform: scale(1.05);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--gold);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--gold-dark);
    transform: rotate(90deg);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.98);
    cursor: zoom-out;
}

.lightbox img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    /* Productes en mòbil */
    .menu-grid {
        gap: 1.5rem;
    }

    .menu-item {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-item-image {
        flex: 0 0 auto;
        width: 100%;
        min-height: 200px;
    }

    .menu-item-content {
        padding: 1.5rem 1.5rem 1.8rem;
    }

    .menu-item h3 {
        font-size: 1.6rem;
    }

    .menu-item .price {
        font-size: 1.2rem;
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Imagen de fondo para arros negre */
.arros-image {
    background-image: url('https://i.imgur.com/V99fjdk.jpeg');
}

/* Imagen de fondo para canelons rostit */
.canelons-rostit-image {
    background-image: url('https://i.imgur.com/puedbHS.jpeg');
}

/* Imagen de fondo para canelons bolets */
.canelons-bolets-image {
    background-image: url('https://i.imgur.com/sD1loBU.jpeg');
}

/* Imagen de fondo para bull de festucs */
.bull-image {
    background-image: url('https://i.imgur.com/6CVuJtP.jpeg');
}

/* Imagen de fondo para croquetes de jerret */
.croquetes-image {
    background-image: url('https://i.imgur.com/V46GGDU.jpeg');
}

/* Imagen de fondo para patè artesanal */
.pate-image {
    background-image: url('https://i.imgur.com/NzMNp9C.jpeg');
}

/* Overrides tipografia */
body {
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 200;
}

.section-title,
.about-text h2,
.modal-header h2,
.service-card h3,
.menu-item h3,
.contact-info h3,
.contact-form h3 {
    color: var(--white);
}

footer {
    background: var(--primary-black);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--dark-gray);
}

footer p {
    color: var(--light-gray);
    margin-bottom: 0;
}
