/* =====================================================
   PACOTES - HERO
   ===================================================== */

.packages-hero {
    position: relative;
    min-height: 620px;
    height: 620px;
    overflow: hidden;
}


/* =====================================================
   IMAGEM DE FUNDO
   ===================================================== */

.packages-hero-bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        brightness(0.28)
        saturate(1.02);

    z-index: 0;
}


/* =====================================================
   SOBREPOSIÇÃO ESCURA
   ===================================================== */

.packages-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.82) 0%,
            rgba(0,0,0,0.58) 45%,
            rgba(0,0,0,0.70) 100%
        );

    z-index: 1;
}


/* =====================================================
   CONTEÚDO DO HERO
   ===================================================== */

.packages-hero-content {
    position: relative;

    z-index: 2;

    width:
        min(
            calc(100% - 80px),
            1100px
        );

    height: 100%;

    margin: 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 55px;
}


/* =====================================================
   TEXTO DO HERO
   ===================================================== */

.packages-hero-text {
    width: 50%;
    max-width: 540px;

    text-align: left;
}


.packages-hero-text .eyebrow {
    margin-bottom: 18px;
}


.packages-hero-text h1 {
    margin: 0;

    color: #fff;

    font-size:
        clamp(
            38px,
            4.2vw,
            58px
        );

    line-height: 1.02;

    letter-spacing: -0.03em;

    text-shadow:
        0 4px 20px rgba(0,0,0,0.65);
}


.packages-hero-text p {
    max-width: 500px;

    margin: 24px 0 0;

    color: #dedee3;

    font-size: 17px;

    line-height: 1.7;
}


/* =====================================================
   CARD DIREITA DO HERO
   ===================================================== */

.packages-hero-card {
    width: 50%;
    max-width: 560px;

    padding: 30px;

    box-sizing: border-box;

    border-radius: 26px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.10),
            rgba(255,255,255,0.045)
        );

    border:
        1px solid rgba(255,255,255,0.14);

    box-shadow:
        0 25px 70px rgba(0,0,0,0.45);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


.packages-hero-card h3 {
    margin: 0 0 12px;

    color: #fff;

    font-size: 25px;

    line-height: 1.25;
}


.packages-hero-card p {
    margin: 0;

    color: #c9c9cf;

    font-size: 15px;

    line-height: 1.7;
}


.packages-hero-card-line {
    width: 55px;
    height: 3px;

    margin: 22px 0 16px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--red-strong),
            var(--red)
        );
}


.packages-hero-card > span {
    color: #ffd1d5;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    line-height: 1.6;
}

/* =====================================================
   ORGANIZAÇÃO DOS PACOTES
   3 ACIMA + PERSONALITÉ ABAIXO
   ===================================================== */

.package-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    max-width: 1100px;

    margin: 0 auto;
}


/* =====================================================
   PERSONALITÉ
   CENTRALIZADO NA LINHA DE BAIXO
   ===================================================== */

.package-grid .package-card:nth-child(4) {
    grid-column: 1 / -1;

    width: 62%;

    min-height: 250px;

    justify-self: center;

    margin-top: 6px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 32px 42px;
}


/* =====================================================
   PACOTES
   ===================================================== */

.package-card {
    position: relative;

    border:
        1px solid rgba(255,255,255,0.07);

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}


/* =====================================================
   HOVER NEON
   ===================================================== */

.package-card:hover {
    border-color:
        var(--red-strong) !important;

    box-shadow:
        0 0 10px rgba(255,35,51,0.50),
        0 0 25px rgba(255,35,51,0.40),
        0 0 55px rgba(217,21,34,0.28) !important;

    transform:
        translateY(-4px);
}
/* =====================================================
   REMOVE BORDA VERMELHA FIXA DO DIAMOND
   ===================================================== */

.package-card.featured {
    border:
        1px solid rgba(255,255,255,0.07) !important;

    box-shadow:
        var(--shadow) !important; 
        
}
/* =====================================================
   BOTÃO DOS PACOTES
   ===================================================== */

.package-budget-btn {
    cursor: pointer;
}


/* =====================================================
   POPUP DE ORÇAMENTO
   ===================================================== */

.budget-modal {
    position: fixed !important;

    inset: 0 !important;

    width: 100vw;
    height: 100vh;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    z-index: 99999 !important;
}


.budget-modal.active {
    display: flex !important;
}


/* =====================================================
   FUNDO ESCURO DO POPUP
   ===================================================== */

.budget-modal-overlay {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(0,0,0,0.84);

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}


/* =====================================================
   CAIXA DO POPUP
   ===================================================== */

.budget-modal-box {
    position: relative;

    z-index: 2;

    width:
        min(
            620px,
            100%
        );

    max-height: 90vh;

    overflow-y: auto;

    padding: 32px;

    box-sizing: border-box;

    background:
        linear-gradient(
            180deg,
            #1b1b1d 0%,
            #0b0b0c 100%
        );

    border:
        1px solid rgba(255,255,255,0.12);

    border-radius: 24px;

    box-shadow:
        0 30px 100px rgba(0,0,0,0.75),
        0 0 55px rgba(217,21,34,0.12);

    animation:
        budgetModalShow .25s ease;
}


@keyframes budgetModalShow {

    from {
        opacity: 0;

        transform:
            translateY(18px)
            scale(.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


/* =====================================================
   BOTÃO FECHAR
   ===================================================== */

.budget-modal-close {
    position: absolute;

    top: 14px;
    right: 16px;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255,255,255,0.10);

    border-radius: 50%;

    background:
        rgba(255,255,255,0.05);

    color: #fff;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;

    z-index: 3;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.budget-modal-close:hover {
    background:
        rgba(255,35,51,0.12);

    border-color:
        rgba(255,35,51,0.40);

    transform:
        rotate(90deg);
}


/* =====================================================
   CABEÇALHO DO POPUP
   ===================================================== */

.budget-modal-header {
    margin-bottom: 24px;

    padding-right: 45px;
}


.budget-modal-header .eyebrow {
    display: inline-flex;

    padding: 7px 13px;

    margin-bottom: 12px;

    border:
        1px solid rgba(255,35,51,0.25);

    border-radius: 999px;

    background:
        rgba(255,35,51,0.07);

    color: #ffd0d4;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;
}


.budget-modal-header h2 {
    margin: 0 0 8px;

    color: #fff;

    font-size: 28px;

    line-height: 1.15;
}


.budget-modal-header p {
    margin: 0;

    color: #9e9ea5;

    font-size: 14px;

    line-height: 1.6;
}


/* =====================================================
   FORMULÁRIO DO POPUP
   ===================================================== */

.budget-form-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 16px;
}


.budget-field {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.budget-field-full {
    grid-column: 1 / -1;
}


.budget-field label {
    color: #ededf0;

    font-size: 13px;

    font-weight: 700;
}


.budget-field label span {
    color: #ff2333;
}


/* =====================================================
   INPUTS
   ===================================================== */

.budget-field input,
.budget-field select {
    width: 100%;

    height: 46px;

    padding: 0 14px;

    box-sizing: border-box;

    border:
        1px solid rgba(255,255,255,0.12);

    border-radius: 11px;

    background:
        rgba(255,255,255,0.035);

    color: #fff;

    outline: none;

    font-size: 14px;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.budget-field select option {
    color: #000;
    background: #fff;
}


.budget-field input::placeholder {
    color: #6d6d75;
}


.budget-field input:focus,
.budget-field select:focus {
    border-color:
        rgba(255,35,51,0.80);

    background:
        rgba(255,35,51,0.035);

    box-shadow:
        0 0 0 3px
        rgba(255,35,51,0.10);
}


/* =====================================================
   SERVIÇOS PERSONALITÉ
   ===================================================== */

.budget-services {
    display: none;

    grid-column: 1 / -1;

    margin-top: 6px;

    padding-top: 18px;

    border-top:
        1px solid rgba(255,255,255,0.07);
}


.budget-services.active {
    display: block;
}


.budget-services-title {
    margin-bottom: 12px;

    color: #e7e7ea;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.5;
}


.budget-services-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 9px;
}


.budget-service {
    position: relative;

    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 44px;

    padding: 0 12px;

    border:
        1px solid rgba(255,255,255,0.10);

    border-radius: 11px;

    background:
        rgba(255,255,255,0.025);

    color: #e8e8ea;

    font-size: 13px;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease;
}


.budget-service:hover {
    border-color:
        rgba(255,35,51,0.40);

    background:
        rgba(255,35,51,0.045);
}


.budget-service input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


.custom-check {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    border:
        1px solid #ff2333;

    border-radius: 50%;

    transition:
        background .2s ease,
        box-shadow .2s ease;
}


.budget-service input:checked + .custom-check {
    background:
        #ff2333;

    box-shadow:
        0 0 12px rgba(255,35,51,0.55);
}


/* =====================================================
   BOTÃO WHATSAPP
   ===================================================== */

.whatsapp-budget-btn {
    width: 100%;

    height: 50px;

    margin-top: 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #25d366,
            #17b957
        );

    color: #fff;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 12px 30px
        rgba(37,211,102,0.22);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}


.whatsapp-budget-btn:hover {
    transform:
        translateY(-2px);

    filter:
        brightness(1.05);

    box-shadow:
        0 16px 36px
        rgba(37,211,102,0.30);
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1000px) {

    .packages-hero-content {
        width:
            min(
                calc(100% - 50px),
                900px
            );

        gap: 35px;
    }


    .packages-hero-text {
        width: 52%;
    }


    .packages-hero-card {
        width: 48%;
    }

}


/* =====================================================
   CELULAR
   ===================================================== */

@media (max-width: 820px) {

    .packages-hero {
        min-height: 720px;

        height: auto;

        padding:
            110px 0 70px;

        box-sizing: border-box;
    }


    .packages-hero-content {
        width:
            calc(100% - 40px);

        height: auto;

        display: flex;

        flex-direction: column;

        justify-content: center;

        gap: 30px;
    }


    .packages-hero-text {
        width: 100%;

        max-width: 650px;

        text-align: center;
    }


    .packages-hero-text .eyebrow {
        margin-left: auto;
        margin-right: auto;
    }


    .packages-hero-text h1 {
        font-size:
            clamp(
                36px,
                10vw,
                52px
            );
    }


    .packages-hero-text p {
        margin-left: auto;
        margin-right: auto;

        font-size: 15px;
    }


    .packages-hero-card {
        width: 100%;

        max-width: 650px;

        padding: 26px;

        text-align: center;
    }


    .packages-hero-card-line {
        margin-left: auto;
        margin-right: auto;
    }


    /* POPUP */

    .budget-modal {
        padding: 12px !important;
    }


    .budget-modal-box {
        max-height: 92vh;

        padding:
            24px 18px;

        border-radius: 20px;
    }


    .budget-form-grid {
        grid-template-columns: 1fr;
    }


    .budget-field-full,
    .budget-services {
        grid-column: auto;
    }


    .budget-services-grid {
        grid-template-columns: 1fr;
    }


    .budget-modal-header h2 {
        font-size: 25px;
    }
    /* =================================================
       PACOTES NO CELULAR
       ================================================= */

    .package-grid {
        grid-template-columns: 1fr;

        width: calc(100% - 32px);
    }

    .package-grid .package-card:nth-child(4) {
        grid-column: auto;

        width: 100%;

        min-height: auto;

        margin-top: 0;

        padding: 28px;
    }
}


/* =====================================================
   PACOTES — REDUÇÃO DOS ESPAÇAMENTOS
   Mantém o layout e as configurações originais.
   ===================================================== */

/* Reduz o espaço vertical padrão das seções desta página */
.section {
    padding-top: 45px;
    padding-bottom: 45px;
}

/* Aproxima os pacotes do final do hero */
.packages-hero + .section {
    padding-top: 35px;
}

/* Aproxima o CTA dos cards de pacotes */
.package-grid + .section {
    padding-top: 35px;
}

/* Mantém o CTA mais compacto */
.cta-band {
    margin-top: 0;
    margin-bottom: 0;
}

/* No celular, mantém a compactação sem alterar o layout dos cards */
@media (max-width: 820px) {
    .section {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .packages-hero + .section {
        padding-top: 30px;
    }

    .package-grid + .section {
        padding-top: 30px;
    }
}
