/* ══════════════════════════════════════════
   VEMPRO CLUBE DO LIVRO — style.css
   ══════════════════════════════════════════ */

/* ── RESET & VARIÁVEIS ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --coral:        #FF6B5B;
    --coral-dark:   #e8503f;
    --coral-light:  #fff0ee;
    --teal:         #4ECDC4;
    --teal-dark:    #38b2aa;
    --teal-light:   #e6f9f8;
    --dark:         #1a1a1a;
    --gray:         #666666;
    --gray-mid:     #999999;
    --gray-light:   #f8f8f8;
    --white:        #ffffff;
    --border:       #eeeeee;

    --radius-sm:    10px;
    --radius-md:    16px;
    --radius-lg:    20px;
    --radius-pill:  50px;

    --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:    0 8px 24px rgba(0,0,0,0.10);
    --shadow-lg:    0 16px 48px rgba(0,0,0,0.12);
    --shadow-coral: 0 6px 20px rgba(255,107,91,0.35);
    --shadow-coral-hover: 0 10px 28px rgba(255,107,91,0.45);

    --transition:   0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}


/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
header {
    padding: 32px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.header-logo {
    height: 72px;
}


/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
    text-align: center;
    padding: 80px 80px 56px;
    max-width: 1400px;
    margin: 0 auto;
}

.badge-suspensa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.badge-suspensa::before {
    content: '⏸';
    font-size: 14px;
}

.hero h1 {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.2;
    color: var(--coral);
    margin-bottom: 20px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 16px;
}

.hero .sub {
    font-size: 16px;
    font-weight: 400;
    color: var(--gray);
    margin-bottom: 0;
}


/* ══════════════════════════════════════════
   VÍDEOS (wrapper reutilizável)
   ══════════════════════════════════════════ */
.video-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 80px 72px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    text-align: center;
    margin-top: 16px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--gray);
    letter-spacing: 0.3px;
}

/* CTA abaixo do primeiro vídeo */
.video-cta-wrapper {
    margin-top: 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}


/* ══════════════════════════════════════════
   BOTÃO CTA (compartilhado)
   ══════════════════════════════════════════ */
.btn-cta {
    display: inline-block;
    background: var(--coral);
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 18px;
    padding: 18px 48px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-coral);
}

.btn-cta:hover {
    background: var(--coral-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-coral-hover);
}

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

.cta-note {
    font-size: 13px;
    color: var(--gray-mid);
    line-height: 1.8;
}


/* ══════════════════════════════════════════
   URGÊNCIA
   ══════════════════════════════════════════ */
.urgency {
    background: var(--gray-light);
    padding: 72px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.urgency-inner {
    max-width: 760px;
    margin: 0 auto;
}

.urgency h2 {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.urgency h2 span {
    color: var(--coral);
}

.urgency p {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 12px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.urgency p:last-child {
    margin-bottom: 0;
}


/* ══════════════════════════════════════════
   DEPOIMENTOS
   ══════════════════════════════════════════ */
.depoimentos {
    padding: 80px 24px;
    text-align: center;
    background: var(--white);
}

.depoimentos-inner {
    max-width: 960px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
}

.depoimentos h2 {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.depoimentos h2 span {
    color: var(--teal-dark);
}

.depoimentos-inner > p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 36px;
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.depoimentos-inner .video-caption {
    margin-bottom: 0;
}


/* ══════════════════════════════════════════
   CTA FINAL
   ══════════════════════════════════════════ */
.cta-section {
    padding: 80px 24px 96px;
    text-align: center;
    background: var(--coral-light);
    border-top: 1px solid #ffdbd7;
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-inner p {
    font-size: 17px;
    color: var(--gray);
    margin-bottom: 36px;
    line-height: 1.7;
}


/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
    background: var(--white);
}

footer img {
    height: 40px;
    margin-bottom: 16px;
    opacity: 0.7;
}

footer p {
    font-size: 14px;
    color: var(--gray-mid);
    line-height: 1.9;
}

footer a {
    color: var(--coral);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}


/* ══════════════════════════════════════════
   POPUP OVERLAY
   ══════════════════════════════════════════ */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;

    /* Estado inicial: oculto */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.popup-overlay.ativo {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 44px 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);

    transform: translateY(24px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.ativo .popup-box {
    transform: translateY(0) scale(1);
}

/* Botão fechar */
.popup-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-mid);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.popup-close:hover {
    color: var(--dark);
    background: var(--gray-light);
}

/* Header do popup */
.popup-header {
    text-align: center;
    margin-bottom: 32px;
}

.popup-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

.popup-header h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.25;
}

.popup-header p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
}

/* Campos do formulário */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.field-group label {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    letter-spacing: 0.2px;
}

.field-group input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    color: var(--dark);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field-group input::placeholder {
    color: #c0c0c0;
}

.field-group input:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 91, 0.12);
}

.field-group input.campo-erro {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.10);
}

.field-error {
    font-size: 12px;
    color: #e53e3e;
    font-weight: 600;
    min-height: 16px;
    display: block;
}

/* Mensagem de erro geral */
.mensagem-erro-geral {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.5;
}

/* Botão submit */
.btn-submit {
    width: 100%;
    background: var(--coral);
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 17px;
    padding: 16px 24px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-coral);
    margin-top: 4px;
}

.btn-submit:hover:not(:disabled) {
    background: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-coral-hover);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.popup-note {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--gray-mid);
    line-height: 1.7;
}

/* Estado de Sucesso */
.popup-success {
    text-align: center;
    padding: 12px 0;
}

.success-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 20px;
    display: block;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

.popup-success h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 12px;
}

.popup-success p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.65;
    margin-bottom: 10px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.success-sub {
    font-size: 14px !important;
    color: var(--gray-mid) !important;
    margin-bottom: 28px !important;
}

.popup-success .btn-cta {
    font-size: 16px;
    padding: 14px 40px;
}


/* ══════════════════════════════════════════
   RESPONSIVO — Tablet (601px – 1024px)
   ══════════════════════════════════════════ */
@media (min-width: 601px) and (max-width: 1024px) {
    header {
        padding: 20px 40px;
    }

    .header-logo {
        height: 60px;
    }

    .hero {
        padding: 56px 40px 44px;
    }

    .video-section {
        padding: 0 40px 56px;
    }

    .urgency {
        padding: 56px 40px;
    }

    .depoimentos {
        padding: 60px 40px;
    }

    .cta-section {
        padding: 60px 40px 72px;
    }

    .btn-cta {
        font-size: 17px;
        padding: 16px 40px;
    }

    .popup-box {
        padding: 40px 36px 36px;
    }
}


/* ══════════════════════════════════════════
   RESPONSIVO — Mobile (até 600px)
   ══════════════════════════════════════════ */
@media (max-width: 600px) {
    header {
        padding: 16px 20px;
    }

    .header-logo {
        height: 48px;
    }

    .hero {
        padding: 40px 20px 32px;
    }

    .badge-suspensa {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 24px;
    }

    .video-section {
        padding: 0 16px 48px;
    }

    .video-wrapper {
        border-radius: 14px;
    }

    .video-caption {
        font-size: 13px;
    }

    .video-cta-wrapper {
        margin-top: 28px;
        gap: 12px;
    }

    .urgency {
        padding: 48px 20px;
    }

    .urgency p {
        font-size: 15px;
    }

    .depoimentos {
        padding: 48px 20px;
    }

    .cta-section {
        padding: 52px 20px 72px;
    }

    .btn-cta {
        display: block;
        width: 100%;
        font-size: 16px;
        padding: 16px 24px;
        text-align: center;
    }

    .cta-note {
        font-size: 12px;
    }

    footer {
        padding: 32px 20px;
    }

    /* Popup mobile */
    .popup-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .popup-box {
        border-radius: 20px 20px 0 0;
        padding: 36px 24px 32px;
        max-width: 100%;

        transform: translateY(100%);
    }

    .popup-overlay.ativo .popup-box {
        transform: translateY(0);
    }

    .popup-header h2 {
        font-size: 21px;
    }
}


/* ══════════════════════════════════════════
   ACESSIBILIDADE
   ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}