/**
 * ==============================================================================
 * Intertecne Guincho Core - Estilos Globais & Componentes da Landing Page
 * ==============================================================================
 * Arquivo: assets/css/style.css
 * Descrição: Folha de estilos da Landing Page B2C (Auto Socorro & Guincho 24h).
 * Design system de alta conversão inspirado no benchmark Guincho Itapoá & Awwwards.
 *
 * @package IntertecneGuinchoCore
 * @version 2.0.0
 * ==============================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #0F2C4C; 
    --primary-light: #1e3a8a;
    --danger: #D32126;  
    --danger-hover: #b91c1c;
    --success: #25D366;
    --success-hover: #1eb956;
    --bg-dark: #0b1120;
    --bg-card-dark: #1e293b;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Variáveis do Tenant com Fallbacks */
    --cg-primary: #FFCC00;
    --cg-secondary: #0b1120;
    --cg-accent: #25D366;
    --cg-danger: #D32126;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: #f8fafc;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==============================================================================
   1. DOBRA 1: HERO SECTION & CALCULADORA MULTI-STEP
   ============================================================================== */
.master-hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.master-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
}

.hero-branding {
    flex: 1;
    max-width: 580px;
}

.hero-logo {
    max-width: 220px !important;
    height: auto !important;
    margin: 0 0 20px 0 !important;
    display: block !important;
    filter: drop-shadow(0px 6px 14px rgba(0, 0, 0, 0.4));
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(211, 33, 38, 0.15);
    border: 1px solid rgba(211, 33, 38, 0.4);
    color: #ff6b6b;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: var(--danger);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-red 1.6s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(211, 33, 38, 0.8); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(211, 33, 38, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(211, 33, 38, 0); }
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    color: #ffffff;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 14px 0;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.hero-title span {
    color: var(--cg-primary, #FFCC00);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 28px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.direct-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.btn-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 50px;
    cursor: pointer;
}

.btn-call {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-call:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.btn-whats {
    background: var(--success);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.btn-whats:hover {
    background: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55);
}

.trust-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 7px 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ==============================================================================
   2. CALCULADORA WIZARD (CARD BRANCO ELEVADO - BENCHMARK EXATO)
   ============================================================================== */
.hero-calculator {
    flex: 1;
    max-width: 490px;
    width: 100%;
}

.calc-wrapper {
    background: #ffffff !important;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
    color: #0f172a;
    position: relative;
}

.wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.step-indicator {
    font-size: 0.8rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-indicator.active {
    color: var(--danger);
    font-weight: 900;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 12px;
}

.wizard-viewport {
    overflow: hidden;
    width: 100%;
}

.wizard-track {
    display: flex;
    width: 300%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.wizard-step {
    width: 33.333%;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 16px;
}

/* Painéis de Origem e Destino */
.address-panel {
    background: #f8fafc;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.full-w {
    grid-column: span 2;
}

.c-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

/* INPUTS DA CALCULADORA (BRANCOS, NÍTIDOS E COM ANTI-ZOOM 16PX) */
.c-input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px; /* Previne auto-zoom no Safari iOS */
    color: #0f172a !important;
    background-color: #ffffff !important;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.c-input:focus {
    border-color: #0F2C4C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 44, 76, 0.12);
}

.input-sm {
    padding: 10px 12px;
    font-size: 15px;
}

/* BOTÃO DE GPS VERMELHO (HIGH CONVERSION) */
.gps-btn {
    width: 100%;
    background: var(--danger) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(211, 33, 38, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 46px;
}

.gps-btn:hover {
    background: var(--danger-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(211, 33, 38, 0.4);
}

.gps-status {
    font-size: 0.8rem;
    margin-top: 6px;
    font-weight: 700;
}

/* Ações e Navegação do Wizard */
.wizard-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.btn-next,
.btn-calc-final {
    width: 100%;
    background: var(--danger);
    color: #ffffff;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 20px rgba(211, 33, 38, 0.35);
    transition: all 0.2s;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-next:hover,
.btn-calc-final:hover {
    background: var(--danger-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(211, 33, 38, 0.45);
}

.btn-prev {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 50px;
}

.btn-prev:hover {
    background: #e2e8f0;
}

/* Caixa de Resultado do Orçamento */
.c-result {
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.c-val {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--cg-primary, #FFCC00);
    margin: 4px 0;
}

/* Modal de Revisão do Pedido */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rm-content {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.rm-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.rm-desc {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.rm-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.85rem;
    background: #f8fafc;
    color: #0f172a !important;
}

.rm-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.rm-btn {
    flex: 1;
    padding: 13px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    min-height: 48px;
}

.rm-cancel {
    background: #f1f5f9;
    color: #475569;
}

.rm-send {
    background: var(--success);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* ==============================================================================
   3. DOBRA 2: PROVA SOCIAL & GOOGLE REVIEWS
   ============================================================================== */
.cg-social-proof {
    background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
    padding: 80px 20px;
}

/* ==============================================================================
   4. DOBRA 4: RADAR DE COBERTURA (HUD HIGH-TECH)
   ============================================================================== */
.cg-radar-animation {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

@keyframes cgRadarPulse {
    0% { transform: scale(0.3); opacity: 0.9; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ==============================================================================
   5. BANNER LGPD & PRIVACIDADE
   ============================================================================== */
.cg-lgpd-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 900px;
    margin: 0 auto;
    background: #0f172a;
    border: 1px solid var(--cg-primary, #FFCC00);
    border-radius: 16px;
    padding: 16px 22px;
    z-index: 999999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: cgLgpdFadeIn 0.4s ease-out;
}

@keyframes cgLgpdFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cg-lgpd-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cg-lgpd-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.cg-lgpd-text {
    flex: 1;
    min-width: 250px;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cg-lgpd-link {
    color: var(--cg-primary, #FFCC00);
    text-decoration: underline;
    margin-left: 6px;
    font-weight: 700;
}

.cg-lgpd-accept {
    background: var(--cg-accent, #25D366);
    color: #ffffff;
    font-weight: 800;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 48px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s;
}

.cg-lgpd-accept:hover {
    transform: translateY(-1px);
}

/* Modal de Termos de Privacidade */
.cg-privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cg-privacy-card {
    background: #ffffff;
    color: #1e293b;
    border-radius: 16px;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.cg-privacy-header {
    padding: 20px 24px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cg-privacy-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
}

.cg-privacy-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.cg-privacy-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #334155;
}

.cg-privacy-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.cg-privacy-btn {
    background: var(--cg-primary, #FFCC00);
    color: #0b1120;
    font-weight: 800;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    min-height: 44px;
}

/* ==============================================================================
   6. RESPONSIVIDADE & MOBILE-FIRST BREAKPOINTS
   ============================================================================== */
@media (max-width: 900px) {
    .master-hero {
        padding: 40px 16px;
    }

    .master-container {
        flex-direction: column;
        gap: 35px;
    }

    .hero-branding {
        max-width: 100%;
        text-align: center;
    }

    .hero-logo {
        margin: 0 auto 16px auto !important;
    }

    .direct-actions {
        justify-content: center;
    }

    .trust-inline {
        justify-content: center;
    }

    .hero-calculator {
        max-width: 100%;
    }

    .calc-wrapper {
        padding: 20px 16px;
    }
}
