/* ============================================================================
   PRESELL PAGE - STYLESHEET PROFISSIONAL
   Sem frameworks, 100% CSS puro
   ============================================================================ */

/* ============================================================================
   1. CORES CUSTOMIZÁVEIS
   EDITAR: Mude os valores HEX para suas cores de marca
   ============================================================================ */
:root {
    /* Cores Primárias */
    --color-primary: #C4622D;           /* EDITAR: Cor principal (terracota) */
    --color-primary-dark: #A84D1F;      /* EDITAR: Cor principal escura */
    --color-primary-light: #E8B4A0;     /* EDITAR: Cor principal clara */
    
    /* Cores de Urgência */
    --color-warning: #FF9500;           /* EDITAR: Aviso (laranja) */
    --color-critical: #DC2626;          /* EDITAR: Crítico (vermelho) */
    
    /* Cores Secundárias */
    --color-secondary: #5C7A5E;         /* EDITAR: Cor secundária (verde) */
    --color-accent: #4A7C4E;            /* EDITAR: Cor de botão (verde escuro) */
    
    /* Cores Neutras */
    --color-background: #FDF8F0;        /* EDITAR: Fundo principal (creme) */
    --color-surface: #FFFFFF;           /* EDITAR: Fundo de cards (branco) */
    --color-text-primary: #2C2C2C;      /* EDITAR: Texto principal (escuro) */
    --color-text-secondary: #5A5A5A;    /* EDITAR: Texto secundário (cinza) */
    --color-text-light: #7A6F5F;        /* EDITAR: Texto leve (cinza claro) */
    --color-border: #E8DCC8;            /* EDITAR: Bordas (cinza muito claro) */
    
    /* Espaçamento */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Tipografia */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.875rem;
    --font-size-3xl: 2.25rem;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* Raios de Borda */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

/* ============================================================================
   2. RESET E ESTILOS GLOBAIS
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================================
   3. BACKGROUND CONTAINER (Imagem desfocada)
   ============================================================================ */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    filter: blur(18px);
    transition: filter 0.5s ease-in-out;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* EDITAR: Substitua a URL pela sua imagem hero */
    background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663563114541/P97vJZjGFutVbr73AHTjaT/primebiome-official-hero_5a2ade0c.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   4. MODAL OVERLAY E MODAL
   ============================================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    overflow-y: auto;
}

.modal {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 28rem;
    width: 100%;
    padding: var(--spacing-xl);
    position: relative;
    z-index: 50;
    animation: scaleIn 0.4s ease-out;
}

@media (min-width: 768px) {
    .modal {
        padding: var(--spacing-2xl);
    }
}

/* Animação de entrada do modal */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ============================================================================
   5. HEADER DO MODAL
   ============================================================================ */
.modal-header {
    margin-bottom: var(--spacing-lg);
}

.modal-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    /* EDITAR: Mude o texto no HTML */
}

.modal-divider {
    width: 3rem;
    height: 0.25rem;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
}

/* ============================================================================
   6. SEÇÃO DO TIMER
   ============================================================================ */
.timer-section {
    background: linear-gradient(to right, var(--color-background), #F5EFE6);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timer-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.timer-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.timer-text {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
}

.timer-value {
    font-family: 'Georgia', serif;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
    transition: color 0.3s ease;
    min-width: 4rem;
    text-align: right;
}

.timer-value.warning {
    color: var(--color-warning);
}

.timer-value.critical {
    color: var(--color-critical);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ============================================================================
   7. DESCRIÇÃO E CONTEÚDO
   ============================================================================ */
.modal-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    font-size: var(--font-size-base);
    /* EDITAR: Mude o texto no HTML */
}

/* ============================================================================
   8. LISTA DE BULLET POINTS
   ============================================================================ */
.bullet-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.bullet-item {
    display: flex;
    gap: var(--spacing-md);
}

.bullet-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.bullet-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    line-height: 1.5;
    /* EDITAR: Mude o texto no HTML */
}

/* ============================================================================
   9. BOTÃO CTA (Call To Action)
   ============================================================================ */
.cta-button {
    width: 100%;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: var(--spacing-lg);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
    /* EDITAR: Link configurado em assets/js/script.js */
}

.cta-button:hover:not(:disabled) {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button:active:not(:disabled) {
    transform: translateY(0);
}

.cta-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================================
   10. DISCLAIMER
   ============================================================================ */
.modal-disclaimer {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.6;
    /* EDITAR: Mude o texto no HTML se necessário */
}

/* ============================================================================
   11. ÍCONES SVG
   ============================================================================ */
svg {
    display: inline-block;
    vertical-align: middle;
}

/* ============================================================================
   12. RESPONSIVIDADE
   ============================================================================ */

/* Mobile (320px - 640px) */
@media (max-width: 640px) {
    .modal {
        padding: var(--spacing-lg);
    }

    .modal-title {
        font-size: var(--font-size-xl);
    }

    .timer-value {
        font-size: var(--font-size-lg);
    }

    .modal-description {
        font-size: var(--font-size-sm);
    }

    .bullet-text {
        font-size: 0.8rem;
    }

    .cta-button {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
}

/* Tablet (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .modal {
        padding: var(--spacing-xl);
    }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .modal {
        padding: var(--spacing-2xl);
    }
}

/* ============================================================================
   13. ACESSIBILIDADE
   ============================================================================ */

/* Focus visível para navegação por teclado */
.cta-button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduz animações se preferência do usuário */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================================
   14. PÁGINA DE AGRADECIMENTO (obrigado.html)
   ============================================================================ */
.thank-you-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: var(--spacing-md);
    z-index: 1000;
}

.thank-you-content {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    max-width: 32rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.6s ease-out;
}

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

.thank-you-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-secondary);
}

.thank-you-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.thank-you-message {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.thank-you-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.thank-you-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* ============================================================================
   15. UTILITÁRIOS
   ============================================================================ */

/* Esconder elementos */
.hidden {
    display: none !important;
}

/* Visibilidade apenas para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================================================
   FIM DO STYLESHEET
   ============================================================================ */
