/* -------------------- GENERAL STYLES -------------------- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

section {
    padding: 50px 20px;
}

h2 {
    display: inline-block;
    text-align: center;
    margin: 0 auto 30px;
    color: #ffffff;
    background-color: #3a7a54;
    padding: 5px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: fit-content;
    height: auto;
    display: block;
}

/* -------------------- HEADER / NAVBAR -------------------- */
header {
    background-color: #3a7a54;
    padding: 20px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* desktop: keep in one line */
}

header .logo h1 {
    margin: 0;
    color: #ffffff;
    font-size: 2rem;
}

header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

header ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
}

header .contact-box {
    display: flex;
    gap: 10px;
}

header .contact-box div {
    background-color: white;
    padding: 5px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

header .contact-box a {
    color: #3a7a54;
    text-decoration: none;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

header .contact-box i {
    font-size: 18px;
}

/* Flip phone icon horizontally */
header .contact-box i.fa-phone {
    transform: scaleX(-1);
}

/* -------------------- SERVICES -------------------- */
.services-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.service-item {
    width: 25%;
    background-color: white;
    padding: 30px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    word-wrap: break-word;
}

.service-item h3 {
    color: #3a7a54;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.service-item p {
    color: #333;
    font-size: 1em;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: break-word;
}

/* -------------------- PHOTO GALLERY -------------------- */
.gallery {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.photo-gallery {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.photo-gallery img {
    width: calc((100% - 30px) / 3);
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* -------------------- VIDEO GALLERY -------------------- */
.gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-wrapper {
    overflow: hidden;
    width: 100%;
}

.video-gallery {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
}

.video-gallery video {
    flex: 0 0 calc((100% - 30px) / 3);
    aspect-ratio: 16/9;
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* -------------------- FORM -------------------- */
form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 15px;
}

form input,
form textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 10px;
    background-color: #A8D5BA;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

form button:hover {
    background-color: #86c49f;
}

/* -------------------- GOOGLE MAP -------------------- */
.google-map iframe {
    width: 100%;
}

/* -------------------- FOOTER -------------------- */
footer {
    text-align: center;
    background-color: #000000;
    color: #ffffff;
    padding: 5px;
}

/* -------------------- STYLISH CONTACT INFO -------------------- */
.info-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    background-color: #3a7a54;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-item i {
    font-size: 20px;
}

.info-item:hover {
    background-color: #2e5e40;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.info-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.info-item a:hover {
    text-decoration: underline;
}

/* -------------------- MOBILE RESPONSIVE -------------------- */
@media (max-width: 768px) {

    /* NAVBAR STACKING ON MOBILE */
    header nav {
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
    }

    header .logo h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    header ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    header ul li {
        margin: 5px 0;
    }

    header .contact-box {
        flex-direction: column;
        gap: 5px;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }

    /* Reduce navbar icons/text size on mobile */
    header .contact-box i {
        font-size: 14px;
    }

    header .contact-box a {
        font-size: 12px;
    }

    /* SERVICES FULL WIDTH ON MOBILE */
    .service-item {
        width: 80%;
    }

    /* GALLERY FULL WIDTH ON MOBILE */
    .photo-gallery img,
    .video-gallery video {
        width: 100%;
    }

    /* INFO SECTION STACKING */
    .info-container {
        flex-direction: column;
        gap: 15px;
    }

    .info-item {
        width: 80%;
        justify-content: center;
        font-size: 14px;
        padding: 8px 15px;
    }

    .info-item i {
        font-size: 18px;
    }
}