/* Laurus nobilis color scheme */
:root {
    --laurus-leaf-green: #2E8B57; /* Laurus nobilis leaf green */
    --laurus-bark-brown: #8B4513; /* Laurus nobilis bark brown */
    --laurus-light-green: #98FB98; /* Light green for highlights */
}

body {
    font-family: 'Radio Canada', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
}

nav {
    background-color: var(--laurus-leaf-green);
    color: white;
    padding: 1em;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.uppercase {
    text-transform: uppercase;
}

section {
    border-left: none;
    padding: 2em;
    margin: 0; /* Changed from 2em 0 to remove gaps */
}

#about {
    background-color: #f4f4f4;
}

#products {
    background-color: #eaeaea;
}

#gallery {
    background-color: #f4f4f4;
}

#contact {
    background-color: #eaeaea;
}

/* Gallery Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* WeChat QR Code Modal */
.wechat-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wechat-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.wechat-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wechat-qr-image {
    max-width: 250px;
    max-height: 250px;
    margin: 0 auto;
    display: block;
}

.wechat-modal-content h3 {
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--laurus-leaf-green);
}

.wechat-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1200;
}

.wechat-modal-close:hover,
.wechat-modal-close:focus {
    color: var(--laurus-leaf-green);
    text-decoration: none;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1200;
}

.close:hover,
.close:focus {
    color: var(--laurus-leaf-green);
    text-decoration: none;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    padding: 16px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background-color: rgba(46, 139, 87, 0.7);
}

@media only screen and (max-width: 700px) {
    .modal-content {
        max-width: 90%;
    }
    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--laurus-leaf-green);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--laurus-bark-brown);
    transform: translateY(-3px);
}