/* HERO */

.heading__hidden {
    position: absolute;
    left: -2000px;
}

.section__hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding-top: 4.5rem !important;
    padding-bottom: 2rem;
}

.hero__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 3px solid var(--primary);
    background-image: url('../assets/idomino-software-hero-dark.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    background-color: var(--text-heading);
    flex-grow: 1;
    justify-content: center;
    padding-bottom: 3rem;
}

.hero__title {
    font-size: var(--step-3);
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--bg);
    text-transform: uppercase;
    font-family: 'League Spartan', sans-serif;
    margin-top: 2rem;
    line-height: 1.4;
}

.hero__subtitle {
    margin-bottom: 1.5rem;
    color: var(--bg);
    line-height: 1.5;
    padding: 1rem 2rem 2rem 2rem;
}

.logoroll {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.logoroll img {
    height: auto;
    width: 25%;
}



/* SOLUTIONS */


.section__solutions {
    padding-bottom: 4rem;
}


.solution__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    max-width: 20rem;
    border: 3px solid var(--primary);
    border-radius: 20px;
    background-color: var(--bg);
    margin-top: 2rem;
    padding-top: 2rem;
    width: 100%;
    justify-content: space-between;
    width: 20rem;
    margin-bottom: 0;
}

.solution__box .logo {
    height: 6rem;
    width: auto;
}

.solution__box .button {
    margin-top: 2rem;
    width: 100%;
}

.solutions__grid {
    margin-bottom: 3rem;
}

.solutions__grid>.solution__box:last-of-type>div {
    width: 15rem;
}

.logoroll-main {
    column-gap: 1rem;
}

.logoroll-main div {
    width: 25% !important;
}

.logoroll-main div.full-width:first-of-type,
.logoroll-main div.full-width:last-of-type {
    width: 50% !important;
}

.logoroll-main div.round {
    width: 15% !important;
}

.text {
    margin-bottom: 2rem;
}

/* TESTIMONIALS */

.testimonial__box {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem 3rem 2rem;
    max-width: 20rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    background-color: var(--primary-darkest);
    margin-top: 1rem;
    transition: opacity 0.5s ease;
    min-height: 40rem;
}


.testimonial__box.active {
    display: flex;
}

.quote_marks {
    font-size: 100px;
    display: block;
    line-height: 0;
    margin-top: 3rem;
    padding-left: 3rem;
    font-family: 'League Spartan', sans-serif;
    color: var(--accent);
}

.testimonial__credits {
    margin-top: 2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: var(--step--2);
    display: flex;
    flex-direction: column;
    row-gap: 0.25rem;
}

.testimonial__credits>div:last-of-type {
    color: var(--accent);
}

.solution__box .author {
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: var(--step--2);
    margin-top: -1rem
}

.testimonial-nav {
    text-align: center;
    margin-top: 1rem;
}

.testimonial-nav a {
    font-size: 7rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
    background-color: transparent;
    border: none;
    line-height: 0;
}

/* LOGOROLL */

.section__logoroll {
    padding-top: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.logoroll-main {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    row-gap: 4rem;
    justify-content: space-between;
    align-items: center;
}

.logoroll-main div {
    width: 40%;
    height: auto;
}

.logoroll-main .round {
    width: 28%;
    height: auto;
}

.logoroll-main .full-width {
    width: 100%;
}

.light img {
    filter: invert(1);
}

.display_on_tablet {
    display: none;
}

.display_on_desktop {
    display: none;
}




/* CONTACT & FOOTER */

.section__footer {
    background-color: var(--primary-darkest);
    padding: 2rem 1rem 2rem 1rem;
    text-align: center;
    font-size: var(--step--2);
    color: var(--bg);
}

.contact__grid {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

.divider-dot {
    display: none;
}

.contact__line {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.contact__line:hover span {
    color: var(--primary);
}

.contact__line .logo {
    height: 2.5rem;
    width: auto;
    margin-right: 1rem;
    filter: invert(1);
}

@media screen and (min-width: 768px) {

    .section:not(.section.section__hero) {
        padding-left: 8rem;
        padding-right: 8rem
    }

    .section__hero {
        padding-top: 4rem !important;
    }

    .hero__wrapper {
        padding-left: 5rem;
        padding-right: 5rem;
    }

    .hero__title {
        font-size: var(--step-5);
    }


    .hero__subtitle {
        width: 80%;
        font-size: var(--step-2);
        margin-top: 2rem;
    }

    .display_on_tablet {
        display: block;
    }

    .logoroll {
        justify-content: space-between;
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logoroll img {
        width: auto;
        height: 3rem;
    }


    .section__logoroll {
        padding-bottom: 4rem;
    }

    .testimonial__box {
        max-width: none !important;
    }


    .solutions__grid,
    .portfolio__grid {
        display: flex;
        justify-content: space-evenly;
        width: 100%;
        flex-wrap: wrap;
        margin-bottom: 4rem;
    }
}



@media screen and (min-width: 1280px) {
    .hero__title {
        width: 60rem;
    }

    .hero__subtitle {
        max-width: 30rem;
        font-size: var(--step-1);
        margin-top: 0;
    }

    .display_on_desktop {
        display: block;
    }

    .section:not(.section.section__hero):not(.section.section__logoroll):not(.section.section__footer) {
        padding-left: 24%;
        padding-right: 24%
    }

    .solutions__grid,
    .portfolio__grid {
        justify-content: space-between;
    }


    .section__logoroll {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .logoroll-main {
        max-width: 60rem;
        column-gap: 0 !important;
        row-gap: 0 !important;
        justify-content: center;
    }


    .logoroll-main div {
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: 3px solid var(--primary);
        border-right: 3px solid var(--primary);
        padding: 2rem;
    }

    .logoroll-main div,
    .logoroll-main div.full-width,
    .logoroll-main div.full-width:first-of-type,
    .logoroll-main div.full-width:last-of-type,
    .logoroll-main div.round {
        width: 15rem !important;
        height: 15rem !important;
    }

    .logoroll-main div:nth-child(1),
    .logoroll-main div:nth-child(2),
    .logoroll-main div:nth-child(3),
    .logoroll-main div:nth-child(4) {
        border-top: none;
    }

    .logoroll-main div:nth-child(4n) {
        border-right: none;
    }

    .contact__line {
        flex-direction: column;
    }

    .contact__line .logo {
        margin: 0;
        margin-bottom: 1.5rem;

    }

    .contact__grid {
        flex-direction: row;
        column-gap: 4rem;
        margin-top: 2rem;
        margin-bottom: 3rem;
    }

    .footer__company-info {
        display: flex;
        justify-content: flex-start;
        column-gap: 1rem;
        line-height: 2;
        column-gap: 0.25rem;

    }

    .divider-dot {
        display: block;
    }

    .section__footer {
        text-align: left;
        display: flex;
        justify-content: space-between;
        width: 100%;
        flex-direction: row;
        align-items: flex-end;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        margin-left: auto;
        margin-right: auto;
    }

}

@media screen and (min-width: 1366px) {
    .hero__wrapper {
        width: 100%
    }

    .hero__subtitle {
        max-width: 35rem;
    }

    .solutions__grid,
    .portfolio__grid {
        justify-content: space-around;
    }

}

@media screen and (min-width: 1440px) {

    .section__portfolio,
    .section__testimonials {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .section__portfolio .text {
        padding-left: calc(24% - 1rem);
        padding-right: calc(24% - 1rem);

    }

    .testimonial__box {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        font-size: var(--step--1);
        min-height: auto;
        line-height: 2em;
    }

    .testimonial__credits {
        line-height: 1.8em;
    }

    .testimonial__grid {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 2rem;
        margin-top: 2rem;
    }

    .testimonial-nav {
        display: none;
    }

    .section__solutions,
    .section__testimonials,
    .section__portfolio,
    .section__contact {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media screen and (min-width: 1920px) {
    .hero__title {
        font-size: var(--step-6);
        width: 80rem;
    }

    .hero__subtitle {
        font-size: var(--step-2);
        max-width: 40rem;
        margin-bottom: 3rem;
    }

    .button {
        font-size: var(--step-0);
    }

    .logoroll img {
        height: 4rem;
    }

    .section__solutions {
        padding-left: 30% !important;
        padding-right: 30% !important;
    }

    .section__testimonials {
        padding-left: 10% !important;
        padding-right: 10% !important;
    }

    .testimonial__box {
        font-size: var(--step-0);
    }

    .section__portfolio .text {
        padding-left: calc(30% - 1rem);
        padding-right: calc(30% - 1rem);
    }

    .portfolio__grid,
    .solutions__grid {
        justify-content: center;
        gap: 2rem;
    }

    .logoroll-main {
        max-width: 120rem;
    }

    .section__logoroll {
        padding: 0;

    }

    .logoroll-main div:nth-child(5),
    .logoroll-main div:nth-child(6),
    .logoroll-main div:nth-child(7),
    .logoroll-main div:nth-child(8) {
        border-top: none;
    }

    .logoroll-main div:nth-child(4n) {
        border-right: 3px solid var(--primary);
    }


    .logoroll-main div:nth-child(8n) {
        border-right: none;
    }


}

@media screen and (min-width: 1921px) {
    .section__logoroll {
        padding-top: 4rem;
        padding-bottom: 4rem;

    }
}