:root {
    --body-bg: #fafafa;
    --text-color: #5d737e;
    --font-family: 'Poppins', sans-serif;
    --heading-font-family: 'Montserrat', sans-serif;
    --heading-color: #000000;

    --wrapper-padding: 4rem 2rem;
    --wrapper-max-width: 1300px;

    --button-bg: #062388;
    --button-color: #ffffff;
    --button-padding: .8rem 1.8rem;
    --button-border-radius: .3em;

    --input-border-radius: var(--button-border-radius);

    --top-nav-bg: #ffffff;
    --top-nav-height: 80px;

    --input-border-color: #dde4fd;
    --input-focus-border-color: var(--button-bg);
}

@media screen and (max-width: 700px) {
    :root {
        --button-padding: .7rem 1.2rem;
    }
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--top-nav-height) + 1rem);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--body-bg);
    color: var(--text-color);
    font-family: var(--font-family);
    margin-top: var(--top-nav-height);
}

p {
    color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: var(--heading-font-family);
}

h2 {
    font-size: 1.8rem;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
}

.link {
    text-decoration: none;
    color: var(--text-color);
    display: inline-block;
    margin: 5px 0;
    font-size: 1rem;
    position: relative;
}

.link::after {
    content: '';
    display: block;
    width: 0;
    position: absolute;
    left: 0;
    height: 2px;
    background: var(--text-color);
    transition: width .3s;
}

.link:hover::after {
    width: 100%;
}

.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    background-color: var(--top-nav-bg);
    z-index: 999999;
}

.top-nav .wrapper {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.top-nav .flex {
    height: var(--top-nav-height);
    display: flex;
    flex-direction: row;
    align-items: center;
}

.top-nav .brand img {
    display: block;
    height: 56px;
}

.top-nav nav {
    margin-left: auto;
    transition: all 300ms ease-in-out;
}

.top-nav ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

#hamburger-btn {
    display: none;
    background: none;
    outline: none;
    border: none;
    justify-content: space-between;
    flex-direction: column;
    height: 20px;
    margin-left: 10px;
}

#hamburger-btn .bar {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 5px;
    transition: 250ms;
}

#hamburger-btn .bar1 {
    width: 12px;
    margin-left: 12px;
}

#hamburger-btn .bar3 {
    width: 12px;
    margin-right: 12px;
}


@media screen and (max-width: 650px) {
    :root {
        --top-nav-height: 70px;
    }

    #hamburger-btn {
        display: flex;
        margin-right: 0;
        padding-left: 1rem;
        margin-left: auto;
    }

    .top-nav nav {
        position: fixed;
        top: var(--top-nav-height);
        left: 100vw;
        width: 100%;
        padding: 1rem;
        height: calc(100dvh - var(--top-nav-height));
        background-color: var(--body-bg);
    }

    .top-nav.open nav {
        left: 0;
    }

    .top-nav nav ul {
        flex-direction: column;
    }

    .top-nav.open #hamburger-btn .bar1 {
        transform: rotate(45deg) translate(6px, 6px);
        width: 24px;
        margin-left: 0px;
    }

    .top-nav.open #hamburger-btn .bar2 {
        transform: scale(0);
    }

    .top-nav.open #hamburger-btn .bar3 {
        transform: rotate(-45deg) translate(5px, -5px);
        width: 24px;
        margin-right: 0px;
    }
}

.btn {
    padding-inline: 0;
    padding-block: 0;
    background-color: var(--button-bg);
    color: var(--button-color);
    padding: var(--button-padding);
    border-radius: var(--button-border-radius);
    text-decoration: none;
    display: inline-block;
    outline: none;
    border: none;
    font-family: inherit;
    font-size: .9rem;
}

.btn:hover {
    box-shadow: 1px 1px 0px 1px #6283f8;
}

.contact-widget .flex {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.contact-widget h2 {
    text-align: center;
    margin-bottom: 1em;
}

.contact-widget form {
    flex-grow: 1;
}

.contact-widget input,
.contact-widget textarea {
    font-size: 1em;
    padding: .8em 1em;
    outline: none;
    border: none;
    display: block;
    width: 100%;
    margin-bottom: 1em;
    font-family: inherit;
    border-radius: var(--input-border-radius);
    border: 1px solid var(--input-border-color);
    background: transparent;
    max-width: 40em;
}


.contact-widget input:focus,
.contact-widget textarea:focus {
    border: 1px solid var(--input-focus-border-color);
}

.contact-widget textarea {
    height: 6em;
    resize: none;
}

.contact-widget .image img {
    max-width: 600px;
    border-radius: 6px;
}

@media screen and (max-width: 1000px) {
    .contact-widget .image img {
        width: 30vw;
        max-width: 400px;
    }
}

@media screen and (max-width: 850px) {
    .contact-widget .image {
        display: none;
    }
}

footer .logo {
    display: block;
    height: 50px;
    margin-bottom: 30px;
}

footer address {
    font-style: normal;
    font-family: inherit;
}


footer .container {
    padding: 2.5rem 2rem;
    background-color: #fff;
    border-radius: 1rem;
    background-color: #fff;
}

footer .grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 2rem;
}

footer h3 {
    margin-top: 0;
}

footer nav ul {
    /* display: flex; */
    /* flex-direction: column; */
    margin: 0;
    list-style: none;
    padding: 0;
    /* gap: .5rem; */
}

footer nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
    /* padding: .5rem 0px; */
}


footer .bottom {
    border-top: 1px solid #f3f5f6;
    margin-top: 2rem;
    text-align: center;
}

footer .bottom p {
    margin-top: 2rem;
    margin-bottom: 0;
}

footer .bottom p a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

@media screen and (max-width: 650px) {
    footer .wrapper {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }

    footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    footer .grid {
        grid-template-columns: 1fr;
    }
}

.heading {
    display: flex;
    gap: .8rem;
    align-items: center;
    justify-content: center;
}

.heading.left {
    justify-content: start;
}

.heading .line {
    width: 4rem;
    height: 1px;
    background-color: var(--button-bg);
}

.heading small {
    text-transform: uppercase;
    font-weight: 400;
    color: var(--heading-color);
    font-family: var(--heading-font-family);
}

@media screen and (min-width: 1100px) {
    .heading .line.no-laptop {
        display: none;
    }
}

.center {
    text-align: center;
}


#testimonials h2 {
    text-align: center;
    margin: 0;
}

#testimonials .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    max-width: 75rem;
    margin: auto;
    padding: 2rem 0;
}

#testimonials .nav button {
    background-color: transparent;
    border: none;
    outline: none;
    padding: 0;
}

#testimonials .nav button img {
    width: 2rem;
}

#testimonials .reviews {
    text-align: center;
    min-height: 19rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-grow: 1;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 6px;
}

#testimonials .text {
    flex-grow: 3;
    font-size: 1.2em;
    margin-top: 1em;
}

#testimonials .name {
    margin-top: .5em;
    font-weight: 600;
}

#testimonials .stars {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: .5rem;
}

#testimonials .stars img {
    display: block;
    height: 1em;
}

.testimonials-forward {
    position: relative;
    animation: testimonials-forward 300ms forwards;
}

@keyframes testimonials-forward {
    0% {
        opacity: 0;
        right: -200px;
    }

    100% {
        opacity: 1;
        right: 0px;
    }
}

.testimonials-backward {
    animation: testimonials-backward 300ms forwards;
    position: relative;
}

@keyframes testimonials-backward {
    0% {
        opacity: 0;
        left: -200px;
    }

    100% {
        opacity: 1;
        left: 0px;
    }
}

@media screen and (max-width: 650px) {
    #testimonials .flex {
        gap: 1rem;
    }

    #testimonials .reviews {
        min-height: 27rem;
    }

    #testimonials .text {
        font-size: 1rem;
    }

    #testimonials .nav button img {
        width: 1.5rem;
    }

    #testimonials .reviews {
        padding: 1rem;
    }

    #testimonials .stars img {
        height: 1em;
    }
}



.wrapper {
    padding: var(--wrapper-padding);
    margin: var(--section-margin);
}

@media screen and (min-width: 1300px) {
    .wrapper {
        margin: auto !important;
        width: 100%;
        max-width: var(--wrapper-max-width);
    }
}

@media screen and (min-width: 1350px) {
    .wrapper {
        padding-right: 0;
        padding-left: 0;
    }
}

@media screen and (max-width: 650px) {
    .wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
        margin-left: 0;
        margin-right: 0;
    }
}