/* ===== Top Section ===== */
.top-container {
    position: relative;
    height: 800px;
    width: 100%;
}

.background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 1));
    z-index: 1;
}

#top-logo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 60%;
    height: 60%;
    object-fit: contain;
    z-index: 2;
    padding: 50px 0 150px;
}

/* ===== Services Section ===== */
.services {
    background: linear-gradient(to bottom, #000, #0f0f0f);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px;
}

.services h2 {
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
}

.services-card {
    position: relative;
    width: 500px;
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8)), url('/images/charcuterie/IMG_73122.webp') center/cover no-repeat;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    transition: transform 0.5s ease;
}

.services-card:nth-child(2) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8)), url('/images/bistro/R7__0600.webp');
}

.services-card h2 {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 1.8rem;
}

.services-card .btn {
    position: absolute;
    top: 290px;
    left: 30px;
}

.services-card:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 1170px) {
    .services h1 {
        font-size: 1.5rem;
    }

    .services-card {
        width: 250px;
        height: 250px;
    }

    .services-card .btn {
        top: 110px;
    }
}

@media screen and (max-width: 665px) {
    .services {
        padding-top: 60px;
    }
}

/* ===== Charcuterie Section ===== */
.charcuterie {
    background: #0e0e0e;
}

.charcuterie-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 90px 20px;
    gap: 40px;
}

.charcuterie-container h1 {
    text-align: left;
}

.charcuterie-container hr {
    margin: 0 auto 20px;
    display: block;
    width: 100%;
}

.charcuterie-container p {
    text-align: justify;
}

.charcuterie-img,
.bistro-img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
}

.charcuterie-text,
.bistro-text {
    max-width: 600px;
    color: #fff;
    line-height: 1.6;
}

/* ===== Charcuterie Gallery ===== */
.charcuterie-gallery {
    background: #070707;
    padding: 90px 20px;
    text-align: center;
}

.charcuterie-gallery h3 {
    background: linear-gradient(to top, #e9ca4f 0%, #ffb84e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.charcuterie-gallery p {
    font-size: 1rem;
    text-align: left;
}

.charcuterie-gallery .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.charcuterie-gallery .image-column {
    flex: 1 1 calc(25% - 30px);
    box-sizing: border-box;
}

@media screen and (max-width: 900px) {
    .charcuterie-gallery .image-column {
        flex: 1 1 calc(50% - 30px);
    }
}

.charcuterie-gallery .image-container,
.charcuterie-gallery .text-container {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    color: #fff;
}

.charcuterie-gallery .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.charcuterie-gallery .image-container img:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* ===== Bistro Section ===== */
.bistro {
    background: #0a0a0a;
}

.bistro-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 90px 20px;
    gap: 40px;
}

.bistro-container h1 {
    text-align: left;
}

.bistro-container hr {
    margin: 0 auto 20px;
    display: block;
    width: 100%;
}

.bistro-container p {
    text-align: justify;
}

/* ===== Bistro Gallery ===== */
.bistro-gallery {
    background: #0a0a0a;
    padding: 90px 20px;
    text-align: center;
    width: 100%;
}

.bistro-gallery h2 {
    margin-bottom: 20px;
}

.bistro-gallery .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}


.bistro-gallery .image-column {
    flex: 1 1 45%;
    box-sizing: border-box;
    min-width: 140px;
}

.bistro-gallery .image-container {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    padding-top: 100%;
    /* 1:1 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
}

.bistro-gallery .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bistro-gallery .text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 1rem;
    box-sizing: border-box;
}

.bistro-gallery .image-container:hover .text-overlay {
    opacity: 1;
}

@media screen and (max-width: 400px) {
    .bistro-gallery .gallery {
        gap: 15px;
    }
}

/* ===== Logo Row ===== */
.logo-row {
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    flex-wrap: nowrap;
}

.logo-row img {
    max-width: 100px;
    height: auto;
    object-fit: contain;
}