/* ============================================================
   Matheus Tech — Manutenção de Computadores
   Estilo profissional | tema escuro azul/ciano
   ============================================================ */

:root {
    /* ---- TEMA ESCURO (padrão) — azul elétrico + roxo + rosa ---- */
    /* Superfícies em camadas */
    --bg: #080b1f;
    --surface-1: #11132e;
    --surface-2: #171a3a;
    --surface-3: #22264d;

    /* Marca (vibrante / neon) */
    --blue: #5b8bff;
    --blue-600: #6d4dff;
    --cyan: #22d3ee;
    --accent: #b14bff;      /* roxo neon */
    --accent-2: #ff3ea5;    /* rosa neon */
    --brand-grad: linear-gradient(100deg, #22d3ee, #6d4dff 48%, #ff3ea5);

    /* Texto */
    --white: #f4f6ff;
    --muted: #c7d0ec;
    --muted-2: #9aa5cc;

    /* Linhas e sombras */
    --line: #ffffff14;
    --line-strong: #ffffff26;
    --ring: #a855f7;
    --glow: #4d7cff;
    --shadow-sm: 0 2px 10px #0005;
    --shadow-md: 0 12px 30px #00000066;
    --shadow-lg: 0 28px 70px #00000077;

    /* Header / overlays (mudam com o tema) */
    --header-bg: rgba(8,11,31,.72);
    --header-bg-scrolled: rgba(8,11,31,.94);
    --overlay-bg: rgba(8,11,31,.82);

    /* Estados */
    --green: #22c55e;
    --wa: #25d366;

    /* Métrica */
    --radius: 14px;
    --radius-sm: 10px;
    --header-h: 76px;
    --container: 1140px;
}

/* ---- TEMA CLARO ---- */
:root[data-theme="light"] {
    --bg: #f5f7fe;
    --surface-1: #ffffff;
    --surface-2: #ffffff;
    --surface-3: #eef1fb;

    --blue: #4d6bff;
    --blue-600: #3b5bff;
    --cyan: #0ea5e9;
    --accent: #9333ea;
    --accent-2: #db2777;
    --brand-grad: linear-gradient(100deg, #4d6bff, #9333ea 55%, #db2777);

    --white: #141a33;          /* texto principal (nome mantido p/ compatibilidade) */
    --muted: #4a5578;
    --muted-2: #7a86a8;

    --line: #11183512;
    --line-strong: #11183526;
    --ring: #9333ea;
    --glow: #4d6bff;
    --shadow-sm: 0 2px 10px #1a224516;
    --shadow-md: 0 12px 30px #1a224522;
    --shadow-lg: 0 24px 60px #1a224528;
    --header-bg: rgba(255,255,255,.78);
    --header-bg-scrolled: rgba(255,255,255,.95);
    --overlay-bg: rgba(255,255,255,.88);
}
:root { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* proteção contra vazamento horizontal no mobile */
html, body { max-width: 100%; }
h1, h2, h3, p, .hero-lead { overflow-wrap: break-word; }
.hero-grid > *, .about-grid > *, .contact-grid > *, .why-item, .service-card, .step { min-width: 0; }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Utilitários ---------- */
.container { width: min(var(--container), 92%); margin-inline: auto; }

.icon { width: 1em; height: 1em; stroke: currentColor; fill: none;
        stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
        flex: none; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 2000;
    background: var(--blue); color: #fff; padding: 10px 16px;
    border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 14px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    background: var(--brand-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow .icon { -webkit-text-fill-color: var(--accent); color: var(--accent); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 40px); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

.text-grad {
    background: var(--brand-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

section { padding: 84px 0; position: relative; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 9px; font: inherit; font-weight: 600; font-size: 15px;
    padding: 13px 22px; min-height: 48px; border-radius: 10px;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s, border-color .18s;
    white-space: nowrap;
}
.btn .icon { font-size: 18px; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 24px #6d4dff66, 0 2px 8px #ff3ea540; }
.btn-primary:hover { box-shadow: 0 10px 34px #6d4dff88, 0 4px 16px #ff3ea560; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px #a855f766; }
.btn-outline { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--blue); background: #a855f714; transform: translateY(-2px); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 30px #25d36655; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .25s, border-color .25s, box-shadow .25s;
}
.header.scrolled {
    background: var(--header-bg-scrolled);
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.navbar {
    height: var(--header-h); display: flex; align-items: center;
    justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark { display: flex; flex: none; }
.logo-mark svg { border-radius: 11px; box-shadow: 0 4px 14px #4d7cff55; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo b { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.logo b span { color: var(--cyan); margin-left: 2px; }
.logo small { color: var(--muted-2); font-size: 9.5px; letter-spacing: 2.5px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a {
    font-size: 14.5px; color: var(--muted); font-weight: 500;
    padding: 6px 0; position: relative; transition: color .2s;
}
.nav-menu a::after {
    content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
    background: var(--brand-grad); transition: width .25s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--white); }
.nav-menu a.active::after { width: 100%; }

.nav-cta { display: inline-flex; }

/* Botão de alternar tema (sol/lua) */
.theme-toggle {
    width: 42px; height: 42px; border-radius: 11px; flex: none;
    display: inline-grid; place-items: center; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--white);
    transition: border-color .2s, transform .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-2px); }
.theme-toggle .icon { font-size: 21px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
/* transição suave ao trocar de tema */
body, .header, .service-card, .info-card, .why-item, .step, .review,
.contact-card, .faq details, input, select, textarea, .theme-toggle, .nav-toggle {
    transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
    border-radius: 10px; background: var(--surface-2); color: var(--white);
    align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon { font-size: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 88px;
    background:
        radial-gradient(55% 50% at 92% 8%, #b14bff45, transparent 60%),
        radial-gradient(45% 45% at 2% 95%, #22d3ee33, transparent 60%),
        radial-gradient(40% 40% at 60% 100%, #ff3ea522, transparent 60%),
        linear-gradient(160deg, var(--bg), var(--surface-1) 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 18px 0; }
.hero-lead { color: var(--muted); font-size: 17.5px; max-width: min(52ch, 100%); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-badges li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; }
.hero-badges .icon { color: var(--cyan); font-size: 18px; }

.hero-media { position: relative; border-radius: 20px; }
.hero-media img {
    width: 100%; aspect-ratio: 16 / 11; object-fit: cover; display: block;
    max-height: 420px;
    border-radius: 20px; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
}
/* brilho de marca atrás da imagem */
.hero-media::before {
    content: ""; position: absolute; inset: -14px; z-index: -1;
    background: var(--brand-grad); filter: blur(60px); opacity: .18; border-radius: 30px;
}
/* overlay sutil para integrar a foto ao tema escuro */
.hero-media::after {
    content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
    background: linear-gradient(160deg, #a855f710, transparent 40%, var(--bg)55);
    box-shadow: inset 0 0 0 1px #ffffff12;
}
.media-badge {
    position: absolute; left: 16px; bottom: 16px;
    display: flex; align-items: center; gap: 12px;
    background: rgba(6,15,30,.82); backdrop-filter: blur(8px);
    border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 16px;
    box-shadow: var(--shadow-md);
}
.media-badge .dot {
    width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
    background: #22c55e1f; color: var(--green);
}
.media-badge .dot .icon { font-size: 20px; }
.media-badge strong { display: block; font-size: 14px; }
.media-badge span { color: var(--muted); font-size: 12px; }

/* ---------- Faixa de confiança ---------- */
.trust { background: var(--surface-1); border-block: 1px solid var(--line); padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item .ico {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: #a855f718; color: var(--cyan); flex: none;
}
.trust-item .ico .icon { font-size: 22px; }
.trust-item strong { display: block; font-size: 14.5px; }
.trust-item span { color: var(--muted); font-size: 13px; }

/* ---------- Grid de cards genérico ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Serviços ---------- */
.service-card {
    background: linear-gradient(160deg, var(--surface-2), var(--surface-1));
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .22s, border-color .22s, box-shadow .22s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 16px 40px #6d4dff33; }
.service-figure { position: relative; }
.service-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-figure .ico {
    position: absolute; left: 14px; top: 14px; width: 44px; height: 44px; border-radius: 11px;
    display: grid; place-items: center; background: var(--brand-grad);
    border: 1px solid #ffffff33; color: #fff; box-shadow: 0 4px 16px #6d4dff66;
}
.service-figure .ico .icon { font-size: 22px; }
.service-body { padding: 22px 23px 24px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 19px; margin-bottom: 8px; }
.service-body p { color: var(--muted); font-size: 14.5px; }
.service-link {
    margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 7px;
    color: var(--cyan); font-weight: 600; font-size: 13.5px;
}
.service-link .icon { font-size: 16px; transition: transform .2s; }
.service-card:hover .service-link .icon { transform: translate(3px, -3px); }

/* Faixa de plataformas de jogos (card Jogos e consultoria) */
.platforms {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.platforms-label { font-size: 12px; color: var(--muted-2); font-weight: 600; margin-right: 2px; }
.platforms img {
    width: 24px; height: 24px; opacity: .95;
    transition: opacity .2s, transform .2s, filter .2s;
    filter: drop-shadow(0 1px 3px #0006);
}
.platforms img:hover { opacity: 1; transform: translateY(-2px) scale(1.12); }

/* ---------- Por que escolher ---------- */
.why { background: var(--surface-1); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-item {
    display: flex; gap: 16px; padding: 24px; background: var(--surface-2);
    border: 1px solid var(--line); border-radius: var(--radius);
}
.why-item .ico {
    width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center;
    background: var(--brand-grad); color: #fff;
}
.why-item .ico .icon { font-size: 23px; }
.why-item h3 { font-size: 17.5px; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- Como funciona (timeline) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
    position: relative; padding: 28px 24px 26px; background: var(--surface-2);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.step::before {
    counter-increment: step; content: "0" counter(step);
    position: absolute; right: 16px; top: 8px; font-size: 54px; font-weight: 800;
    color: #ffffff0c; letter-spacing: -2px;
}
.step .num {
    width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
    background: #a855f71a; color: var(--cyan); font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Sobre ---------- */
.about { background: linear-gradient(160deg, var(--surface-1), var(--bg)); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.about-media { position: relative; }
.about-media img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px;
    border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
}
.about-copy p { color: var(--muted); margin: 16px 0; }
.check-list { margin-top: 22px; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; }
.check-list .icon { font-size: 20px; color: var(--cyan); margin-top: 3px; flex: none; }
.about-copy .btn { margin-top: 26px; }

/* ---------- Dicas ---------- */
.info-card {
    padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
    background: var(--surface-2); transition: transform .2s, border-color .2s;
}
.info-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.info-card .ico {
    width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
    background: #22d3ee14; color: var(--cyan); margin-bottom: 16px;
}
.info-card .ico .icon { font-size: 24px; }
.info-card h3 { font-size: 18px; margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 14px; }
.faq details {
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
    overflow: hidden; transition: border-color .2s;
}
.faq details[open] { border-color: var(--blue); }
.faq summary {
    list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { font-size: 20px; color: var(--cyan); transition: transform .25s; flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- Contato ---------- */
.contact { background: var(--surface-1); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 44px; align-items: start; }
.contact-copy h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 14px 0; }
.contact-copy > p { color: var(--muted); margin-bottom: 24px; }
.contact-info { display: grid; gap: 14px; margin: 26px 0; }
.contact-info li { display: flex; align-items: center; gap: 13px; }
.contact-info .ico {
    width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
    background: #a855f718; color: var(--cyan); flex: none;
}
.contact-info .ico .icon { font-size: 21px; }
.contact-info small { display: block; color: var(--muted-2); font-size: 12px; }
.contact-info strong { font-size: 15.5px; }

.contact-card {
    background: var(--surface-2); border: 1px solid var(--line-strong);
    border-radius: 16px; padding: 30px; box-shadow: var(--shadow-md);
}
form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--white); }
input, select, textarea {
    width: 100%; padding: 13px 14px; min-height: 48px; font: inherit; color: var(--white);
    background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
    transition: border-color .18s, box-shadow .18s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #a855f733;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
select { appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239fb4cd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-note { font-size: 12px; color: var(--muted-2); display: flex; align-items: flex-start; gap: 7px; }
.form-note .icon { font-size: 15px; color: var(--cyan); margin-top: 2px; flex: none; }
.form-status { font-size: 14px; font-weight: 600; min-height: 1px; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #ff6b6b; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 54px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo svg { border-radius: 10px; flex: none; }
.footer-brand b { font-size: 20px; font-weight: 800; }
.footer-brand b span { color: var(--cyan); margin-left: 2px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 34ch; }
.footer h4 { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-contact { display: grid; gap: 12px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; }
.footer-contact .icon { font-size: 18px; color: var(--cyan); }
.footer-bottom {
    border-top: 1px solid var(--line); padding-top: 22px; text-align: center;
    color: var(--muted-2); font-size: 12.5px;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
    position: fixed; right: 26px; bottom: 90px; width: 52px; height: 52px; border-radius: 50%;
    background: var(--wa); color: #fff; display: grid; place-items: center; z-index: 900;
    box-shadow: 0 8px 28px #0007; transition: transform .2s, opacity .3s, visibility .3s;
    opacity: 0; visibility: hidden; transform: translateY(16px);
}
.wa-float.show { opacity: 1; visibility: visible; transform: translateY(0); }
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float::after {
    content: "Fale comigo no WhatsApp"; position: absolute; right: 72px;
    background: #fff; color: #10243c; font-size: 12.5px; font-weight: 600;
    padding: 8px 12px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow-sm);
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.wa-float:hover::after { opacity: 1; }

/* ---------- Depoimentos ---------- */
.review {
    margin: 0; padding: 26px; background: var(--surface-2);
    border: 1px solid var(--line); border-radius: var(--radius);
    display: flex; flex-direction: column; gap: 14px;
    transition: transform .2s, border-color .2s;
}
.review:hover { transform: translateY(-4px); border-color: var(--blue); }
.review .stars { color: #ffc93c; font-size: 16px; letter-spacing: 2px; }
.review blockquote { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review .avatar {
    width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: var(--brand-grad); color: #fff; font-weight: 700;
}
.review figcaption strong { display: block; font-size: 14.5px; }
.review figcaption small { color: var(--muted-2); font-size: 12.5px; }

/* ---------- Pulso do WhatsApp flutuante ---------- */
.wa-float.show { animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse {
    0%   { box-shadow: 0 8px 28px #0007, 0 0 0 0 #25d36688; }
    70%  { box-shadow: 0 8px 28px #0007, 0 0 0 16px #25d36600; }
    100% { box-shadow: 0 8px 28px #0007, 0 0 0 0 #25d36600; }
}
.wa-float.show:hover { animation: none; }

/* ============================================================
   CHAT — assistente virtual
   ============================================================ */
.chat-launcher {
    position: fixed; right: 22px; bottom: 22px; height: 44px; padding: 0 15px 0 13px;
    display: inline-flex; align-items: center; gap: 7px; border-radius: 24px; cursor: pointer;
    background: var(--brand-grad); color: #fff; border: none; z-index: 920;
    box-shadow: 0 6px 20px #6d4dff55; transition: transform .2s, box-shadow .2s;
}
.chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 10px 28px #6d4dff77; }
.chat-launcher .icon { font-size: 19px; }
.chat-launcher .ico-x { display: none; }
.chat-launcher.open .ico-chat { display: none; }
.chat-launcher.open .ico-x { display: block; }
.chat-launcher.open { padding: 0; width: 44px; justify-content: center; }
.chat-launcher-badge { font-size: 13px; font-weight: 700; white-space: nowrap; }
.chat-launcher.open .chat-launcher-badge { display: none; }

.chatbox[hidden] { display: none !important; }
.chatbox {
    position: fixed; right: 22px; bottom: 90px; z-index: 930;
    width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px));
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface-1); border: 1px solid var(--line-strong); border-radius: 18px;
    box-shadow: var(--shadow-lg);
    transform-origin: bottom right; animation: chatIn .25s ease;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.chatbox-head {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: var(--brand-grad); color: #fff;
}
.chatbox-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: #ffffff2e; font-weight: 800; font-size: 18px;
}
.chatbox-ident { flex: 1; line-height: 1.2; }
.chatbox-ident strong { display: block; font-size: 14.5px; }
.chatbox-ident small { font-size: 11.5px; opacity: .92; display: inline-flex; align-items: center; gap: 6px; }
.chatbox-dot { width: 8px; height: 8px; border-radius: 50%; background: #39e67e; box-shadow: 0 0 0 0 #39e67e; animation: pulseDot 1.8s infinite; }
@keyframes pulseDot { 70% { box-shadow: 0 0 0 7px #39e67e00; } }
.chatbox-close { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; border: none; cursor: pointer;
    background: #ffffff22; color: #fff; display: grid; place-items: center; }
.chatbox-close .icon { font-size: 18px; }

.chatbox-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; animation: msgIn .25s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.chat-msg.bot { align-self: flex-start; background: var(--surface-2); color: var(--white); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--brand-grad); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg a { color: inherit; text-decoration: underline; font-weight: 700; }
.chat-msg .wa-inline {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 8px;
    background: var(--wa); color: #fff; padding: 9px 14px; border-radius: 9px; font-weight: 700; text-decoration: none; font-size: 13.5px;
}
.chat-msg .wa-inline .icon { font-size: 16px; }
.chat-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--surface-2); border-radius: 14px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: typing 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* perguntas rápidas dentro do fluxo (somem após a 1ª mensagem) */
.chat-quick-inline { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.chat-quick-inline button {
    font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
    background: var(--surface-2); color: var(--cyan); border: 1px solid var(--line-strong);
    padding: 7px 12px; border-radius: 20px; transition: border-color .2s, transform .15s;
}
.chat-quick-inline button:hover { border-color: var(--accent); transform: translateY(-1px); }

.chatbox-input { display: flex; gap: 8px; padding: 12px; }
.chatbox-input input { flex: 1; min-height: 44px; }
.chatbox-input button {
    width: 44px; height: 44px; flex: none; border: none; border-radius: 10px; cursor: pointer;
    background: var(--brand-grad); color: #fff; display: grid; place-items: center;
}
.chatbox-input button .icon { font-size: 20px; }
.chatbox-note { font-size: 10.5px; color: var(--muted-2); text-align: center; padding: 0 12px 10px; margin: 0; }

/* Quando o chat está aberto, recolhe os outros flutuantes */
body.chat-open .wa-float,
body.chat-open .to-top { opacity: 0 !important; visibility: hidden !important; }
@media (max-width: 860px) {
    body.chat-open .mobile-cta { transform: translateY(110%); }
    .chat-launcher { bottom: 72px; }        /* acima do CTA fixo mobile */
    body.chat-open .chat-launcher { bottom: 22px; }
    .chatbox { bottom: 140px; height: min(540px, calc(100vh - 170px)); }
    body.chat-open .chatbox { bottom: 86px; }
}

/* ============================================================
   UX / UI — microinterações, navegação, formulário
   ============================================================ */

/* Barra de progresso de rolagem (topo) */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 1100;
    background: var(--brand-grad); box-shadow: 0 0 10px var(--glow);
    transition: width .1s linear;
}

/* Botão voltar ao topo */
.to-top {
    position: fixed; right: 29px; bottom: 152px; width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center; cursor: pointer; z-index: 890;
    background: var(--surface-2); color: var(--white); border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .3s, visibility .3s, transform .3s, border-color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--accent); transform: translateY(-3px); }
.to-top .icon { font-size: 20px; }

/* CTA fixo no mobile */
.mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 880;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--header-bg-scrolled); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-strong);
    transform: translateY(110%); transition: transform .3s ease;
    display: none;
}
.mobile-cta.show { transform: translateY(0); }

/* Campo opcional / contador / telefone */
.opt { color: var(--muted-2); font-weight: 500; font-size: 11px; }
.char-count { text-align: right; font-size: 11px; color: var(--muted-2); margin-top: 5px; }
.char-count.warn { color: #ffb020; }

/* Validação em tempo real */
input.valid, select.valid, textarea.valid { border-color: #22c55e77; }
input.invalid, select.invalid, textarea.invalid { border-color: #ff6b6b88; box-shadow: 0 0 0 3px #ff6b6b22; }
.field-msg { font-size: 11.5px; color: #ff6b6b; margin-top: 5px; min-height: 1px; }

/* Botão com feedback tátil (ripple/press) */
.btn:active { transform: translateY(0) scale(.98); }

/* Cards com leve brilho na borda ao focar/hover (teclado) */
.service-card:focus-within { border-color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 920px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-media { max-width: 520px; margin-inline: auto; width: 100%; }
    .hero-media img { aspect-ratio: 16 / 9; }
    .hero-grid { gap: 32px; }
    .about-media { max-width: 460px; margin-inline: auto; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-menu {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--header-bg-scrolled); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line); padding: 10px 6%;
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow-md);
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-menu a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
    .nav-menu a:last-child { border-bottom: 0; }
    .nav-menu a::after { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .section-head { margin-bottom: 36px; }
    /* CTA fixo aparece no mobile; sobe o botão flutuante e o voltar-ao-topo */
    .mobile-cta { display: block; }
    .wa-float { bottom: 82px; }
    .to-top { bottom: 150px; }
}

@media (max-width: 560px) {
    section { padding: 56px 0; }
    .hero { padding: 44px 0 56px; }
    .hero h1 { margin: 14px 0; }
    .hero-media { max-width: 100%; border-radius: 16px; }
    .hero-media img { aspect-ratio: 16 / 9; border-radius: 16px; }
    .hero-media::after { border-radius: 16px; }
    .hero-media::before { inset: -6px; filter: blur(28px); opacity: .12; }
    .hero-lead { font-size: 16px; margin-bottom: 24px; }
    .trust-grid, .grid-3, .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn { width: 100%; }
    .trust-item { width: 100%; }
    .contact-card { padding: 22px; }
    /* logo mais compacta */
    .logo { gap: 9px; }
    .logo-mark svg { width: 34px; height: 34px; }
    .logo b { font-size: 18px; }
    .logo small { font-size: 8.5px; letter-spacing: 2px; }
    /* badge sobre a imagem não estourar */
    .media-badge { left: 10px; bottom: 10px; padding: 10px 12px; }
    .media-badge .dot { width: 34px; height: 34px; }
    /* FAQ e cards com padding menor */
    .faq summary { padding: 15px 16px; font-size: 15px; }
    .faq .faq-body { padding: 0 16px 16px; }
    .service-body, .info-card, .why-item, .step { padding: 20px; }
    .contact-info .ico, .trust-item .ico { width: 40px; height: 40px; }
}

@media (max-width: 400px) {
    .container { width: 94%; }
    h1 { font-size: 30px; }
    .logo small { display: none; }           /* evita quebra em telas muito estreitas */
    .hero-badges { gap: 8px 16px; }
    .media-badge span { display: none; }      /* mantém só o título do selo */
    .btn { font-size: 14px; padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    .btn, .service-card, .info-card, .wa-float { transition: none; }
    .wa-float.show { animation: none; }
}

/* Modo claro do SO: mantém o tema escuro da marca (decisão de identidade) */
