@import './design-system.css?v=8';

/* ==========================================================================
   Design System & Premium Theme for NutriCard Multi
   ========================================================================== */

:root {
    /* Layout Details (específicos da página) */
    --header-height: 100px;
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text);
    background: var(--color-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   Floating Glassmorphic Navbar (Light Theme)
   ========================================================================== */
:root {
    --nav-bg: rgba(255, 255, 255, 0.7);
    --panel-bg: rgba(255, 255, 255, 0.95);
    --border: var(--color-border);
    --border-strong: var(--color-border-strong);
    --text-nav: var(--color-text);
    --text-nav-muted: var(--color-text-muted);
    --nav-blue: var(--color-primary);
    --gap-top: 24px;
    --bar-h: 64px;
    --spring: var(--t-spring);
    --t-fade: var(--t-fast);

    /* Valores controlados pela microanimação GSAP (compactação no scroll) */
    --nav-max-w: 1280px;
    --nav-pad-left: 24px;
    --nav-pad-right: 12px;
    --logo-h: 32px;
    --nav-item-fs: 0.9375rem;
    --nav-item-py: 8px;
    --nav-item-px: 14px;
    --primary-py: 10px;
    --primary-px: 20px;

    /* footer-específico */
    --footer-bg: #002e7f;
    --footer-surface: rgba(255, 255, 255, 0.08);
    --footer-border: rgba(255, 255, 255, 0.15);
    --footer-text: #ffffff;
    --footer-muted: rgba(255, 255, 255, 0.70);
    --footer-accent: var(--blue-500);
    --footer-accent-h: var(--blue-400);
}

/* ===== Nav (fixed layer) ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: var(--gap-top);
    pointer-events: none;
    /* only children capture click */
    transition: transform 0.4s var(--spring);
}

.nav>* {
    pointer-events: auto;
}

/* Auto-hide: sai ao descer, volta ao subir (classe alternada em main.js,
   setupNavAutoHide). -100% = 88px (--gap-top + --bar-h); os 16px extras
   levam a sombra de vidro junto, senão ela fica pendurada no topo. */
.nav.is-hidden {
    transform: translateY(calc(-100% - 16px));
}

@media (prefers-reduced-motion: reduce) {
    .nav {
        transition: none;
    }

    .nav.is-hidden {
        transform: none;
    }
}

/* ===== Pill ===== */
.nav__bar {
    position: relative;
    max-width: var(--nav-max-w);
    width: calc(100% - 160px);
    margin: 0 auto;
    height: var(--bar-h);
    padding: 0 var(--nav-pad-right) 0 var(--nav-pad-left);
    display: flex;
    align-items: center;
    gap: 24px;
    /* Vidro na mesma intensidade do card do e-mail (.info-card) */
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: var(--shadow-glass), var(--sheen);
    will-change: max-width, border-radius, box-shadow;
    transition: border-color var(--t-fade);
}

@media (max-width: 1200px) {
    .nav__bar {
        width: calc(100% - 80px);
    }
}

@media (max-width: 576px) {
    .nav__bar {
        width: calc(100% - 32px);
    }
}

/* Logo */
.nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-brand-dark);
    text-decoration: none;
    flex-shrink: 0;
}

.nav__logo img,
.nav__logo svg {
    height: var(--logo-h);
    width: auto;
    display: block;
}

/* Central menu */
.nav__menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav__trigger,
.nav__link {
    font-family: 'Poppins', sans-serif;
    font-size: var(--nav-item-fs);
    font-weight: 500;
    color: var(--text-nav-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--nav-item-py) var(--nav-item-px);
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--t-fade), background var(--t-fade);
}

.nav__trigger:hover,
.nav__link:hover,
.nav__trigger[aria-expanded="true"] {
    color: var(--nav-blue);
    background: rgba(0, 91, 255, 0.05);
}

.nav__trigger:focus-visible,
.nav__link:focus-visible {
    outline: 2px solid var(--nav-blue);
    outline-offset: 2px;
}

/* trigger que é link direto (sem dropdown), ex.: Produtos → #produtos */
.nav__trigger--link {
    display: inline-flex;
    align-items: center;
}

/* CTAs */
.nav__ctas {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav__mobile-access {
    display: none;
}

.nav__signin {
    font-family: 'Poppins', sans-serif;
    font-size: var(--nav-item-fs);
    font-weight: 500;
    color: var(--text-nav-muted);
    text-decoration: none;
    padding: var(--nav-item-py) var(--nav-item-px);
    border-radius: 15px;
    transition: color var(--t-fade), background var(--t-fade);
}

.nav__signin:hover {
    color: var(--nav-blue);
    background: rgba(0, 91, 255, 0.05);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    /* Mesma cor do CTA do hero (.btn--primary do design-system) */
    background-color: var(--nav-blue);
    background-image: linear-gradient(180deg, var(--blue-500), var(--blue-600));
    color: var(--color-white);
    font-family: 'Poppins', sans-serif;
    font-size: var(--nav-item-fs);
    font-weight: 600;
    padding: var(--primary-py) var(--primary-px);
    border-radius: 15px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 91, 255, 0.15), var(--sheen);
    transition: transform var(--t-fade), box-shadow var(--t-fade), background var(--t-fade);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 91, 255, 0.25), var(--sheen);
    background-image: linear-gradient(180deg, var(--blue-600), var(--blue-700));
}

/* ==========================================================================
   Contraste adaptativo da navbar (a barra fica sempre translúcida)
   - Sobre seções ESCURAS (hero, #diferenciais, footer): conteúdo CLARO
   - Sobre seções CLARAS: conteúdo ESCURO
   Alternância via classe .on-dark / .on-light (JS: setupNavTheme)
   ========================================================================== */

/* Padrão = sobre seção escura (a página abre no hero) → conteúdo claro */
.nav__trigger,
.nav__link,
.nav__signin {
    color: rgba(255, 255, 255, 0.92);
}

.nav__trigger:hover,
.nav__link:hover,
.nav__signin:hover,
.nav__trigger[aria-expanded="true"] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.nav__burger {
    color: #ffffff;
    transition: color var(--t-fade);
}

/* Logo: crossfade suave entre a branca (fundo escuro) e a azul (fundo claro) */
.nav__logo {
    position: relative;
}

.nav__logo .logo-img {
    transition: opacity 0.35s ease;
}

.nav__logo .logo-img--dark {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Sobre seção CLARA → conteúdo escuro + logo azul */
.nav.on-light .nav__trigger,
.nav.on-light .nav__link,
.nav.on-light .nav__signin {
    color: var(--text-nav-muted);
}

.nav.on-light .nav__trigger:hover,
.nav.on-light .nav__link:hover,
.nav.on-light .nav__signin:hover,
.nav.on-light .nav__trigger[aria-expanded="true"] {
    color: var(--nav-blue);
    background: rgba(0, 91, 255, 0.05);
}

.nav.on-light .nav__burger {
    color: var(--color-brand-dark);
}

.nav.on-light .nav__logo .logo-img--light {
    opacity: 0;
}

.nav.on-light .nav__logo .logo-img--dark {
    opacity: 1;
}

/* Borda sutil que contrasta com o fundo da seção */
.nav.on-light .nav__bar {
    border-color: rgba(11, 27, 59, 0.10);
}

/* ===== Dropdown (morphing container) ===== */
.dropdown {
    position: absolute;
    top: 0;
    left: 0;
    /* defined via JS */
    width: 0;
    height: 0;
    /* Vidro na mesma translucidez da navbar (.nav__bar) */
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.92);
    transform-origin: top center;
    pointer-events: none;
    transition:
        opacity var(--t-fade),
        transform 280ms var(--spring),
        width 320ms var(--spring),
        height 320ms var(--spring),
        left 320ms var(--spring);
}

.dropdown.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Panels stacked; only active is visible */
.menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: max-content;
    /* measure fit content */
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-fade);
}

.menu-panel.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Simple list */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 220px;
}

.menu-list a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--ink-700);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--t-fade), background var(--t-fade);
}

.menu-list a:hover {
    color: var(--nav-blue);
    background: rgba(0, 91, 255, 0.05);
}

/* Lista em duas colunas (painel Para Empresas, 6 itens) */
.menu-list--2col {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    align-content: start;
    column-gap: 8px;
}

/* Painel com imagem de apoio: lista à esquerda, imagem à direita */
.menu-split {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.menu-feature {
    display: block;
    flex-shrink: 0;
    width: 240px;
    min-height: 168px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}

.menu-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--t-fade);
}

.menu-feature:hover img {
    transform: scale(1.04);
}

/* Cards (Products) */
.menu-cards {
    display: flex;
    gap: 12px;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 332px;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    transition: background var(--t-fade), transform var(--t-fade);
}

.menu-card:hover {
    background: rgba(0, 91, 255, 0.05);
    transform: translateY(-2px);
}

.menu-card>span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.menu-card img {
    width: 118px;
    height: 74px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.menu-card__title {
    display: block;
    color: var(--ink-900);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.menu-card__desc {
    display: block;
    color: var(--ink-600);
    font-size: 0.8125rem;
    line-height: 1.4;
}

/* Dropdown translúcido: sobre seções ESCURAS o texto do menu fica claro.
   Sobre seções claras usa os tons escuros padrão (ink-*). */
.nav.on-dark .menu-list a,
.nav.on-dark .menu-card__title {
    color: #ffffff;
}

.nav.on-dark .menu-card__desc {
    color: rgba(255, 255, 255, 0.78);
}

.nav.on-dark .menu-list a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.nav.on-dark .menu-card:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .dropdown {
        transition: opacity 120ms linear;
        transform: none;
    }

    .dropdown.is-open {
        transform: none;
    }
}

/* Burger (hidden on desktop) */
.nav__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-nav);
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: background var(--t-fade);
}

.nav__burger:hover {
    background: rgba(0, 91, 255, 0.05);
}

/* ===== Mobile Drawer ===== */
.drawer {
    position: fixed;
    top: calc(var(--gap-top) + var(--bar-h) + 10px);
    left: 16px;
    right: 16px;
    z-index: 999;
    background: var(--panel-bg);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
    padding: 8px;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity var(--t-fade), transform 260ms var(--spring);
    max-height: calc(100vh - var(--gap-top) - var(--bar-h) - 40px);
    overflow-y: auto;
    display: none;
}

.drawer.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.drawer__group {
    border-bottom: 1px solid var(--border);
}

.drawer__group:last-child {
    border-bottom: none;
}

.drawer__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-nav);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 12px;
    border-radius: 10px;
}

.drawer__head:hover {
    background: rgba(0, 91, 255, 0.05);
}

.drawer__head svg {
    transition: transform 220ms ease;
}

.drawer__head[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.drawer__sub {
    display: none;
    flex-direction: column;
    padding: 0 12px 10px;
}

.drawer__group.is-open .drawer__sub {
    display: flex;
}

.drawer__sub a,
.drawer__link {
    color: var(--text-nav-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 9px 12px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.drawer__sub a:hover,
.drawer__link:hover {
    color: var(--nav-blue);
    background: rgba(0, 91, 255, 0.05);
}

.drawer__cta {
    display: block;
    text-align: center;
    margin: 10px 12px 6px;
    /* Mesma cor do CTA do hero (.btn--primary do design-system) */
    background-color: var(--nav-blue);
    background-image: linear-gradient(180deg, var(--blue-500), var(--blue-600));
    color: var(--color-white);
    font-weight: 600;
    padding: 12px;
    border-radius: 15px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 91, 255, 0.15), var(--sheen);
    transition: background var(--t-fade);
}

.drawer__cta:hover {
    background-image: linear-gradient(180deg, var(--blue-600), var(--blue-700));
}

@media (max-width: 860px) {

    .nav__menu,
    .nav__ctas {
        display: none;
    }

    .nav__burger {
        display: inline-flex;
        margin-left: 0;
    }

    .nav__mobile-access {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        margin-left: auto;
        padding: 0 16px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 15px;
        background-color: var(--nav-blue);
        background-image: linear-gradient(180deg, var(--blue-500), var(--blue-600));
        box-shadow: 0 4px 15px rgba(0, 91, 255, 0.22), var(--sheen);
        color: #ffffff;
        font-family: 'Poppins', sans-serif;
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .nav__mobile-access:hover,
    .nav__mobile-access:focus-visible {
        background-image: linear-gradient(180deg, var(--blue-600), var(--blue-700));
    }

    .nav__mobile-access:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
    }

    .dropdown {
        display: none !important;
    }

    .drawer {
        display: block;
    }

    .nav__bar {
        gap: 12px;
    }

    /* Contraste no mobile: barra navy escura fixa + logo/burger sempre
       brancos, independentemente da seção. Evita o "branco sobre claro"
       quando a barra fica sobre o topo claro das heros de imagem. */
    .nav__bar,
    .nav.on-light .nav__bar {
        background: rgba(11, 27, 59, 0.42);
        border-color: rgba(255, 255, 255, 0.22);
    }

    .nav__burger,
    .nav.on-light .nav__burger {
        color: #ffffff;
    }

    .nav.on-light .nav__logo .logo-img--light {
        opacity: 1;
    }

    .nav.on-light .nav__logo .logo-img--dark {
        opacity: 0;
    }

    /* Drawer (menu mobile) no mesmo tom navy da barra, com texto claro.
       Corrige o texto branco-sobre-branco que herdava de --text-nav. */
    .drawer {
        background: rgba(11, 27, 59, 0.68);
        border-color: rgba(255, 255, 255, 0.16);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
    }

    .drawer__group {
        border-bottom-color: rgba(255, 255, 255, 0.10);
    }

    .drawer__head {
        color: #ffffff;
    }

    .drawer__head:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .drawer__sub a,
    .drawer__link {
        color: rgba(255, 255, 255, 0.72);
    }

    .drawer__sub a:hover,
    .drawer__link:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 360px) {
    .nav__bar {
        gap: 8px;
        padding-left: 16px;
        padding-right: 8px;
    }

    .nav__mobile-access {
        padding-inline: 12px;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Hero Section Layout (Parallax & Full-Bleed)
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 190px;
    background-color: #030a1c;
    /* dark fallback */
    z-index: 10;
}

/* Parallax background layers */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    /* taller for scrolling travel */
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1.5fr 0.85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero Columns */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-right {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.hero-title {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 110px;
    line-height: 1.2;
    color: var(--color-white);
    letter-spacing: -1px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 20px;
    /* 0.64 = 0.8 × 0.8: preserva o tamanho visual que o título tinha quando
       havia scale duplicado (no .hero-container, agora removido). */
    scale: 0.94;
    transform-origin: left center;
}

.rotating-text-container {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    height: 8.5rem;
    line-height: 8
    overflow: hidden;
    text-align: left;
}

.rotating-word {
    display: block;
    white-space: nowrap;
    color: var(--color-white);
    /* White rotating text */
    font-size: 5.5rem;
    line-height: 8rem;
    font-weight: 400;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60%);
    transition: transform 1.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.25s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.char.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slide-out {
    from {
        transform: translateY(0%);
        opacity: 1;
    }

    to {
        transform: translateY(-110%);
        opacity: 0;
    }
}

.title-logo-wrapper {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.title-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Invert logo to pure white for dark background overlay */
}

/* Hero Primary CTA Button */
.hero-cta-primary {
    margin-top: 24px;
    font-size: 16px;
    padding: 14px 36px;
}

/* Glassmorphic Info Card */
.info-card {
    /* Ocultado a pedido do Joan em 27/07/2026. O HTML e o handler do
       #signup-form seguem no lugar — basta remover esta linha para voltar. */
    display: none;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: var(--radius-2xl);
    padding: 28px 36px;
    box-shadow: var(--shadow-glass), var(--sheen) !important;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif !important;
    /* Reduz a escala do card mantendo a borda direita alinhada com a navbar.
       Resetado no mobile (≤992px), onde o card fica centralizado. */
    scale: 0.85;
    transform-origin: right center;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -15%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.info-text {
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: 28px;
}

/* Signup Form */
.signup-form {
    width: 100%;
    position: relative;
}

.input-group {
    background-color: var(--color-white);
    border-radius: var(--radius-pill);
    padding: 6px 6px 6px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--t-normal);
}

.input-group:focus-within {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(0, 91, 255, 0.35);
}

.input-group input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--color-text);
    background: transparent;
    padding-right: 12px;
    width: 100%;
}

.input-group input::placeholder {
    color: #a0a0a0;
}

.btn-submit {
    /* Mesma cor do CTA do hero (.btn--primary do design-system) */
    background-image: linear-gradient(180deg, var(--blue-500), var(--blue-600));
    box-shadow: var(--sheen);
    color: var(--color-white);
    border: none;
    outline: none;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--t-normal);
}

.btn-submit:hover {
    background-image: linear-gradient(180deg, var(--blue-600), var(--blue-700));
    transform: scale(1.02);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Error message styling */
.error-message {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ff4a4a;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    padding-left: 28px;
    min-height: 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.error-message.visible {
    opacity: 1;
}

/* ==========================================================================
   Hero Image Area
   ========================================================================== */
.hero-image-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.hero-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0));
}

/* ==========================================================================
   Footer (former bottom-strip — now with purpose)
   ========================================================================== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-family: var(--font-sans);
    position: relative;
    /* overflow: hidden removido — permite a imagem da seção de contato emergir */
    overflow: visible;
    z-index: 10;
}

/* Borda superior desabilitada (tema sólido) */
.site-footer::before {
    display: none;
}

/* Brilho de fundo desabilitado (tema sólido) */
.site-footer::after {
    display: none;
}

/* ── Corpo principal ── */
.footer__body {
    position: relative;
    z-index: 1;
    max-width: 1360px;
    margin: 0 auto;
    padding: 64px 40px 48px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
}

/* ── Coluna 1: Brand ── */
.footer__brand {}

.footer__logo {
    display: block;
    height: 36px;
    width: auto;
    margin-bottom: 20px;
    /* fallback texto caso SVG não carregue */
}

.footer__logo-fallback {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -.02em;
    color: var(--footer-text);
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
}

.footer__tagline {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--footer-muted);
    max-width: 240px;
    margin-bottom: 28px;
}

/* ── Selos / trust badges ── */
.footer__badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--footer-surface);
    border: 1px solid var(--footer-border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--footer-muted);
    letter-spacing: .03em;
}

.badge svg {
    flex-shrink: 0;
    opacity: .7;
}

/* ── Colunas de links ── */
.footer__col-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 20px;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--footer-text);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 6px;
}

.footer__links a:hover {
    background-color: #ffffff;
    color: var(--footer-bg);
}

.footer__links .badge-new {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--blue-500);
    color: #fff;
    border-radius: 4px;
    padding: 2px 5px;
    line-height: 1.4;
}

/* ── Social ── */
.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--footer-surface);
    border: 1px solid var(--footer-border);
    color: var(--footer-muted);
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.social-btn:hover {
    background: rgba(0, 91, 255, .15);
    border-color: rgba(0, 91, 255, .4);
    color: var(--blue-400);
}

.social-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
    stroke: currentColor;
}

.badge i {
    display: inline-flex;
    align-items: center;
}

.badge svg {
    width: 12px !important;
    height: 12px !important;
    display: block;
    opacity: .7;
    stroke: currentColor;
}

/* ── Divider ── */
.footer__divider {
    position: relative;
    z-index: 1;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer__divider hr {
    border: none;
    border-top: 1px solid var(--footer-border);
}

/* ── Bottom bar ── */
.footer__bottom {
    position: relative;
    z-index: 1;
    max-width: 1360px;
    margin: 0 auto;
    padding: 20px 40px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__copy {
    font-size: 12px;
    color: var(--footer-muted);
    line-height: 1.6;
}

.footer__copy strong {
    color: #ffffff;
    font-weight: 500;
}

/* Telefone: link clicável no mobile sem o azul/sublinhado padrão do browser */
.footer__copy a {
    color: inherit;
    text-decoration: none;
}

.footer__copy a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer__legal {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__legal a {
    font-size: 12px;
    color: var(--footer-muted);
    text-decoration: none;
    transition: color .18s ease;
}

.footer__legal a:hover {
    color: var(--footer-text);
}

.footer__legal-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--footer-muted);
    opacity: .4;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .footer__body {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
        padding: 48px 24px 40px;
    }
}

@media (max-width: 560px) {
    .footer__body {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 40px 20px 32px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 20px 28px;
        gap: 12px;
    }

    .footer__divider {
        padding: 0 20px;
    }
}

/* Footer no mobile: colunas de links alinhadas à esquerda (não centralizadas) */
@media (max-width: 576px) {
    .footer__col-title,
    .footer__links {
        text-align: left;
    }

    .footer__links {
        align-items: flex-start;
    }

    .footer__links a {
        justify-content: flex-start;
        text-align: left;
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 80px;
    }

    .rotating-text-container {
        min-width: 280px;
        height: 5.2rem;
    }

    .rotating-word {
        font-size: 4rem;
        line-height: 5.2rem;
    }

    .title-logo {
        height: 80px;
    }

    .hero-container {
        padding: 0 40px;
    }

    .info-card {
        padding: 40px 36px;
    }
}

@media (max-width: 992px) {
    .main-header {
        padding: 0 20px;
    }

    .header-container {
        padding: 0 20px;
        border-radius: 0;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .nav-menu {
        display: none;
        /* In a real product we would add a hamburger menu, keeping it simple for the layout mockup */
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 40px;
        text-align: center;
        gap: 30px;
    }

    .hero-left {
        align-items: center;
        text-align: center;
    }

    /* O CTA ficava oculto aqui porque o .info-card já trazia um botão.
       Com o card ocultado (27/07/2026) ele volta, senão o hero mobile
       fica sem nenhuma chamada para ação. */

    .hero-right {
        justify-content: center;
    }

    .hero-title {
        justify-content: center;
        font-size: 56px;
    }

    .rotating-text-container {
        min-width: 240px;
        text-align: center;
        height: 3.8rem;
    }

    .rotating-word {
        text-align: center;
        font-size: 3rem;
        line-height: 3.8rem;
    }

    .title-logo {
        height: 60px;
    }

    .info-card {
        margin: 0 auto;
        max-width: 420px;
        padding: 24px 20px;
        scale: 1;
        transform-origin: center;
    }

    .info-text {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .hero-image-wrapper {
        justify-content: center;
        order: -1;
        /* Place image on top on tablet/mobile */
    }

    .hero-img {
        max-width: 80%;
    }
}

@media (max-width: 768px) {

    /* Oculta o título do hero no mobile — o texto rotativo e o logo Nutri
       ficavam por cima da modelo/cartão, sem contraste e ilegíveis */
    .hero-title {
        display: none;
    }

    /* Sem título e sem .info-card, o CTA é a única chamada do hero no mobile:
       ganha corpo e área de toque de 58px. Largura fluida com teto de 340px —
       com padding fixo o botão estourava o container em telas de 360px.
       A especificidade dupla é proposital: precisa vencer o `.btn` reduzido
       do bloco @media (max-width: 576px). */
    .hero-left .hero-cta-primary {
        margin-top: 28px;
        font-size: 18px;
        padding: 20px 24px;
        border-radius: 12px;
        width: 100%;
        max-width: 340px;
    }
}

/* Telas estreitas (≤380px): o rótulo é longo e não quebra (`white-space: nowrap`
   no `.btn`), então o corpo do texto cede um pouco para não vazar do botão. */
@media (max-width: 380px) {
    .hero-left .hero-cta-primary {
        font-size: 16px;
        padding: 18px 16px;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 80px;
    }

    .header-container {
        padding: 0 15px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 14px;
        border-radius: 10px;
    }

    .logo-img {
        height: 32px;
    }

    .hero-title {
        font-size: 38px;
        flex-direction: column;
        row-gap: 10px;
    }

    .rotating-text-container {
        min-width: 100%;
        text-align: center;
        height: 2.4rem;
    }

    .rotating-word {
        text-align: center;
        font-size: 1.8rem;
        line-height: 2.4rem;
    }

    .title-logo {
        height: 50px;
    }

    .info-card {
        padding: 14px 12px;
        border-radius: 16px;
        max-width: 100%;
    }

    /* Oculta o texto descritivo no mobile para economizar espaço */
    .info-text {
        display: none;
    }

    .input-group {
        flex-direction: row;
        border-radius: 50px;
        padding: 5px 5px 5px 14px;
        gap: 6px;
    }

    .input-group input {
        text-align: left;
        padding-right: 0;
        font-size: 12px;
    }

    .btn-submit {
        width: auto;
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    .error-message {
        text-align: center;
        padding-left: 0;
    }
}

/* ==========================================================================
   New Sections — Clients · Benefits · Advantages · Steps · Contact
   (built on the design-system tokens above)
   ========================================================================== */

/* ---- Shared section header ---- */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-16);
    padding: 0 var(--space-6);
}

.section-header h2 {
    font-family: 'ITC Avant Garde Gothic', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: var(--text-3xl);
    line-height: 1.2;
    color: var(--color-brand-dark);
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* ---- Clients / social proof marquee (also the hero divider) ---- */
.clients-section {
    position: relative;
    z-index: 20;
    /* slides over the hero as a curtain */
    width: 100%;
    margin-top: -40px;
    /* Overlaps hero so the blue bg shows under rounded corners */
    padding: var(--space-12) 0;
    background-color: var(--color-bg-subtle);
    border-top: 1px solid var(--border);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    overflow: hidden;
}

.logoloop {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.logoloop--fade {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logoloop__track {
    display: flex;
    width: max-content;
    will-change: transform;
    user-select: none;
    position: relative;
    z-index: 1;
}

.logoloop__list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.logoloop__item {
    flex: 0 0 auto;
    margin-right: var(--logoloop-gap, 72px);
    font-size: var(--logoloop-logoHeight, 20px);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #b8c0cc;
    white-space: nowrap;
}

.logoloop__node {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color var(--t-fast);
    cursor: pointer;
    height: var(--logoloop-logoHeight, 56px);
    width: auto;
}

.logoloop__node svg {
    height: 100%;
    width: auto;
    display: block;
    fill: currentColor;
}

.logoloop__link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #b8c0cc;
    transition: color var(--t-fast);
}

.logoloop--scale-hover .logoloop__item:hover .logoloop__node {
    transform: scale(1.2);
    transform-origin: center center;
}

/* Logo da marca no carrossel — renderizada como imagem (logo-azul.svg) */
img.logoloop__node {
    display: block;
    object-fit: contain;
}

/* ==========================================================================
   CARD PADRÃO (COMPONENTE GLOBAL)
   ========================================================================== */
.card-standard {
    background-color: var(--color-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6) var(--space-6);
    box-shadow: var(--shadow-sm);
    display: flex;
    transition: 
        transform var(--t-normal), 
        box-shadow var(--t-normal), 
        border-color var(--t-normal),
        background-color var(--t-normal);
}

/* Modificadores de Layout */
.card-standard--vertical {
    flex-direction: column;
    justify-content: space-between;
}

.card-standard--horizontal {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-5);
}

/* Modificadores de Fundo / Tema */
.card-standard--subtle {
    background-color: var(--blue-50);
    border-color: var(--blue-100);
}

/* Comportamento de Hover Padrão */
.card-standard:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-300);
}

.card-standard--vertical:hover {
    transform: translateY(-5px) scale(1.01);
}

.card-standard--horizontal:hover {
    transform: translateX(4px);
}

/* ---- How it works — split layout (imagem esq. + steps dir.) ---- */
.how-it-works-section {
    width: 100%;
    padding: 0 80px;
    background-color: var(--color-white);
}

/* Wrapper 2 colunas — vira palco de 100vh no desktop (para o pin) */
.how-it-works-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 100vh;
    padding-block: clamp(3rem, 8vh, 6rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

/* ---- Coluna da imagem ---- */
.hiw-media {
    position: relative;
}

/* Placeholder estilizado — substituir pelo <img> quando o arquivo chegar */
.hiw-media__placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 520px;
    border-radius: var(--radius-2xl, 1.5rem);
    border: 2.5px dashed var(--blue-300, #8aaeff);
    background: linear-gradient(145deg, var(--blue-50, #eef4ff) 0%, #f8faff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4, 1rem);
    padding: var(--space-8, 2rem);
    text-align: center;
    color: var(--blue-400, #5285ff);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.hiw-media__placeholder:hover {
    border-color: var(--blue-500, #005bff);
    background: linear-gradient(145deg, var(--blue-100, #dbe7ff) 0%, #eef4ff 100%);
}

.hiw-media__icon {
    width: 64px;
    height: 64px;
    opacity: 0.6;
}

.hiw-media__label {
    font-size: var(--text-base, 1rem);
    font-weight: 600;
    color: var(--blue-700, #0039a6);
    margin: 0;
}

.hiw-media__hint {
    font-size: var(--text-xs, 0.75rem);
    color: var(--color-text-muted, #6b7a99);
    font-family: 'ITC Avant Garde Gothic', monospace;
    opacity: 0.75;
}

/* Imagem real que substitui o placeholder */
.hiw-media__img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: min(72vh, 620px);
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-2xl, 1.5rem);
    display: block;
    box-shadow: 0 20px 60px rgba(0, 46, 127, 0.15);
    will-change: transform, opacity;
}

/* ---- Coluna do conteúdo ---- */
.hiw-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-8, 2rem);
}

.hiw-header {
    text-align: left;
}

.hiw-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-brand-dark, #002e7f);
    line-height: 1.2;
    margin-bottom: var(--space-3, 0.75rem);
}

.hiw-header p {
    font-size: var(--text-base, 1rem);
    color: var(--color-text-muted, #6b7a99);
    line-height: 1.6;
}

/* ---- Steps Container ---- */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-5, 1.25rem);
    list-style: none;
    padding: 0;
    margin: 0;
}

/* .step-card herdará todos os estilos de .card-standard, .card-standard--horizontal e .card-standard--subtle */

.step-number {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--blue-500, #005bff), var(--blue-600, #004bd9));
    color: var(--color-white, #ffffff);
    font-size: var(--text-lg, 1.125rem);
    font-weight: 700;
    box-shadow: 0 8px 18px -5px rgba(0, 91, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    will-change: transform;
}

.step-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2, 0.5rem);
    padding-top: 2px;
}

.step-card h3 {
    font-size: var(--text-base, 1rem);
    font-weight: 700;
    color: var(--color-brand-dark, #002e7f);
    margin: 0;
    line-height: 1.3;
}

.step-card p {
    font-size: var(--text-sm, 0.875rem);
    line-height: 1.6;
    color: var(--color-text-muted, #6b7a99);
    margin: 0;
}

/* ---- Cards dos passos: superfície branca com profundidade + hover ---- */
.step-card {
    position: relative;
    z-index: 1;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border-strong, rgba(11, 27, 59, 0.14));
    border-radius: var(--radius-xl, 18px);
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}

@media (hover: hover) {
    .step-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--border-blue, rgba(0, 91, 255, 0.35));
    }
}

/* Telas mais baixas (desktop): compacta para caber o palco */
@media (min-width: 901px) and (max-height: 820px) {
    .how-it-works-inner {
        padding-block: clamp(2rem, 5vh, 4rem);
    }

    .steps-container {
        gap: var(--space-4, 1rem);
    }

    .hiw-content {
        gap: var(--space-5, 1.25rem);
    }
}

/* ---- Responsividade ---- */
@media (max-width: 900px) {
    .how-it-works-section {
        padding: var(--space-16, 4rem) 40px;
    }

    .how-it-works-inner {
        grid-template-columns: 1fr;
        gap: var(--space-10, 2.5rem);
        min-height: auto;
        padding-block: 0;
    }

    .hiw-media__placeholder {
        aspect-ratio: 16 / 9;
        max-height: 300px;
    }

    .hiw-header {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .how-it-works-section {
        padding: var(--space-12, 3rem) 20px;
    }

    .step-card {
        padding: var(--space-4, 1rem) var(--space-4, 1rem);
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: var(--text-base, 1rem);
    }
}

/* ---- Contact / lead form — 2 colunas minimalista ---- */
.contact-section {
    width: 100%;
    background-color: var(--color-white, #ffffff);
    /* Sem padding-bottom: a imagem da pessoa chega até o footer */
    padding: 0;
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Grade interna 2 colunas */
.contact-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    /* alinha a base das colunas (pé da imagem) */
    padding: 80px 80px 0;
    gap: 0;
    position: relative;
}

/* ---- Coluna do formulário ---- */
.contact-form-col {
    padding: var(--space-4, 1rem) var(--space-8, 2rem) 80px 0;
    color: var(--color-text, #0b1b3b);
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs, 0.75rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary, #005bff);
    background: rgba(0, 91, 255, 0.08);
    border: 1px solid rgba(0, 91, 255, 0.18);
    border-radius: 99px;
    padding: 6px 14px;
    margin-bottom: var(--space-5, 1.25rem);
}

@font-face {
    font-family: 'ITC Avant Garde Gothic';
    src: url('/public/fonts/ITCAvantGardeStd-Demi.woff2') format('woff2'),
         url('/public/fonts/ITCAvantGardeStd-Demi.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'ITC Avant Garde Gothic';
    src: url('/public/fonts/ITCAvantGardeStd-Bold.woff2') format('woff2'),
         url('/public/fonts/ITCAvantGardeStd-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'ITC Avant Garde Gothic';
    src: url('/public/fonts/ITCAvantGardeStd-Bold.woff2') format('woff2'),
         url('/public/fonts/ITCAvantGardeStd-Bold.ttf') format('truetype');
    font-weight: 800;
    font-display: swap;
}
/* Monument Extended — fonte display (números / palavra-herói) */
@font-face {
    font-family: 'Monument Extended';
    src: url('/public/fonts/MonumentExtended-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Monument Extended';
    src: url('/public/fonts/MonumentExtended-Ultrabold.otf') format('opentype');
    font-weight: 800;
    font-display: swap;
}
/* Anti-FOUC do SplitText: esconde os títulos-alvo até splittext-reveal.js desarmar.
   Só vale com JS (html.st-armed adicionado no <head>); sem JS os títulos ficam visíveis. */
html.st-armed :is(.pg-hero__title, .pg-h2, .contact-title, .stack-title, .pg-cta__title) {
    visibility: hidden;
}

.contact-title {
    font-family: 'ITC Avant Garde Gothic', 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--color-brand-dark, #002e7f);
    line-height: 1.1;
    margin-bottom: var(--space-4, 1rem);
}

.contact-sub {
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-muted, #6b7a99);
    line-height: 1.6;
    margin-bottom: var(--space-8, 2rem);
}

/* ---- Coluna da pessoa (imagem emergindo) ---- */
.contact-person-col {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    align-self: end;
    overflow: visible;
}

.contact-person-img {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    position: relative;
    bottom: -70px;
    filter: drop-shadow(-20px 0 40px rgba(0, 0, 0, 0.25));
    object-fit: contain;
    object-position: bottom;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* Reduced from 8px to 4px to make it tighter between label and input */
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink-700);
}

.form-group input,
.form-group select {
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-sm);
    color: var(--ink-900);
    background-color: var(--color-bg-subtle, #f6f8fc);
    border: 1px solid var(--color-border-strong, rgba(11, 27, 59, 0.14));
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    outline: none;
    transition: background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-group input:hover,
.form-group select:hover {
    border-color: rgba(0, 91, 255, 0.35);
}

.form-group input::placeholder {
    color: var(--color-text-faint, #8593ae);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* --color-text resolve para branco (alias de --surface): as options ficavam
   invisíveis no dropdown. Usa a mesma cor de texto do próprio campo. */
.form-group select option {
    background-color: #fff;
    color: var(--ink-900);
}

.form-group input:focus,
.form-group select:focus {
    background-color: var(--color-white);
    color: var(--ink-900);
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(0, 91, 255, 0.22), 0 4px 14px rgba(0, 91, 255, 0.16);
}

/* Label acompanha o campo ativo — :focus-within, sem JS */
.form-group:focus-within label {
    color: var(--blue-600);
}

.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 16px;
    font-size: var(--text-xs);
    color: var(--red-500, #e23d5c);
}

/* O design-system marca o erro com um bullet (.field-error:not(:empty)::before).
   Com o ícone animado ele vira ruído — o ícone já cumpre o papel. */
.field-error::before {
    display: none;
}

/* ==========================================================================
   Ícones de feedback animados (o círculo desenha, depois o traço interno)
     .nc-check = sucesso        → azul da marca
     .nc-cross = valor inválido → vermelho
     .nc-alert = falta preencher → vermelho
   Prefixo nc- porque um <style> dentro de SVG inline vaza para o documento
   todo — ".circle" / ".check" / ".line" colidiriam com o resto do CSS.
   ========================================================================== */
.nc-check,
.nc-cross,
.nc-alert {
    flex-shrink: 0;
}

.nc-check {
    color: var(--blue-500);
}

.nc-cross,
.nc-alert {
    color: var(--red-500, #e23d5c);
}

.nc-check__circle,
.nc-cross__circle,
.nc-alert__circle {
    stroke-dasharray: 63;
    stroke-dashoffset: 63;
    transform-origin: center;
    animation: nc-draw 0.5s ease-in-out forwards;
}

.nc-check__mark {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: nc-draw 0.3s 0.4s ease-in-out forwards;
}

.nc-cross__line-1,
.nc-cross__line-2 {
    stroke-dasharray: 15;
    stroke-dashoffset: 15;
    animation: nc-draw 0.25s 0.4s ease-in-out forwards;
}

.nc-cross__line-2 {
    animation-delay: 0.55s;
}

.nc-alert__line {
    stroke-dasharray: 10;
    stroke-dashoffset: 10;
    animation: nc-draw 0.25s 0.4s ease-in-out forwards;
}

.nc-alert__dot {
    /* transform-box explícito: sem ele o transform-origin em px não cai
       nas coordenadas do viewBox em todos os navegadores */
    transform-box: view-box;
    transform-origin: 12px 16px;
    transform: scale(0);
    animation: nc-pop 0.3s 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes nc-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes nc-pop {
    to {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    .nc-check__circle,
    .nc-check__mark,
    .nc-cross__circle,
    .nc-cross__line-1,
    .nc-cross__line-2,
    .nc-alert__circle,
    .nc-alert__line {
        animation: none;
        stroke-dashoffset: 0;
    }

    .nc-alert__dot {
        animation: none;
        transform: scale(1);
    }
}

/* Painel de sucesso que substitui o formulário comercial */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-2);
    padding: var(--space-6) var(--space-4);
}

.form-success__title {
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--ink-900);
    margin-top: var(--space-2);
}

.form-success__text {
    font-size: var(--text-sm);
    color: var(--ink-700);
}

.btn-submit-full {
    position: relative;
    margin-top: var(--space-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-white);
    /* Mesma cor do CTA do hero (.btn--primary do design-system) */
    background-color: var(--color-primary);
    background-image: linear-gradient(180deg, var(--blue-500), var(--blue-600));
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 91, 255, 0.3), var(--sheen);
    transition: transform var(--t-fast), box-shadow var(--t-normal), background-color var(--t-normal);
}

/* Label do botão */
.btn-submit-label {
    transition: opacity var(--t-fast);
}

/* Spinner de carregamento (estado .is-loading) */
.btn-submit-spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Checkmark de sucesso (estado .is-success) */
.btn-submit-check {
    width: 20px;
    height: 20px;
    display: none;
}

.btn-submit-full.is-loading {
    cursor: progress;
}

.btn-submit-full.is-loading .btn-submit-label {
    opacity: 0;
}

.btn-submit-full.is-loading .btn-submit-spinner {
    opacity: 1;
}

.btn-submit-full.is-success {
    background-color: #00a86b;
    background-image: none;
    box-shadow: 0 6px 22px rgba(0, 168, 107, 0.4);
}

.btn-submit-full.is-success .btn-submit-check {
    display: block;
}

.btn-submit-full:hover {
    background-image: linear-gradient(180deg, var(--blue-600), var(--blue-700));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 91, 255, 0.45), var(--sheen);
}

.btn-submit-full:active {
    transform: scale(0.99);
}

.btn-submit-full:disabled {
    cursor: default;
    transform: none;
}

.form-status {
    margin-top: var(--space-2);
    min-height: 16px;
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 500;
    color: #5ee9a4;
    outline: none;
}

/* ---- WhatsApp float ---- */
.whatsapp-float {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: var(--color-white);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: transform var(--t-normal), box-shadow var(--t-normal);
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:focus-visible {
    outline: 3px solid var(--color-white);
    outline-offset: 3px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .clients-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: var(--space-4) var(--space-12);
        padding: 0 var(--space-6);
    }

    .client-logo {
        margin-right: 0;
    }

    .clients-track>[aria-hidden="true"] {
        display: none;
    }

    .clients-marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .whatsapp-float:hover {
        transform: none;
    }
}

/* ---- Responsive: new sections ---- */
@media (max-width: 992px) {

    .advantages-section,
    .how-it-works-section,
    .contact-section {
        padding-left: 40px;
        padding-right: 40px;
    }

    .contact-card {
        padding: var(--space-12) var(--space-8);
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {

    .advantages-section,
    .how-it-works-section,
    .contact-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-header {
        margin-bottom: var(--space-12);
    }

    .section-header h2,
    .contact-header h2 {
        font-size: var(--text-2xl);
    }

    .contact-card {
        padding: var(--space-8) var(--space-6);
    }

    .client-logo {
        font-size: var(--text-base);
        margin-right: 48px;
    }

    .site-footer {
        flex-direction: column;
        text-align: left;
        gap: var(--space-4);
        padding: var(--space-12) var(--space-6);
    }

    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* ---- Lenis Smooth Scroll Core Styles ---- */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis-stopped {
    overflow: hidden;
}

.lenis-scrolling iframe {
    pointer-events: none;
}

/* ---- Contact section — responsividade ---- */
@media (max-width: 960px) {
    .contact-inner {
        grid-template-columns: 1fr;
        padding: 60px 40px 0;
    }

    .contact-form-col {
        padding-right: 0;
        padding-bottom: 60px;
    }

    /* Esconde a pessoa em telas médias — mantém limpeza */
    .contact-person-col {
        display: none;
    }

    .contact-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

@media (max-width: 560px) {
    .contact-inner {
        padding: 48px 24px 0;
    }

    .contact-form-col {
        padding-bottom: 48px;
    }
}

