/* General */
main {
    font-family: "Fredoka", sans-serif;
    min-height: 70vh;
}

.services,
.contact {
    margin: 5rem auto 10rem;
}

.section-title {
    color: var(--bw-blue-light);
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 2.3rem;
    letter-spacing: 2.5px;
    word-spacing: 3px;
    padding: 0.5rem 1rem;
    margin: 3rem 0rem 2.5rem;
    text-align: center;
}


/* Welcome Section */
.welcome-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(54, 72, 105, 0.8), rgba(54, 180, 115, 0.2)), var(--hero-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: blur(2.8px);
    z-index: 1;
}

.welcome-banner {
    position: relative;
    height: 75vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0rem 0rem 5rem;
    overflow: hidden;
}

.welcome-banner>* {
    position: relative;
    z-index: 2;
}

.welcome-subtitle {
    width: 55%;
    font-size: 1.6rem;
    line-height: 1.5;
    letter-spacing: 1.5px;
    margin: 1.5rem 0 2rem;
    color: #fff;
    font-weight: 500;
}

.welcome-button {
    width: fit-content;
    margin: 4rem 0 0;
}

.welcome-button button {
    border: none;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background-color: var(--bw-blue-dark);
    padding: 1rem 1.5rem;
    color: #fff;
    border-radius: 0.5rem;
    font-size: 1.1rem;

    &:active {
        background-color: var(--bw-blue-light);
    }
}

.welcome-content {
    margin: 45% 3rem 40%;
}

.welcome-content-below {
    margin-bottom: 10rem;
    display: flex;
    justify-content: center;
}

.welcome-content-below div {
    width: 50%;
    padding-inline: 3rem;
    margin-block: auto;
    line-height: 1.6;
    font-size: 1.2rem;
    color: var(--bw-blue-dark);
    letter-spacing: 1px;
}

.welcome-content-below div p:nth-child(2) {
    margin-top: 1rem;
}

#welcome-content-below-image {
    padding-top: 2rem;
    width: 45%;
    display: flex;
    place-items: center;
    flex-direction: column;
}

#welcome-content-below-image img {
    border-radius: 1rem;
    width: 100%;
    object-fit: cover;
}

#welcome-content-below-image figcaption {
    margin-block: 0.5rem 0;
    font-size: 1.3rem;
    color: var(--bw-blue-dark);
    font-weight: 500;
    letter-spacing: 1px;
}


/* Hero Section */
.hero-title {
    border-bottom: 2px solid var(--bw-blue-light);
    color: var(--bw-blue);
    font-size: 2.3rem;
    font-weight: 450;
    padding: 0.5rem 1rem;
    width: fit-content;
    margin: 0 auto 4rem;
}


/* Services Section */
.services-cards {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 2.5rem;
}

.service-card {
    border: 1px solid var(--bw-blue-dark);
    display: flex;
    justify-content: space-around;
    padding: 1.2rem 1rem;
    border-radius: 0.5rem;
}

.service-card:nth-child(5) {
    margin: 0 25%;
    grid-column: 1/-1;
}

.service-card-image {
    width: 25%;
    align-self: center;
    display: flex;
    align-items: center;
}

.service-card-image img {
    width: 100%;
    object-fit: cover;
}

.service-card-area {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    gap: 1.5rem;
}

.service-card-title {
    margin: 0 auto;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--bw-blue-dark);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.service-card-content {
    padding: 1.5rem 1rem;
    border: 2px solid var(--bw-blue-dark);
    border-radius: 1.5rem 0rem 1.5rem 0rem;
    transition: all 0.1s ease-in-out;
    color: var(--bw-blue);
    font-weight: 380;
    font-size: 1.1rem;
}

.service-card-button {
    width: 100%;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    color: #ffffff;
    background-color: var(--bw-blue);
    border: none;
    border-radius: 0.3rem;

    &:active {
        background-color: var(--bw-blue-light);
    }
}


/* Contact Section */
.contact-section-title {
    color: var(--bw-blue-light);
    font-size: 2.3rem;
    text-align: center;
}

form {
    border: 1px solid var(--bw-blue-dark);
    box-shadow: 1px 1px 5px var(--bw-blue-light);
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 45vw;
}

.form-group {
    font-size: 1rem;
    color: var(--bw-blue-dark);
    font-weight: 500;
    letter-spacing: 1px;
}

label {
    display: block;
    margin-bottom: 0.3rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    color: var(--bw-blue-dark);
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 450;
    border: 1px solid var(--bw-blue-dark);
    border-radius: 0.3rem;
    transition: all 0.1s ease in;

    &:focus {
        outline: none;
        border: 2.5px solid var(--bw-blue-dark);
    }
}

textarea {
    resize: none;
}

input[type="file"]::file-selector-button {
    border-radius: 0.15rem;
    padding: 0.3rem;
    border: none;
    background: var(--bw-blue);
    color: #fff;
    cursor: pointer;
}

option {
    font-size: 0.9rem;
    color: var(--bw-blue-dark);
    font-weight: 500;
    letter-spacing: 1px;
}

form button {
    padding: 0.6rem 1rem;
    margin: 2rem auto;
    font-size: 1rem;
    color: #ffffff;
    background-color: var(--bw-blue);
    border: none;
    border-radius: 0.3rem;

    &:active {
        background-color: var(--bw-blue-dark);
    }
}

@media screen and (max-width: 1024px) {
    .welcome-subtitle {
        font-size: 1rem;
        width: 100%;
    }

    .welcome-content {
        margin: 0 1rem;
    }

    .welcome-content-below {
        flex-direction: column;
        gap: 2rem;
    }

    .welcome-content-below div {
        width: 95%;
        margin: auto;
        padding-inline: 0;
        hyphens: auto;
    }

    #welcome-content-below-image {
        width: 100%;
    }

    /* Services Section */
    .services-cards {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 90%;
    }

    .service-card {
        flex-direction: column;
    }

    .service-card:nth-child(5) {
        margin: 0;
        grid-column: None;
    }

    .service-card-image {
        width: 35%;
        align-self: center;
    }

    .service-card-image img {
        width: 100%;
        object-fit: cover;
    }

    .service-card-area {
        width: 99%;
        height: fit-content;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
    }


    /* Contact us section */
    form {
        width: 90vw;
    }

    input,
    button,
    textarea,
    select {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    form {
        width: 100%;
    }
}