/* ================================
   RESET & BASE
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "GFS Didot", serif;
    font-weight: 400;
    font-style: normal;
    background: #fff;
    line-height: 1.6;
}

/* ================================
   HEADINGS
================================ */
h1 {
    color: #c7a93a;
    font-family: "Italiana", sans-serif;
    font-weight: 400;
    font-size: 4.5rem;
    transition: color 0.3s ease;
}
h1:hover {
    color: #e98379;
}
a {
    text-decoration: none;
}
/* ================================
   NAVIGATION
================================ */
header {
    background: #fff;
    color: #8e7d2b;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}
nav a {
    text-decoration: none;
    color: #8e7d2b;
    font-family: "Italiana", sans-serif;
    font-size: 1rem;
}
nav a:hover {
    color: #e98379;
}

/* Dropdown */
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    background: #f4f2f2;
    opacity: 0.9;
    top: 100%;
    left: 0;
    min-width: 150px;
}
.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    color: #8e7d2b;
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* ================================
   HAMBURGER MENU
================================ */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    width: 25px;
    height: 20px;
    justify-content: space-between;
}
.hamburger span {
    background: #8e7d2b;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    transition: all 0.35s ease;
}

/* Animate to X */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background: rgba(255, 255, 255, 0.55);
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding: 0 1rem;
    }
    nav ul.show {
        max-height: 1000px;
    }
    .dropdown:hover .dropdown-content {
        position: static;
    }
    .hamburger {
        display: flex;
    }
}

/* ================================
   GALLERY / MASONRY
================================ */
main {
    width: 100%;
    margin: 0;
    padding: 0;
}
.gallery {
    display: flex;
    gap: 0.5rem;
}
.gallery .col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.gallery img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.45s ease,
        transform 0.5s ease;
    cursor: pointer;
}
.gallery img.loaded {
    opacity: 1;
    transform: translateY(0);
}
/* ========== VIDEO GALLERY (motion.html only) ========== */

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

/* Keep video thumbnails uniform */
.video-gallery .video-thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-gallery .video-thumb:hover {
    transform: scale(1.02);
}

/* Thumbnail images inside */
.video-gallery .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play icon overlay */
.video-gallery .video-thumb::after {
    content: "▶";
    position: absolute;
    color: #fff;
    font-size: 3rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    pointer-events: none;
}

/* Responsive columns only for video gallery */
@media (min-width: 1200px) {
    .gallery.video-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .gallery.video-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 600px) and (max-width: 767px) {
    .gallery.video-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 599px) {
    .gallery.video-gallery {
        grid-template-columns: 1fr;
    }
}

/* ================================
   VIDEO THUMBNAILS
================================ */
.video-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-thumb:hover {
    transform: scale(1.02);
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.video-thumb img.loaded {
    opacity: 1;
}
.video-thumb::after {
    content: "▶";
    position: absolute;
    color: #fff;
    font-size: 3rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    pointer-events: none;
}

/* Force uniform aspect ratio for video thumbnails */
.video-thumb {
    aspect-ratio: 16 / 9; /* or 4/3 if you prefer square-ish */
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================
   LIGHTBOX
================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.lightbox.open {
    display: flex;
}
.lightbox img {
    max-width: 92%;
    max-height: 92%;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}
.lightbox iframe {
    width: 95vw;
    height: 60vw;
    max-width: 1280px;
    max-height: 720px;
    border: none;
}
.lightbox .close,
.lightbox .prev,
.lightbox .next {
    position: absolute;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    padding: 0.5rem 0.8rem;
    font-size: 1.6rem;
    cursor: pointer;
}
.lightbox .close {
    right: 18px;
    top: 18px;
}
.lightbox .prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox .next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

/* ================================
   CONTACT SECTION
================================ */
.contact-section {
    padding: 3rem 1.5rem;
    background: #fdfdfd;
}
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}
.contact-image {
    flex: 1 1 5%;
}
.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.contact-info {
    flex: 1 1 45%;
    color: #6b6b6b;
}
.contact-info h2 {
    font-family: "Italiana", sans-serif;
    color: #6b6b6b;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.contact-details {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}
.contact-details li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
.contact-details i {
    color: #e98379;
    margin-right: 8px;
}
.contact-details a {
    text-decoration: none;
    color: #8e7d2b;
    font-size: 1rem;
}
.contact-details a:hover {
    color: #e98379;
}
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.form-group label {
    font-weight: bold;
    font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}
.submit-btn {
    background: #c7a93a;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: "Italiana", sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.submit-btn:hover {
    background: #e98379;
}
.form-message {
    margin-top: 1rem;
    color: #8e7d2b;
    font-weight: bold;
    min-height: 1.2em;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}
.form-message.show {
    opacity: 1;
}

/* ================================
   FOOTER
================================ */
footer {
    font-family: "Italiana", sans-serif;
    text-align: center;
    padding: 1rem;
    background: #fff;
    color: #c7a93a;
    width: 100%;
}

/* ================================
   RESPONSIVE TWEAKS
================================ */
@media (max-width: 900px) {
    .gallery {
        flex-direction: column;
        gap: 1rem;
    }
    .gallery .col {
        width: 100%;
    }
    .video-thumb {
        height: 350px;
    }
    .contact-container {
        flex-direction: column;
    }
}

/* ==================================
   RECIPE
================================== */

.container-recipe {
    position: relative; /* stacking root for the overlap element */
    display: flex;
    flex-direction: column; /* mobile stacked */
    gap: var(--gap);
    max-width: 1200px;
    margin: 0 auto 4rem;
}
.container-recipe p {
    margin: 1rem 7rem 1rem 0;
    color: #6b6b6b;
}

.col-recipe {
    position: relative; /* keeps internal layout stable */
    padding: 1.5rem;
}

.col-recipe.right-recipe {
    order: 1;
    z-index: 1;
} /* keep low z-index */
.col-recipe.left-recipe {
    order: 2;
    z-index: 1;
} /* keep low z-index */

/* --- overlap element is a sibling of columns (direct child of .container) --- */
.overlap-text {
    position: absolute; /* positioned relative to .container */
    z-index: 100; /* high so it sits above columns */
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease 0.1s forwards;
}
.overlap-text h1 {
    color: #fff;
    font-size: 3.5rem;
    padding: 0 10rem 0 1.5rem;
    background-color: #e98379;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Desktop layout ----- */
@media (min-width: 768px) {
    .container-recipe {
        flex-direction: row;
        gap: 2rem;
    }

    /* explicit desktop ordering so left is left, right is right */
    .col-recipe.left-recipe {
        order: 1;
        top: 15rem;

        padding: 0;
    }
    .col-recipe.right-recipe {
        order: 2;
        padding: 0;
    }

    .col-recipe {
        flex: 1;
    }

    /* place the overlap so it appears to come from the left and overlap the right column */
    .overlap-text {
        top: 2.5rem;
        /* place it slightly inside the right column area — adjust as needed */
        /*left: calc(30% - 60px);*/
        text-align: left;
        font-size: 1.6rem;
        transform: none; /* disable mobile transform */
        opacity: 1; /* visible on desktop immediately */
        animation: none;
    }
}

/* mobile placement (stacked): show overlap above the right column */
@media (max-width: 767px) {
    .overlap-text {
        position: relative; /* flow between stacked items on mobile */
        order: 2; /* we will position it visually between the stacked columns */
        z-index: 100;
        margin: 0 auto 0.5rem;
        display: block;
        font-size: 1.25rem;
        transform: translateY(10px);
        animation: fadeInUp 0.4s ease 0.1s forwards;
    }
    /* ensure .overlap-text sits between right (order 1) and left (order 2) in visual order */
    .overlap-wrapper {
        display: flex;
        flex-direction: column;
    }
    .overlap-text {
        order: 2;
    } /* explicitly set if using wrapper (see markup) */
        .overlap-text h1 {
            font-size: 2.5rem;
            padding: 0 1rem;
}

/* small tweak for narrow screens */
@media (max-width: 420px) {
    .overlap-text {
        font-size: 1.1rem;
    }
}
.col-recipe img {
    max-width: 100%;
}
.gallery-recipe {
    margin-top: 2.5rem;
    max-width: 1200px;
    margin: auto;
}

.gallery img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery img.loaded {
    opacity: 1;
}


#formMessage {
    margin-top: 1.5rem;
    font-family: 'Italiana', serif;
    font-size: 1.1rem;
    min-height: 1.5rem; /* Prevents layout jump when text appears */
    transition: all 0.3s ease;
}