
*, ::after,::before {
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css?family=Karla:400|Spectral:400');

html {
    font-size: 100%; /*16px*/
    scroll-behavior: smooth;
} 

/*fonts*/
:root {
    /* dark shades of primary color*/
    --clr-primary-100: hsl(105, 86%, 17%);
    --clr-primary-200: hsl(105, 77%, 27%);
    --clr-primary-300: hsl(105, 72%, 37%);
    --clr-primary-400: hsl(105, 63%, 48%);
  /* primary/main color */
    --clr-primary-500: hsl(105, 78%, 60%);
  /* lighter shades of primary color */
    --clr-primary-600: hsl(105, 89%, 70%);
    --clr-primary-700: hsl(105, 90%, 76%);
    --clr-primary-800: hsl(105, 86%, 81%);
    --clr-primary-900: hsl(105, 90%, 88%);
    --clr-primary-10: hsl(205, 100%, 96%);
    /* grey */
    --grey-50: #f8fafc;
    --grey-100: #f1f5f9;
    --grey-200: #e2e8f0;
    --grey-300: #cbd5e1;
    --grey-400: #94a3b8;
    --grey-500: #64748b;
    --grey-600: #475569;
    --grey-700: #334155;
    --grey-800: #1e293b;
    --grey-900: #0f172a;
    /*rest of colors*/
    --black: #222;
    --white: #fff;
    --clr-red-dark: hsl(360, 67%, 44%);
    --clr-red-light: hsl(360, 71%, 66%);
    --clr-green-dark: hsl(125, 67%, 44%);
    --clr-green-light: hsl(125, 71%, 66%);
    --clr-secondary: hsla(99, 63%, 54%);
    /*font*/
    --headingFont: Georgia, 'Times New Roman', Times, serif;
    --bodyFont: cursive;
    --smallText: 0.7em;
    /*rest of the vars*/
    --backgroundColor: var(--grey-50);
    --textColor: var(--grey-900);
    --borderRadius: 0.25rem;
    --letter-spacing: 1px;
    --transition: 0.3s ease-in-out all;
    --max-width: 1120px; /*optional 1170*/
    --fixed-width: 600px;
    /*box shadow*/
    --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1),  0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    background: var(--backgroundColor);
    font-family: var(--bodyFont);
    font-weight: 400;
    line-height: 1.75;
    color: var(--textColor);
}

p {
    margin-bottom: 1.5rem;
    max-width: 40em;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    margin-bottom: 1.38rem;
    font-family: var(--headingFont);
    font-weight: 400;
    line-height: 1.3;
    text-transform: capitalize;
}

h1 {
    margin-top: 0;
    font-size: 3.052rem;
}

h2 {
    font-size: 2.441rem;
}

h3 {
    font-size: 1.953rem;
}

h4 {
    font-size: 1.563rem;
}

h5 {
    font-size: 1.25rem;
}

small, .text-small {
    font-size: var(--smallText);
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
    padding: 0;
}


/*
=================
container
=================
*/
.container {
    width: 90vw;
    max-width: var(--max-width);
    /*border: 2px solid var(--primary-500);*/
    /*border-radius: var(--borderRadius);*/
}

.photo {
    width: 100%;
    display: block;
    object-fit: cover;
}

/*
=========
button
=========
*/
.btn {
    cursor: pointer;
    color: var(--white);
    background: var(--primary-500);
    border-radius: var(--borderRadius);
    border:2px solid var(--white);
    letter-spacing: var(--letter-spacing);
    padding: 0.375rem 0.75rem;
    box-shadow: var(--shadow-1);
    transition: var(--transition);
    text-transform: capitalize;
    display: inline-block;
    
}
.btn:hover {
    background: var(--clr-primary-500);
    box-shadow: var(--shadow-3);
    border: transparent;
}

.title {
    text-align: center;
}
.title-underline {
    background: var(--primary-500);
    width: 7rem;
    height: 0.25rem;
    margin: 0 auto;
}
/* section */
.section {
    padding-bottom: 5rem;
}

.section-center {
    width: 90vw;
    margin: 0 auto;
    max-width: 1170px;
}
@media screen and (min-width: 992px) {
    .section-center {
    width: 95vw;
    }
}
main {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

/*
================
Scroll
================
*/
/* navbar */
nav {
    background: var(--white);
    padding: 1rem 1.5rem;
}
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-toggle {
    font-size: 1.5rem;
    color: var(--clr-grey-1);
    background: transparent;
    border-color: transparent;
    transition: var(--transition);
    cursor: pointer;
}
.nav-toggle:hover {
    color: var(--clr-secondary);
}
.logo {
    width: 65px;
    height: 70px;
    box-shadow: var(--shadow-3);
}
/* fixed nav */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-3);
}
.fixed-nav .links a {
    color: var(--grey-500);
}
.fixed-nav .links a:hover {
    color: var(--clr-primary-500);
}
/* .fixed-nav .links-container {
    height: auto !important;
} */
.links-container {
    height: 0;
    overflow: hidden;
    transition: var(--transition);
}
.show-links {
    height: 219.13px;
}
.links a {
    background: var(--white);
    color: var(--grey-500);
    font-size: 1.1rem;
    text-transform: capitalize;
    letter-spacing: var(--spacing);
    display: block;
    transition: var(--transition);
    font-weight: bold;
    padding: 0.75rem 0;
}
.links a:hover {
    color: var(--clr-primary-500);
    background: var(--clr-primary-900);
    padding-left: 1.2rem;
}
@media screen and (min-width: 800px) {
    nav {
        background: transparent;
    }
    .nav-center {
        width: 90vw;
        max-width: 1170px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .nav-header {
        padding: 0;
    }
    .nav-toggle {
    display: none;
    }
    .links-container {
        height: auto !important;
    }
    .links {
        display: flex;
    }
    .links a {
        background: transparent;
        color: var(--white);
        font-size: 1.1rem;
        text-transform: capitalize;
        letter-spacing: var(--spacing);
        display: block;
        transition: var(--transition);
        margin: 0 1rem;
        font-weight: bold;
        padding: 0;
    }
    .links a:hover {
        color: var(--clr-primary-500);
        background: transparent;
        padding: 0;
    }
}
/* banner */
header {
    min-height: 100vh;
    background: linear-gradient(rgba(63, 212, 125, 0.5), rgba(0, 0, 0, 0.7)),
    url(./nature.jpg) center/cover no-repeat;
}
.banner {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
}
.container h1 {
    color: var(--white);
    text-transform: uppercase;
}
.container p {
    color: var(--white);
    max-width: 25rem;
    margin: 0 auto;
    margin-bottom: 1.25rem;
}
@media screen and (min-width: 768px) {
    .container p {
    max-width: 40rem;
    }
}
/* sections and title */
.title h2 {
    text-align: center;
    text-transform: uppercase;
}
.title span {
    color: var(--clr-green-light);
}
#about,
#services,
#tours {
    height: 80vh;
}
#services {
    background: var(--white);
}
footer {
    background: var(--grey-500);
    padding: 5rem 1rem;
    display: flex;
}

footer p {
    color: var(--clr-primary-900);
    text-align: center;
    text-transform: capitalize;
    letter-spacing: var(--spacing);
}

.top-link {
    font-size: 1.25rem;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--clr-secondary);
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: var(--borderRadius);
    color: var(--white);
    animation: bounce 2s ease-in-out infinite;
    visibility: hidden;
    z-index: -100;
}
.show-link {
    visibility: visible;
    z-index: 100;
}

@keyframes bounce {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.8);
    }
}