/*
GLOSSARY

The homepage is organized by section, and the secondary pages are given a single code section each
    Mobile
        || RESET
        || VARIABLES
        || BASE STYLES
        || ALL PAGES
        || NAVIGATION
        || FOOTER
        || HERO
        || SERVICES
        || TEAM
        || PAGE: TEAM
        || PAGE: FAQ
        || PAGE: CONTACT

    Medium Devices
        ||| ALL PAGES
        ||| NAVIGATION
        ||| FOOTER
        ||| HERO
        ||| SERVICES
        ||| TEAM
        ||| PAGE: TEAM

    Large Devices
        |||| BASE STYLES
        |||| HERO

CSS Methodology: BEM
Hopefully my implimentation is ok

Prefixed by https://autoprefixer.github.io
*/


/* 
    FONTS
        Poppins
            medium
            bold
            black
        Atkins Hyperlegible
            regular
            italic
            bold 
*/
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=Poppins:wght@500;700;900&display=swap');


/* || RESET */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    font: inherit;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

ul,
li {
    margin: 0;
    padding: 0;
    text-indent: 0;
    list-style-type: none;
}


/* || VARIABLES */
:root {
    --main-bg-clr: #EDF2F4;
    --main-accent-clr: #6049EA;
    --secondary-accent-clr: #F47362;
    --main-text-clr: #2E4759;
    --border-radius: 20px;
}


/* || BASE STYLES */
body {
    font-family: 'Atkinson Hyperlegible', Arial, Helvetica, sans-serif;
    color: var(--main-text-clr);
    font-size: 1.1rem;
    background-color: var(--main-bg-clr);
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    color: var(--main-accent-clr);
    font-size: clamp(1rem, 20vw, 7rem);
    font-weight: 900;
    line-height: 1;
    max-width: 900px;
    margin-bottom: 20px;
}

h2 {
    color: var(--main-accent-clr);
    font-size: 2.5rem;
    line-height: 1;
    text-align: center;
    margin-bottom: 60px;
}

h3 {
    font-size: 1.66rem;
    margin-bottom: 20px;
    text-transform: capitalize;
}

/* Button Code adapted from Ahsley Saleem-West https://codepen.io/ash_s_west/pen/GRZbvym */
.button {
    display: block;
    width: 100%;
    position: relative;
    border-width: 0;
    background-color: var(--main-accent-clr);
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    color: var(--main-bg-clr);
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    text-decoration: none;
    -o-transition-duration: 0.4s;
    transition-duration: 0.4s;
    -webkit-transition-duration: 0.4s;
}

.button:hover {
    -webkit-transition-duration: 0.1s;
    -o-transition-duration: 0.1s;
    transition-duration: 0.1s;
    background-color: #4c33d6;
}

.button:after {
    content: "";
    display: block;
    position: absolute;
    border-radius: var(--border-radius);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-box-shadow: 0 0 10px 40px white;
    box-shadow: 0 0 10px 40px white;
}

.button:active:after {
    -webkit-box-shadow: 0 0 0 0 white;
    box-shadow: 0 0 0 0 white;
    position: absolute;
    border-radius: var(--border-radius);
    left: 0;
    top: 0;
    opacity: 1;
    -webkit-transition: 0s;
    -o-transition: 0s;
    transition: 0s;
}

.button:active {
    top: 1px;
}

p {
    max-width: 600px;
    margin-bottom: 40px;

}

.container {
    margin: 0 auto;
    padding: 0 15px;
}


/* || ALL PAGES */
.dot-decoration {
    position: absolute;
    width: 110px;
    height: 110px;
    top: -25px;
    background-image: url("svg/dots-blue.svg");
}

.member-profile__portrait {
    /* Box shadow from https://getcssscan.com/css-box-shadow-examples */
    -webkit-box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    -webkit-box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

a {
    color: var(--main-accent-clr);
}

/* Used for the form and FAQ page */
.interact-container {
    position: relative;
    top: -25vh;
    padding: 20px;
    border-radius: var(--border-radius);
    overflow: auto;
    width: 100%;

    /* From https://css.glass */
    /* For whatever reason, the blur is unpredictable on firefox. I've upped the opacity of the background to keep reasonable contrast even if the blur decides not to work */
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    -webkit-box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(9.4px);
    -webkit-backdrop-filter: blur(9.4px);
}


/* || NAVIGATION */
header {
    position: absolute;
    /* font-size: 1.2em; DESKTOP*/
    left: 0;
    right: 0;
    background-color: var(--main-bg-clr);
    z-index: 10;
}

.header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.header__logo {
    width: 100px;
    margin: 25px 0;
}

.nav {
    font-size: 2rem;
}

.nav__hamburger-menu {
    text-decoration: none;
    color: inherit;
}

/* Querying mobile devices for the nav results in less code for for large displays */
@media only screen and (max-width: 768px) {
    .nav__list {
        display: none;
    }

    .nav__list--show-overlay {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        height: 90vh;
        padding: 15px;
        background-color: var(--main-bg-clr);
    }

    header.show-overlay {
        position: fixed;
    }
}

.nav__item {
    margin-bottom: 30px;
    -webkit-transition: color 0.2s;
    -o-transition: color 0.2s;
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--secondary-accent-clr);
}

.nav__link--disabled:hover {
    text-decoration: line-through;
    color: #2e475977;
}

.nav__link {
    text-decoration: none;
    color: inherit;
}

.nav__link--current {
    font-weight: 700;
}


/* || FOOTER */
footer {
    background-image: url(images/mountains.png);
    background-size: auto 2000px;
}

.footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-top: 100px;
    padding-bottom: 50px;
}

.footer__logo-and-disclaimer {
    margin-bottom: 50px;
}

.footer__logo {
    width: 200px;
    margin-bottom: 40px;
    margin-top: 5px;
}

.footer__map {
    margin-bottom: 50px;
}

.footer__contact-item {
    margin-bottom: 20px;
}

.footer__contact-heading {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.footer__contact-details {
    font-size: 1.1rem;
}

.footer__map {
    border-radius: var(--border-radius);
    overflow: hidden;
}


/* || HERO */
.hero-statement__heading {
    color: var(--secondary-accent-clr) !important;
    font-size: clamp(1rem, 16vw, 6rem);
}

.hero-statement {
    z-index: -1;
    position: relative;
    background: no-repeat top url(images/mountains.png);
    background-size: auto 1000px;
    height: 100vh;
    padding: 20vh 0;
}

.hero-statement__stripes {
    position: absolute;
    width: 200px;
    height: 200px;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    top: 100%;
    background-image: url("svg/stripes-peach.svg");
}

.hero-detail {
    padding: 25vh 0 25vh 0;
}

.hero-detail__paragraph {
    font-size: 1.2rem;
}

/* || SERVICES */
.services {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.services__decoration-wrap {
    position: relative;
    margin-bottom: 60px;
}

.dot-decoration--services-sect {
    position: absolute;
    width: 110px;
    top: -25px;
}

.services__carabiner {
    margin-left: 23px;
    width: 160px;
}

.services__list {
    /* text-align: center; */
    margin: 10vh 0;
}

.services__item {
    margin-bottom: 40px;
}

/* || TEAM */
.team-banner {
    background-image: url("images/mountain-spread.png");
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    height: 30vh;
}

img.member-profile__portrait--team {
    width: 80vw;
    height: 50vw;
    max-width: 800px;
    -o-object-position: 50% 30%;
    object-position: 50% 30%;
}


/* || PAGE: TEAM */
.member-profile-container.member-profile-container--team {
    top: -50px;
}

.member-profile-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    top: -50px;
}

.member-profile {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 200px;
}

.member-profile__image {
    position: relative;
    margin-bottom: 50px;
}

.dot-decoration--member-profile {
    width: 140px;
    height: 140px;
    top: -100px;
    left: 50%;
    -webkit-transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);
}

.member-profile__portrait {
    width: 70vw;
    height: 90vw;
    max-width: 300px;
    max-height: 400px;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.member-profile__sub-heading {
    text-align: center;
    margin-bottom: 5px;
}

/* || PAGE: FAQ */
/* Accordion based on code from W3 Schools https://www.w3schools.com/howto/howto_js_accordion.asp */
.accordion {
    background-color: white;
    background-color: var(--main-bg-clr);
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--main-text-clr);
    cursor: pointer;
    padding: 30px 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    -webkit-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.accordion-paragraph {
    font-size: 1.2rem;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active,
.accordion:hover {
    background-color: var(--main-bg-clr);
}

/* Style the accordion panel. Note: hidden by default */
.panel {
    padding: 0 18px;
    background-color: transparent;
    max-height: 0;
    overflow: hidden;
    -webkit-transition: max-height 0.2s ease-out;
    -o-transition: max-height 0.2s ease-out;
    transition: max-height 0.2s ease-out;
}

.accordion:after {
    content: '\02795';
    /* Unicode "plus" sign (+) */
    font-size: 13px;
    color: black;
    float: right;
    margin-left: 5px;
}

.active:after {
    content: "\2796";
    /* Unicode "minus" sign (-) */
}

.panel p {
    padding-top: 20px;
    padding-bottom: 30px;
}


/* || PAGE: CONTACT */
label {
    display: block;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    color: var(--main-text-clr);
    width: 100%;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-transform: capitalize;
    font-weight: 700;
}


input,
select,
textarea {
    font-size: 1.2rem;
    margin-bottom: 40px;
    width: 100%;
    border: 2px solid var(--main-text-clr);
    border-radius: calc(var(--border-radius) / 2);
    padding: 5px;
    padding: 0.8rem 1rem;
    background-color: transparent;
}

input:focus,
select:focus,
textarea:focus {
    border: 2px solid var(--main-accent-clr);
    /* background-color: var(--main-bg-clr); */
}

.form-button-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}


/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

    /* ||| ALL PAGES */
    .interact-container {
        padding: 5vw 5vw;
    }

    .button {
        width: auto;
    }

    .dot-decoration {
        width: 150px;
        height: 150px;
    }


    /* ||| NAVIGATION */
    header {
        background-color: transparent;
    }

    .nav {
        font-size: 1.35rem;
    }

    .nav__hamburger-menu {
        display: none;
    }

    .header__logo {
        width: 150px;
    }

    .nav__list {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        margin-top: 30px;
    }

    .nav__item {
        margin-right: 40px;
    }


    /* ||| FOOTER */
    .footer {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .footer__logo-and-disclaimer {
        width: 30%;
    }


    /* ||| HERO */
    .hero-statement__stripes {
        position: absolute;
        width: 200px;
        height: 200px;
        left: auto;
        right: 100px;
        top: 100%;
        background-image: url("svg/stripes-peach.svg");
    }

    .hero-statement__heading {
        margin-top: 5vh;
    }


    /* ||| SERVICES */
    .services__list {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        /* text-align: center; */
        margin: 10vh 0;
    }

    .services {
        margin-bottom: 50px;
        margin-bottom: 200px;
    }

    .services__item--with-margin {
        margin: 0 5vw;
    }

    .services__carabiner {
        margin-left: 23px;
        width: 250px;
    }

    .services__decoration-wrap {
        margin-bottom: 100px;
    }


    /* ||| TEAM */
    .dot-decoration--member-profile {
        -webkit-transform: translate(-200px, 20px);
        -ms-transform: translate(-200px, 20px);
        transform: translate(-200px, 20px);
    }

    .team-banner {
        height: 40vh;
    }

    .member-profile__portrait--team {
        width: 1000px;
        height: 2px;
    }

    .member-profile-container.member-profile-container--team {
        top: -100px;
    }

    /* ||| PAGE: TEAM */
    .member-profile-container {
        top: -200px;
    }
}


/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

    /* |||| BASE STYLES */
    .container {
        max-width: 1200px;
    }


    /* |||| HERO */
    .hero-statement__statement {
        font-size: 6em;
    }

    .hero-statement {
        background-size: cover;
    }
}