@font-face {
    font-family: "Raleway";
    src: url("./fonts/Raleway-VariableFont_wght.ttf") format("truetype");
}

@font-face {
    font-family: "Open Sans";
    src: url("./fonts/OpenSans-VariableFont_wdth-wght.ttf") format("truetype");
}

body {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
}

header img {
    width: 120px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: hsl(243, 87%, 12%);
    font-family: "Raleway";
    font-weight: 400;
}

.nav-links a:hover {
    border-bottom: 1px solid hsl(243, 87%, 12%);
    padding-bottom: 4px;
    transition: 0.3s ease-in-out;
}

.hero {
    display: flex;
    height: 400px;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    gap: 40px;
}

.cta h1 {
    font-family: "Raleway", sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: hsl(243, 87%, 12%);
}

.cta h1::selection {
    background-color: hsl(243, 87%, 12%);
    color: white;
}

.cta p,
.what-we-offer p {
    font-family: "Open Sans", sans-serif;
    color: hsl(243, 87%, 12%);
    font-size: 16px;
}

.hero .cta {
    width: 50%;
}

.form {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 15px;
}

.email-signup {
    border: 1px solid hsl(243, 87%, 12%);
    height: 40px;
    border-radius: 3px;
    text-indent: 10px;
    width: 350px;
    font-family: "Raleway";
    font-weight: 400;
}

.get-started-btn {
    height: 45px;
    border: none;
    background-color: hsl(224, 93%, 58%);
    color: hsl(240, 75%, 98%);
    padding: 0px 50px;
    font-family: "Raleway";
    font-weight: 700;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
}

.get-started-btn:hover {
    background-color: hsl(224, 81%, 68%);
}

.hero img {
    width: 50%;
    height: auto;
}

.what-we-offer {
    background-image: url("./images/bg-curve-desktop.svg");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 180px 40px;
    height: 400px;
    margin-top: 60px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.what-we-offer h1 {
    font-family: "Raleway", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: hsl(243, 87%, 12%);
}

.what-we-offer img {
    width: 40%;
    height: auto;
}

.testimonial {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.testimonial-card {
    height: 200px;
    width: 400px;
    margin-top: 60px;
    background-color: hsl(240, 75%, 98%);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.testimonial-card article {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.testimonial-card article #client-name {
    font-size: 13px;
    font-weight: bolder;
    position: relative;
    font-family: "Open Sans";
    top: 5px;
}

.testimonial-card article #client-role {
    font-size: 10.5px;
    font-weight: bolder;
    color: hsl(238, 22%, 44%);
    font-family: "Open Sans";
    position: relative;
    bottom: 5px;
}

.testimonial-card #client-detail {
    position: relative;
    bottom: 4px;
}

.testimonial-card #client-image {
    width: 36px;
    height: auto;
    border-radius: 36px;
}

.see-how-it-works {
    display: flex;
    align-items: center;
    gap: 5px;
    /* border-bottom: 2px solid hsl(170, 45%, 43%); */
    width: 185px;
}

.see-how-it-works button {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid hsl(170, 45%, 43%);
    color: hsl(170, 45%, 43%);
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    cursor: pointer;
}

.see-how-it-works button:hover {
    color: hsl(170, 77%, 58%);
    transition: 0.3s ease-in-out;
}

.see-how-it-works img,
#quote-svg {
    width: 20px;
    height: auto;
    position: relative;
    top: 2px;
}

.cta-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 30px 40px;
    align-items: center;
    background-color: hsl(238, 22%, 44%);
    height: 250px;
}

.cta-bottom .text {
    width: 40%;
}

.cta-bottom .bottom-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-bottom h1 {
    font-family: "Raleway", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: hsl(240, 75%, 98%);
}

.cta-bottom p {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    color: hsl(240, 75%, 98%);
}

.bottom-form input {
    width: 500px;
}

.bottom-form button {
    align-self: flex-start;

}

footer {
    background-color: hsl(243, 87%, 12%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 60px 40px 40px;
}

footer .phone,
.email {
    display: flex;
    align-items: center;
    gap: 10px;
}

footer .phone img {
    width: 15px;
    height: 15px;
}

footer .email img {
    width: 15px;
    height: 13px;
}

.contact-info p {
    color: hsl(240, 75%, 98%);
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
}

.footer-links-1 .links,
.footer-links-2 .links {
    margin-top: 60px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links-1 .links a,
.footer-links-2 .links a {
    text-decoration: none;
    color: hsl(240, 75%, 98%);
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.footer-links-1 a:hover,
.footer-links-2 a:hover {
    border-bottom: 1px solid hsl(240, 75%, 98%);
    padding-bottom: 4px;
    transition: 0.3s ease-in-out;
}

.social-links {
    display: flex;
    gap: 15px;
    /* justify-content: center; */
    position: relative;
    bottom: 30px;
    align-items: center;
}

.icon {
    font-size: 12px;
    color: white;
    border: 1px solid white;
    padding: 5px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.icon:hover {
    background-color: hsl(224, 93%, 58%);
    transition: 0.2s ease-in-out;
}

.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}


@media(max-width: 768px) {
    header {
        padding: 20px 40px;
    }

    header img {
        max-width: 100px;
    }

    header li a {
        font-size: 15px;
    }

    .hero {
        flex-direction: column;
        justify-content: space-around;
        gap: 10px;
    }

    .hero .cta {
        width: 100%;
    }

    .hero img {
        width: 100%;
    }

    .illustration-1 {
        order: 1;
    }

    .cta {
        order: 2;
    }

    .cta h1 {
        font-size: 24px;
    }

    .cta p {
        font-size: 14px;
    }

    .form {
        flex-direction: column;
    }

    .email-signup,
    .get-started-btn {
        width: 100%;
    }

    .what-we-offer {
        flex-direction: column;
        margin-top: 100px;
        background-size: auto;
    }

    .what-we-offer .illustration-2 {
        order: 1;
        width: 100%;
    }

    .what-we-offer .testimonial {
        width: 100%;
        order: 2;
    }

    .testimonial-card {
        margin-top: 50px;
        width: auto;
        margin-left: 20px;
        margin-right: 20px;
    }

    .see-how-it-works button {
        align-self: center;
    }

    .cta-bottom {
        margin-top: 400px;
        flex-direction: column;
        height: 350px;
        justify-content: center;
        gap: 20px;
    }

    .cta-bottom .text {
        width: 100%;
    }

    .cta-bottom .bottom-form input {
        max-width: 300px;
    }

    .testimonial {
        align-items: center;
    }

    .testimonial h1 {
        font-size: 24px;
    }

    .testimonial p {
        font-size: 14px;
    }

    footer {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 0px;
    }

    .contact-info img {
        max-width: 200px;
    }

    .contact-info .phone {
        position: relative;
        top: 15px;
    }

    .contact-info .email {
        position: relative;
        top: 8px;
    }

    .social-links {
        margin-top: 20px;
        align-self: center;
    }

    .footer-links-1 .links,
    .footer-links-2 .links {
        margin-top: 30px;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 15px;
        position: relative;
        right: 40px;
    }

}