/* Thin (100) */
@font-face {
    font-family: 'Bradesco Sans';
    src: url('../assets/fonts/BradescoSans-Thin-web.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* Light (300) */
@font-face {
    font-family: 'Bradesco Sans';
    src: url('../assets/fonts/BradescoSans-Light-web.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Regular (400 / normal) */
@font-face {
    font-family: 'Bradesco Sans';
    src: url('../assets/fonts/BradescoSans-Regular-web.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Medium (500) */
@font-face {
    font-family: 'Bradesco Sans';
    src: url('../assets/fonts/BradescoSans-Medium-web.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #5881ab;
    --pink: #e2b3b3;
    --dark: #595959;
    --text: #595959;
    --white: #ffffff;
    --blue-overlap: clamp(180px, 24vw, 350px);
    --hero-title-gap: clamp(24px, 5vw, 56px);
}

/* Base e Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Define a base para o uso de REM (1rem = 16px) */
    font-size: 100%;
}

body {
    font-family: "Bradesco Sans", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.4;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

/* Container Fluido (Funciona de Celulares até Telas 4K) */
.container {
    width: min(1336px, calc(100% - 64px));
    margin: 0 auto;
}

.logo img {
    height: 45px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    position: relative;
    padding: 0;
    height: auto;
}

.hero-banner-container {
    position: relative;
    width: 100%;
    /* Substitui o height fixo. Varia entre 500px (mobile) e 800px (desktop), buscando ocupar 80% da tela */
    min-height: clamp(500px, 80vh, 800px);
}

.hero-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    /* Ajustado para não empurrar demais em telas menores */
    z-index: 3;
    padding-bottom: calc(var(--blue-overlap) + var(--hero-title-gap));
}

@media screen and (max-width:900px) {
    .hero-overlay-content {
        padding-bottom: 100px;
    }

}

/* Tipografia Fluida - não precisa mais de Media Query para eles */
.main-title {
    color: var(--white);
    /* De 32px (2rem) no celular até 70px (4.375rem) no Desktop */
    font-size: clamp(2rem, 5vw + 1rem, 4.375rem);
    font-style: normal;
    font-weight: normal;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 24px;
}

.main-subtitle {
    color: #FFF;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    /* ~18px a 20px */
    font-style: normal;
    font-weight: normal;
    line-height: normal;
    text-align: left;
    margin-bottom: 30px;
}

.hero-title {
    color: var(--white);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    /* ~20px a 28px */
    font-style: normal;
    font-weight: normal;
    line-height: normal;
    text-transform: uppercase;
}

.hero-text .hero-title.with-bars {
    justify-content: flex-start;
}

/* Botões */
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    min-height: var(--ag-btn-min-height, 44px);
    padding: var(--ag-btn-padding-y, 12px) var(--ag-btn-padding-x, 34px);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.button:active {
    transform: translateY(0);
}

.button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.button-light {
    background: var(--white);
    color: #3b5c7f;
    /* WCAG AA compliant contrast */
}

.button-light:hover {
    background: #f0f4f8;
}

.button-blue {
    background: #497096;
    /* Deeper blue for better contrast */
    color: var(--white);
}

.button-blue:hover {
    background: #3b5c7f;
}

.button-centered {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* =========================================
   SEÇÕES GERAIS E GRIDS
========================================= */
.blue-section {
    position: relative;
    z-index: 2;
    background: var(--primary);
    color: var(--white);
    border-top-right-radius: clamp(80px, 10vw, 240px);
    padding: clamp(60px, 8vw, 80px) 0 clamp(60px, 15vw, 200px) 0;
    margin-top: calc(var(--blue-overlap) * -1);
}

.background-box {
    background: var(--white);
    width: 100%;
    max-width: 1400px;
    margin: -210px auto 0;
    padding: 60px 0;
    border-radius: clamp(30px, 5vw, 50px) clamp(30px, 5vw, 50px) 0 0;
    position: relative;
    z-index: 3;
}

.section-title {
    color: #FFF;
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    /* ~22px a 30px */
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: 20px 0;
}

.section-title.dark {
    color: var(--text);
}

.section-title.dark::before {
    background: var(--primary);
}

.with-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.with-bars::before {
    content: "";
    width: 3px;
    height: clamp(25px, 3vw, 35px);
    background: var(--white);
}

.with-bars::after {
    display: none;
}

/* Barras Horizontais para títulos específicos */
.horizontal-bars::before,
.horizontal-bars::after {
    display: block !important;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.horizontal-bars::after {
    content: "";
}

.section-subtitle {
    max-width: 560px;
    margin: 0 auto 42px;
    text-align: center;
    color: #FFF;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-style: normal;
    font-weight: 250;
    line-height: normal;
}

/* Pílulas */
.pill-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 52px;
}

.pill-card {
    border: 1px solid var(--white);
    border-radius: 20px;
    min-height: 68px;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 1.125rem;
    /* 18px */
    padding: 10px;
}

/* Como Funciona */
.how-it-works {
    background: var(--white);
    padding: 84px 0 96px;
}

.how-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    /* ~32px a 40px */
    margin-bottom: 44px;
    color: var(--text);
    font-weight: 250;
    line-height: normal;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 406px));
    justify-content: center;
    gap: 40px;
    margin-bottom: 56px;
}

.step-card {
    background: var(--primary);
    border-radius: 20px;
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1.6 / 1;
    padding: 20px;
}

.step-number {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--white);
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    font-size: 3.125rem;
    /* 50px */
    font-weight: 700;
}

.step-card h3 {
    font-size: 1.375rem;
    /* 22px */
    font-weight: 500;
}

.step-card p {
    font-size: 1.125rem;
    /* 18px */
    font-weight: 100;
}

.choice-section {
    padding: 0 80px 96px 80px;
}

.choice-section .section-title {
    margin-bottom: 34px;
}

.choice-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
}

/* IMPORTANTE: Define o tamanho do card para caberem 3 por linha */
.choice-card {
    text-align: center;
    width: 100%;
    max-width: 320px;
}

.choice-media {
    background: var(--primary);
    border-radius: 20px;
    overflow: hidden;
    padding-bottom: 35px;
    /* Essa é a espessura da faixa azul! */
    margin-bottom: 20px;
}

.choice-media img {
    height: 280px;
    width: 100%;
    object-fit: cover;
    background: #ffffff;
}

.choice-card h3 {
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.choice-card p {
    max-width: 224px;
    margin: 0 auto;
    font-size: 1.25rem;
    font-weight: normal;
    color: var(--text);
}

/* Testemunhos */
.testimonial-section {
    background: var(--primary);
    width: 100%;
    margin: 100px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 450px;
}

.testimonial-image {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    /* Imagem ocupa 40% da largura da tela a partir da esquerda */
    z-index: 1;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.image-fade {
    position: absolute;
    inset: 0;
    /* Fade para a direita, em direção ao texto */
    background: linear-gradient(to left, var(--primary) 0%, transparent 70%);
    z-index: 2;
}

.testimonial-content {
    position: relative;
    z-index: 3;
    padding: 80px 0;
    color: var(--white);
    text-align: right;
    width: 55%;
    margin-left: auto;
}

.testimonial-quote {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 30px;
    position: relative;
    max-width: 700px;
    margin-left: auto;
}

.testimonial-quote::before {
    content: "“";
    position: absolute;
    right: -40px;
    top: -20px;
    font-size: 5rem;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-content .author {
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0.9;
    text-align: right;
}

/* Formulário */
.form-section {
    padding-bottom: 100px;
}

.form-wrapper {
    background: var(--primary);
    border-radius: 40px;
    padding: clamp(40px, 6vw, 50px) clamp(20px, 5vw, 100px);
    box-shadow: 0 20px 40px rgba(88, 129, 171, 0.2);
}

.form-wrapper h2 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
    font-weight: normal;
    line-height: 1.1;
}

.partner-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group.full-width {
    grid-column: span 2;
}

.partner-form label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 10px;
}

.partner-form input,
.partner-form textarea,
.partner-form select {
    width: 100%;
    border: 1px solid transparent;
    background: var(--white);
    border-radius: 15px;
    padding: 18px 24px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.partner-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235881ab' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
}

.partner-form input:focus,
.partner-form textarea:focus,
.partner-form select:focus {
    outline: none;
    background: #f9f9f9;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.partner-form textarea {
    min-height: 140px;
    resize: vertical;
}

.button-submit {
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: #2D2D2D;
    color: var(--white);
    padding: 100px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
    padding-bottom: 80px;
}

.footer-brand img {
    width: 150px;
    margin-bottom: 25px;
}

.brand-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 30px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0;
    /* Para usar ícones depois */
    transition: background 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
}

.footer-column h4 {
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    margin-bottom: 30px;
    position: relative;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-column nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column a {
    color: var(--white);
    opacity: 0.7;
    font-size: 0.9375rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.contact-info p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
}

.contact-info a {
    color: var(--primary);
    opacity: 1;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
}

.bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    opacity: 0.6;
}

.legal-links {
    display: flex;
    gap: 30px;
}

.legal-links a {
    color: var(--white);
}

.legal-links a:hover {
    text-decoration: underline;
}

/* =========================================
   MEDIA QUERIES (Apenas para estruturar o GRID)
   Nota: Fontes e alturas já foram resolvidas com o Clamp!
========================================= */

@media (max-width: 1100px) {

    .pill-grid,
    .choice-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --blue-overlap: clamp(100px, 26vw, 140px);
        --hero-title-gap: clamp(24px, 5vw, 38px);
    }

    .container {
        width: calc(100% - 32px);
    }

    .blue-section {
        margin-top: calc(var(--blue-overlap) * -1);
    }

    .background-box {
        margin: -80px auto 0;
    }

    .pill-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pill-card {
        font-size: 0.875rem;
        /* 14px */
        min-height: 54px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .step-card {
        padding: 16px;
        aspect-ratio: auto;
        min-height: 200px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .step-card h3 {
        font-size: 1.1rem;
    }

    .step-card p {
        font-size: 0.9rem;
    }

    .choice-section {
        padding: 0 16px 60px;
    }

    .choice-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 20px;
        /* Aumentado padding inferior para a scrollbar */
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        margin-left: -16px;
        margin-right: -16px;
    }

    /* Scrollbar elegante para indicar que é rolável */
    .choice-grid::-webkit-scrollbar {
        display: block;
        height: 4px;
    }

    .choice-grid::-webkit-scrollbar-track {
        background: #f0f0f0;
        margin: 0 60px;
        border-radius: 10px;
    }

    .choice-grid::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }

    .choice-card {
        flex: 0 0 75%;
        /* Ocupa 75% da tela, garantindo que o próximo card apareça */
        scroll-snap-align: center;
        max-width: 300px;
    }

    .choice-media img {
        height: 240px;
    }

    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-section {
        flex-direction: column;
        min-height: auto;
        padding: 60px 0 0;
        /* Remove padding lateral pois a imagem é full-width */
        margin: 60px 0;
    }

    .testimonial-image {
        position: relative;
        width: 100%;
        height: 280px;
        /* Reduzido para mostrar melhor o enquadramento do rosto */
        order: 2;
        left: 0;
        top: 0;
    }

    .testimonial-image img {
        object-position: center 20%;
        /* Ajusta o foco um pouco mais para o topo */
    }

    .testimonial-content {
        width: 100%;
        padding: 0 20px 40px;
        text-align: center;
        order: 1;
        margin-left: 0;
    }

    .testimonial-quote {
        margin: 0 auto 20px;
        max-width: 100%;
        font-size: 1.4rem;
        /* Um pouco menor para mobile */
    }

    .testimonial-quote::before {
        left: 50%;
        right: auto;
        top: -35px;
        transform: translateX(-50%);
        font-size: 4rem;
    }

    .testimonial-content .author {
        text-align: center;
        font-size: 1rem;
    }

    .image-fade {
        /* Fade suave no topo da imagem para transição com o texto */
        background: linear-gradient(to bottom, var(--primary) 0%, transparent 40%);
    }

    .testimonial-section::after {
        display: none;
    }
}