/* ==============================================
   PLANOS.CSS – Friends Boy's Delivery
   Baseado exatamente no post-2178.css do Elementor
   ============================================== */

/* Hero — fundo #191970, título Varela Round 48px branco */
.planos-hero-section {
    background: #191970;
    padding: calc(var(--header-height) + 7.5rem) 3.125rem 3.125rem;
    text-align: center;
}

.planos-hero-title {
    font-family: 'Varela Round', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: #FFFFFF;
}

/* Section — fundo branco, padding 70px */
.planos-section {
    background: #FFFFFF;
    padding: 4.375rem 3.125rem 4.375rem;
}

/* Descrição — Montserrat 16px #000, centralizado */
.planos-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.75rem;
    color: #000000;
    text-align: center;
    max-width: 62.5rem;
    margin: 0 auto 2.5rem;
}

/* ---- GRID 4 colunas ---- */
.planos-grid {
    display: grid;
    grid-template-columns: 1fr repeat(3, 1fr);
    gap: 0 1rem;
    align-items: start;
    margin-bottom: 3.125rem;
}

/* ---- Coluna labels ---- */
.planos-labels {
    background: #FFFFFF;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 1.0625rem 0 rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    align-self: flex-end;
}

.planos-label-header {
    background: #f0f0f0;
    height: 5.5rem;
}

.planos-label-preco {
    background: #FFFFFF;
    height: 6.875rem;
}

.planos-label-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #282828;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    background: #FFFFFF;
    position: relative;
}

.planos-label-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    border-bottom: 0.125rem solid #ddd;
}

.planos-label-footer {
    background: #FFFFFF;
    min-height: 4.125rem;
}

/* ---- Cards ---- */
.plano-card {
    background: #FFFFFF;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 1.0625rem 0 rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

/* Ribbon */
.plano-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 6.25rem;
    height: 6.25rem;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
    border-top-right-radius: 0.625rem;
}

.plano-ribbon::before {
    content: attr(data-text);
    position: absolute;
    top: 1.375rem;
    right: -1.75rem;
    width: 7.5rem;
    text-align: center;
    background: #952A2A;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.3125rem 0;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    white-space: nowrap;
}

/* Header */
.plano-header {
    background: #C0C0C0;
    padding: 1.25rem 1rem;
    text-align: center;
    min-height: 5.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top-left-radius: 0.625rem;
    border-top-right-radius: 0.625rem;
}

/* Título do plano — #191970, Montserrat 28px 600 */
.plano-nome {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #191970;
    margin-bottom: 0.25rem;
}

/* Subtítulo — #282828, Montserrat 16px 600 */
.plano-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #282828;
}

/* Preço — fundo branco, texto #282828 */
.plano-preco {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem 0.625rem;
    min-height: 6.875rem;
}

.plano-preco-row {
    display: flex;
    align-items: flex-start;
    line-height: 1;
}

.plano-currency {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #282828;
    padding-top: 0.375rem;
    align-self: flex-start;
}

.plano-valor {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: #282828;
    line-height: 1;
}

.plano-frac {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #282828;
    padding-top: 0.375rem;
    align-self: flex-start;
}

.plano-period {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #797A7B;
    margin-top: 0.25rem;
    text-align: center;
}

/* Features — fundo branco, separador #ddd 2px */
.plano-feature {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #282828;
    background: #FFFFFF;
    padding: 0.9375rem 0.75rem;
    text-align: center;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.plano-feature::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    border-bottom: 0.125rem solid #ddd;
}

.plano-no {
    color: #FF0909;
}

.plano-yes {
    color: #01BA00;
}

.plano-no .bi,
.plano-yes .bi {
    font-size: 0.9375rem;
}

/* Footer — fundo branco, botão #952A2A border-radius 10px */
.plano-footer {
    background: #FFFFFF;
    padding: 0.875rem 1rem;
    margin-top: auto;
    min-height: 4.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 0.625rem;
    border-bottom-right-radius: 0.625rem;
}

/* Botão dos cards — SEM animação */
.plano-btn {
    display: block;
    width: 100%;
    background: #952A2A;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.8125rem 1rem;
    border-radius: 0.625rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.plano-btn:hover {
    transform: scale(1.03);
    color: #FFFFFF;
}

/* =============================================
   BOTÃO "ENTRE EM CONTATO"
   Idêntico ao .btn-falar do hero (index.css)
   ============================================= */
.planos-footer-text .btn-falar {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--hover-dark);
    color: var(--white);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.9375rem 4.375rem;
    border-radius: 0.9375rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.43);
    margin-top: 1.25rem;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    animation: pulse 2s infinite, luzes-vermelho 2s linear infinite;
}

.planos-footer-text .btn-falar .bi {
    font-size: 1.1rem;
    line-height: 1;
}

.planos-footer-text .btn-falar:hover {
    transform: scale(1.05);
}

/* Animações — cópia exata do index.css */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes luzes-vermelho {
    0% {
        box-shadow: 0 0 0.625rem -1.25rem #FF0909;
    }

    90% {
        box-shadow: 0 0 0 1.25rem transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

/* Texto final */
.planos-footer-text {
    max-width: 62.5rem;
    margin: 0.75rem auto 0;
    text-align: center;
}

.planos-footer-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.75rem;
    color: #000000;
    margin-bottom: 1.5rem;
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 1140px) {
    .planos-hero-title {
        font-size: 2.25rem;
    }

    .planos-hero-section {
        padding: calc(var(--header-height) + 3.75rem) 1.25rem 2.5rem;
    }

    .planos-section {
        padding: 2.5rem 1.25rem;
    }

    .planos-footer-text .btn-falar {
        padding: 0.9375rem 1.875rem;
    }

    /* Grid vira coluna única com os 4 cards empilhados */
    .planos-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    /* Labels aparece como card no topo */
    .planos-labels {
        display: flex;
        max-width: 25rem;
        width: 100%;
        margin: 0 auto;
    }

    .plano-card {
        max-width: 25rem;
        margin: 0 auto;
        width: 100%;
    }

    /* Remove o label dentro do card pois a coluna labels já aparece separada */
    .plano-feature[data-label]::before {
        display: none;
    }

    .plano-feature[data-label] {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .planos-hero-title {
        font-size: 2rem;
    }

    .plano-nome {
        font-size: 1.375rem;
    }

    .planos-footer-text .btn-falar {
        width: 100%;
        max-width: 20rem;
        justify-content: center;
        padding: 0.875rem 1.25rem;
    }
}

.plano-ribbon-vip::before {
    background: #952A2A;
}