/* ==========================================================================
   Butiá Investimento — Landing Page
   ========================================================================== */

/* Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

h1 {
    font-weight: 900;
}

ul, ol {
    list-style: none;
}

/* Scroll reveal — fade + translate triggered by IntersectionObserver
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    will-change: opacity, transform;
}

.reveal.is-visible {
    animation: revealIn 700ms ease forwards;
}

@keyframes revealIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__highlights .reveal:nth-child(2).is-visible { animation-delay: 120ms; }
.hero__highlights .reveal:nth-child(3).is-visible { animation-delay: 240ms; }

.solucoes__list .reveal:nth-child(2).is-visible { animation-delay: 120ms; }
.solucoes__list .reveal:nth-child(3).is-visible { animation-delay: 240ms; }

.diferenciais__list .reveal:nth-child(2).is-visible { animation-delay: 80ms; }
.diferenciais__list .reveal:nth-child(3).is-visible { animation-delay: 160ms; }
.diferenciais__list .reveal:nth-child(4).is-visible { animation-delay: 240ms; }
.diferenciais__list .reveal:nth-child(5).is-visible { animation-delay: 320ms; }
.diferenciais__list .reveal:nth-child(6).is-visible { animation-delay: 400ms; }

.contato__actions .reveal:nth-child(2).is-visible { animation-delay: 100ms; }
.contato__actions .reveal:nth-child(3).is-visible { animation-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    .reveal.is-visible {
        animation: none;
    }
}

/* Design Tokens
   ========================================================================== */
:root {
    /* Cores — identidade Butiá Investimento */
    --color-primary:       #012e6f;   /* azul institucional */
    --color-primary-dark:  #011f4b;
    --color-primary-light: #1f4d94;
    --color-text:          #1a1a1a;
    --color-muted:         #5c6470;
    --color-bg:            #ffffff;
    --color-bg-alt:        #f5f7fa;
    --color-border:        #e3e7ec;

    /* Tipografia */
    --font-heading: "Titillium Web", system-ui, -apple-system, sans-serif;
    --font-body:    "Titillium Web", system-ui, -apple-system, sans-serif;

    /* Espaçamento */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;

    /* Layout */
    --container-max: 1094px;
    --container-pad: 1.25rem;

    /* Radius & shadow */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);

    /* Transições */
    --transition: 200ms ease;
}

/* Utilitários
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section {
    padding-block: var(--space-2xl);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Botões
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 30px rgba(1, 46, 111, 0.28);
}

.btn--primary:active {
    transform: translateY(-1px) scale(1.01);
}

/* Hero
   ========================================================================== */
.hero {
    position: relative;
    padding-block: 0 var(--space-2xl);
    color: var(--color-text);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
    background-image: url("../assets/images/bg-hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-md);
    padding-block: var(--space-xl);
}

.hero__logo {
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.hero__logo img {
    height: 64px;
    width: auto;
}

.hero__title {
    max-width: 900px;
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--color-primary);
    line-height: 1.15;
}

.hero__subtitle {
    max-width: 720px;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--color-text);
    font-weight: 400;
}

.hero__highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 320px));
    gap: var(--space-md);
    justify-content: center;
    width: 100%;
    max-width: 720px;
    margin-block: var(--space-sm);
}

.hero__highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.35;
}

.hero__highlight img {
    height: 56px;
    width: auto;
}

.hero__highlight--center {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 320px;
}

.hero__cta {
    margin-top: var(--space-xs);
}

.hero__disclaimer {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-top: var(--space-xs);
}

/* Estratégia (seção 2)
   ========================================================================== */
.estrategia {
    background-color: #e3e3e3;
    padding-block: var(--space-2xl);
    color: var(--color-text);
}

.estrategia__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
}

.estrategia__title {
    max-width: 900px;
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--color-primary);
    line-height: 1.15;
}

.estrategia__subtitle {
    max-width: 820px;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.6;
}

.estrategia__video {
    position: relative;
    width: 100%;
    max-width: 900px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: #000;
}

.estrategia__video img {
    width: 100%;
    height: auto;
    display: block;
}

.estrategia__video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition), transform var(--transition);
}

.estrategia__video-play:hover {
    background-color: #fff;
    transform: translate(-50%, -50%) scale(1.06);
}

.estrategia__cta {
    margin-top: var(--space-xs);
}

/* Soluções (seção 3)
   ========================================================================== */
.solucoes {
    background-color: #ffffff;
    padding-block: var(--space-2xl);
    color: var(--color-text);
}

.solucoes__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
}

.solucoes__title {
    max-width: 900px;
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--color-primary);
    line-height: 1.15;
}

.solucoes__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    max-width: 900px;
}

.card-solucao {
    position: relative;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 2rem 2.25rem;
    border-radius: 32px 0 32px 0;
    text-align: left;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    align-items: center;
}

.card-solucao__icon {
    position: absolute;
    top: 0;
    right: 0;
    height: auto;
    max-height: 75px;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
    pointer-events: none;
}

.card-solucao__content {
    position: relative;
    z-index: 1;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-solucao__title {
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.card-solucao__text {
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
    opacity: 0.95;
}

.btn--cta-gray {
    background-color: #1a7a81;
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn--cta-gray:hover,
.btn--cta-gray:focus-visible {
    background-color: #155f65;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 30px rgba(26, 122, 129, 0.32);
}

.btn--cta-gray:active {
    transform: translateY(-1px) scale(1.01);
}

.solucoes__cta {
    margin-top: var(--space-xs);
}

/* Diferenciais (seção 4)
   ========================================================================== */
.diferenciais {
    background-color: #e3e3e3;
    padding-block: var(--space-2xl);
    color: var(--color-text);
}

.diferenciais__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
}

.diferenciais__title {
    max-width: 900px;
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--color-primary);
    line-height: 1.15;
}

.diferenciais__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg) var(--space-md);
    width: 100%;
    max-width: 960px;
}

.diferencial {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 0.5rem;
}

.diferencial__icon {
    height: 64px;
    width: auto;
}

.diferencial__text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    line-height: 1.35;
    max-width: 220px;
}

/* Contato (seção 5)
   ========================================================================== */
.contato {
    position: relative;
    background-image: url("../assets/images/form-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-block: var(--space-2xl);
    color: #ffffff;
}

.contato__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
}

.contato__title {
    max-width: 860px;
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #ffffff;
    line-height: 1.15;
}

.contato__hero-img {
    max-width: 520px;
    width: 100%;
    height: auto;
}

.contato__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
}

.btn-acao {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-acao:hover,
.btn-acao:focus-visible {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 30px rgba(1, 46, 111, 0.35);
}

.btn-acao:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-acao__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contato__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm) var(--space-md);
    width: 100%;
    max-width: 720px;
    margin-top: var(--space-sm);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.form-field input,
.form-field select {
    font: inherit;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: border-color var(--transition), background-color var(--transition);
}

.form-field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.form-field select option {
    color: var(--color-text);
    background-color: #ffffff;
}

.btn--submit {
    background-color: #1a7a81;
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn--submit:hover,
.btn--submit:focus-visible {
    background-color: #155f65;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 30px rgba(26, 122, 129, 0.4);
}

.btn--submit:active {
    transform: translateY(-1px) scale(1.01);
}

.contato__submit {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: var(--space-xs);
}

/* Logo bar (tarja)
   ========================================================================== */
.logo-bar {
    background-color: #ffffff;
    padding-block: var(--space-md);
}

.logo-bar__inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-bar__logo {
    height: 56px;
    width: auto;
}

/* Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary);
    color: #ffffff;
    padding-block: var(--space-xl);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
}

.site-footer__badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: #ffffff;
}

.site-footer__badges li {
    position: relative;
}

.site-footer__intro {
    font-size: 1rem;
    color: #ffffff;
    max-width: 800px;
    margin-top: var(--space-sm);
}

.site-footer__partners {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.5;
}

.site-footer__legal {
    font-size: 0.95rem;
    color: #ffffff;
    margin-top: var(--space-sm);
}

.site-footer__logo {
    margin-top: var(--space-md);
}

.site-footer__logo img {
    height: 64px;
    width: auto;
    margin: 0 auto;
}

/* Assinatura
   ========================================================================== */
.site-signature {
    background-color: #ffffff;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-signature__logo {
    height: 2rem;
    width: auto;
    opacity: .9;
    transition: all .3s ease;
}

.site-signature__logo:hover {
    opacity: 1;
    filter: contrast(1.5);
    transform: scale(1.02);
}

/* Responsivo
   ========================================================================== */
@media (max-width: 640px) {
    .hero {
        padding-block: 0 var(--space-xl);
    }

    .hero__highlights {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .hero__highlight--center {
        grid-column: auto;
    }

    .hero__logo img {
        height: 52px;
    }

    .estrategia {
        padding-block: var(--space-xl);
    }

    .estrategia__video-play {
        width: 64px;
        height: 64px;
        font-size: 1.25rem;
    }

    .card-solucao {
        padding: 1.5rem 1.5rem;
        border-radius: 24px 0 24px 0;
    }

    .card-solucao__icon {
        max-height: 56px;
        top: 0;
        right: 0;
        opacity: 0.5;
    }

    .card-solucao__content {
        max-width: 100%;
    }

    .diferenciais__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 420px;
    }

    .diferencial__icon {
        height: 52px;
    }

    .contato__form {
        grid-template-columns: 1fr;
    }

    .contato__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-acao {
        justify-content: center;
    }

    .logo-bar__logo {
        height: 44px;
    }

    .site-footer__partners {
        font-size: 0.85rem;
    }

    .site-footer__logo img {
        height: 52px;
    }
}
