﻿/***** HERO *****/

.hero-viewport {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--header-h, 80px));
    min-height: 0;
    overflow: hidden;
}

.hero {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
}

.hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-block: var(--space-section-lg);
}

.hero__logo {
    max-width: 480px;
    margin-inline: auto;
    margin-bottom: 32px;
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    font-weight: 600;
}

    .btn--ghost:hover {
        background: var(--white);
        color: var(--orange);
    }

.hero__social {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 112px;
}

    .hero__social i {
        font-size: 32px;
        filter: brightness(0) invert(1);
    }

/* banner */
.hero__badges {
    flex: 0 0 auto;
    background: var(--grey-dark);
}

.hero__badges__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    padding-block: var(--space-heading-body);
    flex-wrap: wrap;
}

.hero__badge {
    width: auto;
    height: 56px;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .hero__badges__inner {
        gap: 0;
        justify-content: space-evenly;
    }

    .hero-viewport {
        height: calc(100dvh - 70px);
    }

}

@media (max-width: 767px) {
    .hero__badge {
        height: 32px;
    }

    .hero__badges__inner {
        gap: 8px 2px;
        display: flex;
        justify-content: space-evenly;
        margin: 0 5px;
    }

    .hero__logo {
        max-width: 280px;
    }

    .hero__social {
        bottom: 24px;
        gap: 42px;
    }

        .hero__social i {
            font-size: 24px;
            filter: brightness(0) invert(1);
        }
}

/***** SMARTER DATA SOLUTIONS *****/

.feature-section {
    padding-block: var(--space-section);
}

.feature-section--shaded-customer {
    background: var(--grey-dark);
    color: var(--white);
}

.feature-section__intro-customer > p {
    font-size: 0;
}

.feature-section__intro-product > p {
    font-size: 0;
}

.feature-section__intro {
    margin-bottom: var(--space-section);
    max-width: 1000px;
}

.feature-section__intro-customer h2 {
    color: var(--orange);
    margin-bottom: 24px
}

.feature-section__intro-product h2 {
    margin-bottom: 24px
}

.feature-timeline__heading {
    font-size: var(--font-size-h3);
    margin-bottom: 36px;
}

.feature-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: var(--space-section-small);
}

.feature-timeline__item:nth-child(1) {
    grid-column: 1;
}

.feature-timeline__item:nth-child(2) {
    grid-column: 2;
}

.feature-timeline__item:nth-child(3) {
    grid-column: 3;
}

.feature-timeline__item:nth-child(4) {
    grid-column: 4;
}

.feature-timeline__item:nth-child(5) {
    grid-column: 5;
}

.feature-timeline__item {
    text-align: center;
}

.feature-timeline__item--top {
    grid-row: 1;
    align-self: end;
    padding-bottom: var(--space-heading-body);
}

.feature-timeline__item--bottom {
    grid-row: 3;
    align-self: start;
    padding-top: var(--space-heading-body);
}

.feature-timeline__number {
    display: block;
    font-size: var(--font-size-h2);
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-timeline__item h3 {
    margin-bottom: 4px;
}

.feature-timeline__track {
    grid-row: 2;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    column-gap: var(--space-section-small);
    position: relative;
}

    .feature-timeline__track::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 2px;
        background: var(--grey-light);
        transform: translateY(-50%);
    }

.feature-timeline__dot {
    justify-self: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--orange);
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .feature-timeline {
        display: block;
        text-align: left;
        position: relative;
        padding-left: 28px;
    }

        .feature-timeline::before {
            content: '';
            position: absolute;
            left: 5px;
            top: 9px;
            bottom: 9px;
            width: 2px;
            background: var(--grey-light);
        }

    .feature-timeline__heading {
        margin-bottom: 24px;
    }

    .feature-timeline__item {
        text-align: left;
        padding: 0 0 var(--space-heading-body);
        position: relative;
    }

        .feature-timeline__item::before {
            content: '';
            position: absolute;
            left: -27px;
            top: 4px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--orange);
            z-index: 1;
        }

    .feature-timeline__track {
        display: none;
    }
}

/***** CARD GRID (customer cases + our product) *****/

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-section);
}

.project-card {
    padding: var(--space-heading-body) 0;
    border-bottom: solid 1px var(--grey-light)
}

    .project-card:hover {
        z-index: 5;
    }

.project-card__customer {
    border-bottom: solid 1px #5d5d5d;
}

.project-card__title {
    margin-bottom: var(--space-section-small);
}

.project-card__desc {
    margin-bottom: var(--space-heading-body);
}

.project-card__tech {
    padding-top: var(--space-section-small);
}

.project-card__tech-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.project-card__tech-label {
    font-weight: 600;
    cursor: default;
}

.project-card__tech-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

    .project-card__tech-list li {
        padding-block: 4px;
        font-size: var(--font-size-small);
    }

@media (hover: hover) {
    .project-card:hover .project-card__tech-list {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        margin-top: var(--space-section-small);
    }
}

@media (hover: none) {
    .project-card__tech-label {
        cursor: pointer;
    }

    .project-card__tech-toggle:checked ~ .project-card__tech-list {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        margin-top: var(--space-section-small);
    }
}

@media (max-width: 767px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 0;
    }

    .project-card__tech {
        padding-block: var(--space-section-small);
    }
}

/***** GET TO KNOW US BANNER *****/

.about-banner {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.about-banner__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    z-index: 0;
    pointer-events: none;
}

.about-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.about-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin-inline: auto;
}

    .about-banner__inner p {
        margin-block: 24px 48px;
    }

@media (max-width: 767px) {

    .about-banner {
        min-height: 280px;
    }

    .about-banner__bg {
        object-position: center center;
        transform: scale(1.3);
    }

    .about-banner__inner {
        width: 100%;
        max-width: 100%;
    }

        .about-banner__inner p {
            margin-block: 8px 32px;
        }
}

/***** GOAL FOR ESG *****/

.esg-section {
    padding-block: var(--space-section);
}

.esg-section__intro {
    margin-bottom: var(--space-section);
}

    .esg-section__intro p {
        margin-top: var(--space-heading-body);
    }

.esg-item {
    border-top: 1px solid var(--grey-light);
}

    .esg-item:last-child {
        border-bottom: 1px solid var(--grey-light);
    }

.esg-item__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.esg-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-heading-body);
    cursor: pointer;
}

.esg-item__title {
    font-weight: 600;
}

.esg-item__toggle::before {
    content: "+";
    font-size: 20px;
}

.esg-item__radio:checked ~ .esg-item__header .esg-item__toggle::before {
    content: "\2212"; /* minus */
}

.esg-item__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.esg-item__panel-inner {
    overflow: hidden;
    min-height: 0;
}

.esg-item__description {
    margin: 0 0 var(--space-heading-body);
}

.esg-item__radio:checked ~ .esg-item__panel {
    grid-template-rows: 1fr;
}


.esg-item__panel img {
    width: 800px;
    object-fit: cover;
    margin-bottom: var(--space-heading-body);
    margin-inline: auto;
}

.esg-section__cta {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-section);
}
