@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
    --black: #000000;
    --white: #ffffff;
    --primary: #44A54D;
    --primary-bright: #61d772;
    --deep-blue: #0C1635;
    --text: #475569;
    --border: 1px #D9D9D9 solid;
    --border-radius: 5px;
    --nav-height: 67px;
    --font-size-h1: clamp(2rem, 4vw, 4rem);
    --font-size-p: clamp(1rem, 1vw, 1.2rem);
    --nav-height: 61px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

img { 
    vertical-align: middle;
	max-width: 100%;
}

p {
    line-height: 1.7;
    font-size: var(--font-size-p);
}

section {
    scroll-margin-top: var(--nav-height);
}

legend {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 700;
}

fieldset {
    border: none;
}

label {
    display: block;
    margin: 0.5rem 0 0.8rem 0;
    font-weight: 400;
}

input,
input[type="text"],
input[type="date"],
select {
    width: 100%;
    outline: none;
    font-size: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
    background-color: var(--white);
    border: var(--border);
    border-radius: var(--border-radius);
}

select {
    appearance: none;
}

input:focus, 
textarea:focus,
select:focus {
    outline: 2px #0060C8 solid;
}

textarea {
    width: 100%;
    font-size: 1rem;
    outline: none;
    padding: 1rem;
    background-color: var(--white);
    border: var(--border);
    border-radius: var(--border-radius);
    resize: none;
}

.file-input {
    outline: none;
    font-size: 1rem;
    background-color: var(--white);
    border: var(--border);
    border-radius: var(--border-radius);
    line-height: normal;
}

.file-input:hover {
    cursor: pointer;
}

.file-input::file-selector-button {
    line-height: 1.6;
}

.container { 
    max-width: 1200px;
    padding: 1.5rem;
    margin: 0 auto;
}

.button {
    border: none;
    outline: none;
    text-decoration: none;
    cursor: pointer;
    color: var(--black);
    font-weight: 500;
    border-radius: 50px;
    padding: 8px 25px;
    display: inline-block;
}

.button:focus {
    outline: 2px #0060C8 solid;
}

.button--large {
    padding: 15px 30px;
    font-size: 1.2rem;
}

.button--primary {
    background-color: var(--primary);
    color: var(--white);
}

.button--primary:hover {
    background-color: #3a9243;
}

.button--light {
    background-color: var(--white);
    border: var(--border);
}

.button--light-green {
    background-color: var(--white);
    border: 2px var(--primary) solid;
}

.button--light-green:hover {
    background-color: var(--primary);
    border: 2px var(--primary) solid;
    color: var(--white);
}

.button--light:hover {
    background-color: #f1f1f1;
}

.section-title {
    font-size: var(--font-size-h1);
}

.section-title--light {
    color: var(--white);
}

.section-paragraph {
    font-size: var(--font-size-p);
}

.section-paragraph--light {
    color: var(--white);
}

.section-paragraph--light-text {
    color: var(--text);
}

.section-padding {
    padding: 3rem 0;
}

.green-highlight {
	color: var(--primary);
}

.bright-green-highlight {
    color: var(--primary-bright);
}

.flash {
    width: 100%;
    padding: 1rem;
}

.flash--success {
    background-color: rgba(97, 215, 114, 0.1);
    color: var(--primary);
    border: 1px rgba(97, 215, 114, 0.5) solid;
    border-radius: var(--border-radius);
}

.flash--error {
    background-color: rgba(227, 83, 83, 0.1);
    color: rgba(227, 83, 83, 0.8);
    border: 1px rgba(227, 83, 83, 0.5) solid;
    border-radius: var(--border-radius);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0060C8;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
}

@media only screen and (min-width: 605px) {
    .section-padding {
        padding: 6rem 0;
    }
}

.hero {
    padding-top: var(--nav-height);
    min-height: 80vh;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    margin: 0 auto;
    max-width: 689px;
    min-height: 80vh;
}

.hero__image {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    z-index: -1;
    opacity: 0.5;
}

.partners {
    position: relative;
    padding-bottom: 6rem; 
}

.partners__squares {
    display: block;
    position: absolute;
    bottom: 0;
    z-index: -1;
}

.partners__content {
    text-align: center;
}

.partners__images {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}   

@media only screen and (min-width: 830px) {
    .partners__squares {
    }
}

.about {
    background-color: var(--deep-blue);
}

.about__content {
    display: flex;
    flex-direction: column-reverse;
    gap: 4rem;
}

.about__wording {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about__image-container {
    flex: 1;
}

@media only screen and (min-width: 605px) {
    .about__content {
        flex-direction: row;
        gap: 5rem;
    }

    .about__wording {
        margin-top: 5rem;
    }
}

.service-cards {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-top: 2rem;
}

@media only screen and (min-width: 850px) {
    .service-cards {
        gap: 1rem;
        grid-template-columns: repeat(3, 1fr);
        margin-top: 3rem;
    } 
}

.service-card {
    border: var(--border);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.service-card__title {
    margin-top: 1rem;
}

.contact {
    position: relative;
    background-color: #f6f7f88d;
    z-index: 1;
}

.contact-us__content-container {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
    z-index: 3;
}

.contact-us__body,
.contact-us__form-container {
    flex: 1;
}

.contact-us__description {
    margin-top: 1rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.contact-us__contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-us__link-title {
    font-size: 1.2rem;
    margin: 0;
}

.contact-us__link-container {
    margin: 0;
    display: flex;
    gap: 1rem;
}

.contact-us__contact-link {
    text-decoration: none;
    color: var(--text);
}

.contact-us__contact-link:hover {
    color: var(--primary);
}

.contact-us__form-container {
    padding: 1rem;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    border: var(--border);
}

.contact-us__form-actions {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: 1rem;
}

.contact__image {
    display: none;
}

@media only screen and (min-width: 700px) {
    .contact-us__content-container {
        flex-direction: row;
        gap: 6rem;
    }

    .contact-us__form-container {
        padding: 2rem;
    }

    .contact-us__form-actions {
        margin-top: 2rem;
    }
}

@media only screen and (min-width: 950px) {
    .contact__image {
        display: block;
        position: absolute;
        width: 100%;
        bottom: 0;
        z-index: 2;
    }
}