/*
Theme Name: Merenn
Theme URI: https://example.com
Author: Your Name
Description: Custom theme for the Merenn restaurant website
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Belleza', sans-serif;
    color: #4a5c54;
    background-color: #f2f0e7;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    padding: 40px 0 20px;
    text-align: center;
}

.logo {
    font-family: 'Belleza', sans-serif;
    font-size: 64px;
    font-weight: 400;
    letter-spacing: 8px;
    color: #3B5E65;
}

.nav-tabs {
    padding: 40px 0;
    margin-bottom: 40px;
    top: 0;
    z-index: 100;
}

.tabs-wrapper {
    display: inline-flex;
    background-color: #E5DCCF;
    border-radius: 50px;
    padding: 8px;
    gap: 8px;
}

.tab-button {
    font-family: 'Belleza', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #4C4600;
    background-color: #E5DCCF;
    border: 2px solid #D2D6B4;
    padding: 12px 32px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 40px;
    display: inline-block;
}

.tab-button:hover {
    background-color: #d8d0c3;
}

.tab-button.active {
    background-color: #D2D6B4;
    font-weight: 400;
}

.main-content {
    padding: 40px 0 0px;
}

.content-section {
    padding: 60px 0;
    scroll-margin-top: 120px;
}

.content-section:first-child {
    padding-top: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 669px 1fr;
    gap: 60px;
    align-items: start;
}

.text-content {
    width: 669px;
}

.section-title {
    font-family: 'Belleza', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #3B5E65;
    margin-bottom: 30px;
    line-height: 1.4;
}

.intro-text {
    font-family: 'Belleza', sans-serif;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    color: #3B5E65;
    margin-bottom: 25px;
    line-height: 1.7;
}

.body-text {
    font-family: 'Belleza', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #4C4600;
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.image-content {
    display: block;
    position: relative;
}

.restaurant-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay-text {
    display: block;
    font-size: 48px;
    letter-spacing: 6px;
    font-weight: 300;
    margin-bottom: 10px;
}

.overlay-subtext {
    display: block;
    font-size: 14px;
    letter-spacing: 2px;
    line-height: 1.4;
}

/* Hours Card */
.hours-card {
    background-color: rgba(200, 209, 184, 0.85);
    padding: 30px;
    border-radius: 16px;
    position: absolute;
    bottom: -120px;
    right: -50px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    backdrop-filter: blur(2px);
}

.hours-title {
    font-family: 'Belleza', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #3B5E65;
    margin-bottom: 30px;
    text-align: center;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hours-item {
    font-family: 'Belleza', sans-serif;
    font-size: 21px;
    color: #3B5E65;
    text-align: center;
}

.photo-gallery-title,
.photo-gallery .intro-text {
    text-align: center;
}

.photo-gallery-section {
    padding: 80px 0 100px;
    text-align: center;
    scroll-margin-top: 120px;
}

.photo-gallery-title {
    font-family: 'Belleza', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #3B5E65;
    margin-bottom: 30px;
    white-space: pre-line;
}

.photo-gallery-section .intro-text {
    font-size: 24px;
    color: #3B5E65;
    margin-bottom: 50px;
    text-align: center;
    white-space: pre-line;
}

/* --- Gallery Layout --- */
.gallery-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.gallery-wrapper {
    position: relative;
    overflow: hidden;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(59, 94, 101, 0.6);
    color: #fff;
    border: none;
    font-size: 32px;
    padding: 8px 16px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 5;
}

.gallery-arrow.left {
    left: 20px;
}

.gallery-arrow.right {
    right: 20px;
}

.gallery-wrapper:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background-color: rgba(59, 94, 101, 0.8);
}

.gallery-container {
    display: flex;
    gap: 12px;
    transition: transform 0.4s ease-in-out;
}

.gallery-container img {
    width: calc((100% - 24px) / 3); /* adjust for 3 visible images with gaps */
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 10px;
    user-select: none; /* prevents text/image selection when dragging */
}

.menu-buttons-wrapper {
    margin-top: 25px;
}

.menu-btn {
    display: inline-block;
    background: #e2e4cf;
    padding: 10px 22px;
    margin-right: 12px;
    border-radius: 40px;
    font-size: 1.05rem;
    text-decoration: none;
    color: #36454F;
    transition: background 0.25s ease-in-out;
}

.menu-btn:hover {
    background: #cfd3b4;
}

.menu-btn.secondary {
    background: #dadada;
}

/* Full-width background for "Le Coin Traiteur" */
#traiteur {
    background-color: #D2D6B4; /* fills entire width */
    width: 100vw;              /* ensures it spans the viewport */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;        /* trick to cancel container centering */
    margin-right: -50vw;
    align-items: stretch;
}

#traiteur .tabs-wrapper {
    background-color: #f2f0e7;
}

#traiteur .tab-button {
    background-color: #f2f0e7;
}

#traiteur .tab-button.active {
    background-color: #d2d6b4;
}

/* Traiteur image styling */
.traiteur-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.traiteur-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

#ferme {
    background-color: #E4C7A1;
    width: 100vw;              /* ensures it spans the viewport */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;        /* trick to cancel container centering */
    margin-right: -50vw;
    align-items: stretch;
    display: block;
}

#ferme .tabs-wrapper {
    background-color: #f2f0e7;
}

#ferme .tab-button {
    background-color: #f2f0e7;
    border: 2px solid #e4c7a1;

}

#ferme .tab-button.active {
    background-color: #e4c7a1;
}

.footer {
    background-color: #D2D6B4;
    color: #3B5E65;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* ensures full width background */
    margin-right: -50vw;
    padding-top: 60px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Footer menu */
.footer-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-menu .tab-button {
    background-color: transparent;
    border: none;
    font-size: 20px;
    color: #3B5E65;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-menu .tab-button:hover {
    color: #4C4600;
}

/* Footer logo */
.footer .logo-class .logo {
    font-size: 56px;
    letter-spacing: 6px;
    color: #3B5E65;
    margin: 0;
}

/* Contact info */
.footer .contact p {
    font-family: 'Belleza', sans-serif;
    font-size: 18px;
    color: #4C4600;
    margin: 6px 0;
}

.footer .contact a {
    color: #4C4600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .contact a:hover {
    color: #3B5E65;
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .text-content {
        width: 100%;
    }

    .image-content {
        order: -1;
    }

    .main-image {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .photo-gallery-section {
        padding: 120px 0 80px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 42px;
        letter-spacing: 4px;
    }

    .section-title {
        font-size: 30px;
        line-height: 1.3;
    }

    .intro-text {
        font-size: 18px;
        line-height: 1.5;
    }

    .body-text {
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
    }

    .hours-card {
        position: static;
        margin-top: 30px;
        box-shadow: none;
    }

    .gallery-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-container img {
        width: calc(50% - 8px);
        margin-bottom: 10px;
    }

    .photo-gallery-title {
        font-size: 36px;
        white-space: normal;
    }

    .photo-gallery-section .intro-text {
        font-size: 18px;
        white-space: normal;
    }

    .footer {
        padding: 60px 0;
    }

    .footer-menu {
        flex-direction: column;
        gap: 14px;
    }

    .footer .logo-class .logo {
        font-size: 40px;
    }

    .footer .contact p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 32px;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 26px;
    }

    .intro-text {
        font-size: 16px;
    }

    .photo-gallery-section {
        padding: 80px 0 60px;
    }

    .gallery-container img {
        width: 100%;
    }

    .tab-button {
        padding: 10px 20px;
        font-size: 16px;
    }

    .footer {
        padding: 50px 0;
    }

    .footer .logo-class .logo {
        font-size: 34px;
    }

    .footer .contact p {
        font-size: 14px;
    }
}