@charset "utf-8";

*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    height: 100%;
    font-size: 18px;
    scroll-behavior: smooth;
    --color-white: #FDFDFD;
    --color-white-transparent: rgba(253, 253, 253, 0.6);
    --color-black: #0D0D0D;
    --color-shadow: rgba(13, 13, 13, 0.25);
    --color-pink: #F2D3D0;
    --color-yellow: #FEF1DD;
    --color-purple: #E6E7F4;
    --color-teal: #DCF2EC;
    --color-accent: #31BEBF;
    --color-check: rgb(30, 209, 45);
    --color-warning: rgb(187, 41, 41);
    --bg-error-message: rgb(255, 109, 109);
}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    color: var(--color-black);
    font-family: "Source Sans 3", sans-serif;
}

h1, h2, h3, h4, h5, h6, legend {
    font-family: "Raleway", sans-serif;
    text-align: center;
    padding: 0.5rem;
    text-transform: uppercase;
    font-weight: 500;
}

p {
    font: inherit;
}

a {
    color: inherit;
}

a:hover {
    opacity: 0.6;
}

img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

button {
    width: fit-content;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: none;
    text-transform: uppercase;
    background-color: var(--color-accent);
    box-shadow: 0 4px 4px 0 var(--color-shadow);
    font: inherit;
    cursor: pointer;
}

button:hover {
    background-color: var(--color-teal);
}

/* .grecaptcha-badge { 
    visibility: hidden !important;
} */

.hidden {
    display: none;
}

/**  HEADER  */
/**  NAV  */
header{
    flex: 0 0 100vh;
    width: 100%;
    position: relative;
}

header nav {
    height: 10%;
    width: 100%;
    position: fixed;
    background-color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 1;
    padding-right: 1rem;
}

header nav figure {
    height: 90%;
}

.hamburger-icon{
    display: none;
    z-index: 4;
    cursor: pointer;
    font-size: 1.5rem;
}

header nav ul {
    max-width: 80%;
    min-width: 400px;
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-transform: uppercase;
    transition: all 1.5s ease;
}

header nav ul li a{
    text-decoration: none;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    padding: 0.5rem;
    transition: .7s ease-out;
    white-space: nowrap;
}

header nav ul li:last-of-type{
    padding: 0;
    margin: 0;
    position: relative;
}

header nav ul li:last-of-type i {
    color: grey;
    position: absolute;
    bottom: 40%;
    right: 0.1rem;
    font-size: 0.8rem;
}

nav ul li select{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    font: inherit;
    font-family: inherit;
    text-transform: uppercase;
    width: 100%;
    /* height: 100%; */
    border: 1px solid grey;
    border-radius: 5px;
    padding: 0.5rem;
    margin: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
nav ul li select:hover {
    cursor: pointer;
}

/**  HERO  */
#big-hero{
    height: 85%;
    background-attachment: fixed;
    background-image: url('../img/hero-image.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.85;
    position: relative;
}

#big-hero .overlay {
    background-color: var(--color-white-transparent);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 2rem;
    text-align: center;
    width: 80%;
}

/* Quote */
#quote-section{
    height: 15%;
    background-color: var(--color-teal);
    position: relative;
}

#quote-section div {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

#quote-section div p {
    text-align: right;
}

/**  MAIN  */
main {
    flex: 1 0 auto;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

main section {
    padding: 1rem 0;
}

/**  Coaching  */
#neuroinclusive-coaching {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

/**  About  */
#about {
    display: grid;
    grid-template-columns: 25% 1fr;
    gap: 1.5rem;
    background-color: var(--color-yellow);
    padding: 2rem;
    width: 100%;
}

#about h2 {
    grid-column: span 2;
}

#about figure {
    grid-row: span 2;
    width: 100%;
    border-radius: 5px;
    align-self: start;
}

#about img {
    border-radius: 5px;
}

#about p:first-of-type {
    align-self: end;
}

#about p:last-of-type {
    align-self: start;
}

/**  Services  */
#services {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    padding: 1rem;
}

#services h2,
#services button {
    grid-column: span 12;
    margin: 0 auto;
}

#services div {
    grid-column: span 4;
    justify-self: stretch;
    display: grid;
    gap: 1rem;
    border-radius: 0.3rem;
    box-shadow: 0 4px 4px 0 var(--color-shadow);
    padding: 2rem;
    background-color: var(--color-purple);
}

#services div a {
    justify-self: end;
}

#services div:first-of-type {
    background-color: var(--color-teal);
}

#services div:last-of-type {
    background-color: var(--color-pink);
}


/**  BLOG  */
.cms{
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.cms h2 {
    grid-column: span 12;
}

.cms-wrapper{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.cms-wrapper div {
    grid-column: span 4;
    justify-self: stretch;
    display: grid;
    gap: 1rem;
    border-radius: 0.3rem;
    padding: 2rem;
    background-color: var(--color-white);
}

.cms a {
    justify-self: end;
}

.cms-no-posts {
    grid-column: span 12;
}

#blog{
    background-color: var(--color-teal);
}

#resources {
    background-color: var(--color-pink);
}


/**  FAQ  */
#faq {
    padding: 1rem;
    /* To be deleted once FAQ is available */
    display: none;
}

#faq .question {
    padding-left: 0;
    border-bottom: 1px solid grey;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#faq .question h3 {
    text-align: left;
}

#faq .content {
    text-align: justify;
    padding-top: 1rem;
    display: none;
}

#faq .active .content {
    display: block !important;
}

/**  FORM  */
form {
    background-color: var(--color-purple);
    padding: 2rem;
}
form fieldset {
    border: none;
}

form fieldset:first-of-type .correct-field .validation-state {
    color: var(--color-check);
    opacity: 1;
}

form fieldset:first-of-type .incorrect-field .validation-state {
    color: var(--color-warning);
    opacity: 1;
}

form fieldset:first-of-type .incorrect-field input{
    border: 2px solid var(--color-warning);
}

form fieldset:first-of-type .incorrect-field textarea{
    border: 2px solid var(--color-warning);
}

form fieldset ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

form fieldset:first-of-type ul li{
    position: relative;
}

label {
    display: flex;
    flex-direction: column;
}

label[for="terms"] {
    flex-direction: row;
    gap: 0.5rem;
}

#captcha-label {
    margin-top: 0.5rem;
}

#charCounter {
    text-align: right;
    color: var(--color-shadow);
    font-size: 0.9rem;
}

textarea {
    resize: none;
    width: 100%;
    height: 10rem;
}

form fieldset:first-of-type ul li input, textarea{
    width: 100%;
    border: 1px solid var(--color-purple);
    border-radius: 5px;
    padding: 0.5rem;
    font: inherit;
    transition: .3s ease all;
}

form fieldset:first-of-type ul li input:focus, textarea:focus{
    border: 1px solid var(--color-accent);
    outline: none;
    box-shadow: 3px 0px 10px var(--color-shadow);
}

form fieldset:first-of-type ul li .validation-state{
    position: absolute;
    right: 10px;
    bottom: 30%;
    font-size: 1.5rem;
    z-index: 1;
    opacity: 0;
}

#message-field,
#terms-field{
    grid-column: span 2;
}

#terms-field{
    margin-top: -0.8rem;
}

input[type="checkbox"] {
    width: 0.9rem;
    height: 0.9rem;
    color: white;
    accent-color: var(--color-accent);
}

#terms-label {
    display: flex;
    align-items: center;
}

.error-msg{
    height: 45px;
    line-height: 45px;
    background-color: var(--bg-error-message);
    padding: 0 15px;
    border-radius: 5px;
    display: none;
    grid-column: span 2;
    align-self: center;
    justify-self: center;
}

.error-msg-active{
    display: block;
}

.error-msg p{
    margin: 0;
    color: var(--color-black);
}

input[type="submit"] {
    border: 1px solid var(--color-black);
    border-radius: 10px;
    background-color: var(--color-white);
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    text-transform: uppercase;
    box-shadow: 0 4px 4px 0 var(--color-shadow);
    font-size: 0.9rem;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transform: translateZ(1);
    color: var(--color-black);
}

input[type="submit"]:hover {
    opacity: 0.5;
}

#submit{
    grid-column: span 2;
    align-self: center;
    justify-self: center;
}

/**  MODAL Cookie Consent  **/
.modal{
    position: fixed;
    z-index: 5;
    overflow: auto;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-container header{
    display: flex;
    justify-content: space-between;
}

.modal-container header i{
    font-size: 1.5rem;
    transition: transform ease 0.3s;
}

.modal-container header i:hover{
    cursor: pointer;
    transform: scale(1.2);
}

.modal-container main{
    padding: 0.8rem 1rem;
    text-align: justify;
}

.modal-container footer{
    background-color: transparent;
    padding: 0;
    display: flex;
    justify-content: space-evenly;
}

.modal-container footer button{
    padding: 0.5rem 1rem;
}

.modal-container footer #decline{
    background-color: var(--color-white);
    border: 1px solid var(--color-shadow);
}

.modal-container{
    position: relative;
    width: 30vw;
    min-width: 300px;
    margin: auto;
    background-color: var(--color-white);
    padding: 1rem;
    animation: modal;
    animation-duration: 3s;
    border-radius: 10px;
}

.hidden-modal{
    display: none;
}

@keyframes modal{
    from{
        top: -500px;
        opacity: 0;
    }
    to{
        top: 0;
        opacity: 1;
    }
}

/**  FOOTER  */
footer {
    flex: 0 1 auto;
    width: 100%;
    padding: 50px;
    background-color: var(--color-black);
    text-align: center;
    color: var(--color-white);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

footer .legals {
    display: flex;
    flex-direction: column;
}

/** INVISIBLE */
.element-invisible {
    display: none;
}

.grecaptcha-badge {
    display: none !important;
}


/** ---- MEDIA QUERIES ---- **/
@media (prefers-reduced-motion: no-preference){
    :has(:target) {
        scroll-behavior: smooth;
        scroll-padding-top: 6vh;
    }
}

@media (min-width: 1440px) {
    :root {
        font-size: 20px;
    }
}

@media (min-width: 1920px) {
    :root {
        font-size: 28px;
    }
}

@media (max-width: 830px) {
    #services div {
        grid-column: span 6;
        justify-self: center;
    }

    .cms-wrapper div {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    /**  Hamburger menu  */
    #hamburger-icon{
        display: inherit;
    }

    /* How wide the menu is going to be */
    header nav ul {
        min-width: 320px;
        max-width: 320px;
    }

    .menu-items{
        height: 100vh;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 3;
        flex-direction: column;
        justify-content: start;
        gap: 1.2rem;
        padding-top: 2rem;
        align-items: center;
        background: var(--color-white);
    }
    
    /* Circular movement effect */
    .close{
        clip-path: circle(0% at 100% 0%);
    }
    .open{
        clip-path: circle(150% at 100% 0%);
    }
}

@media (max-width: 560px) {
    #big-hero .overlay {
        font-size: 1.5rem;
        width: 90%;
    }

    #name-field,
    #email-field{
        grid-column: span 2;
    }

    #services div {
        grid-column: span 12;
        justify-self: center;
    }

    .cms-wrapper div {
        grid-column: span 12;
    }

    footer {
        grid-template-columns: 100%;
    }
}

@media (max-width: 410px) {
     /* How wide the menu is going to be */
     header nav ul {
        min-width: 250px;
        max-width: 250px;
    }

    #big-hero .overlay {
        font-size: 1.2rem;
        width: 100%;
    }

    main {
        padding: 20px 0 0 0;
    }

    main section {
        padding: 0;
    }

    #neuroinclusive-coaching,
    #about {
        padding: 2rem 1rem;
    }

    #services {
        padding: 1rem 0;
    }

    .cms{
        margin-top: 0;
    }
}

@media (max-width: 374px) {
    header nav ul {
        min-width: 100%;
        max-width: 100%;
    }
}