/* =====================================================
   Hospedagem Ideal — Design System Principal
   =====================================================
   Paleta otimizada para conversão + aprovação em Ads.
   Regra: 70% neutro | 20% autoridade | 10% CTA
   ===================================================== */

/* =====================================================
   IMPORTAÇÃO DE FONTES
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* =====================================================
   VARIÁVEIS CSS (Design Tokens)
   ===================================================== */
:root {
    /* Fundos — 70% neutro */
    --color-bg-main: #FAFAF9;
    --color-bg-section: #F1F5F9;
    --color-surface: #FFFFFF;

    /* Textos */
    --color-title: #0F172A;
    --color-text: #475569;
    --color-text-light: #F8FAFC;
    --color-muted: #94A3B8;

    /* Autoridade — 20% */
    --color-authority: #1D4ED8;
    --color-authority-hover: #1E40AF;
    --color-authority-light: #EFF6FF;

    /* CTA — 10% */
    --color-cta: #16A34A;
    --color-cta-hover: #15803D;

    /* Semânticos */
    --color-urgency: #DC2626;
    --color-bonus: #F59E0B;
    --color-success: #16A34A;
    --color-border: #E2E8F0;

    /* Tipografia */
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

    /* Raios */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transições */
    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* =====================================================
   RESET E BASE
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-title);
    line-height: 1.2;
    font-weight: 700;
}

/* =====================================================
   BARRA DE TRANSPARÊNCIA
   ===================================================== */
.transparency-bar {
    background: var(--color-title);
    color: var(--color-muted);
    font-size: 0.75rem;
    padding: 8px 16px;
    text-align: center;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* =====================================================
   HEADER COM GLASSMORPHISM
   ===================================================== */
.glass-header {
    background: rgba(250, 250, 249, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: box-shadow var(--transition-base), background var(--transition-base);
    position: sticky;
    top: 0;
    z-index: 100;
}

.glass-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

/* Logo textual */
.logo-text .logo-light {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-title);
}

.logo-text .logo-bold {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-authority);
}

/* Navegação desktop */
.nav-link {
    position: relative;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 4px;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-authority);
    border-radius: 2px;
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-authority);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Menu mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-surface);
    box-shadow: var(--shadow-xl);
    z-index: 200;
    transition: right var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 32px 32px;
}

.mobile-menu.open {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   BOTÕES
   ===================================================== */

/* CTA Principal — VERDE CONVERSÃO */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-cta);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: var(--color-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secundário — Azul autoridade */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--color-authority);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--color-authority);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--color-authority);
    color: white;
    transform: translateY(-2px);
}

/* CTA do Header */
.btn-cta-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--color-cta);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.btn-cta-header:hover {
    background: var(--color-cta-hover);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    background: linear-gradient(160deg, #FAFAF9 0%, #F1F5F9 40%, #EFF6FF 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29,78,216,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(29,78,216,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(29, 78, 216, 0.15);
}

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-authority-light);
    color: var(--color-authority);
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

/* Card de perfil (indicado para quem) */
.profile-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-authority), #3B82F6);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.profile-card:hover::before {
    opacity: 1;
}

/* =====================================================
   FAQ ACCORDION
   ===================================================== */
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item.active {
    border-color: rgba(29, 78, 216, 0.25);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-title);
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-authority);
}

.faq-question i {
    font-size: 1.2rem;
    transition: transform var(--transition-base);
    color: var(--color-muted);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--color-authority);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow) ease, padding var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.8;
}


/* =====================================================
   PONTOS FORTES / ATENÇÃO
   ===================================================== */
.point-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    align-items: flex-start;
}

.point-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.point-icon.positive {
    background: #D1FAE5;
    color: var(--color-success);
}

.point-icon.attention {
    background: #FEF3C7;
    color: var(--color-bonus);
}

/* =====================================================
   SEÇÕES
   ===================================================== */
.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 56px 0;
    }
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-title);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--color-text);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.section-alt {
    background: var(--color-bg-section);
}

/* Seção escura para CTA final */
.section-dark {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: var(--color-text-light);
}

.section-dark .section-title {
    color: var(--color-text-light);
}

.section-dark .section-subtitle {
    color: #94A3B8;
}

/* =====================================================
   BADGES EDITORIAIS
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-editorial {
    background: var(--color-authority-light);
    color: var(--color-authority);
}

.badge-independent {
    background: #F0FDF4;
    color: #16A34A;
}

/* =====================================================
   TEXTO DE DESTAQUE (headline)
   ===================================================== */
.text-gradient {
    color: var(--color-authority);
    -webkit-text-fill-color: var(--color-authority);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.text-highlight-offer {
    color: var(--color-urgency);
}

.text-highlight-bonus {
    color: var(--color-bonus);
}

.divider-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-authority), #3B82F6);
    border-radius: 2px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer-dark {
    background: var(--color-title);
    color: #94A3B8;
}

.footer-dark a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-dark a:hover {
    color: var(--color-authority);
}

.footer-divider {
    border-color: rgba(255,255,255,0.08);
}

/* =====================================================
   FORMULÁRIO
   ===================================================== */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-title);
    background: var(--color-surface);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-authority);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.form-input::placeholder {
    color: var(--color-muted);
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--color-title);
}

/* Honeypot — campo oculto */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* =====================================================
   ANIMAÇÕES DE ENTRADA (IntersectionObserver)
   ===================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1 !important;
}

/* Stagger delay para cards */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* =====================================================
   SCROLLBAR PERSONALIZADA
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-section);
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* =====================================================
   PÁGINA OBRIGADO — ANIMAÇÃO DE CHECK
   ===================================================== */
.check-animation {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-success), #34D399);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* =====================================================
   RESPONSIVO — MOBILE-FIRST CONVERSION OPTIMIZATION
   ===================================================== */

/* --- STICKY CTA MOBILE --- */
.sticky-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    display: none;
    transform: translateY(100%);
    animation: stickySlideUp 0.4s ease forwards;
}

@keyframes stickySlideUp {
    to { transform: translateY(0); }
}

.sticky-cta-mobile .sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    background: var(--color-cta);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
    transition: background 0.2s ease;
}

.sticky-cta-mobile .sticky-btn:hover,
.sticky-cta-mobile .sticky-btn:active {
    background: var(--color-cta-hover);
}

.sticky-cta-mobile .sticky-sub {
    text-align: center;
    font-size: 0.7rem;
    color: var(--color-muted);
    margin-top: 4px;
}

/* --- PROVA SOCIAL / TRUST BADGES --- */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 8px 0;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--color-text);
    font-weight: 500;
}

.trust-badge i {
    color: var(--color-cta);
    font-size: 1rem;
}

/* Estrelas de avaliação */
.stars-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.stars-rating i {
    color: var(--color-bonus);
    font-size: 1rem;
}

.stars-rating .rating-text {
    margin-left: 6px;
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 600;
}

/* Depoimento card */
.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    left: 16px;
    font-size: 3rem;
    color: var(--color-authority-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card .testimonial-text {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 12px;
    font-style: italic;
}

.testimonial-card .testimonial-author {
    font-size: 0.8rem;
    color: var(--color-muted);
    font-weight: 600;
}


/* --- URGENCY BAR --- */
.urgency-bar {
    background: linear-gradient(135deg, #FEF2F2, #FFFFFF);
    border: 1px solid rgba(220,38,38,0.12);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-urgency);
    font-weight: 600;
}

.urgency-bar i {
    font-size: 1.1rem;
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =====================================================
   MOBILE BREAKPOINT (max-width: 768px)
   ===================================================== */
@media (max-width: 768px) {
    /* Mostrar sticky CTA */
    .sticky-cta-mobile {
        display: block;
    }

    /* Espaço para sticky CTA não cobrir conteúdo */
    body {
        padding-bottom: 80px;
    }

    /* Tipografia maior + melhor contraste */
    body {
        font-size: 1rem;
        line-height: 1.8;
    }

    h1 { font-size: 1.75rem !important; line-height: 1.25 !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.15rem !important; }

    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Espaçamento entre seções */
    .section-padding {
        padding: 48px 0;
    }

    /* Hero mais compacto above-the-fold */
    .hero-section {
        padding-top: 32px;
        padding-bottom: 40px;
    }

    /* Botão CTA maior no mobile */
    .btn-primary {
        padding: 16px 24px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        border-radius: var(--radius-md);
    }

    .btn-secondary {
        padding: 14px 24px;
        width: 100%;
        justify-content: center;
    }

    /* Cards empilhados */
    .card {
        padding: 24px 20px;
    }

    .card:hover {
        transform: none;
    }

    .profile-card:hover {
        transform: none;
    }



    /* FAQ melhor tap target */
    .faq-question {
        padding: 18px 16px;
        font-size: 0.95rem;
        min-height: 56px;
    }

    .faq-answer-inner {
        padding: 0 16px 16px;
        font-size: 0.9rem;
    }

    /* Pontos fortes/atenção */
    .point-item {
        padding: 12px 0;
    }

    .point-item p {
        font-size: 0.9rem;
    }

    /* Reduzir animações no mobile (performance) */
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* Trust badges stack */
    .trust-badges {
        gap: 10px;
    }

    /* Testimonials full width */
    .testimonial-card {
        padding: 20px;
    }
}

/* Breakpoint pequeno extra */
@media (max-width: 380px) {
    h1 { font-size: 1.5rem !important; }

    .btn-primary {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

/* =====================================================
   PRINT — ESTILOS PARA IMPRESSÃO
   ===================================================== */
@media print {
    .transparency-bar,
    .glass-header,
    .mobile-menu,
    .mobile-overlay,
    .btn-primary,
    .btn-secondary,
    .sticky-cta-mobile {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
        padding-bottom: 0;
    }
}
