/*! HTML5 Boilerplate v7.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 1.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */


/* @import must be at top of file, otherwise CSS will not work */
@import url("//hello.myfonts.net/count/39ff45");
@import url("//hello.myfonts.net/count/2b8678");

@font-face {font-family: 'BrandonGrotesqueWeb-BoldItalic';src: url('../fonts/brandonGrotesque/39FF45_0_0.eot');src: url('../fonts/brandonGrotesque/39FF45_0_0.eot?#iefix') format('embedded-opentype'),url('../fonts/brandonGrotesque/39FF45_0_0.woff2') format('woff2'),url('../fonts/39FF45_0_0.woff') format('woff'),url('../fonts/brandonGrotesque/39FF45_0_0.ttf') format('truetype');}

@font-face {
	font-family: Omnes-Regular;
	src: url(../fonts/omnes/omnes-regular-webfont.eot);
	src: url(../fonts/omnes/omnes-regular-webfont.eot?#iefix) format("embedded-opentype"), url(../fonts/omnes/omnes-regular-webfont.woff) format("woff"), url(../fonts/omnes/omnes-regular-webfont.ttf) format("truetype")
}

/* @font-face {
	font-family: BrandonGrotesque-Regular;
	src: url(../fonts/brandonGrotesque/2B8678_1_0.eot);
	src: url(../fonts/brandonGrotesque/2B8678_1_0.eot?#iefix) format("embedded-opentype"), url(../fonts/brandonGrotesque/2B8678_1_0.woff) format("woff"), url(../fonts/brandonGrotesque/2B8678_1_0.ttf) format("truetype")
} */

@font-face {
	font-family: BrandonGrotesque-Bold;
	src: url(../fonts/brandonGrotesque/2B8678_2_0.eot);
	src: url(../fonts/brandonGrotesque/2B8678_2_0.eot?#iefix) format("embedded-opentype"), url(../fonts/brandonGrotesque/2B8678_2_0.woff) format("woff"), url(../fonts/brandonGrotesque/2B8678_2_0.ttf) format("truetype")
}

 
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

   html {
    color: white;
    font-size: 18px;
    line-height: 1.4;
    background-color: #000;
    font-family: Omnes-Regular;
    line-height: 1.5em;
    text-rendering: optimizeLegibility;
	-moz-font-smoothing: antialiased;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

section {
    /* max-width: 86.222222rem; */
    margin: 0 auto;
    padding: 6.22222222rem 3.1111111rem;
}

a {
    color: white;
}


h1  {
    font-family: BrandonGrotesqueWeb-BoldItalic;
    font-weight: normal;
    font-size: 3.3333rem;
    line-height: 1.16em;
    text-shadow: 0 0 5rem black, 0 0 3rem black, 0 0 1rem black; 
}

h2 {
    font-family: BrandonGrotesqueWeb-BoldItalic;
    font-size: 2.7777rem;
    text-align: center;
    line-height: 1.25em;
    font-weight: normal;
    margin-top: 0;
}

h3,
#contact h2,
#partners h2 {
    font-family: BrandonGrotesqueWeb-BoldItalic;
    font-size: 2rem;
    line-height: 1.25em;
    color: #FAD63E;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: 0;
}

h4 {
    font-family: BrandonGrotesqueWeb-BoldItalic;
    font-size: 0.8888rem;
    font-weight: normal;
    color: #000000;
    line-height: 1.25em;
    text-transform: uppercase;
}


/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}




 /* ==========================================================================
   Author's custom styles
   ========================================================================== */

#page-header {
    padding: 3.11111111rem 3.11111111rem 3.11111111rem 4.6666666rem;
}

#page-header__link {
    position: absolute;
    right: 3.11111111rem;
    font-family: BrandonGrotesque-Bold;
    font-size: 0.8888888rem;
    line-height: 1.25em;
    text-transform: uppercase;
    text-decoration: none;
}

#intro {
    max-width: 42.2222rem;
    text-align: center;
    padding-top: 0;
}

#intro__voice {
    position: relative;
    margin-bottom: 2.5rem;
}

#intro__headline {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

#messages {
    background-color: white;
    height: calc(100vw / 1.8);
    padding: 0;
    display: flex;
}

#messages__chat {
    background: #FAD63E url("../img/phone.png") no-repeat center center;
    background-size: auto 100%;
    width: 100%;
}

#messages__chat-screen {
    width: 42%;
    margin: 0 auto;
    height: 77%;
    margin-top: 14%;
    padding: 1px 3%;
    box-sizing: border-box;
}

.chat-bubble {
    box-sizing: border-box;
    background-color: white;
    color: black;
    width: 90%;
    margin: 8% 0;
    padding: 1vw;
    font-size: 1vw;
    line-height: 1.2em;
    border-radius: 1vw 1vw 1vw 0vw;
}

.chat-bubble:nth-child(even) {
    background-color: black;
    color: white;
    margin-left: auto;
    border-radius: 1vw 1vw 0vw 1vw;
}

#benefits__list {
    max-width: 51.38888rem;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.benefits__list-item {
    max-width: 26rem;
    padding-left: 5.3333rem;
    box-sizing: border-box;
    margin: 2rem 0;
    position: relative;
}

.benefits__list-item p {
    margin-top: 0.5rem;
}

.benefits__list-item:nth-child(even) {
    padding-left: 0;
    padding-right: 5.3333rem;
    text-align: right;
    margin-left: auto;
}

.benefits__list-icon {
    position: absolute;
    left: 0;
    bottom: -1.5rem;
}

.benefits__list-item:nth-child(even) .benefits__list-icon {
    left: initial;
    right: 0;
}

#steps .intro-text {
    max-width: 42.2222rem;
    text-align: center;
    margin: 0 auto;
}


#cases-grid {
    max-width: 51.38888rem;
    margin: 4rem auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.cases-grid__item {
    margin-right: 1px;
    margin-top: 1px;
    position: relative;
    height: 100%;
    width: 39%;
    overflow: hidden;
}

.cases-grid__item:nth-child(4),
.cases-grid__item:nth-child(3) {
    align-self: flex-start;
}


.cases-grid__item.big {
    width: 60%;
}

.cases-grid__item img {
    width: 100%;
    object-fit: cover;
}

.cases-grid__item-info,
.academy-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.85);
    padding: 2rem;
    border: 3px solid white;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity .4s cubic-bezier(.2, 1.03, .31, .97);
}

.academy-info {
    opacity: 1;
    display: block;
    background-color: transparent;
    text-align: left;
    color: black;
    font-size: 0.8888rem;
}

.academy-info h3 {
    font-family: BrandonGrotesque-Bold;
    font-weight: normal;
    font-size: 2rem;
    color: black;
    line-height: 1em;
    text-transform: none;
    font-style: normal;
}

.cases-grid__item.big .cases-grid__item-info {
    padding: 0 4rem;
}

.cases-grid__item-info-text {
    padding-bottom: 3rem;
    transform: translateY(3rem);
    opacity: 0;
    transition: opacity .5s cubic-bezier(.25, .46, .45, .94), transform .5s cubic-bezier(.25, .46, .45, .94);
}

.cases-grid__item a:hover .cases-grid__item-info {
    opacity: 1;
}

.cases-grid__item a:hover .cases-grid__item-info-text {
    opacity: 1;
    transform: translateY(0);
}

.cases-grid__item img {
    transform: scale(1);
    transition: transform .5s cubic-bezier(.25, .46, .45, .94);
}

.cases-grid__item a:hover img {
    transform: scale(1.15);
}

.cases-grid__item.double-item {
    margin: 0;
    overflow: visible;
}

.cases-grid__item.double-item .cases-grid__item {
    width: 100%;
}

.cases-grid__item.medium img.icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2rem;
    height: 2rem;
}

.cases-grid__item.academy img.icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: 1rem;
}

.case-arrow {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    opacity: 0;
    transform: translateX(-3rem);
    transition: transform .5s cubic-bezier(.25, .46, .45, .94), opacity .3s cubic-bezier(.25, .46, .45, .94);
}

.cases-grid__item a:hover .case-arrow {
    opacity: 1;
    transform: translateX(0);
}

#contact {
    background-color: #FAD63E;
    color: black;
    text-align: center;
}

#contact-info {
    display: flex;
    max-width: 29.83333rem;
    margin: 0 auto;
    margin-top: 3.7777rem;
}

#contact-info__image {
    background-image: url("../img/enikoe.jpg");
    width: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    margin-right: 2.7777rem;
}

#contact-info__text {
    margin-left: 2.7777rem;
    text-align: left;
    line-height: 2.2em;
}

#contact-info__text a {
    color: black;
}

#contact-info .item__img-wrap {
    position: relative;
    position: relative;
    height: 13.3888888rem;
}

#contact h2,
#partners h2 {
    color: black;
    text-transform: none;
}

#partners {
    background-color: white;
    color: black;
    text-align: center;
}

#partner-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    max-width: 53rem;
    justify-content: space-between;
    padding-top: 2rem;
}

.partner-list__item {
    max-width: 15.1111rem;
    padding: 2rem;
    box-sizing: border-box;
    margin: 1rem 0;
}

.partner-list__item img {
    width: 100%;
    transition: transform .3s;
}

.partner-list__item a {
    padding: 1rem 0;
}

.partner-list__item a:hover img{
    transform: scale(1.2);
}

#page-footer {
    background-color: white;
    color: black;
    text-align: center;
    padding: 3.1111111rem;
}

#page-footer a {
    color: black;
    margin-left: 2rem;
}




item__img*,
*::after,
*::before {
	box-sizing: border-box;
}

[data-scroll] {
	will-change: transform;
}

.item {
	/* margin: 10vh auto; */
	max-width: 100%;
	position: relative;
	will-change: transform;
}

.item__img-wrap {
	/* --aspect-ratio: 1/1.5; */
	overflow: hidden;
	width: 100%;
	margin: 0 auto;
	/* padding-bottom: calc(100% / (var(--aspect-ratio))); */
	max-width: 100%;
    will-change: transform;
    position: relative;
}


.item__img {
	--overflow: 40px;
	height: calc(100% + (2 * var(--overflow)));
	top: calc( -1 * var(--overflow));
	width: 100%;
	position: absolute;
	background-image: var(--image);
	background-size: cover;
	background-position: 50% 0%;
	will-change: transform;
}

.item__img--t1 {
    --overflow: 80px;
    width: 100%;
    background-image: url('../img/girl2.jpg');
}

.item__img--t2 {
    --overflow: 40px;
    width: 50%;
}

.benefits__list-item .loader {
    position: absolute;
    width: 3.5rem;
    height: 3.5rem;
    left: 0;
    bottom: -1.5rem;
    background-image: url('../img/loading.gif');
    background-size: contain;
    opacity: 0;
    transition: transform .5s cubic-bezier(.25, .46, .45, .94), opacity 1s cubic-bezier(.25, .46, .45, .94);
}

.benefits__list-item:nth-child(even) .loader {
    left: initial;
    right: 0;
}

.fadein {
    opacity: 0;
    transform: translateY(5rem);
    transition: transform .5s cubic-bezier(.25, .46, .45, .94), opacity 1s cubic-bezier(.25, .46, .45, .94);
}

.fadein.show {
    opacity: 1;
    transform: translateY(0rem);
}

#process {
    display: block;
    margin: 0 auto;
    margin-top: 3rem;
}

 /* ================================
   Animation
   ================================ */

.lazyload {
    opacity: 0;
    transform: translateY(3rem);
    transition: transform .75s, opacity .75s;
}

.benefits__list-icon {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: transform .5s cubic-bezier(.25, .46, .45, .94), opacity .5s cubic-bezier(.25, .46, .45, .94);
    /* background-color: black; */
}

#benefits__list.show .lazyload {
    opacity: 1;
    transform: translateY(0);
}

#benefits__list.show .benefits__list-icon{
    opacity: 1;
    transform: translateY(0);
}

/* Icons */

#benefits__list .benefits__list-item:nth-child(1) .benefits__list-icon {
    transition-delay: 1.25s;
}

#benefits__list .benefits__list-item:nth-child(2) .benefits__list-icon {
    transition-delay: 3.25s;
}

#benefits__list .benefits__list-item:nth-child(3) .benefits__list-icon {
    transition-delay: 5.25s;
}

/* Message */

#benefits__list .benefits__list-item:nth-child(1) .lazyload {
    transition-delay: 1.25s;
}

#benefits__list .benefits__list-item:nth-child(2) .lazyload {
    transition-delay: 3.25s;
}

#benefits__list .benefits__list-item:nth-child(3) .lazyload {
    transition-delay: 5.25s;
}



 /* ================================
   Animation
   ================================ */

#benefits__list.show .benefits__list-item:nth-child(1) .loader {
    animation: loading 1.5s forwards;
}

#benefits__list.show .benefits__list-item:nth-child(2) .loader {
    animation: loading 1.5s 2s forwards;
}

#benefits__list.show .benefits__list-item:nth-child(3) .loader {
    animation: loading 1.5s 4s forwards;
}


@keyframes loading {
    0%   {  transform:scale(0); opacity:0; }
    16%   {  transform:scale(1); opacity:1; }
    84%  {  transform:scale(1); opacity:1; }
    100% {  transform:scale(0); opacity:0; }
 }

 /* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

 .hidden {
  display: none !important;
}

.caps {
    text-transform: uppercase;
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.45454545em;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap; /* 1 */
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

 
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

   @media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

 
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

   @media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


