/*-----------------------------------------------
TABLE OF CONTENTS:

1) GENERAL
      A- Texts
      B- Buttons
      C- Images

2) HEADER
      A- Logo
      B- Nav

3) MAIN
      A- Intro
      B- Products
      C- Features
      D- Testimonials

4) FOOTER
      A- Newsletter
      B- Connect & Contact


-----------------------------------------------*/


/*-----------------------------------------------
1) GENERAL
-----------------------------------------------*/

:root {
    --accent-color: #d3ecdd;
    --main-color: #1d1d1d;
}

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

html {
  scroll-behavior: smooth;
}

/* Offset fix for OVERLAPPING problems of FIXED HEADER and ON-PAGE links */
:target {
  display: block;
  position: relative;
  top: -20vh; /* this is the offset */
  visibility: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    background-color: #110c22;
    transition: all 1s ease-out;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}



    /*-------------------------------------------
    1) A- TEXTS
    -------------------------------------------*/

h1, h2, h3, h4 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
}

h1 {
    text-align: center;
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 0 auto;
}
/* Fluid font-size */
 @media screen and (min-width: 37.5rem) {
    h1 {
      font-size: calc(1.5rem + 0.5 * ((100vw - 37.5rem) / 82.5));
    }
}
  @media screen and (min-width: 120rem) {
    h1 {
      font-size: 2rem;
    }
}


h2 {
    letter-spacing: -0.11em;
    margin: 0 auto 0.25em auto;
}

h3, h4 {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin: 0 auto 0.5em auto;
}

p {
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
}

h2 + p {
    margin: 0 auto 2.5em auto;
}

.uppercase {
    text-transform: uppercase;
}
.accent {
    position: relative;
    z-index: 1;
}
.accent::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.25em;
    height: 0.5rem;
    background: var(--accent-color);
    z-index: -1;
}



    /*-------------------------------------------
    1) B- BUTTONS
    -------------------------------------------*/

.button {
    font-size: 0.8rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    text-decoration: none;
    color: inherit;
    border: none;
    background-color: var(--accent-color);
    box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    cursor: pointer;
}
.button:hover {
    box-shadow: none;
}

input[type="submit"] {
    font-size: 0.8rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    text-decoration: none;
    border: none;
    background-color: var(--accent-color);
    box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: letter-spacing 0.5s ease-out;
}
input[type="submit"]:hover {
    letter-spacing: 0.35em;
    box-shadow: none;
}



    /*-------------------------------------------
    1) C- IMAGES
    -------------------------------------------*/

img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}



/*-----------------------------------------------
2) HEADER
-----------------------------------------------*/

header {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100vw;
    max-width: 100%; /* Prevents the horizontal scroll generated by the vertical scroll when the width = 100vw. */
    padding: 2.5vh 2.5vw;
    z-index: 10;
    background-color: #fff;
}
/* Fluid padding */
@media screen and (min-width: 37.5rem) {
    header {
        padding: calc(2.5vh + 2.5 * ((100vw - 37.5rem) / 82.5)) calc(0vw + 20 * ((100vw - 37.5rem) / 82.5));
    }
}
@media screen and (min-width: 120rem) {
    header {
        padding: 5vh 20vw;
    }
}



    /*-------------------------------------------
    2) A- LOGO
    -------------------------------------------*/

.logo {
    display: block;
    flex-shrink: 1;
    max-width: 70%;
    max-height: 12vh;
    margin: 0 auto;
}
/* Fluid max-width */
 @media screen and (min-width: 37.5rem) {
    .logo {
      max-width: calc(70% + -40 * ((100vw - 37.5rem) / 82.5));
    }
}
  @media screen and (min-width: 120rem) {
    .logo {
      max-width: 30%;
    }
}



    /*-------------------------------------------
    2) B- NAV
    -------------------------------------------*/

.nav-btn {
    display: none;
}

.nav-icon {
    padding: 1rem 0 1rem 1rem;
    margin: 0 auto 0 auto;
    cursor: pointer;
}

.hamburger {
    display: block;
    position: relative;
    width: 1.5rem;
    height: 0.125rem; 
    background: #1d1d1d;
    transition: background 0.2s ease-out;
    z-index: 12;
}
.hamburger:before,
.hamburger:after {
    background: var(--main-color);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.hamburger:before {
    top: 0.5rem;
}
.hamburger:after {
    top: -0.5rem;
}

.nav-btn:checked ~ .nav-icon .hamburger {
    background: transparent;
}
.nav-btn:checked ~ .nav-icon .hamburger:before {
    transform: rotate(-45deg) translateY(-0.5rem) translateX(0.2rem);
}
.nav-btn:checked ~ .nav-icon .hamburger:after {
    transform: rotate(45deg) translateY(0.5rem) translateX(0.2rem);
}

.nav-btn:not(:checked) ~ .nav {
    display: none;
}
.nav-btn:checked ~ .nav {
    max-height: 85vh;
    width: 100vw;
    max-width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

.nav {
    list-style: none;
    text-align: center;
    padding: 15vh 0;
    background-color: #37314c;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2);
    z-index: 11;
}

.nav-link {
    color: inherit;
    text-decoration: inherit;
    display: block;
    padding: 1.5em;
}

.nav-link:hover {
    background-color: #110c22;
}



/*-----------------------------------------------
3) MAIN
-----------------------------------------------*/

main {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    padding: 0 2.5vw;
}
/* Fluid padding */
@media screen and (min-width: 37.5rem) {
    main {
        padding: 0 calc(0vw + 20 * ((100vw - 37.5rem) / 82.5));
    }
}
@media screen and (min-width: 120rem) {
    main {
        padding: 0 20vw;
    }
}


main > section {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
}



    /*-------------------------------------------
    3) A- INTRO
    -------------------------------------------*/

#intro {
    height: 100vh;
    padding: 12vh 0 0 0;
}
/* Fluid padding-top */
 @media screen and (min-width: 37.5rem) {
    #intro {
      padding-top: calc(12vh + -4 * ((100vw - 37.5rem) / 82.5));
    }
}
  @media screen and (min-width: 120rem) {
    #intro {
      padding-top: 8vh;
    }
}

.figure-intro {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: 
      "all";
    justify-items: center;
    align-items: start;
    margin: 0 auto;
}

.circle-intro {
    grid-area: all;
    max-width: 75%;
    z-index: 1;
    opacity: 0;
    animation: appear-circle 1.25s ease-out forwards;
}
@keyframes appear-circle {
    from {
      opacity: 0;
      transform: scale(0.3);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
}


.img-intro {
    grid-area: all;
    max-width: 90%;
    z-index: 2;
    opacity: 0;
    animation: appear-img 2s 1.25s ease-out forwards;
}
@keyframes appear-img {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
}



    /*-------------------------------------------
    3) B- PRODUCTS
    -------------------------------------------*/

.img-product-group {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
}

.img-product {
    margin-bottom: 1rem;
}
.portrait {
    max-width: 39%;
}
.landscape {
    max-width: 46%;
}

.product-quote {
    background-color: white;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem auto;
    padding: 1rem 0 0 0;
    text-align: center;
}

.product-quote > p {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5em;
    margin-bottom: 1em;
    max-width: 100%;
}
/* Fluid font-size */
 @media screen and (min-width: 37.5rem) {
    .product-quote > p {
            font-size: calc(1rem + 0.9 * ((100vw - 37.5rem) / 82.5));
            max-width: 52%;
    }
}
  @media screen and (min-width: 120rem) {
    .product-quote > p {
            font-size: 1.9rem;
            max-width: 50%;
    }
}


p.author {
    font-size: 0.75rem;
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.125em;
    margin-bottom: 0;
}



    /*-------------------------------------------
    3) C- FEATURES
    -------------------------------------------*/

.feature-group {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4rem;
}

.feature {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 100%;
    margin: 0 auto 3rem auto;
}

.feature > img {
    max-width: 50%;
    margin-bottom: 1.5rem;
}

.feature > p {
    max-width: 14rem;
    margin-bottom: 1.5rem;
}

.explore {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 5rem;
}

.explore > img {
    max-width: 80%;
    margin-top: -6rem;
    transition: transform 0.5s ease-out;
}
.explore .button:hover + img {
  transform: translateY(-2rem);
}

.explore .button {
    width: 90%;
    margin: 0 auto;
    z-index: 5;
    transition: transform 0.5s ease-out;
}
.explore .button:hover {
  transform: translateY(0.25rem);
}


    /*-------------------------------------------
    3) D- TESTIMONIALS
    -------------------------------------------*/

iframe {
    max-width: 100%;
    margin: 0 auto 3rem auto;
}



/*-----------------------------------------------
4) FOOTER
-----------------------------------------------*/

footer {
    width: 100vw;
    max-width: 100%;
    display: flex;
    flex-flow: column nowrap;
}

footer > section {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}



    /*-------------------------------------------
    4) A- NEWSLETTER
    -------------------------------------------*/

.newsletter {
    background-color: whitesmoke;
    margin-bottom: 2rem;
    padding: 3.5rem 2.5vw 0 2.5vw;
}
/* Fluid padding */
@media screen and (min-width: 37.5rem) {
    .newsletter {
      padding: 3.5rem calc(2.5vw + 17.5 * ((100vw - 37.5rem) / 82.5)) 0 calc(2.5vw + 17.5 * ((100vw - 37.5rem) / 82.5));
    }
  }
@media screen and (min-width: 120rem) {
    .newsletter {
      padding: 3.5rem 20vw 0 20vw;
    }
  }


.news-icon {
    max-width: 15%;
    margin-bottom: 1.5rem;
}

.newsletter > p {
    margin-bottom: 1.5rem;
}

form {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    width: 80%;
}
/* Fluid width */
@media screen and (min-width: 37.5rem) {
    form {
      width: calc(80% + -50 * ((100vw - 37.5rem) / 82.5));
    }
  }
@media screen and (min-width: 120rem) {
    form {
      width: 30%;
    }
  }

#email {
    flex: 1 1 auto;
    margin: 0 auto 0.5rem auto;
    color: #333;
    width: 100%;
    padding: 0.5em 1em; 
    font-size: 1rem; 
    border: solid 1px #eee;
    background-color: white;
}
#email:focus {
    outline: none;
    border-color: var(--accent-color);
}

#submit {
    width: 100%;
    margin: 0 auto 5rem auto;
}



    /*-------------------------------------------
    4) B- CONNECT & CONTACT
    -------------------------------------------*/
.connect-contact {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
@media screen and (min-width: 48rem) {
  .connect-contact {
      flex-flow: row nowrap;
      align-items: flex-start;
  }
}

.connect {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    padding: 0 2.5vw; 
    margin-bottom: 0.5rem;
}
.connect-icons-group {
    width: 50%; 
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.connect-icons-group > a {
    max-width: 25%;
    margin: 0 0.25rem;
}

.contact {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    padding: 0 2.5vw;
    margin-bottom: 3rem;
}
.contact > p {
    font-size: 0.85rem;
}