/* =========================================================
   DESAFIO SECA BARRIGA - RENATO CARIANI
   Clone pixel-perfect - 100% offline
   ========================================================= */

/* ---------- FONT FACES (SORA + MONTSERRAT) ---------- */
@font-face {
    font-family: 'SORA';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Sora-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'SORA';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Sora-ExtraBold.ttf') format('truetype');
}
@font-face {
    font-family: 'SORA';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Sora-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'SORA';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/Sora-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2'),
         url('../fonts/Montserrat-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Montserrat-Bold.woff2') format('woff2'),
         url('../fonts/Montserrat-Bold.woff') format('woff');
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'SORA', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #FFF;
    color: #1E1E1E;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure { margin: 0; }

/* =========================================================
   MOBILE-FIRST STYLES (default < 768px)
   ========================================================= */

.main-container {
    background-color: #FFF;
    padding: 10px 15px 80px 15px;
    max-width: 100%;
    overflow: hidden;
}

/* ---------- VSL HEADLINE (acima do vídeo) ---------- */
.vsl-headline {
    width: 100%;
    margin: 0 auto 24px auto;
    padding: 30px 15px 0 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1E1E1E;
    text-align: center;
}

@media (min-width: 768px) {
    .vsl-headline {
        max-width: 720px;
        padding: 50px 30px 0 30px;
    }
}

@media (min-width: 1025px) {
    .vsl-headline {
        max-width: 820px;
        padding: 60px 30px 0 30px;
    }
}

.vsl-headline p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1px;
    text-align: center;
}

.vsl-headline strong {
    font-weight: 700;
    font-size: 16px;
}

.vsl-headline .highlight {
    background-color: rgb(67, 255, 31);
    padding: 0 2px;
}

/* ---------- VIDEO SECTION ---------- */
.video-section {
    width: 100%;
    margin: 0 auto;
    padding: 0 0 40px 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    background-color: #000;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

/* Garantir que o embed da VTurb (vturb-smartplayer) preencha o wrapper */
.video-wrapper vturb-smartplayer,
.video-wrapper iframe,
.video-wrapper video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 auto !important;
    border: 0;
}

/* Placeholder visual (poster + play) - removido quando embed for colado */
.vsl-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vsl-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

/* ---------- CTA (SIM! ACEITO PERDER ATÉ 10KG) ---------- */
.cta-section {
    display: none;
    width: 100%;
    text-align: center;
    padding: 20px 15px 10px 15px;
}

.cta-section.is-visible {
    display: block;
    animation: cta-fade-in 0.4s ease-out both;
}

.cta-button {
    display: inline-block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 1px;
    color: #FFFFFF;
    background-color: #FF6E00;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    text-transform: none;
    max-width: 100%;
    cursor: pointer;
    transition: transform 0.15s ease-out, background-color 0.15s ease-out;
    animation: cta-pulse 1.8s ease-in-out infinite;
}

.cta-button:hover,
.cta-button:focus-visible {
    background-color: #FF6E00;
    transform: scale(1.03);
}

@keyframes cta-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes cta-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

@media (min-width: 768px) {
    .cta-button { font-size: 22px; padding: 16px 32px; }
}

@media (min-width: 1025px) {
    .cta-button { font-size: 24px; padding: 18px 36px; }
}

/* ---------- HEADLINE ---------- */
.headline-section {
    padding: 25px 20px 0 20px;
    text-align: center;
}

.headline {
    font-family: 'SORA', sans-serif;
    font-weight: 400;
    color: #1E1E1E;
    font-size: 15px;
    line-height: 1.3em;
    letter-spacing: 0;
}

/* ---------- TRANSFORMATIONS GRID (antes/depois) ---------- */
.transformations-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    padding: 0 30px 30px 30px;
    margin-top: 20px;
}

.t-item {
    width: 100%;
}

.t-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

/* ---------- CREDENTIALS GRID (selos/certificados) ---------- */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    justify-items: center;
    padding: 0 30px 30px 30px;
}

.c-item {
    width: 100%;
    max-width: 560px;
}

.c-item img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ---------- FOOTER ---------- */
.site-footer {
    width: 100%;
    padding: 30px;
    background-color: #000;
    background-image: linear-gradient(180deg, #242424 0%, #000000 100%);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    font-weight: 400;
    color: #FFF;
    line-height: 1.4;
    margin: 0;
}

/* =========================================================
   TABLET (≥ 768px)
   ========================================================= */
@media (min-width: 768px) {
    .main-container {
        padding: 20px 15px 50px 15px;
    }

    .video-section {
        width: 80%;
        max-width: 80%;
        margin: 30px auto 0 auto;
        padding: 0;
    }

    .headline-section {
        padding: 60px 60px 0 60px;
    }

    .headline {
        font-size: 24px;
        line-height: 32px;
    }

    .transformations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 20px 60px 0 60px;
    }

    .credentials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 30px 60px 0 60px;
    }

    .c-item { max-width: 100%; }
}

/* =========================================================
   DESKTOP (≥ 1025px)
   ========================================================= */
@media (min-width: 1025px) {
    .main-container {
        padding: 20px 15px 50px 15px;
    }

    .video-section {
        width: 80%;
        max-width: 80%;
        margin: 30px auto 0 auto;
    }

    .headline-section {
        padding: 100px 250px 0 250px;
    }

    .headline {
        font-size: 30px;
        line-height: 40px;
    }

    .transformations-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        padding: 20px 150px 0 150px;
    }

    .credentials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        padding: 30px 150px 0 150px;
        justify-items: center;
        align-items: center;
    }

    .c-item { align-self: center; }
}

/* =========================================================
   LARGE DESKTOP (≥ 1440px)
   ========================================================= */
@media (min-width: 1440px) {
    .video-section {
        max-width: 900px;
    }
}

/* =========================================================
   SMALL MOBILE (≤ 360px)
   ========================================================= */
@media (max-width: 360px) {
    .main-container {
        padding: 10px 10px 60px 10px;
    }

    .transformations-grid,
    .credentials-grid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .headline {
        font-size: 14px;
    }
}

/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard nav */
:focus-visible {
    outline: 2px solid #1E1E1E;
    outline-offset: 2px;
}
