@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #ddd5d0;
    --second-bg-color: #d6c7be;
    --text-color: #313030;
    --main-color: #314f40;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
    transition: 0.1s ease;
}

.logo:hover {
    color: var(--main-color);
    scale: 1.02;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    -webkit-tap-highlight-color: transparent;
    display: none;
    transition: transform 0.3s ease;
}

.menu-icon_rotate {
    transform: rotate(180deg);
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-img img {
    width: 35vw;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-media .bx {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transform: 0.5s ease;
}

.social-media .bx:hover {
    background-color: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem;
    -webkit-tap-highlight-color: transparent;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.5s ease;
}

.btn:hover {
    box-shadow: none;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about img {
    width: 35vw;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
}

.about-content p:nth-of-type(1) {
    margin: 3rem 0 1rem;
}

.services h2 {
    margin-bottom: 5rem;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    grid-gap: 2rem;
}

.services-container .services-box {
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid var(--bg-color);
    transition: 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.services-container .services-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.services-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.services-box h3 {
    font-size: 2.6rem;
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.bullet-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1rem 0 3rem;
}

.bullet-list p {
    margin: 0.25rem 0;
    /* add some margin between each bullet point */
    text-indent: -1.5rem;
    /* hide the bullet point */
}

.bullet-list p::before {
    content: '• ';
}

/* style input for contact. Invalid */
input:invalid {
    border: 0.3px dotted red;
}

input:valid {
    border: none;
}

.contact form #contactMessage {
    color: var(--main-color);
    margin: 1rem 0 3rem;
    font-size: 1.6rem;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
}

.contact form #contactMessage.show {
    opacity: 1;
    transform: translateY(0);
}

.contact form #contactMessage.success {
    color: var(--main-color); /* Main color for success text */
}

.contact form #contactMessage.error {
    color: red; /* Red color for error text */
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form .input-box select,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 0.8rem;
    margin: 0.7rem 0;
}

.contact form .input-box input,
.contact form .input-box select {
    width: 49%;
}

/* Below is to remove the arrows from the number textbox */
.contact form .input-box input::-webkit-outer-spin-button,
.contact form .input-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.contact form .input-box input[type='number'] {
    -moz-appearance: textfield;
}

/* Above is to remove the arrows from the number textbox */

.contact form .input-box input[type='date'] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.contact form textarea {
    resize: none;
}

.services-box .btn,
.contact form .btn {
    max-width: 18rem;
    margin: 2rem auto 0;
    cursor: pointer;
}

#spinner {
    display: none;
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

#send-message-btn.loading {
    background-color: rgba(49, 79, 64, 0.9);
    color: rgba(221, 213, 208, 0.8);
    cursor: not-allowed;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#send-message-btn.loading span {
    opacity: 0;
}

#send-message-btn.loading #spinner {
    display: inline-block;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p,
.footer-text a {
    font-size: 1.2rem;
}

.footer-text a {
    text-decoration: none;
    transition: 0.2s ease;
    cursor: pointer;
    text-decoration: underline;
}

.footer-text a:hover {
    color: var(--main-color);
}

/* TODO: Below: consider getting rid of the arrow on footer */
.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--main-color);
    border-radius: 0.8rem;
    transition: 0.2s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 1.5rem;
    color: var(--second-bg-color);
}

/* TODO: Above: consider getting rid of the arrow on footer */

/* Modal for Terms and Conditions */
/* The Modal (background) */
.modal {
    visibility: hidden;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0);
    transition: all 0.2s ease-in-out;
}

.modal.show {
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
}

/* Modal Content */
.modal-content {
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid var(--main-color);
    width: 80%;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.modal-content.show {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.modal-content h2 {
    text-align: left;
    line-height: 1.2;
    font-size: 1.75rem;
    padding: 0.5rem 0;
}

.modal-content h2:nth-of-type(0) {
    padding-top: 0px !important;
    margin-top: 0px !important;
}

.modal-content h3 {
    font-size: 1.5rem;
}

.modal-content p {
    font-size: 1rem;
    margin: 0.5rem 0 0.5rem;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--main-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 2rem;
    /* font-weight: bold; */
    margin: 0;
}

/* Modal Body */
.modal-body {
    padding: 1rem;
}

.modal-body p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.modal-body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.modal-body li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Close Button */
.modal-close {
    -webkit-tap-highlight-color: transparent;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--main-color);
    scale: 1.2;
}

/* Breakpoints for responsiveness */

@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .services {
        padding-bottom: 7rem;
    }

    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10%);
        transition: all 0.2s ease;
    }

    .navbar.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .navbar.active a {
        opacity: 1;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .services h2 {
        margin-bottom: 3rem;
    }
}

@media (max-width: 617px) {
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }

    .contact form .input-box input,
    .contact form .input-box select {
        width: 100%;
    }

    .bullet-list {
        display: flex;
        flex-direction: column;
        margin-left: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 365px) {
    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}

/* Responsive Styles */
@media only screen and (max-width: 600px) {
    /* Adjust the modal content margin and width for small screens */
    .modal-content {
        margin: 5% auto;
        width: 90%;
    }
}
