/**
 * Extra Pocket — Hero Section
 */

/* ─── Custom properties ─────────────────────────────────────────────────────── */
#extra-pocket-hero {
    --ep-hero-bg:               #6936D3;
    --ep-hero-height:           560px;

    --ep-hero-images-width:     720px;
    --ep-hero-content-width:    360px;
    --ep-hero-columns-gap:      40px;

    --ep-hero-title-size:       32px;
    --ep-hero-title-weight:     700;
    --ep-hero-title-spacing:    0.02em;
    --ep-hero-text-gap:         16px;

    --ep-hero-subtitle-size:    18px;
    --ep-hero-subtitle-weight:  400;

    --ep-hero-period-size:      16px;
    --ep-hero-period-weight:    500;

    --ep-hero-section-gap:      40px;

    --ep-hero-label-size:       12px;
    --ep-hero-label-line-height:18px;
    --ep-hero-download-gap:     16px;

    --ep-hero-btn-width:        125px;
    --ep-hero-btn-height:       40px;
    --ep-hero-btn-radius:       4px;
    --ep-hero-btn-bg:           #000000;

    --ep-hero-placeholder-bg:   #D9D9D9;
}

/* ─── Section ───────────────────────────────────────────────────────────────── */
.extra-pocket-hero {
    background-color: var(--ep-hero-bg);
    height: var(--ep-hero-height);
    position: relative;
    overflow: hidden;
}

/* ─── Decorative background overlay ─────────────────────────────────────────── */
.extra-pocket-hero__bg-overlay {
    position: absolute;
    inset: 0;
    background-image: url('../../../images/bg_thin_purple.png');
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 0;
}

/* ─── Inner row ──────────────────────────────────────────────────────────────── */
.extra-pocket-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--ep-hero-columns-gap);
    height: 100%;
}

/* ─── Image column ───────────────────────────────────────────────────────────── */
.extra-pocket-hero__images {
    position: relative;
    width: var(--ep-hero-images-width);
    height: var(--ep-hero-height);
    flex-shrink: 0;
}

.extra-pocket-hero__image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24rem;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.extra-pocket-hero__image--mobile {
    display: none;
}

.extra-pocket-hero__image-placeholder {
    position: absolute;
    inset: 0;
    background-color: var(--ep-hero-placeholder-bg);
}

/* ─── Content column ─────────────────────────────────────────────────────────── */
.extra-pocket-hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--ep-hero-section-gap);
    width: var(--ep-hero-content-width);
    flex-shrink: 0;
}

/* ─── Text block ─────────────────────────────────────────────────────────────── */
.extra-pocket-hero__text {
    display: flex;
    flex-direction: column;
    gap: var(--ep-hero-text-gap);
}

.extra-pocket-hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: var(--ep-hero-title-size);
    font-weight: var(--ep-hero-title-weight);
    letter-spacing: var(--ep-hero-title-spacing);
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.extra-pocket-hero__description {
    font-family: 'Poppins', sans-serif;
    font-size: var(--ep-hero-subtitle-size);
    font-weight: var(--ep-hero-subtitle-weight);
    color: #ffffff;
    margin: 0;
    line-height: 1.5;
}

.extra-pocket-hero__period {
    font-family: 'Poppins', sans-serif;
    font-size: var(--ep-hero-period-size);
    font-weight: var(--ep-hero-period-weight);
    color: #ffffff;
    margin: 0;
    line-height: 1.5;
}

/* ─── Download block ─────────────────────────────────────────────────────────── */
.extra-pocket-hero__download {
    display: flex;
    flex-direction: column;
    gap: var(--ep-hero-download-gap);
}

.extra-pocket-hero__download-label {
    font-family: 'Poppins', sans-serif;
    font-size: var(--ep-hero-label-size);
    font-weight: 400;
    line-height: var(--ep-hero-label-line-height);
    color: #ffffff;
    margin: 0;
}

.extra-pocket-hero__download-buttons {
    display: flex;
    flex-direction: row;
    gap: var(--ep-hero-download-gap);
}

.extra-pocket-hero__app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--ep-hero-btn-width);
    height: var(--ep-hero-btn-height);
    background-color: var(--ep-hero-btn-bg);
    border-radius: var(--ep-hero-btn-radius);
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}

.extra-pocket-hero__app-btn img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* ─── Mobile ─────────────────────────────────────────────────────────────────── */
@media screen and (max-width: 768px) {
    .extra-pocket-hero {
        height: auto;
    }

    .extra-pocket-hero__inner {
        flex-direction: column;
        align-items: center;
        padding: 40px 24px 0;
        gap: 24px;
        height: 38rem;
    }

    .extra-pocket-hero__images {
        order: 2;
        width: 300px;
        height: 225px;
        flex-shrink: 0;
    }

    .extra-pocket-hero__content {
        order: 1;
        width: 100%;
        max-width: 312px;
        gap: 24px;
        align-items: center;
    }

    .extra-pocket-hero__text {
        gap: 8px;
        align-items: center;
    }

    .extra-pocket-hero__title {
        font-size: 28px;
        text-align: center;
    }

    .extra-pocket-hero__description {
        font-size: 14px;
        line-height: 21px;
        text-align: center;
    }

    .extra-pocket-hero__period {
        font-size: 14px;
        text-align: center;
    }

    .extra-pocket-hero__download {
        align-items: center;
    }

    .extra-pocket-hero__download-label {
        text-align: center;
    }

    .extra-pocket-hero__app-btn {
        width: 100px;
        height: 32px;
    }

    .extra-pocket-hero__image--desktop {
        display: none;
    }

    .extra-pocket-hero__image--mobile {
        display: block;
        margin-bottom: 24px;
    }
}
