/* autoprefixer grid: autoplace */

@import 'features.css';
@import 'faq.css';
@import 'contact.css';
@import 'solutions.css';
@import 'about.css';
@import 'legal.css';

:root {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    --h-modulation: 135px;
    --benefit-alternate-color: rgb(0, 64, 103);
    --text-color: rgb(50, 65, 77);
    --light-blue: rgb(72, 143, 176);
}

@media (max-width: 1024px) {
  :root { font-size: 14px; }
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
}

.ifs-style-0 {
    font-size: 6.2rem;
    line-height: 8.625rem;
}

.ifs-style-1 {
    font-size: 2.1875rem;
    line-height: 2.5625rem;
}

.ifs-style-2 {
    font-size: 1.5rem;
    line-height: 1.875rem;
}

.ifs-style-3 {
        font-size: 1.6875rem;
    line-height: 2.25rem;
}

.ifs-style-4 {
    font-size: 1.5rem;
    line-height: 1.875rem;
    letter-spacing: 0.1em;
}

.ifs-style-5 {
    font-size: 1.5rem;
    line-height: 1.875rem;
}

.ifs-style-6 {
    font-size: 1.375rem;
    line-height: 1.5625rem;
}

.header {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    grid-template-rows: 1fr;
    border-bottom: 2px solid lightgrey;
    padding: 0 50px 17px 50px;
    height: var(--h-modulation);
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    transition-property: height;
    transition-duration: 1s;
    transition-timing-function: ease;
}

.header-alt {
    height: 90px;
    border-bottom: 2px solid var(--light-blue);
    background-color: #ffffff;
}

.logo-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.logo {
    height: 55px;
    width: 100%;
    background-image: url("../ifs_logo_blanco_cropped.svg");
    background-repeat: no-repeat;
    background-size: contain;
    transition-property: height;
    transition-duration: 1s;
    transition-timing-function: ease;
}

.logo-alt {
    height: 35px;
    background-image: url("../ifs_logo_color_cropped.svg");
}

.navigation {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    color: #ffffff;
    font-size: 1.0625rem;
    font-weight: 400;
    transition-property: font-size;
    transition-duration: 1s;
    transition-timing-function: ease;
}

.navigation-alt {
    color: var(--light-blue);
    font-size: 0.9375rem;
    font-weight: 400;
}

.menu-item {
    color: inherit;
    margin-right: 0.8em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.menu-active {
    font-weight: 700;
}

.sentinel {
    align-self: start;
    height: 50%;
    width: 1px;
    background-color: transparent;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: calc(var(--h-modulation) * 1) .45fr .55fr;
    align-items: center;
    background-image: url("../home-1-hero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 110vh;
    width: 100%;
}

.highlight-container {
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    grid-template-rows: 1fr 4fr 1fr;
    grid-template-areas:
            "highlight-headline highlight-headline highlight-headline"
            "arrow-left carousel-slides arrow-right"
            "carousel-buttons carousel-buttons carousel-buttons";
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.carousel{
    grid-area: carousel-slides;
    height: 100%;
    overflow: hidden;
    transform-style: preserve-3d;
}

.arrow-left {
    grid-area: arrow-left;
    cursor: pointer;

}

.arrow-right {
    grid-area: arrow-right;
    cursor: pointer;
}

.arrow-button {
    height: 50px;
    width: 50px;
    border: none;
    background-color: transparent;
}

.arrow-button-left {
    background-image: url('../arrow-left_cropped.svg');
    background-size: contain;
    background-repeat:no-repeat;
}

.arrow-button-right {
    background-image: url('../arrow-right_cropped.svg');
    background-size: contain;
    background-repeat:no-repeat;
}

.highlight-headline {
    grid-area: highlight-headline;
    font-weight: 700;
}

.highlight-body {
    opacity: 0;
    width: 100%;
    margin: auto;
    padding: 0 10%;
    z-index: 100;
    transition: transform 1s, opacity 1s, z-index 1s;
    text-align: center;
    user-select: none ;
}

.highlight-body.active {
    opacity: 1;
    z-index: 900;
}

.highlight-body.prev,
.highlight-body.next {
    z-index: 800;
}

.highlight-body.prev {
    /*transform: translateX(-100%); !* Move 'prev' item to the left *!*/
}.highlight-body.next {
     /*transform: translateX(100%); !* Move 'next' item to the right *!*/
 }

.carousel-buttons {
    grid-area: carousel-buttons;
    align-self: start;
    line-height: 1rem; /* reset to remove excessive gap to carousel*/
    text-align: center;
}

.carousel-button {
    height: 1.2rem;
    width: 1.2rem;
    border:none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.50);
    cursor: pointer;
    transition: background-color 0.5s linear 0s;
}

.carousel-button.active {
    background-color: #ffffff;
}

.section-messages {
    display: flex;
    justify-content: space-between;
    padding: 0 14vw 0;
}

.message {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 22vw;
    color: #fff;
    text-align: center;
}

.message-icon {
    margin-bottom: 25px;
    height: 105px;
}

.message-headline {
    font-weight: 700;
    margin-bottom: 5px;
    width: 100%;
}

.message-body {
    font-weight: 300;
    width: 100%;
}

.section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: calc(var(--h-modulation) * 3);
    justify-content: center;
}

.figure {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: .3fr .7fr;
    align-content: center;
    row-gap: 20px;
    padding: 0 1.5rem 0;
    height: 100%;
    font-weight: 300;
    text-align: center;
}

.figure-headline {
    color: var(--light-blue);
}

.figure-message {
    color: var(--text-color);
}

.feature {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: .8fr .2fr;
    justify-content: start;
    align-items: center;
    padding: 20% 2rem 10%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.circle {
    justify-self: center;
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
}

.circle:hover {
    background: radial-gradient(#aaa, #fff);
}

.feature-opportunity {
    background-image: url("../opportunity.jpg");
}

.feature-find-out{
    background-image: url("../find-out.jpg");
}

.feature-analyze {
    background-image: url("../analyze.jpg");
}

.benefit {
    display: flex;
    align-items: center;
    height: 300px;
}

.benefit:nth-child(odd) {
    background-color: white;
    color: var(--text-color);
}

.benefit:nth-child(even) {
    flex-direction: row-reverse;
    background-color: var(--benefit-alternate-color);
    color: #ffffff;
}

.benefit-icon {
    padding-right: 65px;
    width: 34vw;
    height: 50%;
    text-align: right;
}

.benefit:nth-child(even) .benefit-icon {
    padding-left: 65px;
    text-align: left;
}

.benefit-text {
    padding: 1rem 3rem 1rem 1.5rem;
    width: 66vw;
    font-weight: 700;
}

.benefit:nth-child(even) .benefit-text {
    padding: 0 1.5rem 0 3rem;
}

.benefit-headline {
    font-weight: 700;
}

.benefit-body {
    font-weight: 300;
}

.testimonials {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0 20px;
    height: 515px;
    color: var(--light-blue);
}

.testimonials-section-title {
    text-transform: uppercase;
}

.testimonial {
    display: flex;
    flex-direction: column;
    opacity: 0;
     position: absolute;
    top:0;
     margin: auto;
    z-index: 100;
    padding: 50px;
    width: 50%;
    color: var(--text-color);
}

.testimonial.active {
    position: relative;
    opacity: 1;
    z-index: 900;
}

.testimonial-logo {
    height: 15%;
}

.testimonial-claim {
    margin: 1rem 0;
    padding: 1rem 0;
    font-weight: 300;
}

.footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
    "copyright brochure"
    "legal-links brochure";
    align-items: center;
    padding: 4% 10%;
    height: 175px;
    background-color: var(--light-blue);
    color: #ffffff;
}

.copyright {
    grid-area: copyright;
}

.legal-links {
    grid-area: legal-links;
}

.legal {
    color: #ffffff;
    text-decoration: none;
    margin-right: 20px;
}

.brochure {
    grid-area: brochure;
    justify-self: self-end;
    text-transform: uppercase;
}


