:root {
    --font-weight-light: 300;
    --font-weight-thin: 100;
    --font-weight-medium: 500;
    --color-green-2: #27AE60;
    --color-green-3: #b4dbc5;
    --color-green-link: #83975A;
}

header h1{
    margin-top: 0;
    color: #fff;
    width: 90%;
    margin: auto;
    padding-top: 30vh;
    padding-bottom: 9vh;
}

body {
    margin: 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.875rem, 3.4vw, 1rem);
    line-height: 1.5rem;
    color: #6A6A6A;
    letter-spacing: -0.015em;
}

main{
    width: 90%;
    margin: auto;
}

nav{
    background-color: #fff;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

img {
    max-width: 90%;
    height: auto;
}

h1,
h2, 
h3 {
    color: #000;
}

h2,
h3 {
    font-weight: var(--font-weight-light);
}

h1 {
    font-size: clamp(2rem, 7.786vw, 3.75rem);
    line-height: clamp(2.4375rem,9.5vw,3.5rem);
    font-weight: bold;
}

h2 {
    font-size: clamp(1.25rem, 4.87vw, 2.5rem);
    line-height: 4.5rem;
}

h3 {
    font-size: clamp(1rem, 3.9vw, 1.5rem);
    line-height: 2.25rem;
    margin: 2rem 0 0;
}

h4.heading-thin{
    font-weight: var(--font-weight-light);
    font-size: clamp(1rem, 3.9vw, 1.5rem);
}

p {
    font-family: 'Open Sans', sans-serif;
}

button{
    font-family: 'Montserrat', sans-serif;
}

button:focus{
    outline: none;
}

svg rect{
    fill: #fff;
    mask: url(#mask);
}

footer{
    width: 90%;
    margin: auto;
}

footer h4{
    color: #000;
}

footer hr{
    width: 100%;
}

/* Classes */
.no-scroll{
    margin:0;
    height: 100%;
    overflow: hidden;
}

.disappear{
    display: none;
}

nav .logo {
    width: clamp(4.875rem, 19vw, 5.8325rem);
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: #fff;
    text-align: left;
    z-index: 1;
    transition: transform 0.3s;
    transform: translateX(-100%);
}

.nav-menu-item{
    margin: auto;
}

.nav-menu-open .nav-menu{
    transform: translateX(0%);
    box-shadow: 30px 7px 50px 0px rgba(0,0,0,0.25);
    -webkit-box-shadow: 30px 7px 50px 0px rgba(7, 3, 3, 0.25);
    -moz-box-shadow: 30px 7px 50px 0px rgba(0,0,0,0.25);
}

.nav-menu-open .hamburger{
    transform: rotate(45deg);
}

.nav-menu-open .hamburger::before{
    opacity: 0;
}

.nav-menu-open .hamburger::after{
    transform: rotate(90deg) translate(10px);
}

.nav-menu-item a{
    position: relative;
    text-decoration: none;
    color: var(--color-green-link);
    font-size: 1.65rem;
    font-weight: var(--font-weight-medium);
    transition: color 0.3s;
}

.nav-menu-item a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: #85BA2B;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out 0s;
}

.nav-menu-item a:hover{
    color: #85BA2B;
}

.nav-menu-item a:hover::before{
    color: #85BA2B;
    visibility: visible;
    transform: scaleX(1);
}

.menu-toggle{
    background-color: transparent;
    border: none;
    height: 3rem;
    z-index: 2;
}

.hamburger{
    display: block;
    position: relative;
}

.hamburger::before{
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
}

.hamburger::after{
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
}

.hamburger, .hamburger::after,.hamburger::before{
    background-color: var(--color-green-link);
    height: 0.1375rem;
    width: 1.375rem;
    transition: transform 0.3s ease-in-out;
}

.consult-btn{
    font-size: clamp(1rem,1.318vw,1.125rem);
    font-weight: bold;
    width: clamp(6.5rem,13vw,8.125rem);
    height: clamp(2rem,4vw,2.5rem);
    background-color: var(--color-green-3);
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    transition: background-color 0.3s;
    order: 3;
}

.consult-btn:hover{
    background-color: var(--color-green-2);
}

.home-hero-section{
    height: 90vh;
    background-color: #333;
    background-repeat: no-repeat;
    background-image: url("../images/Homepage/Hero image.jpg");
    background-size: cover;
    background-position: center center;
}

.services-hero-section{
    height: 90vh;
    background-color: #333;
    background-repeat: no-repeat;
    background-image: url("../images/What we do page/Hero image.jpg");
    background-size: cover;
    background-position: center 25%;
}

.about-us-hero-section{
    height: 90vh;
    background-color: #333;
    background-repeat: no-repeat;
    background-image: url("../images/Who we are page/Hero image.jpg");
    background-size: cover;
    background-position: center 25%;
}

.packages-hero-section{
    height: clamp(700px, 110vh, 900px);
    background-color: #333;
    background-repeat: no-repeat;
    background-image: url("../images/Packages page/Hero image.jpg");
    background-size: cover;
    background-position: center 25%;
}

.consult-btn-outline{
    height: 2.9rem;
    width: 10.1875rem;
    background-color: transparent;
    border: 0.125rem solid #fff;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    padding: 0;
}

.intro{
    margin-bottom: 6rem;
}

.sentence-link {
    position: relative;
    top: 3rem;
    margin-bottom: 5rem;
    text-decoration: none;
    color: #5C821D;
    font-weight: var(--font-weight-medium);
    transition: color 0.3s;
}

.sentence-link:hover {
    color: #85BA2B;
}

.sentence-link::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #85BA2B;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out 0s;
}

.sentence-link:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

.packages-section hr, .services-section hr{
    border: none;
    background-color: #EDB405;
    width: 15%;
    height: 3px;
    margin-top: -25px;
    margin-bottom: 3rem;
}

.cards-2,
.cards-3,
.grid-4 {
    display: inline-block;
}

.card-lg {
    width: clamp(16.375rem, 83.45vw, 33.7rem);
    margin: 8rem 0;
}

.card-lg:first-child {
    margin-top: 2rem;
}

.grid-4 .card {
    margin: 0 0 6rem;
}

.card {
    width: clamp(14.813rem, 46vw, 21rem);
    margin: 6rem 0 2rem;
}

.card-long{
    text-align: left;
    padding: 1.5rem 0;
    margin: auto;
}

.card-long h2{
    position: relative;
}

.card-long h2::before{
    font-weight: var(--font-weight-thin);
    font-size: clamp(0.8rem, 3.12vw, 1.2rem);
    position: absolute;
    top: -35%;
    left: 0;
}

.learn-more-btn, .login-btn {
    font-size: clamp(0.875rem, 3.4vw, 1rem);
    font-weight: var(--font-weight-medium);
    width: clamp(6.875rem,26.764vw,8.125rem);
    height: clamp(2.116rem,8.24vw,2.5rem);
    color: var(--color-green-2);
    box-shadow: none;
    background: transparent;
    border-radius: 0.375rem;
    border-style: solid;
    border: 1px solid var(--color-green-2);
    margin: 1.8rem 0 0;
    transition: background-color 0.3s, color 0.3s;
}

.learn-more-btn:hover, .login-btn:hover {
    background-color: var(--color-green-2);
    color: #fff;
}

.services-section img{
    max-width: 100%;
}

.services-section .card:nth-child(3) .circular--portrait img {
    margin-top: -60px;
}

.circular--landscape,
.circular--portrait {
    display: inline-block;
}

.circular--landscape {
    position: relative;
    width: clamp(6.25rem, 25vw, 8.25rem);
    height: clamp(6.25rem, 25vw, 8.25rem);
    overflow: hidden;
    border-radius: 50%;
}

.circular--portrait {
    position: relative;
    width: clamp(6.25rem, 25vw, 8.25rem);
    height: clamp(6.25rem, 25vw, 8.25rem);
    overflow: hidden;
    border-radius: 50%;
}

.circular--landscape>img {
    max-width: none;
    width: 150%;
}

.cta{
    box-sizing: content-box;
    height: 100vh;
    background-color: #333;
    background-repeat: no-repeat;
    background-image: url("../images/Homepage/CTA image.jpg");
    background-size: cover;
    background-position: center center;
}

.cta-title{
    color: #fff;
    width: 80%;
    margin: auto;
    padding-top: 30vh;
    margin-bottom: 3rem;
}

.cta-btn{
    background-color: var(--color-green-3);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    border-radius: 0.375rem;
    width:clamp(19rem,90vw,26.625rem);
    height: clamp(4rem,20vw,4.5rem);
    transition: background-color 0.3s;
}

.cta-btn:hover{
    background-color: var(--color-green-2);
}

.contact-and-links{
    display: flex;
    justify-content: space-evenly;
    margin: 3rem 0;
    text-align: left;
}

.footer-contact-details{
    text-align: left;
    width: 280px;
    margin-bottom: 8%;
}

.footer-contact-details div{
    margin-bottom: 1rem;
}

.footer-contact-details a{
    text-decoration: none;
    color: #202020;
    margin-left: 2.5%;
}

.footer-contact-details a:hover{
    text-decoration: underline;
    color: #27AE60;
}


.nav-links{
    padding-top: 1.8rem;
}

.nav-links a{
    display: block;
    text-decoration: none;
    color: #6A6A6A;
    transition: color 0.3s;
}

.nav-links a:hover{
    color: #85BA2B;
}

.mailing-list-signup{
    position: relative;
    margin: 0 auto 5rem;
    width: clamp(19rem,90vw,23.41125rem);

}

.mailing-list-signup input[type="email"]{
    position: absolute;
    left: 0;
    width: clamp(13.44rem,63.67vw,16.5625rem);
    height: 2.53125rem;
    border-radius: 0;
    border: 1px solid #828282;
    transition: border 0.3s;
    border-right: none;
}

.mailing-list-signup input[type="email"]:focus{
    outline: none !important;
    border: 1px solid var(--color-green-2);
    border-right: none;
}

.mailing-list-signup button{
    position: absolute;
    height: 2.78rem;
    width: clamp(5.30rem,25vw,6.536875rem);
    color: #fff;
    background-color: var(--color-green-3);
    font-weight: bold;
    border: 1px solid #828282;
    border-left: none;
    transition: background-color 0.3s;
    right: 0;
}

.mailing-list-signup button:hover{
    background-color: var(--color-green-2);
}

.mailing-list-signup label{
    position: absolute;
    left: 0;
}

.footer-cta-btns button{
    display: block;
    width: clamp(19rem,90vw,23.4375rem);
    height: clamp(2.8rem,20vw,3.16875rem);
    margin: 1rem auto;
}

footer .logo {
    width: clamp(11.125rem, 43vw, 15rem);
}

.social-media{
    margin: 1rem 0;
}

a.fab{
    color: #6A6A6A;
    text-decoration: none;
}

.fab{
    font-size: 2rem;
    transition: color 0.3s;
    margin: 0 3.9vw;
}

.fab:hover{
    color: var(--color-green-2);
}

@media only screen and (max-width: 374px){
    nav{
        margin-right: 21.875vw;
    }
}

@media only screen and (max-width:425px) {
    .contact-and-links{
        display: block;
    }

    .contact-and-links {
        text-align: center;
      }

      .footer-contact-details {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
      }
}


@media only screen and (min-width:375px) and (max-width: 424px){
    nav{
        margin-right: 24vw;
    }
}

@media only screen and (max-width: 500px){
    .hamburger, .hamburger::after,.hamburger::before{
        height: 0.1375rem;
        width: 1.3125rem;
    }
}

@media only screen and (min-width:425px) and (max-width: 767px){
    nav{
        margin-right: 25.88vw;
    }
}

@media only screen and (min-width: 768px){
    .consult-btn-outline{
        height: 2.9rem;
        width: 20rem;
        font-size: 1.35rem;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px){

    nav{
        margin-left: 8.5vw;
    }

    nav .logo{
        margin: 0 13.02vw ;
    }
}

@media only screen and (min-width: 1025px) and (max-width: 1330px){
    nav{
        margin-left: 4.878vw;
    }
}


@media only screen and (min-width: 1025px){

    footer{
        margin-top: 1rem;
        text-align: left;
    }

    footer .logo{
        order: -1;
    }

    nav .conult-btn{
        order: 2;
    }

    .nav-menu-item a{
     font-size: 1rem;   
    }

    .nav-menu-item a::before {
        width: 125%;    
        height: 5px;
        bottom: -105%;
        left: -12.5%;
        background-color: #85BA2B;
        visibility: hidden;
        transform: scaleX(0);
        transition: all 0.3s ease-in-out 0s;
    }

    .nav-menu-item:nth-child(3), .nav-menu-item:nth-child(4){
        order: -1;
    }

    .nav-menu-item:nth-child(5), .nav-menu-item:nth-child(6){
        order: 1;
    }

    .nav-menu-item:nth-child(7){
        order: -2;
    }

    .consult-btn{
        margin: 0 3%;
    }

    .cards-3,.cards-2{
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;
    }

    .cards-2>.card-lg{
        margin-top: 2rem;

    }

    .cards-2>.card-lg>img{
        width: 90%;
    }

    .cards-2>.card-lg>p{
        width: 90%;
        margin: 1.5rem auto 0.75rem;
    }

    .cards-3{
        margin-bottom: 5%;
    }

    .cards-3>.card>img{
        max-height: 201.6px;
    }

    .cards-3>.card>p{
        width: 90%;
        margin: 1rem auto 0.5rem;
    }

    .cards-3>.card>img{
        box-shadow: -0px -0px 100px 10px rgba(183, 219, 128, 0.80);
        -webkit-box-shadow: -0px -0px 100px 10px  rgba(183, 219, 128, 0.80);
        -moz-box-shadow: -0px -0px 100px 10px  rgba(183, 219, 128, 0.80);
    }
    
    .grid-4{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        justify-items: center;
        grid-row-gap: 2rem;
        align-content: space-evenly;
    }

    .services-section>.card:nth-child(odd){
        padding-left: 5%;
    }

    .services-section>.card:nth-child(even){
        padding-right: 5%;
    }

    .footer-cta-btns button{
        width: 11.71875rem;
    }

    .footer-items-container{
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .copyright, .social-media{
        display: inline;
    }

    .social-media{
        margin: 0 0 0 55vw ;
        text-align: right;       
    }

    .fab{
        margin: 0.5vw;
    }

    /* Styles for pages other than in the homepage */
    .card-long{
        display: grid;
        margin: 5% auto 10%;
    }

    .card-long:nth-of-type(even){
        grid-template-columns: 1.35fr 1fr;
        grid-template-areas: "image description";
        column-gap: 1rem;
    }

    .card-long:nth-of-type(even)>img{
        grid-area: image;
    }

    .card-long:nth-of-type(even)>div{
        grid-area: description;
    }

    .card-long:nth-of-type(odd){
        grid-template-columns: 1fr 1.35fr;
        grid-template-areas: "description image";
        column-gap: 5rem;
    }

    .card-long:nth-of-type(odd)>img{
        grid-area: image;
    }

    .card-long:nth-of-type(odd)>div{
        grid-area: description;
    }
}

@media only screen and (min-width:500px){
    .card-long h2::before{
        top: -40%;
    }
} 

@media only screen and (min-width:700px){
    .card-long h2::before{
        top: -45%;
    }
} 

@media only screen and (min-width:900px){
    .card-long h2::before{
        top: -55%;
    }
} 

@media only screen and (min-width:2560px){
    .consult-btn{
        margin: 0 6.5vw 0 4vw  ;
    }
}