/* =====================================================================
   Esfera Solutions — estilo adaptado do projeto Kaco (site KIDS), porém
   corporativo: tema claro, sombras navy suaves, superfícies arredondadas,
   nav glassy. Sem os elementos infantis (Baloo/Chewy, emojis, arco-íris).
   ===================================================================== */

:root {
    /* Tinta / texto (navy, do Kaco) */
    --ink:        #0f2740;
    --text:       #3b5a7a;
    --muted:      #6b86a3;

    /* Superfícies / linhas */
    --surface:    #ffffff;   /* fundo base / seções */
    --card:       #ffffff;   /* superfícies elevadas (cards, form, botões soft) */
    --tint:       #f3f8fc;
    --tint-2:     #eef6fb;
    --line:       #e6eef5;

    /* Marca: azul Kaco → indigo Esfera */
    --brand:      #2aa9e0;
    --brand-deep: #3f51b5;
    --brand-ink:  #1f7fb0;
    --green:      #22b07d;
    --wa:         #25d366;

    /* Sombra navy — usar com alpha variável */
    --shadow-rgb: 15, 39, 64;

    /* Tokens que mudam entre claro/escuro */
    --nav-bg:     rgba(255, 255, 255, .72);
    --nav-bg-2:   rgba(255, 255, 255, .9);
    --footer-bg:  #0f2740;
    --hero-grad:  radial-gradient(120% 90% at 85% -10%, #e3f2fb 0%, transparent 55%),
                  linear-gradient(180deg, #f4fafe 0%, #eaf4fb 100%);
    --logo-filter: brightness(0) saturate(100%) invert(13%) sepia(28%) saturate(1400%) hue-rotate(178deg) brightness(94%) contrast(96%);

    --radius:     20px;
    --radius-sm:  14px;
    --container:  1160px;
    --ease:       cubic-bezier(.22, 1, .36, 1);
    --pop:        cubic-bezier(.34, 1.56, .64, 1);
}

/* ===== Tema escuro (modo estudo) — sobrescreve só os tokens ===== */
[data-tema="escuro"] {
    --ink:        #eef3fb;
    --text:       #b7c4da;
    --muted:      #8396b1;
    --surface:    #0b1020;
    --card:       #141d31;
    --tint:       #0f1524;
    --tint-2:     #131a2c;
    --line:       rgba(255, 255, 255, .09);
    --brand-ink:  #7cc6ec;
    --shadow-rgb: 0, 0, 0;
    --nav-bg:     rgba(11, 16, 32, .72);
    --nav-bg-2:   rgba(11, 16, 32, .92);
    --footer-bg:  #070b16;
    --hero-grad:  radial-gradient(120% 90% at 85% -10%, #16233f 0%, transparent 55%),
                  linear-gradient(180deg, #0d1324 0%, #0a0f1d 100%);
    --logo-filter: none;   /* logo branco original fica bom no escuro */
}

/* Transição suave ao alternar o tema */
body, .nav, .card, .accordion__item, .contact__form, .footer,
.field input, .field textarea, .btn--soft, .hero, .section, .theme-toggle {
    transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Montserrat", system-ui, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------------- Tipografia utilitária ---------------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand);
}
.kicker::before {
    content: "";
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand);
}

/* ---------------- Botões (pill, sombra colorida — estilo Kaco) ---------------- */
.btn {
    --py: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: var(--py) 30px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: .96rem;
    cursor: pointer;
    border: 0;
    transition: transform .22s var(--pop), box-shadow .22s var(--ease), background .22s var(--ease);
    white-space: nowrap;
}
.btn--sm { --py: 11px; padding: var(--py) 22px; font-size: .86rem; }
.btn--block { width: 100%; }

.btn--primary {
    background: linear-gradient(120deg, var(--brand), var(--brand-deep));
    color: #fff;
    box-shadow: 0 12px 26px rgba(42, 169, 224, .34);
}
.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(42, 169, 224, .42);
}

.btn--soft {
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 8px 22px rgba(var(--shadow-rgb), .10);
}
.btn--soft:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(var(--shadow-rgb), .16);
    color: var(--brand-ink);
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--brand);
    transition: gap .25s var(--ease), color .25s var(--ease);
}
.link-more::after { content: "\2192"; transition: transform .25s var(--ease); }
.link-more:hover { color: var(--brand-ink); }
.link-more:hover::after { transform: translateX(4px); }

/* ---------------- Nav (glassy, do Kaco) ---------------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: 16px 0;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    transition: padding .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled {
    padding: 10px 0;
    background: var(--nav-bg-2);
    box-shadow: 0 8px 24px rgba(var(--shadow-rgb), .08);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
/* Logo é branco (transparente) → escurece pra virar navy no tema claro */
.nav__brand img {
    height: 32px;
    width: auto;
    filter: var(--logo-filter);
}

/* Rótulo + botão de alternância de tema (claro/escuro) */
.nav__theme {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav__theme-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s var(--ease);
}
.nav__theme-label:hover { color: var(--brand); }
.nav__theme-arrow {
    font-size: 1rem;
    line-height: 1;
    color: var(--brand);
    transition: transform .2s var(--ease);
}
.nav__theme-label:hover .nav__theme-arrow { transform: translateX(3px); }
/* o texto acompanha o tema: claro mostra "Modo escuro", escuro mostra "Modo claro" */
.nav__theme-label .lbl--light { display: none; }
.nav__theme-label .lbl--dark  { display: inline; }
[data-tema="escuro"] .nav__theme-label .lbl--dark  { display: none; }
[data-tema="escuro"] .nav__theme-label .lbl--light { display: inline; }

.theme-toggle {
    flex: none;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: transform .25s var(--pop), border-color .25s var(--ease), color .25s var(--ease);
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.theme-toggle .ico { grid-area: 1 / 1; width: 20px; height: 20px; }
.theme-toggle .ico--sun  { display: none; }
.theme-toggle .ico--moon { display: block; }
[data-tema="escuro"] .theme-toggle .ico--sun  { display: block; }
[data-tema="escuro"] .theme-toggle .ico--moon { display: none; }
.nav__menu {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav__menu a {
    font-size: .92rem;
    font-weight: 600;
    color: var(--text);
    position: relative;
    transition: color .2s var(--ease);
}
.nav__menu a:not(.nav__cta)::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 3px;
    border-radius: 999px;
    background: var(--brand);
    transition: width .25s var(--ease);
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
    padding: 9px 20px;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(120deg, var(--brand), var(--brand-deep));
    box-shadow: 0 8px 18px rgba(42, 169, 224, .3);
}
.nav__cta:hover { transform: translateY(-2px); }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}
.nav__toggle span {
    width: 26px; height: 3px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------------- Hero (claro, com onda — estilo Kaco) ---------------- */
.hero {
    position: relative;
    padding: 150px 0 130px;
    background: var(--hero-grad);
    overflow: hidden;
}
.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 50px;
    align-items: center;
}
.hero__title {
    margin: 20px 0 22px;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--ink);
}
.hero__title .hl {
    color: var(--brand);
    position: relative;
    white-space: nowrap;
}
.hero__title .hl::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: .06em;
    height: .26em;
    background: rgba(42, 169, 224, .2);
    border-radius: 999px;
    z-index: -1;
}
.hero__lead {
    max-width: 540px;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    color: var(--text);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}
.hero__media {
    position: relative;
}
.hero__media::before {
    content: "";
    position: absolute;
    inset: 6% 4%;
    background: radial-gradient(circle at 60% 45%, rgba(42, 169, 224, .28), transparent 68%);
    filter: blur(34px);
    z-index: 0;
}
.hero__media img {
    position: relative;
    z-index: 1;
    width: 100%;
    filter: drop-shadow(0 30px 45px rgba(var(--shadow-rgb), .22));
}

/* Bolhas suaves de fundo (substituem os floaters infantis) */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .5;
    z-index: 1;
}
.blob--1 {
    width: 320px; height: 320px;
    top: -80px; left: -90px;
    background: radial-gradient(circle at 40% 40%, rgba(63, 81, 181, .16), transparent 70%);
}
.blob--2 {
    width: 260px; height: 260px;
    bottom: 40px; left: 42%;
    background: radial-gradient(circle at 50% 50%, rgba(34, 176, 125, .12), transparent 70%);
}

/* Indicadores de rolagem — círculo base (hero e seções) */
.scroll-down, .scroll-next {
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--card);
    color: var(--brand);
    box-shadow: 0 10px 26px rgba(var(--shadow-rgb), .14);
    transition: color .2s var(--ease), transform .2s var(--ease), background .35s var(--ease);
}
.scroll-down svg, .scroll-next svg { width: 24px; height: 24px; }
.scroll-down:hover, .scroll-next:hover { color: var(--brand-ink); }
.scroll-next--up svg { transform: rotate(180deg); }   /* seta pra cima */

/* hero: um chevron centralizado, com bob */
.scroll-down {
    position: absolute;
    left: 50%; bottom: 40px;
    transform: translateX(-50%);
    z-index: 3;
    animation: bob 2s var(--ease) infinite;
}

/* seções: par (sobe + desce) centralizado no rodapé */
.scroll-nav {
    position: absolute;
    left: 50%; bottom: 24px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}
.scroll-nav .scroll-next:hover { transform: translateY(-3px); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 7px; } }

.wave {
    position: absolute;
    inset: auto 0 -1px 0;
    z-index: 1;
    line-height: 0;
    color: var(--surface);   /* casa com a seção Serviços logo abaixo */
}
.wave svg { width: 100%; height: 90px; display: block; }

/* ---------------- Estrutura de seção ---------------- */
.section {
    position: relative;
    padding: 96px 0;
    scroll-margin-top: 70px;
}
.section--light { background: var(--surface); }
.section--tint  { background: var(--tint); }
.section__head { margin-bottom: 52px; max-width: 620px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .kicker { justify-content: center; }
.section__title {
    margin-top: 14px;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.12;
    color: var(--ink);
}
.section__sub {
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.05rem;
}

/* ---------------- Serviços (cards brancos) ---------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(var(--shadow-rgb), .06);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}
.card__body { padding: 22px 22px 26px; }
.card__icon { width: 32px; height: 32px; margin-bottom: 12px; }
.card__body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
.card__body p {
    font-size: .92rem;
    color: var(--text);
    margin-bottom: 14px;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(var(--shadow-rgb), .14);
}
.card:hover .card__media img { transform: scale(1.05); }

/* ---------------- Soluções (linhas alternadas) ---------------- */
.solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
    padding: 40px 0;
}
.solution + .solution { border-top: 1px solid var(--line); }
.solution--reverse .solution__media { order: 2; }
.solution__media {
    position: relative;
    padding: 26px;
}
.solution__media::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 40px;
    background: radial-gradient(circle, rgba(42, 169, 224, .2), transparent 70%);
    filter: blur(28px);
    z-index: 0;
}
.solution__media img {
    position: relative;
    z-index: 1;
    width: 100%;
    filter: drop-shadow(0 26px 44px rgba(var(--shadow-rgb), .2));
}
.tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(42, 169, 224, .12);
    color: var(--brand-ink);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.solution__text h3 {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.01em;
}
.solution__lead {
    margin: 10px 0 12px;
    font-weight: 600;
    color: var(--ink);
}
.solution__text > p:not(.solution__lead) { color: var(--text); }
.solution__text .btn { margin-top: 24px; }

/* ---------------- FAQ (accordion branco) ---------------- */
.accordion { display: flex; flex-direction: column; gap: 14px; }
.accordion__item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 26px rgba(var(--shadow-rgb), .05);
    overflow: hidden;
    transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.accordion__item.is-open {
    border-color: rgba(42, 169, 224, .4);
    box-shadow: 0 16px 34px rgba(var(--shadow-rgb), .1);
}
.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
}
.accordion__icon {
    position: relative;
    flex: none;
    width: 18px; height: 18px;
}
.accordion__icon::before,
.accordion__icon::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    translate: -50% -50%;
    background: var(--brand);
    border-radius: 2px;
    transition: transform .35s var(--pop), opacity .3s var(--ease);
}
.accordion__icon::before { width: 14px; height: 3px; }
.accordion__icon::after  { width: 3px; height: 14px; }
.accordion__item.is-open .accordion__icon::after { transform: scaleY(0); opacity: 0; }
.accordion__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s var(--ease);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > p {
    overflow: hidden;
    padding: 0 26px;
    color: var(--text);
    font-size: .96rem;
}
.accordion__item.is-open .accordion__panel > p { padding-bottom: 24px; }

/* ---------------- Contato ---------------- */
.contact {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 56px;
    align-items: start;
}
.contact__intro .section__title { margin: 14px 0 16px; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.contact__desc { color: var(--text); max-width: 44ch; }
.contact__list {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact__list li {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    color: var(--ink);
}
.contact__list span {
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
}

.contact__form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 18px 44px rgba(var(--shadow-rgb), .1);
}
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
}
.field label b { color: var(--brand); }
.field input,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--tint);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    font: inherit;
    font-size: .95rem;
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(42, 169, 224, .14);
}
.field input::placeholder { color: #9fb2c6; }

/* ---------------- Footer (navy, do Kaco) ---------------- */
.footer {
    background: var(--footer-bg);
    color: #cdd9e6;
    padding-top: 64px;
    scroll-margin-top: 70px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr;
    gap: 44px;
    padding-bottom: 48px;
}
.footer__logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer__tag { font-size: .92rem; color: #9fb2c6; max-width: 320px; margin-bottom: 22px; }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    transition: transform .3s var(--pop), background .3s var(--ease), border-color .3s var(--ease);
}
.footer__social a:hover {
    transform: translateY(-4px);
    background: var(--brand);
    border-color: var(--brand);
}
.footer__social img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.footer__col h4 {
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 18px;
}
.footer__col p { color: #9fb2c6; font-size: .92rem; margin-bottom: 14px; }
.footer__col p span { color: #cdd9e6; font-weight: 700; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.footer__portal { margin-top: 6px; }
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 22px 0;
    text-align: center;
    color: #7c93a9;
    font-size: .82rem;
}

/* ---------------- WhatsApp flutuante ---------------- */
.wa-float {
    position: fixed;
    left: 24px; bottom: 24px;
    z-index: 60;
    width: 58px; height: 58px;
    display: grid;
    place-items: center;
    background: var(--wa);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
    transition: transform .3s var(--pop);
}
.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: wa-pulse 2.2s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
    70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------------- Barra de progresso de scroll ---------------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    z-index: 70;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--brand), var(--brand-deep));
    box-shadow: 0 1px 8px rgba(42, 169, 224, .4);
    will-change: transform;
}

/* ---------------- Reveal reversível, ligado à direção do scroll ----------------
   Descendo: os elementos se fecham/montam na posição (is-visible).
   Subindo: se afastam/dispersam. O estado disperso continua VISÍVEL (só afastado,
   com leve transparência) e o gatilho é pelo CENTRO do elemento, dentro da área
   visível — então dá pra ver o abrir e o fechar acontecerem na tela. */
[data-reveal] {
    --rx: 0px;
    --ry: 80px;
    --rs: 1;
    opacity: 0;
    transform: translate3d(var(--rx), var(--ry), 0) scale(var(--rs));
    transition: opacity .6s var(--ease), transform .85s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
[data-reveal="left"]  { --rx: -110px; --ry: 0px; }
[data-reveal="right"] { --rx: 110px;  --ry: 0px; }
[data-reveal="zoom"]  { --rx: 0px;    --ry: 0px; --rs: .84; }
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* stagger dos cards de serviço */
.cards .card:nth-child(2) { --reveal-delay: .09s; }
.cards .card:nth-child(3) { --reveal-delay: .18s; }
.cards .card:nth-child(4) { --reveal-delay: .27s; }

/* elementos com parallax não devem "pular" no primeiro paint */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    [data-parallax] { transform: none !important; }
    .scroll-progress { display: none; }
}

/* ---------------- Responsivo ---------------- */
@media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .hero__text .kicker { justify-content: center; }
    .hero__lead { margin-inline: auto; }
    .hero__actions { justify-content: center; }
    .hero__media { max-width: 560px; margin: 0 auto; order: -1; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .solution,
    .solution--reverse { grid-template-columns: 1fr; gap: 28px; }
    .solution--reverse .solution__media { order: 0; }
    .solution__media { max-width: 520px; margin: 0 auto; }
    .contact { grid-template-columns: 1fr; gap: 40px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav__menu {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(320px, 82vw);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 22px;
        padding: 40px;
        background: var(--card);
        box-shadow: -20px 0 50px rgba(var(--shadow-rgb), .12);
        transform: translateX(100%);
        transition: transform .4s var(--ease);
    }
    .nav__menu.is-open { transform: none; }
    .nav__menu a { font-size: 1.08rem; }
    .nav__toggle { display: flex; z-index: 51; }
    .nav__theme-label { display: none; }   /* barra apertada no celular */
    .section { padding: 72px 0; }
    .hero { padding: 130px 0 110px; }
}

@media (max-width: 540px) {
    .cards { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .contact__form { padding: 24px; }
    .hero__actions .btn { flex: 1; }
}
