/* Responsive refinements for the standalone WordPress plugins page. */

.cta .cta-contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.cta .cta-whatsapp-button,
.cta .cta-email-link {
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 19px;
    border-radius: 11px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    transition: 0.2s ease;
}

.cta .cta-whatsapp-button {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.2);
}

.cta .cta-whatsapp-button:hover,
.cta .cta-whatsapp-button:focus {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.cta .cta-whatsapp-button svg {
    width: 20px;
    flex: 0 0 20px;
    fill: currentColor;
}

.cta .cta-email-link {
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--white);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cta .cta-email-link:hover,
.cta .cta-email-link:focus {
    border-color: var(--primary);
    color: #fbbf24;
    transform: translateY(-2px);
}

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

    body .nav {
        min-height: 62px;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 14px;
        padding-block: 10px;
    }

    body .brand {
        min-width: 0;
        gap: 8px;
        font-size: 16px;
        line-height: 1.25;
    }

    body .brand-mark {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 11px;
        font-size: 19px;
    }

    body .nav-link {
        width: auto;
        max-width: 100%;
        margin-inline-start: auto;
        font-size: 13px;
        white-space: normal;
    }

    body .hero {
        padding-block: 44px 38px;
    }

    body .hero-content {
        max-width: 100%;
    }

    body .eyebrow {
        margin-bottom: 14px;
        padding: 6px 10px;
        font-size: 12px;
    }

    body .hero h1 {
        font-size: clamp(34px, 10.5vw, 46px);
        line-height: 1.07;
        letter-spacing: -1px;
    }

    body .hero p {
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.65;
    }

    body .plugins-section {
        padding-block: 42px 48px;
    }

    body .section-top {
        gap: 8px;
        margin-bottom: 22px;
    }

    body .section-top h2 {
        font-size: clamp(27px, 8vw, 36px);
        line-height: 1.15;
    }

    body .section-top p {
        margin-top: 5px;
        font-size: 14px;
        line-height: 1.55;
    }

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

    body .plugin-card {
        min-width: 0;
        min-height: 0;
        height: 100%;
        padding: 16px;
        border-radius: 15px;
    }

    body .plugin-card:only-child {
        grid-column: 1 / -1;
        width: min(100%, 540px);
        justify-self: center;
    }

    body .plugin-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 14px;
        border-radius: 13px;
        font-size: 21px;
    }

    body .plugin-name {
        margin-bottom: 9px;
        font-size: 17px;
        line-height: 1.3;
    }

    body .plugin-description {
        font-size: 13px;
        line-height: 1.55;
    }

    body .plugin-meta {
        gap: 6px;
        margin-top: 13px;
    }

    body .tag {
        padding: 4px 7px;
        font-size: 11px;
        line-height: 1.35;
    }

    body .plugin-footer {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 12px;
        padding-top: 18px;
    }

    body .view-link {
        width: auto;
        max-width: 100%;
        min-height: 42px;
        padding: 8px 0;
        font-size: 13px;
    }

    body .plugin-type {
        margin-inline-start: auto;
    }

    body .cta {
        padding-bottom: 48px;
    }

    body .cta-box {
        padding: 28px 18px;
        border-radius: 18px;
    }

    body .cta-box h2 {
        font-size: clamp(26px, 8vw, 36px);
        line-height: 1.18;
    }

    body .cta-box p {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.6;
    }

    body .cta .cta-contact-actions {
        gap: 10px;
        margin-top: 20px;
    }

    body .cta .cta-whatsapp-button,
    body .cta .cta-email-link {
        width: auto;
        max-width: 100%;
        min-height: 44px;
        padding-inline: 15px;
        font-size: 13px;
    }

    body footer {
        padding-block: 22px;
    }

    body .footer-content {
        gap: 8px;
        font-size: 13px;
        line-height: 1.5;
    }

    body img,
    body svg {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 340px) {
    body .plugins-grid {
        grid-template-columns: 1fr;
    }

    body .plugin-card:only-child {
        grid-column: auto;
    }

    body .nav {
        align-items: flex-start;
        flex-direction: column;
    }

    body .nav-link {
        margin-inline-start: 0;
    }
}
