/* Home-page responsive refinements. Loaded after the page's existing styles. */

@media (max-width: 576px) {
    .ep-home .ep-container {
        width: min(calc(100% - 24px), 1160px);
    }

    .ep-home .ep-page-nav {
        gap: 10px;
        padding-block: 12px;
    }

    .ep-home .ep-page-nav-links {
        gap: 6px;
    }

    .ep-home .ep-page-nav-links a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .ep-home .ep-hero {
        gap: 24px;
        padding-block: 38px 30px;
    }

    .ep-home .ep-hero-content {
        text-align: center;
    }

    .ep-home .ep-hero h1 {
        font-size: clamp(36px, 12vw, 48px);
        line-height: 1.02;
        letter-spacing: -1.5px;
    }

    .ep-home .ep-hero-content > p {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.65;
    }

    .ep-home .ep-badge {
        margin-bottom: 16px;
    }

    .ep-home .ep-hero-actions,
    .ep-home .ep-cta-actions {
        width: 100%;
        align-items: center;
        flex-flow: row wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 22px;
    }

    .ep-home .ep-primary-button,
    .ep-home .ep-secondary-button {
        width: auto;
        max-width: 100%;
        min-width: min(190px, 100%);
        min-height: 46px;
        padding-inline: 18px;
    }

    .ep-home .ep-contact-info {
        width: min(100%, 520px);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 10px;
        margin: 24px auto 0;
    }

    .ep-home .ep-contact-info > div:not(.ep-contact-divider) {
        min-width: 0;
        align-content: center;
        gap: 5px;
        padding: 13px 10px;
        border: 1px solid var(--ep-border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.72);
    }

    .ep-home .ep-contact-info a,
    .ep-home .ep-contact-info strong {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.45;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .ep-home .ep-contact-divider {
        display: none;
    }

    .ep-home .ep-hero-visual {
        min-height: 280px;
    }

    .ep-home .ep-logo-frame {
        width: min(240px, 76vw);
        max-width: 100%;
        padding: 18px;
        border-radius: 24px;
    }

    .ep-home .ep-main-logo {
        width: 70%;
        height: auto;
        object-fit: contain;
    }

    .ep-home .ep-section {
        padding-block: 42px;
    }

    .ep-home .ep-section-heading {
        margin-bottom: 26px;
    }

    .ep-home .ep-section-heading h2 {
        font-size: clamp(28px, 9vw, 38px);
        line-height: 1.14;
    }

    .ep-home .ep-section-heading p {
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.6;
    }

    .ep-home .ep-technologies,
    .ep-home .ep-clients {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 12px;
    }

    .ep-home .ep-tech-card,
    .ep-home .ep-client-card {
        height: 100%;
        min-height: 0;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 12px;
        padding: 16px;
    }

    .ep-home .ep-tech-icon,
    .ep-home .ep-client-logo {
        width: 46px;
        height: 46px;
        margin-inline: auto;
    }

    .ep-home .ep-tech-content,
    .ep-home .ep-client-card > div:not(.ep-client-logo) {
        min-width: 0;
        text-align: center;
    }

    .ep-home .ep-tech-content h3,
    .ep-home .ep-client-card h3 {
        font-size: 16px;
        line-height: 1.3;
    }

    .ep-home .ep-tech-content p,
    .ep-home .ep-client-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    .ep-home .ep-tech-tags {
        justify-content: center;
        margin-top: 12px;
    }

    .ep-home .ep-tech-tags span {
        white-space: normal;
    }

    .ep-home .ep-client-arrow {
        display: none;
    }

    .ep-home .ep-store-section {
        margin-block: 12px;
        padding: 42px 14px;
    }

    .ep-home .ep-store-card {
        gap: 16px;
        padding: 20px 16px;
    }

    .ep-home .ep-cta {
        gap: 20px;
        margin-block: 18px 38px;
        padding: 28px 20px;
        text-align: center;
    }

    .ep-home .ep-cta h2 {
        font-size: clamp(28px, 9vw, 38px);
    }

    .ep-home .ep-text-link {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 340px) {
    .ep-home .ep-contact-info,
    .ep-home .ep-technologies,
    .ep-home .ep-clients {
        grid-template-columns: 1fr;
    }

    .ep-home .ep-primary-button,
    .ep-home .ep-secondary-button {
        min-width: 0;
    }

    .ep-home .ep-logo-frame {
        width: min(220px, 78vw);
    }
}
