/*
|--------------------------------------------------------------------------
| Funerária LaPaz - Compra Programada
|--------------------------------------------------------------------------
| Estilo exclusivo da página pública de Compra Programada.
| As imagens vêm do storage pelo JSON usando tenant_asset() no Blade.
|--------------------------------------------------------------------------
*/

/*--------------------------------------------------------------
# Página
--------------------------------------------------------------*/
.compra-programada-page {
    background-color: #ffffff;
}

/*--------------------------------------------------------------
# Hero Compra Programada
--------------------------------------------------------------*/
.compra-programada-hero {
    width: 100%;
    min-height: 75vh;
    position: relative;
    padding: 60px 0;
    overflow: hidden;

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

    background-image: var(--compra-programada-hero-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.compra-programada-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--background-color), transparent 85%);
    z-index: 1;
    pointer-events: none;
}

.compra-programada-hero .container {
    position: relative;
    z-index: 2;
}

.compra-programada-hero h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    color: #ffffff;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.7);
}

.compra-programada-hero h1 span {
    color: var(--accent-color);
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.9);
}

.compra-programada-hero p {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    padding: 20px 30px;
    border-radius: 12px;

    width: fit-content;
    max-width: 90%;
    margin: 15px 0 35px 0;
    text-align: left;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.3);

    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.compra-programada-hero .d-flex {
    gap: 20px;
    flex-wrap: wrap;
}

.compra-programada-hero .btn-get-started {
    color: var(--contrast-color);
    background: var(--accent-color);
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 30px;
    border-radius: 8px;
    min-width: 200px;

    transition: 0.4s ease-in-out;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
}

.compra-programada-hero .btn-get-started:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 15%);
    color: var(--contrast-color);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.compra-programada-hero .btn-watch-video {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--accent-color);

    padding: 12px 20px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;

    transition: all 0.4s ease-in-out;
    text-decoration: none;
}

.compra-programada-hero .btn-watch-video i {
    font-size: 22px;
    color: #ffffff;
}

.compra-programada-hero .btn-watch-video:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.compra-programada-hero .btn-watch-video:hover i {
    color: #ffffff;
    transform: scale(1.2);
}

@media (max-width: 991px) {
    .compra-programada-hero {
        min-height: 620px;
        padding: 70px 0;
        background-position: center center;
    }

    .compra-programada-hero h1 {
        font-size: 40px;
        line-height: 1.18;
    }

    .compra-programada-hero p {
        font-size: 16px;
        padding: 15px 20px;
        margin-bottom: 25px;
        max-width: 95%;
    }
}

@media (max-width: 640px) {
    .compra-programada-hero .d-flex {
        flex-direction: column;
        gap: 14px;
    }

    .compra-programada-hero .btn-get-started,
    .compra-programada-hero .btn-watch-video {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }

    .compra-programada-hero .btn-watch-video {
        flex-direction: row;
    }

    .compra-programada-hero .btn-watch-video i {
        font-size: 20px;
    }
}

/*--------------------------------------------------------------
# Details / Plano de Assistência
--------------------------------------------------------------*/
.compra-programada-details {
    padding: 80px 0;
    background-color: #ffffff;
}

.compra-programada-details .section-title {
    padding-bottom: 60px;
}

.compra-programada-details .features-item {
    color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.compra-programada-details .features-item+.features-item {
    margin-top: 100px;
}

/*--------------------------------------------------------------
# Imagem com overlay
--------------------------------------------------------------*/
.compra-programada-image-overlay-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #111111;
}

.compra-programada-image-overlay-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.8);
    transition: transform 0.5s ease;
}

.compra-programada-image-overlay-wrapper:hover img {
    transform: scale(1.05);
}

.compra-programada-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 90%;
    z-index: 2;

    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
}

.compra-programada-overlay-content h2 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 3.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.compra-programada-overlay-content h5 {
    font-weight: 300;
    margin: 0 0 20px 0;
    color: #f0f0f0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.compra-programada-overlay-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 25px 0;
    color: #ffffff;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.compra-programada-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 24px auto 0 auto;
    padding-top: 20px;
    width: fit-content;

    font-weight: 800;
    font-size: 1.6rem;
    color: #ffffff;

    border-top: 1px solid rgba(255, 255, 255, 0.45);
    text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.85);
}

.compra-programada-brand-row img {
    height: 100px;
    width: auto;
    max-width: 180px;
    object-fit: contain;

    filter: brightness(0) invert(1);
}

/*--------------------------------------------------------------
# Conteúdo lateral direito
--------------------------------------------------------------*/
.compra-programada-content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
}

.compra-programada-title-main {
    color: var(--accent-color);
    font-family: "Playfair Display", var(--heading-font);
    font-weight: 700;
    font-size: 2.8rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 20px;
}

.compra-programada-text-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: justify;
    color: #444444;
    margin-bottom: 1rem;
}

.compra-programada-text-content p:last-child {
    margin-bottom: 0;
}

.compra-programada-btn-container {
    text-align: center;
    margin-top: 20px;
}

.compra-programada-btn-contratar {
    background-color: var(--accent-color);
    color: #ffffff;

    padding: 15px 45px;
    border-radius: 50px;

    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;

    display: inline-block;
    transition: all 0.3s;
    border: 1px solid var(--accent-color);
}

.compra-programada-btn-contratar:hover {
    background-color: #ffffff;
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Botões fixos específicos
--------------------------------------------------------------*/
.compra-programada-whatsapp-button {
    position: fixed;
    bottom: 200px;
    left: 15px;

    width: 50px;
    height: 50px;

    background-color: #25d366;
    color: #ffffff;

    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 999;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition:
        background-color 0.3s,
        transform 0.2s;
    text-decoration: none;
}

.compra-programada-whatsapp-button:hover {
    background-color: #1ebe5d;
    transform: scale(1.05);
    color: #ffffff;
}

.compra-programada-back-button {
    position: fixed;
    bottom: 15px;
    left: 15px;

    z-index: 999;
    background: rgba(255, 255, 255, 0.8);
    color: #0d6efd;

    border-radius: 50%;
    width: 50px;
    height: 50px;

    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.compra-programada-back-button:hover {
    background: #0d6efd;
    color: #ffffff;
}

/*--------------------------------------------------------------
# Responsivo
--------------------------------------------------------------*/
@media (max-width: 991px) {
    .compra-programada-hero {
        min-height: 620px;
        padding: 70px 0;
    }

    .compra-programada-hero h1 {
        font-size: 40px;
        line-height: 1.18;
    }

    .compra-programada-hero p {
        font-size: 16px;
        padding: 15px 20px;
        margin-bottom: 25px;
        max-width: 95%;
    }

    .compra-programada-details {
        padding: 70px 0;
    }

    .compra-programada-image-overlay-wrapper {
        height: auto;
        min-height: 350px;
        margin-bottom: 30px;
    }

    .compra-programada-overlay-content h2 {
        font-size: 2.5rem;
    }

    .compra-programada-overlay-content p {
        font-size: 1rem;
    }

    .compra-programada-content-wrapper {
        height: auto;
        display: block;
    }

    .compra-programada-title-main {
        font-size: 2rem;
    }

    .compra-programada-text-content p {
        text-align: left;
        font-size: 1rem;
    }

    .compra-programada-btn-contratar {
        width: 100%;
        padding: 12px 0;
    }
}

@media (max-width: 640px) {
    .compra-programada-details .features-item+.features-item {
        margin-top: 40px;
    }

    .compra-programada-hero .d-flex {
        flex-direction: column;
        gap: 14px;
    }

    .compra-programada-hero .btn-get-started,
    .compra-programada-hero .btn-watch-video {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }

    .compra-programada-hero .btn-watch-video {
        flex-direction: row;
    }

    .compra-programada-hero .btn-watch-video i {
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .compra-programada-overlay-content h2 {
        font-size: 2rem;
    }

    .compra-programada-title-main {
        font-size: 1.8rem;
    }
}

/*--------------------------------------------------------------
# Correção de espaçamento entre Hero e Nossos Planos
--------------------------------------------------------------*/
.compra-programada-page #details,
.compra-programada-page section#details,
.compra-programada-page .compra-programada-details {
    padding-top: 50px;
    padding-bottom: 90px;
}

.compra-programada-page #details .section-title,
.compra-programada-page .compra-programada-details .section-title {
    padding-top: 0;
    padding-bottom: 70px;
    margin-top: 0;
}

/* Se o título ainda ficar colado por causa do section-title */
.compra-programada-page #details.container,
.compra-programada-page #details .container.section-title {
    margin-top: 0;
}

/* Responsivo */
@media (max-width: 991px) {

    .compra-programada-page #details,
    .compra-programada-page section#details,
    .compra-programada-page .compra-programada-details {
        padding-top: 110px;
        padding-bottom: 70px;
    }
}