/* ==========================================================================
   COMPONENT: CALL TO ACTION (CTA) SECTION
   ==========================================================================
   Estilos para a seção de Chamada para Ação universal do site.
   Utiliza variáveis CSS globais para integração com o sistema de temas.
*/

/* --- 1. VARIÁVEIS LOCAIS (Escopadas) --- */
.cta-universal-wrapper {
    --cta-bg-gradient: linear-gradient(135deg, var(--color-background-dark, #1a1a1a) 0%, var(--color-background-darker, #000000) 100%);
    --cta-accent: var(--color-primary, #b92027); /* Herda do global */
    --cta-text: var(--color-text-inverted, #ffffff);
    --cta-glass-border: var(--color-border-dark, rgba(255, 255, 255, 0.1));
    --cta-button-text-secondary: #000; /* Para opções que têm botão primário escuro */
}

/* --- ADAPTAÇÃO DE TEMAS (Sobrescritas Baseadas no Tema Principal) --- */

/* Não há overrides específicos de 'body.optionX' aqui,
   o comportamento é controlado pelas variáveis globais no :root ou body.dark-mode */

/* --- ESTRUTURA --- */
.cta-universal-wrapper {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-card {
    background: var(--cta-bg-gradient);
    border-radius: 24px;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--cta-glass-border);
}

/* --- DECORAÇÃO (Luzes Ambientais) --- */
.cta-decor-circle {
    position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4; pointer-events: none;
}
.circle-1 {
    width: 300px; height: 300px; background: var(--cta-accent);
    top: -100px; left: -100px;
}
.circle-2 {
    width: 250px; height: 250px; background: rgba(255,255,255,0.1);
    bottom: -50px; right: -50px;
}

.cta-bg-overlay {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5; pointer-events: none;
}

/* --- TIPOGRAFIA --- */
.cta-title {
    color: var(--cta-text);
    font-family: var(--font-heading, serif); /* Usar variável de fonte global */
    font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px; line-height: 1.2;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem; line-height: 1.6; font-weight: 300;
    max-width: 90%;
}

/* --- BOTÕES --- */
.btn-cta-primary {
    background-color: var(--cta-accent);
    color: var(--cta-btn-text);
    padding: 16px 32px; border-radius: 50px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    text-decoration: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 2px solid var(--cta-accent);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

.btn-cta-outline {
    background: transparent; color: #fff;
    padding: 16px 32px; border-radius: 50px;
    font-weight: 600; text-transform: uppercase;
    text-decoration: none; transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.3);
    display: inline-flex; align-items: center; justify-content: center;
}

.btn-cta-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff; color: #fff;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 991px) {
    .cta-card { padding: 40px 25px; text-align: center; }
    .cta-subtitle { margin: 0 auto 30px; }
}

/* ==========================================================================
   CTA SECTION ULTIMATE (Versão Premium com Aurora)
   ========================================================================== */
.cta-section-ultimate {
    --cta-accent: #b92027;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background: #000;
    color: #fff;
}

.aurora-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(185, 32, 39, 0.2) 0%, transparent 50%),
                radial-gradient(circle, rgba(30, 41, 59, 0.4) 0%, transparent 50%);
    background-size: 50% 50%, 60% 60%;
    animation: auroraMove 15s linear infinite alternate;
    opacity: 0.6;
    z-index: 0;
}

@keyframes auroraMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-10%, -10%) rotate(5deg); }
}

.cta-glass-panel {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 80px 60px;
    text-align: center;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
}

.cta-glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cta-accent), transparent);
    animation: borderSlide 3s infinite linear;
}

.cta-glass-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cta-accent), transparent);
    animation: borderSlideReverse 3s infinite linear;
}

@keyframes borderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes borderSlideReverse {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.cta-title-display {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--cta-accent);
    color: #fff;
    padding: 22px 60px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--cta-accent);
    box-shadow: 0 0 30px rgba(185, 32, 39, 0.4);
    font-size: 1rem;
    margin-top: 20px;
}

.cta-action-btn:hover {
    background: #fff;
    color: var(--cta-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 50px rgba(185, 32, 39, 0.6);
}

@media (max-width: 991px) {
    .cta-glass-panel { padding: 50px 26px; }
    .cta-action-btn { width: 100%; justify-content: center; padding: 18px 22px; }
}