:root {
    --white: #FFFFFF;
    --white-tran: #FFFFFF12;
    --lighter-green: #E6EDEC;
    --light-green: #00B30F;
    --dark-green: #00473C;
    --gray: #887E7A;
    --brown: #EFEEE7;
    --box-shadow: 4px 0px 30px 0px rgba(226, 221, 213, .25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    padding: 0;
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
}

h1, h2, h3, h4 {
    margin-top: 0;
    margin-bottom: 20px;
}

p {
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.75;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 1240px;
    margin: 0 auto;
}

.mobile {
    display: none;
}

/* BTN */

.btn {
    position: relative;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 22px;
    color: var(--white);
    background-color: var(--dark-green);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.btn:after {
    background: var(--light-green);
    content: "";
    height: 155px;
    left: -75px;
    opacity: .2;
    position: absolute;
    top: -50px;
    transform: rotate(35deg);
    transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
    width: 50px;
    z-index: 1;
}

.btn.brown {
    background-color: var(--brown);
    color: var(--dark-green);
}

.btn.green {
    background-color: var(--light-green);
}

.btn:hover {
    background-color: var(--light-green);
    color: var(--white);
}

.btn:hover:after {
    left: 120%;
    transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

.btn.green:hover {
    background-color: var(--white);
    color: var(--light-green);
}

.btn.green:after {
    background: var(--white);
}

/* BROWN BACKGROUND */

.brown-background {
    width: 100%;
    height: auto;
    background-color: var(--brown);
}

/* NAV */

.sticky {
    position: sticky;
    top: 0;
    z-index: 998;
}

nav {
    position: absolute;
    top: 0;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, 0);
}

nav .container {
    background-color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: var(--box-shadow);
}

nav .logo {
    font-size: 30px;
    font-weight: bold;
    font-style: italic;
    color: var(--dark-green);
}

.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    height: 35px;
}

nav ul {
    display: flex;
    align-items: center;
}

@media (min-width: 1300px) {
    nav ul {
        display: flex!important;
    }
}

nav ul li a {
    display: block;
    padding: 15px 22px;
    font-weight: 600;
    color: var(--dark-green);
}

nav ul li:last-child {
    margin-left: 15px;
}

nav .btn.brown {
    margin-left: 10px;
}

nav ul li a:not(.btn) {
    position: relative;
}

nav ul li a:not(.btn):after {
    content: "";
    position: absolute;
    bottom: 10px;
    margin-top: calc(0.5em - -3px);
    left: 20px;
    width: calc(100% - 40px);
    height: 2px;
    opacity: .8;
    transform: scale3d(0, 1, 1);
    transform-origin: 100% 50%;
    transition: transform .3s ease-in-out;
    transition-timing-function: cubic-bezier(.2,1,.3,1);
    background: var(--dark-green);
}

nav ul li a:not(.btn):hover:after {
    transform: scale3d(1, 1, 1);
    transform-origin: 0% 50%;
    transition-timing-function: ease;
}

/* HEADER */

header {
    width: 100%;
    height: 100vh;
    min-height: 850px;
    background-color: var(--dark-green);
    background-image: linear-gradient(90deg, var(--dark-green), var(--dark-green), rgba(255,255,255,0)), url(../img/background.png);
    background-size: auto 100%;
    background-position: 100%;
    background-repeat: no-repeat;
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--white);
}

header .center {
    width: 100%;
    max-width: 510px;
}

header h1 {
    font-size: 60px;
    font-weight: 600;
    line-height: 72px;
}

header p {
    width: 100%;
    max-width: 300px;
    font-size: 18px;
}

header .btn {
    font-size: 16px;
    margin-top: 25px;
}

header .trustpilot {
    margin-top: 40px;
    font-size: 14px;
}

header .trustpilot a {
    margin-top: 5px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
}

header .trustpilot img {
    width: 100px;
}

/* SECTION */

section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    color: var(--dark-green);
    margin: 0 auto 50px auto;
    max-width: 100%;
}

.section-heading .pretitle {
    font-weight: 600;
    margin: 0;
}

.section-heading h2,
.testimonials h2 {
    font-size: 55px;
    line-height: 60px;
    margin: 10px 0 20px;
}

.section-heading h2 span,
.testimonials h2 span {
    color: var(--light-green);
}

.section-heading .subtitle {
    color: var(--gray);
    margin: 0 auto;
    max-width: 100%;
}

/* SERVICES */

.services {
    background-image: url(../img/services-bg-shape.png);
    background-size: auto 100%;
    background-position: 50%;
    background-repeat: no-repeat;
}

.services .section-heading {
    width: 500px;
    max-width: 100%;
}

.services .section-heading .subtitle {
    width: 275px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
    gap: 30px;
}

.services-container > div {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-box,
.hiw-box,
.post {
    border-radius: 16px;
    padding: 30px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
}

.service-box h3 {
    font-size: 32px;
    font-weight: 600;
    color: var(--dark-green);
}

.service-box h3 span {
    color: var(--light-green);
}

.service-box p {
    color: var(--gray);
    margin-bottom: 20px;
}

.serivce-box .btn {
    display: block;
}

.service-box img {
    margin-top: 20px;
}

.services-left .service-box img {
    margin-top: 26px;
}

.service-box img {
    width: 100%;
}

/* HOW IT WORKS */

.how-it-works .section-heading {
    width: 390px;
    max-width: 100%;
}

.hiw-container {
    display: flex;
    align-items: center;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
}

.hiw-box {
    box-shadow: none;
}

.hiw-box-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hiw-box-step {
    border-radius: 16px;
    padding: 10px 15.5px;
    background-color: var(--lighter-green);
    font-weight: 700;
    color: var(--dark-green);
}

.hiw-box-step:before {
    content: 'STEP ';
}

.hiw-box h3 {
    font-size: 24px;
    color: var(--dark-green);
    font-weight: 600;
    margin-bottom: 20px;
}

.hiw-box p {
    color: var(--gray);
    margin: 0;
}

.hiw-box a {
    color: var(--dark-green);
    font-weight: 600;
}

/* WHY TRUST US */

.testimonials {
    background-color: var(--dark-green);
}

.trust-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.trust-img {
    width: 50%;
}

.trust-img img {
    border-radius: 16px;
    box-shadow: var(--box-shadow);
}

.trust-text {
    width: 45%;
}

.trust-text h2 {
    color: var(--white);
    margin-top: 0;
}

.trust-text p {
    color: var(--white);
    font-size: 18px;
}

.trust-text .rating {
    margin-top: 30px;
}

.trust-text .rating p {
    font-weight: 600;
    font-size: 24px;
}

.trust-text .rating .stars-container {
    display: flex;
    gap: 5px;
}

.testimonials-container {
    margin-top: 50px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.testimonials-container a {
    display: block;
    width: 33%;
}

.testimonial {
    width: 100%;
    background-color: var(--white-tran);
    padding: 30px;
    border-radius: 16px;
    color: var(--white);
}

.testimonial svg {
    width: 17.5px;
}

.testimonial-title {
    font-weight: 600;
    font-size: 22px;
    margin: 15px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-text {
    display: -webkit-box; 
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* FAQ */

.faq {
    background-color: var(--brown);
    background-image: url(../img/trust.png);
    background-size: auto 100%;
    background-position: 50%;
    background-repeat: no-repeat;
}

.faq .section-heading {
    width: 600px;
    max-width: 100%;
}

.faq .section-heading .subtitle {
    width: 300px;
    max-width: 100%;
}

.faq-container {
    display: flex;
    gap: 20px;
}

.faq-side {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-side .question {
    padding: 20px;
    background-color: var(--white);
    border-radius: 16px;
    cursor: pointer;
}

.faq-side .question .q {
    position: relative;
    font-weight: 600;
    color: var(--dark-green);
    padding-right: 34px;
}

.faq-side .question .q:after {
    content: '';
    position: absolute;
    top: calc(50% - 12px);
    right: 0;
    width: 24px;
    height: 24px;
    background-image: url(../img/arrow-down.svg);
    transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.faq-side .question.active .q:after {
    transform: rotate(180deg);
}

.faq-side .question .a {
    display: none;
    font-weight: 500;
    color: var(--gray);
    margin-top: 20px;
    line-height: 1.75;
}

/* BLOG */

.blog .section-heading .subtitle {
    width: 350px;
    max-width: 100%;
}

.blog-container {
    display: flex;
    gap: 30px;
}

.post {
    position: relative;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.post-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: 50%;
    border-radius: 16px;
}

.post-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.post-date {
    color: var(--gray);
    font-size: 14px;
}

.post h3 {
    color: var(--dark-green);
    margin-bottom: 0;
    font-size: 1.5em;
    line-height: 1.5;
    display: -webkit-box; 
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post p {
    color: var(--gray);
    display: -webkit-box; 
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post:after {
    background: var(--dark-green);
    content: "";
    height: 140%;
    left: -60%;
    opacity: .2;
    position: absolute;
    top: -20%;
    transform: rotate(35deg);
    transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
    width: 50px;
    z-index: 1;
}

.post:hover {
    background-color: var(--dark-green);
}

.post:hover:after {
    left: 150%;
    transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

.post:hover h3 {
    color: var(--light-green);
}

.post:hover .post-date,
.post:hover p {
    color: var(--white);
}

.blog-more {
    margin-top: 25px;
    text-align: center;
}

/* FOOTER */

footer {
    padding: 25px 0;
    background-color: var(--dark-green);
    color: var(--white);
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-upper,
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer .logo {
    font-size: 30px;
    font-weight: bold;
    font-style: italic;
}

footer .social ul {
    display: flex;
    align-items: center;
    gap: 10px;
}

footer .social ul li a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF12;
    border-radius: 16px;
    transition: all 0.2s ease-in-out;
}

footer .social ul li a:hover {
    background-color: var(--light-green);
    transform: translateY(-5px);
}

footer .footer-text {
    background-color: #FFFFFF12;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

footer .footer-text p {
    margin: 0 auto;
    width: 670px;
    max-width: 100%;
    margin-bottom: 0;
}

footer .footer-bottom ul {
    display: flex;
    align-items: center;
    gap: 15px;
}

footer .footer-bottom ul li a {
    color: var(--white);
    transition: all 0.2s ease-in-out;
}

footer .footer-bottom ul li a:hover {
    color: var(--light-green);
}

footer .footer-bottom p {
    margin-bottom: 0;
    line-height: 1;
}

/* MEDIA */

@media (max-width: 1300px) {
    .mobile {
        display: block;
        line-height: 0;
    }
    nav .logo,
    .mobile.menu {
        z-index: 999;
    }
    nav ul {
        display: none;
        position: absolute;
        top: 0;
        left: -30px;
        width: 100vw;
        height: 100vh;
        background-color: var(--white);
        padding-top: 95px;
        padding-bottom: 0;
        flex-direction: column;
    }
    nav .btn.brown,
    nav ul li:last-child {
        margin-left: 0;
    }
    nav ul li:nth-child(5) {
        position: absolute;
        bottom: 100px;
    }
    nav ul li:last-child {
        position: absolute;
        bottom: 25px;
    }
    nav .btn,
    nav ul li {
        width: 100%;
    }
    nav ul li {
        text-align: center;
        line-height: 0;
    }
    nav ul li a {
        line-height: 1.75;
    }
    nav .btn {
        width: calc(100% - 60px);
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }
    nav {
        width: calc(100% - 60px);
    }
    .container {
        width: 100%;
        padding-left: 30px;
        padding-right: 30px;
    }
    header {
        margin: 0;
        height: auto;
        min-height: 750px;
        border-radius: 0;
        background-color: var(--dark-green);
        background-image: linear-gradient(var(--dark-green), rgba(0, 71, 60, 0.85)), url(../img/background-lap.png);
        background-size: cover;
    }
    header .container {
        height: 100%;
        justify-content: center;
        text-align: center;
        min-height: 750px;
    }
    header p {
        margin-left: auto;
        margin-right: auto;
    }
    header .trustpilot a {
        justify-content: center;
    }
}

@media (max-width: 991px) {
    p {
        margin-bottom: 5px;
    }
    .services-container {
        grid-template-columns: 1fr;
    }
    .hiw-container,
    .trust-container,
    .faq-container,
    .blog-container,
    .testimonials-container {
        flex-direction: column;
    }
    .trust-img,
    .trust-text,
    .testimonials-container a,
    .faq-side {
        width: 100%;
    }
}

@media (max-width: 786px) {
    header {
        background-position: 75%;
    }
    section {
        padding: 50px 0;
    }
    header h1 {
        font-size: 50px;
        line-height: 60px;
    }
    .section-heading h2,
    .testimonials h2 {
        font-size: 45px;
        line-height: 50px;
    }
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 15px;
    }
    footer .footer-bottom p {
        text-align: center;
        line-height: 1.5;
    }
}