/* Path: web/public/app/public/css/examples.css
   The home page's Featured Work section: one panel per project, its name, what we did and its sector
   on the left with a "See project" button, and the product on a laptop on the right. */

.examples {
    padding-top: 220px;
}

.examples__container {
    max-width: 1368px;
    padding: 0 15px;
}

.examples__title_stroke {
    margin-left: 180px;
}

.examples__list {
    margin-top: 90px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.example {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    gap: 60px;
    min-height: 620px;
    padding: 80px 80px 80px 80px;
    background-color: #1c3557;
    border-radius: 2px;
}

.example__info {
    align-self: end;
}

.example__name {
    margin: 0 0 30px;
    font-family: "Humanist Bold", sans-serif;
    font-size: 64px;
    line-height: 110%;
    color: #fff;
}

.example__service,
.example__sector {
    margin: 0;
    font-family: "Humanist Bold", sans-serif;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.example__service {
    color: #fff;
}

.example__sector {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.example__btn {
    display: inline-block;
    margin-top: 50px;
    padding: 20px 42px;
    border: 2px solid #fff;
    border-radius: 999px;
    font-family: "Humanist Bold", sans-serif;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.example__btn:hover,
.example__btn:focus-visible {
    background-color: #fff;
    color: #1c3557;
}

.example__btn:focus-visible {
    outline: 3px solid var(--mvp-blue, #4594f5);
    outline-offset: 4px;
}

/* The laptop: a screen in a bezel on a thin base. */
.laptop {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.laptop__screen {
    position: relative;
    width: 80%;
    margin: 0 auto;
    padding: 1.6% 1.6% 1.8%;
    background: #9a9eab;
    border-radius: 18px 18px 0 0;
}

.laptop__display {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    /* Shows if the recording can't load. */
    background: radial-gradient(circle at 70% 30%, #23426c 0%, #0b1424 70%);
}

.laptop__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Humanist Bold", sans-serif;
    font-size: clamp(28px, 4vw, 56px);
    color: rgba(255, 255, 255, 0.85);
}

.laptop__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.laptop__base {
    position: relative;
    height: 22px;
    background: linear-gradient(#a9adb9, #7d818d);
    border-radius: 2px 2px 14px 14px;
}

.laptop__base::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 17%;
    height: 7px;
    transform: translateX(-50%);
    background: #6a6e79;
    border-radius: 0 0 8px 8px;
}

@media only screen and (max-width: 1280px) {
    .example {
        padding: 60px;
        gap: 40px;
        min-height: 520px;
    }

    .example__name {
        font-size: 54px;
    }
}

@media only screen and (max-width: 1024px) {
    .examples {
        padding-top: 160px;
    }

    .examples__title_stroke {
        margin-left: 100px;
    }

    .example {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .example__info {
        order: 2;
        align-self: start;
    }

    .example__media {
        order: 1;
    }
}

@media only screen and (max-width: 650px) {
    .examples {
        padding-top: 120px;
    }

    .examples__title_stroke {
        margin-left: 40px;
    }

    .examples__list {
        margin-top: 50px;
    }

    .example {
        padding: 40px 24px;
        gap: 36px;
    }

    .example__name {
        font-size: 42px;
        margin-bottom: 20px;
    }

    .example__service,
    .example__sector {
        font-size: 14px;
    }

    .example__btn {
        margin-top: 36px;
        padding: 16px 34px;
        font-size: 18px;
    }

    .laptop__screen {
        width: 86%;
        border-radius: 12px 12px 0 0;
    }

    .laptop__base {
        height: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .example__btn {
        transition: none;
    }
}
