/* ===== GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #0b3d2c;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar a {
    color: #fff;
    margin: 0 0.8rem;
    font-weight: 600;
}

.navbar .logo img {
    height: 60px;
    background: white;
    border-radius: 50%;
}

/* Hamburger button */
.hamburger {
    display: none; /* hidden on desktop */
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    nav#navMenu {
        display: none;
        flex-direction: column;
        background-color: #0b3d2c;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1000; /* ensure it sits above everything */
    }

    nav#navMenu a {
        margin: 1rem 0;
        padding: 0.5rem 2rem;
        display: block;
    }

    nav#navMenu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

/* ===== HERO SECTION ===== */
.hero {
      position: relative;
    width: 100%;
    height: 92vh; /* full viewport height */
    overflow: hidden;
}

.hero-carousel {
    display: flex;
    width: 100%;
    height: 92%;
    transition: transform 0.5s ease-in-out;
}

.hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Overlay text */
.slide-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 500px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.slide-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6ac17d;
}

.slide-text p {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

.slide-text .btn {
    background: #0b3d2c;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
}

.slide-text .btn:hover {
    background: #6ac17d;
    color: #fff;
}

/* Carousel controls */
.carousel-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    z-index: 10;
}

.carousel-controls button {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.carousel-controls button:hover {
    background: #6ac17d;
}

/* Slides positioning */
.slide {
    min-width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* ===== PRODUCTS ===== */
.products {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.products h2 {
    font-size: 2.5rem;
    color: #0b3d2c;
    margin-bottom: 2rem;
}

/* Use flexbox for uniform rows with flexible gaps */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centers items, adds fillers on sides */
    gap: 1rem; /* gap between products */
}

/* Product item wrapper */
.product-item {
    flex: 1 1 280px; /* min width 280px, grow as needed */
    max-width: 300px; /* optional max width */
    background: #f5f5f5; /* filler background */
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

/* Product images inside wrapper */
.product-item img {
    width: 100%;
    height: auto; /* preserves original aspect ratio */
    object-fit: contain; /* shows entire image without cropping */
    display: block;
    transition: transform 0.3s;
}

.product-item img:hover {
    transform: scale(1.05);
}
.product-grid img:hover {
    transform: scale(1.05);
}
.product-card {
    background: #fff;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    max-width: 100%;
    border-radius: 15px;
}

.product-card h3 {
    color: #0b3d2c;
    margin: 1rem 0 0.5rem 0;
}

.product-card p {
    font-size: 0.95rem;
    color: #555;
}

.product-card .price {
    color: #6ac17d;
    font-weight: bold;
    margin: 0.5rem 0;
}

.product-card button {
    background: #0b3d2c;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
}

.product-card button:hover {
    background: #6ac17d;
}

/* ===== REVIEWS ===== */
/* ===== REVIEWS SECTION ===== */
.reviews {
    padding: 4rem 2rem;
    background: #eaf5ee;
    text-align: center;
}

.reviews h2 {
    font-size: 2.5rem;
    color: #0b3d2c;
    margin-bottom: 2rem;
}

/* Grid layout */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Review card */
.review-card {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #dcefe3; /* distinct border */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Header (avatar + name) */
.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

/* Avatar */
.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6ac17d;
}

/* Name styling */
.review-header h4 {
    margin: 0;
    font-weight: bold;
    color: #0b3d2c;
    font-size: 1.05rem;
}

/* Message */
.review-card p {
    font-size: 0.95rem;
    color: #444;
    margin: 0.5rem 0;
}

/* Product images */
.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.5rem;
}

.review-images img {
    width: 70px;  /* smaller images */
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: transform 0.2s;
}

.review-images img:hover {
    transform: scale(1.1);
}
/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

/* Image */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}
/* Submit link */
.reviews p a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #0b3d2c;
    color: #fff;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.3s;
}

.reviews p a:hover {
    background: #6ac17d;
}

/* ===== WHY CHOOSE US ===== */
#whyChoose {
    padding: 60px 20px;
    background: #f5f5f5;
    text-align: center;
}

#whyChoose h2 {
    font-size: 2.5rem;
    color: #1b5e20;
    margin-bottom: 40px;
}

#whyChoose .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

#whyChoose .card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 30px 20px;
    max-width: 300px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#whyChoose .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

#whyChoose .card h3 {
    font-size: 1.5rem;
    color: #1b5e20;
    margin-bottom: 15px;
}

#whyChoose .card p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

#whyChoose .card::before {
    content: "✔";
    font-size: 2rem;
    display: block;
    color: #ff9800;
    margin-bottom: 15px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-content h3 {
    color: #0b3d2c;
    margin-bottom: 1rem;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== CONTACT ===== */
.contact {
    padding: 4rem 2rem;
    text-align: center;
}

.contact h2 {
    color: #0b3d2c;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact form input, 
.contact form textarea {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.contact form button {
    background: #0b3d2c;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
}

.contact form button:hover {
    background: #6ac17d;
}

/* ===== FOOTER ===== */
footer {
    background: #0b3d2c;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    .slide-text h1 { font-size: 2.5rem; }
    .slide-text p { font-size: 1.1rem; }
    .hero { height: 70vh; }
}

@media screen and (max-width: 768px) {
    .slide-text h1 { font-size: 2rem; }
    .slide-text p { font-size: 1rem; }
    .hero { height: 60vh; }

    .carousel-controls button {
        padding: 8px 12px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .slide-text h1 { font-size: 1.5rem; }
    .slide-text p { font-size: 0.9rem; }
    .hero { height: 30vh; }
    .carousel-controls button {
        padding: 6px 10px;
        font-size: 14px;
    }
}