/* =============================================
   SETUP INICIAL E VARIÁVEIS
   ============================================= */

:root {
    /* Cores */
    --color-purple-bg: #901C7A;
    --color-cyan-button: #00A5BD;
    --color-beige-bg: #FFF0E3;
    --color-footer-bg: #F7EEFF;
    --color-text-light: #686868;
    --color-text-dark: #000000;
    --color-text-semi-dark: #101010;
    --color-white: #FFFFFF;

    /* Gradiente */
    --gradient-hero: radial-gradient(70.28% 259.07% at 25.83% 47.2%, #F5FEFE 0%, #F7ECFF 56.73%, #FFF0E4 89.42%);
    --gradient-hero-top-bottom: linear-gradient(to top, #F5FEFE 0%, #F7ECFF 56.73%, #FFF0E4 89.42%);
    /* Fontes */
    --font-heading: 'Arvo', serif;
    --font-body: 'ABeeZee', sans-serif;
    --font-footer: 'Athiti', sans-serif;
    --font-cite: 'Amiko', sans-serif;

    /* Espaçamento e Bordas */
    --container-width: 1140px;
    --border-radius: 32px;
}

iframe {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden; /* Previne scroll horizontal indesejado */
    /* A chave é NÃO definir overflow-y, deixando-o no padrão, o que permite o sticky funcionar */
}

/* =============================================
   RESET BÁSICO E ESTILOS GLOBAIS
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-light);
    line-height: 1.6;
    background-color: var(--color-white);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-type: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   BOTÃO GENÉRICO
   ============================================= */

.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--color-cyan-button);
    color: var(--color-white) !important;
}

.btn:hover {
    transform: scale(1.05);
}

/* =============================================
   HEADER / NAVEGAÇÃO (MOBILE FIRST)
   ============================================= */

.main-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--gradient-hero);
    transition: box-shadow 0.3s ease;
}

.main-header.header-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 24px;
}

/* Estilos Mobile (Menu Hamburguer) por padrão */
.nav-toggle {
    display: block;
    /* Visível no mobile por padrão */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    /* Acima do menu */
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Começa fora da tela */
    width: 80%;
    height: 100vh;
    background-color: var(--color-footer-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-menu.is-active {
    right: 0;
    /* Mostra o menu */
}

.nav-menu a {
    font-size: 24px;
    color: var(--color-text-dark);
}

/* O botão "Quero Usar" principal do header fica escondido no mobile */
.main-nav>.btn {
    display: none;
}

/* O botão que aparece dentro do menu mobile fica visível */
.nav-menu-button-item {
    display: block;
}

/* Estilos para Telas Maiores (a partir de 768px) */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
        /* Esconde o hamburguer no desktop */
    }

    .main-nav {
        flex-wrap: nowrap;
        /* Garante que não quebre a linha no desktop */
    }

    .nav-menu {
        position: static;
        /* Volta ao fluxo normal */
        flex-direction: row;
        width: auto;
        height: auto;
        background-color: transparent;
        /* Fundo transparente */
        gap: 32px;
        transition: none;
        /* Remove a transição de "slide" */
        box-shadow: none;
    }

    .nav-menu a {
        font-size: 16px;
        color: var(--color-text-light);
        transition: color 0.3s ease;
    }

    .nav-menu a:hover {
        color: var(--color-text-dark);
    }

    /* Mostra o botão principal no header e esconde o do menu-lista */
    .main-nav>.btn {
        display: block;
    }

    .nav-menu-button-item {
        display: none;
    }
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero-section {
    background: var(--gradient-hero);
    text-align: center;
    padding: 60px 0;
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 42px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.hero-content p {
    font-size: 18px;
    max-width: 450px;
    margin: 0 auto;
}

.hero-image {
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 500px;
}

.hero-image-large {
    display: none;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 100px 0 100px;
        text-align: left;
    }

    .hero-section .container {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }

    .hero-content {
        width: 320px;
    }

    .hero-content h1,
    .hero-content p {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-image-large {
        flex: 1;
        max-width: 691px;
        margin-top: -120px;
        right: -80px;
        position: relative;
        z-index: 2;
        margin-bottom: -200px;
        /* Efeito de "vazar" para a seção seguinte */
        display: block;
    }

    .hero-image {
        display: none;
    }
}

/* =============================================
   HOW IT WORKS SECTION
   ============================================= */

.how-it-works-section {
    padding: 40px 0;
    position: relative;
    z-index: 1;
    background-color: var(--color-white);
}

.how-it-works-columns-wrapper {
    display: block;
    /* Layout de uma coluna por padrão */
    ;
}

.steps-list-container {
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    width: fit-content;
    gap: 10px;
}

.step-row {
    display: flex;
    align-items: top;
    gap: 10px;
}

.step-image img {
    height: 100px;
    width: 100%;
    flex: 1;
}

.step-text {
    width: 40%;
    max-width: 180px;
}

.step-text h3 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 5px;
}

.step-text p {
    font-size: 12px;
    line-height: 16px;
}

.how-it-works-summary {
    text-align: center;
}

.how-it-works-summary h2 {
    margin-bottom: 20px;
    font-size: 36px;
    line-height: 42px;
}

.how-it-works-summary .how-it-works-main-text {
    max-width: 650px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 22px;
}

.how-it-works-summary .how-it-works-main-text p {
    margin-top: 16px;
}

.btn-how-it-works {
    display: inline-block;
    /* Visível no mobile */
}

@media (min-width: 768px) {
    .how-it-works-section {
        padding-top: 160px;
        padding-bottom: 80px;
    }

    .how-it-works-columns-wrapper {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        gap: 200px;
        align-items: center;
    }

    .step-row {
        gap: 25px;
    }

    .step-text {
        width: 196px;
    }

    .step-image img {
        height: 140px;
        width: 100%;
    }

    .step-text h3 {
        font-size: 22px;
        line-height: 26px;
    }

    .step-text p {
        font-size: 14px;
        line-height: 18px;
    }

    .steps-list-container {
        margin: 0 auto 60px;
    }

    .steps-list-container,
    .how-it-works-summary .how-it-works-main-text {
        margin: 0;
        max-width: none;
    }

    .how-it-works-summary {
        text-align: left;
        padding-top: 0;
        /* Reset do padding */
    }

    .how-it-works-summary h2 {
        font-size: 46px;
        line-height: 50px;
    }

    .btn-how-it-works {
        display: none;
        /* Esconde o botão no desktop */
    }
}

/* =============================================
   SOCIAL PROOF / TESTIMONIALS SECTION
   ============================================= */

.testimonials-section {
    background-color: var(--color-beige-bg);
    padding: 40px 0;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 80px;
    font-size: 36px;
    line-height: 42px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Uma coluna no mobile por padrão */
    gap: 60px;
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 10px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card img {
    width: 76px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    margin-top: -48px;
    /* Efeito para "saltar" para fora do card */
}

.testimonial-card blockquote {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Faz o texto ocupar o espaço vertical disponível */
    position: relative;
}

.testimonial-card blockquote::before,
.testimonial-card blockquote::after {
    font-family: var(--font-body);
    position: absolute;
    color: #EAEAEA;
    font-style: normal;
    font-weight: 400;
    font-size: 96px;
    line-height: 18px;
    z-index: 0;
}

.testimonial-card blockquote::before {
    content: '”';
    top: 0;
    left: -20px;
    transform: matrix(-1, 0, 0, 1, 0, 0);
    margin-top: -10px;
}

.testimonial-card blockquote::after {
    content: '”';
    top: 0;
    right: -20px;
    transform: matrix(1, 0, 0, -1, 0, 0);
    margin-top: -66px;
}

.testimonial-card footer {
    text-transform: uppercase;
    font-size: 11px;
    line-height: 18px;
    font-family: var(--font-cite);
    color: var(--color-text-light);
}

.testimonial-card footer cite {
    font-style: normal;
    font-weight: bold;
}

.testimonial-card footer span {
    font-weight: normal;
}

/* Estilos para Telas Maiores (a partir de 768px) */
@media (min-width: 768px) {
    .testimonials-section {
        padding: 80px 0;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 colunas para tablets e desktops */
    }

    .testimonials-section h2 {
        font-size: 46px;
        line-height: 50px;
    }

    .testimonials-grid {
        gap: 30px;
    }
}

/* =============================================
   STEP-BY-STEP GUIDE SECTION
   ============================================= */

.guide-section {
    background: var(--gradient-hero-top-bottom);
    padding: 20px 0;
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    line-height: 42px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* Layout 1x1 no mobile por padrão */
    gap: 40px 20px;
}

.guide-step {
    text-align: center;
}

.guide-step img {
    margin: 0 auto 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.guide-step h3 {
    font-size: 22px;
    line-height: 26px;
    margin-bottom: 10px;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.guide-step p {
    font-size: 14px;
    line-height: 18px;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .guide-section {
        padding: 40px 0 80px;
    }

    .guide-section h2 {
        font-size: 46px;
        line-height: 50px;
    }

    .guide-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 colunas no desktop */
        gap: 30px;
    }
}

/* =============================================
   FINAL CTA / FORM SECTION
   ============================================= */

.form-section {
    position: relative;
    background-color: var(--color-white);
}

.form-columns-wrapper {
    display: flex;
    flex-direction: column;
    /* Empilhado no mobile por padrão */
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
    /* Adiciona respiro no mobile */
}

/* Imagem vem primeiro no mobile */
.form-image-column {
    order: 2;
    width: 100%;
    max-width: 450px;
    margin-bottom: -40px;
    margin-right: -20%;
}

/* Texto vem em segundo */
.form-text-column {
    order: 1;
    text-align: center;
    max-width: 300px;
}

/* Formulário vem em terceiro */
.form-container-column {
    order: 3;
    width: 100%;
    max-width: 500px;
}

.form-text-column p {
    font-size: 20px;
    line-height: 24px;
    color: var(--color-text-semi-dark);
    font-family: var(--font-heading);
}

.form-text-column p:not(:last-child) {
    margin-bottom: 1em;
}

.form-text-column strong {
    color: var(--color-text-dark);
}

.form-wrapper {
    background-color: var(--color-purple-bg);
    border-radius: 29px;
    color: var(--color-white);
    text-align: center;
    height: 560px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.form-wrapper h2 {
    color: var(--color-white);
    font-size: 25px;
    line-height: 30px;
    margin-top: 16px;
}

.form-wrapper h2 strong {
    font-weight: 700;
}

#tally-form-container {
    margin-top: 0px;
    flex: 1;
}

@media (min-width: 768px) {
    .form-columns-wrapper {
        flex-direction: row;
        /* Layout em linha no desktop */
        gap: 30px;
        padding: 0;
        /* Remove o padding vertical */
    }

    /* Reordena as colunas para o desktop */
    .form-image-column {
        order: 1;
    }

    .form-text-column {
        order: 2;
    }

    .form-container-column {
        order: 3;
    }

    /* Coluna 1: Texto */
    .form-text-column {
        flex: 1 1 20%;
        text-align: left;
        margin-left: -110px;
    }

    /* Coluna 2: Imagem */
    .form-image-column {
        flex: 1 1 50%;
        max-width: 522px;
        margin-top: -40px;
        /* Puxa a imagem para cima */
        position: relative;
        margin-bottom: 0;
        margin-right: 0;
    }

    /* Coluna 3: Formulário */
    .form-container-column {
        flex: 1 1 30%;
    }


    .form-wrapper {
        background-color: var(--color-purple-bg);
        border-radius: 29px;
        color: var(--color-white);
        text-align: center;
        height: 560px;
        display: flex;
        flex-direction: column;
    }
}

/* =============================================
   FOOTER (MOBILE FIRST)
   ============================================= */

.main-footer {
    background-color: var(--color-footer-bg);
    padding: 60px 0 20px 0;
    font-size: 15px;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    /* Colunas empilhadas no mobile */
    align-items: center;
    /* Tudo centralizado no mobile */
    gap: 40px;
}

.footer-col-left,
.footer-col-right,
.footer-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Conteúdo das colunas centralizado no mobile */
    gap: 20px;
}

.footer-grid .logo {
    margin-bottom: 10px;
    /* Ajuste de margem */
}

.footer-nav ul {
    text-align: center;
    /* Centraliza o texto dos links de navegação */
}

.footer-nav li:not(:last-child) {
    margin-bottom: 15px;
    /* Adiciona espaçamento vertical */
}

.footer-nav a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-social-links {
    display: flex;
    gap: 20px;
}

.footer-social-links a {
    transition: transform 0.3s ease;
}

.footer-social-links a:hover {
    transform: scale(1.1);
}

.footer-social-links img {
    height: 28px;
}

.copyright-text {
    font-family: var(--font-footer);
    font-size: 14px;
    color: var(--color-text-light);
    text-align: center;
    /* Copyright centralizado no mobile */
}

/* Estilos para Telas Maiores (a partir de 768px) */
@media (min-width: 768px) {
    .footer-grid {
        flex-direction: row;
        /* Volta ao layout em linha */
        justify-content: space-between;
        align-items: flex-end;
    }

    .footer-col-left {
        align-items: flex-start;
        /* Alinha à esquerda */
    }

    .footer-col-right {
        align-items: flex-end;
        /* Alinha à direita */
    }

    .footer-col-center {
        align-items: center;
        /* Alinha ao centro */
    }

    .footer-nav ul {
        text-align: left;
        /* Alinha o texto dos links à esquerda */
    }

    .footer-nav li:not(:last-child) {
        margin-bottom: 0px;
        /* Remove a margem extra */
    }

    .copyright-text {
        text-align: right;
        /* Alinha o copyright à direita */
    }
}
