/* ==========================================================================
   Tema Afino — estilos
   Tokens no :root. Mobile tratado no final (breakpoints 1024 / 768 / 480).
   ========================================================================== */
:root {
  /* Cores da marca: editáveis no painel (Configurações › Identidade) */
  /* Paleta: Principal 60% (roxo), Neutro 30% (creme), Destaque 10% (dourado) */
  --primary: #38023b;
  --primary-h: #4e1552;        /* hover: roxo um pouco mais claro */
  --accent: #e9b44c;
  --accent-d: #d89f33;         /* hover: dourado um pouco mais escuro */
  --dark: #26012a;             /* roxo profundo: hero, rodapé e seções escuras */
  --dark-h: #3a0b3f;
  --neutral: #f4ece6;
  --on-primary: #fff;          /* texto sobre o roxo */
  --primary-ink: var(--primary); /* ícones e links sobre fundo claro */
  --dark-2: color-mix(in srgb, var(--dark) 85%, #000);
  --on-accent: #38023b;        /* texto do botão dourado */
  --ink: #38023b;              /* títulos */
  --text: #5e5260;             /* texto corrido: cinza arroxeado */
  --soft: var(--neutral);
  --line: #e7dcd3;
  --primary-t: color-mix(in srgb, var(--primary) 8%, #fff);
  --white: #fff;
  --r-xl: 44px;
  --r-lg: 32px;
  --r-md: 20px;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 120px);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow: 0 18px 40px -18px rgba(56, 2, 59, .22);
  --shadow-card: 0 1px 2px color-mix(in srgb, var(--primary) 6%, transparent), 0 8px 26px color-mix(in srgb, var(--primary) 8%, transparent); /* sombra sutil dos cards em repouso */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 15px/1.7 var(--font); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
/* Palavra destacada: marca-texto limão no fundo claro, texto limão no fundo escuro */
.hl { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 75%, transparent) 60%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; }
.hero .hl, .dark .hl, .site-footer .hl, .page-banner .hl, .diff .hl, .cta-box .hl { color: var(--accent); background: none; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--sec) 0; }
.bg-soft { background: var(--soft); }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.mt { margin-top: 48px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ico { width: 20px; height: 20px; flex: none; }

/* Linhas de grade sutis (hero, banners, CTA) */
.grid-lines { position: relative; }
.grid-lines::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 72px 72px; }

/* Etiquetas e botões */
.tag { display: inline-block; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; line-height: 1; padding: 7px 14px; border-radius: 99px; background: var(--primary-t); color: var(--primary-ink); margin-bottom: 18px; }
.tag-light { background: rgba(255,255,255,.14); color: #fff; }
.tag-glass { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(4px); }
.tag-dark { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: .01em; padding: 14px 28px; border-radius: 99px; border: 0; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .2s; font-family: inherit; }
.btn:hover { background: var(--accent-d); }
.btn:active { transform: translateY(1px); }
/* Todos os botões levam a cabeça de seta à direita (para tirar em um botão: classe no-arrow) */
.btn::after { content: ""; flex: none; width: 12px; height: 12px; margin-left: 4px; background: currentColor; -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat; transition: transform .2s; }
.btn:hover::after { transform: translateX(3px); }
.btn.no-arrow::after { display: none; }
.btn-sm { padding: 11px 22px; text-transform: none; font-size: 15px; }
.btn-block { width: 100%; }
/* Cores de botão escolhidas no painel (campos "Cor do botão" e "Cor ao passar o mouse"); usam só as cores da marca */
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-h); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--dark-h); }
.btn--light { background: #fff; color: var(--primary-ink); }
.btn--light:hover { background: var(--soft); }
.btn--outline { background: transparent; color: var(--primary-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--outline:hover { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.btn.btn-h--accent:hover { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.btn.btn-h--primary:hover { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.btn.btn-h--dark:hover { background: var(--dark); color: #fff; box-shadow: none; }
.btn.btn-h--light:hover { background: #fff; color: var(--primary-ink); box-shadow: none; }
.btn.btn-h--outline:hover { background: transparent; color: var(--primary-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
/* Sobre fundo escuro (cabeçalho, hero, dobras roxas), o contorno é branco */
:is(.site-header, .hero, .diff, .dark, .cta-box, .page-banner) .btn--outline, :is(.site-header, .hero, .diff, .dark, .cta-box, .page-banner) .btn.btn-h--outline:hover { color: #fff; }
:is(.site-header, .hero, .diff, .dark, .cta-box, .page-banner) .btn--outline:not([class*="btn-h--"]):hover { background: #fff; color: var(--primary-ink); }

/* ---------- Cabeçalho ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; color: #fff; }
.site-header.is-stuck { position: fixed; background: color-mix(in srgb, var(--dark) 96%, transparent); backdrop-filter: blur(8px); box-shadow: 0 8px 30px rgba(0,0,0,.15); animation: slideDown .35s ease; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }
.header-in { display: flex; align-items: center; gap: 32px; height: 96px; transition: height .3s; }
.is-stuck .header-in { height: 76px; }
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 48px; width: auto; }
.logo-text { font-size: 26px; font-weight: 700; color: currentColor; }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 14px; font-weight: 500; font-size: 15px; border-radius: 99px; transition: color .2s; }
.nav > ul > li > a:hover, .nav li.current > a { color: var(--accent); }
.caret { width: 16px; height: 16px; }
.sub { position: absolute; top: 100%; left: 0; min-width: 300px; list-style: none; margin: 0; padding: 0; overflow: hidden; background: #fff; border-radius: 18px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 12px 22px; color: var(--ink); font-size: 14px; }  /* hover de ponta a ponta da caixa */
.sub li + li a { border-top: 1px solid var(--soft); }
.sub a:hover { background: var(--soft); color: var(--primary-ink); }
.burger { display: none; margin-left: auto; background: rgba(255,255,255,.14); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 14px; cursor: pointer; align-items: center; justify-content: center; }
.burger .ico { width: 24px; height: 24px; }

/* Menu mobile (painel lateral) */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(20,24,30,.55); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw); background: #fff; padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.drawer-head .logo-img { height: 42px; }
.drawer-x { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--soft); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.m-nav { list-style: none; margin: 0; padding: 0; }
.m-nav > li { border-bottom: 1px solid var(--soft); }
.m-row { display: flex; align-items: center; }
.m-row a { flex: 1; padding: 14px 4px; color: var(--ink); font-weight: 500; font-size: 17px; }
.m-nav li.current > .m-row a { color: var(--primary-ink); }
.m-toggle { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .25s; }
.m-toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--primary-ink); }
.m-sub { list-style: none; margin: 0 0 10px; padding: 4px 0 4px 14px; border-left: 2px solid var(--primary); }
.m-sub a { display: block; padding: 8px 4px; font-size: 15px; color: var(--text); }
.drawer-contact { margin-top: auto; display: grid; gap: 10px; font-size: 14px; }
.drawer-contact a { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.drawer-contact .ico { color: var(--primary-ink); }
/* Menu aberto: a página atrás não rola. Vai no html porque o overflow-x: clip do html (fim do arquivo) anula o do body. */
html.no-scroll, html.no-scroll body { overflow: hidden; }
.drawer-bg { touch-action: none; }
.drawer-panel { height: 100dvh; overscroll-behavior: contain; }

/* ---------- Hero ---------- */
.hero { background: var(--dark); color: #fff; min-height: 640px; display: flex; align-items: center; padding: 150px 0 110px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--dark-2) 90%, transparent) 0%, color-mix(in srgb, var(--dark) 72%, transparent) 55%, color-mix(in srgb, var(--dark) 55%, transparent) 100%); }
.hero-in { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 13em; margin-bottom: 20px; }
.hero-text { max-width: 600px; font-size: 16px; color: rgba(255,255,255,.9); }
.hero-link { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; margin: 14px 0 26px; }
.hero-link .ico { width: 18px; height: 18px; color: var(--accent); }
.hero-link:hover { color: var(--accent); }
.hero-proof { display: flex; align-items: center; gap: 22px; }
.avatars { display: flex; }
.av { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); margin-left: -12px; background: #fff; }
.avatars .av:first-child { margin-left: 0; }
.av.initials { display: grid; place-items: center; font-weight: 600; color: var(--primary-ink); }
.hero-proof small { display: block; font-size: 13px; color: rgba(255,255,255,.9); }
/* Movimento do hero: foto com zoom lento, grade deslizando e textos entrando em sequência */
.hero-bg img { animation: heroZoom 12s ease-in-out infinite alternate; will-change: transform; }
.hero.grid-lines::before { inset: -72px 0 0 -72px; animation: heroGrid 14s linear infinite; }
.hero-in > * { animation: heroUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-in > :nth-child(2) { animation-delay: .12s; }
.hero-in > :nth-child(3) { animation-delay: .24s; }
.hero-in > :nth-child(4) { animation-delay: .36s; }
.hero-in > :nth-child(5) { animation-delay: .48s; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.25) translate(-4%, -2.5%); } }
@keyframes heroGrid { to { transform: translate(72px, 72px); } }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars svg { width: 16px; height: 16px; fill: #d9d9d9; }
.stars svg.on { fill: #fbbc05; }

/* ---------- Logos de clientes ---------- */
.clients { background: var(--neutral); border-bottom: 6px solid var(--accent); padding: 38px 0; overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* Com JS: o main.js move a faixa e permite arrastar (mouse e dedo); a rolagem vertical da página continua livre */
.marquee.is-drag { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marquee.is-drag .marquee-track { animation: none; will-change: transform; }
.marquee.is-dragging { cursor: grabbing; }
.marquee.is-drag img { -webkit-user-drag: none; pointer-events: none; }
.client { flex: none; height: 76px; display: flex; align-items: center; }
.client img { max-height: 76px; width: auto; max-width: 170px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-media { position: relative; min-height: 470px; }
.am-main { position: absolute; right: 0; top: 0; width: 62%; height: 88%; border-radius: var(--r-xl); overflow: hidden; }
.am-second { position: absolute; left: 0; bottom: 0; width: 62%; aspect-ratio: 1 / .85; border-radius: var(--r-xl); overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow); }
.am-portrait { position: absolute; left: 10%; top: 12%; width: 34%; aspect-ratio: 1; border-radius: 42%; overflow: hidden; border: 6px solid #fff; z-index: 2; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text .rich { margin-bottom: 18px; }
.about-row { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 30px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.checks li { display: flex; gap: 10px; color: var(--ink); font-weight: 500; font-size: 14px; line-height: 1.35; }
.checks .ico { width: 18px; height: 18px; color: var(--ink); margin-top: 1px; }
.badge-years { flex: none; width: 150px; background: var(--primary); color: var(--on-primary); border-radius: 26px; padding: 22px 12px; text-align: center; }
.badge-years strong { display: block; font-size: 44px; line-height: 1; letter-spacing: -.03em; }
.badge-years span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; margin-top: 8px; line-height: 1.3; }

/* ---------- Soluções ---------- */
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.split-head h2 { margin: 0; max-width: 14em; }
.split-head > p { margin: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.svc-grid.count-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.svc-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.svc-grid.count-2 .svc-card:nth-child(2), .svc-grid .svc-card:nth-child(3n+2) { margin-top: 100px; }
.svc-grid.count-2 .svc-card:nth-child(2) { margin-top: 70px; }
/* 4 ou 8 soluções: 4 colunas, sem o escalonamento */
.svc-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.svc-grid.cols-4 .svc-card:nth-child(n) { margin-top: 0; }
.svc-grid.cols-4 .svc-card { padding: 26px 24px 24px; border-radius: var(--r-lg); display: flex; flex-direction: column; }
.svc-grid.cols-4 .svc-img { margin-top: auto; padding-top: 20px; }
.svc-grid.cols-4 h3 { font-size: 17px; }
.svc-grid.cols-4 .svc-img img { border-radius: var(--r-md); }
.svc-card { position: relative; background: #fff; border-radius: var(--r-xl); padding: 32px 32px 32px; box-shadow: var(--shadow-card); transition: transform .3s ease, box-shadow .3s ease; }
/* O card inteiro é link (o link do título se estica sobre ele); no hover, sobe um pouco e a seta cresce */
.svc-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.svc-card:hover, .svc-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card h3 a:focus-visible { outline: none; }
.svc-card:has(h3 a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.svc-card h3 { margin-bottom: 12px; }
.svc-card:hover h3 a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.svc-card p { font-size: 14px; }
.svc-img { position: relative; margin-top: 20px; }
.svc-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.svc-go { position: absolute; right: -6px; bottom: -6px; width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; border: 5px solid #fff; transition: transform .2s; }
.svc-card:hover .svc-go, .svc-card:focus-within .svc-go { transform: scale(1.12); background: var(--primary-h); }

/* ---------- A diferença (cards) ---------- */
.dif-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dif-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.dif-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.dif-card { background: #fff; border-radius: var(--r-lg); padding: 34px 28px 32px; display: flex; flex-direction: column; align-items: flex-start; transition: transform .25s, box-shadow .25s; }
.dif-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dif-card .dia { color: var(--primary); margin: 8px 8px 22px; }
.dif-card h3 { font-size: 18px; margin-bottom: 10px; }
.dif-card p { font-size: 14px; margin-bottom: 0; }
.dif-card .more { margin-top: 18px; }
.dif-card.is-featured { background: var(--primary); color: color-mix(in srgb, #fff 85%, transparent); }
.dif-card.is-featured h3 { color: #fff; }
.dif-card.is-featured .dia, .dif-card.is-featured .more { color: var(--accent); }
.dif-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 44px; text-align: center; }
.dif-bottom p { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- Portfólio ---------- */
/* Entre "Sobre" e o portfólio: menos espaço e uma linha sutil (só na largura do conteúdo) */
.about:has(+ .pf-sec) { padding-bottom: calc(var(--sec) * .45); }
.about + .pf-sec { padding-top: 0; }
.about + .pf-sec > .wrap::before { content: ""; display: block; height: 1px; max-width: 880px; margin: 0 auto calc(var(--sec) * .45); background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }
.pf-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.pf-filter button, .pf-filter a { font: 500 14px/1 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 12px 22px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pf-filter button:hover, .pf-filter a:hover { border-color: var(--primary); }
.pf-filter button.is-on, .pf-filter a.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pf-item { position: relative; display: block; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 4 / 3; background: var(--soft); }
.pf-item[hidden] { display: none; }
.pf-item img, .pf-noimg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.pf-item:hover img { transform: scale(1.05); }
.pf-info { position: absolute; inset: auto 0 0 0; padding: 60px 64px 22px 22px; display: grid; gap: 4px; color: #fff; background: linear-gradient(transparent, color-mix(in srgb, var(--primary) 92%, transparent)); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.pf-item:hover .pf-info, .pf-item:focus-visible .pf-info { opacity: 1; transform: none; }
.pf-info small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.pf-info strong { font-size: 17px; line-height: 1.3; }
.pf-info .ico { position: absolute; right: 22px; bottom: 24px; width: 22px; height: 22px; color: var(--accent); }
@media (hover: none) { .pf-info { opacity: 1; transform: none; } }
.pf-empty { text-align: center; margin: 24px 0 0; }
.pf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 24px; }
.pf-meta .tag, .pf-meta p { margin: 0; }
.pf-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-gallery img { width: 100%; border-radius: var(--r-md); }

/* ---------- Por que nos escolher ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-item .dia { flex: none; color: var(--primary); }
.why-item h3 { font-size: 18px; margin: 4px 0 10px; }
.why-item p { font-size: 14px; margin: 0; }
/* ---------- Diferenciais ---------- */
.diff { background: var(--primary); color: var(--on-primary); padding-top: var(--sec); }
.diff > .wrap { position: relative; z-index: 2; }
.center-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.diff h2, .diff h3 { color: var(--on-primary); }
.diff-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 24px; align-items: center; }
.diff-col { display: grid; gap: 44px; padding-bottom: 60px; }
.diff-item { text-align: center; }
.diff-item h3 { font-size: 18px; margin: 18px 0 8px; }
.diff-item p { font-size: 14px; color: color-mix(in srgb, var(--on-primary) 85%, transparent); max-width: 260px; margin: 0 auto; }
.dia { display: inline-grid; place-items: center; width: 62px; height: 62px; border: 1.5px solid currentColor; border-radius: 16px; transform: rotate(45deg); margin: 8px; }
.dia .ico { transform: rotate(-45deg); width: 26px; height: 26px; }
.diff-img { align-self: end; }
.diff-img img { margin: 0 auto -1px; width: 100%; max-width: 480px; height: auto; }
/* Desktop: as meninas vão do pé (coladas nos números) até a altura dos losangos de cima, como na referência */
@media (min-width: 901px) {
  .diff-grid { align-items: start; grid-template-columns: 1fr 1.6fr 1fr; }
  .diff-img { align-self: stretch; position: relative; }
  /* As pessoas ocupam só os 78% do meio da imagem (o resto é transparente): a caixa pode ser 28% mais larga que
     coluna + vãos sem encostar nos textos. Em telas estreitas, a imagem encolhe sem distorcer, presa ao pé. */
  .diff-img img { position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: auto; max-width: calc((100% + 48px) * 1.28); height: calc(100% - 40px); object-fit: contain; object-position: center bottom; margin: 0; }
}
.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--dark); border-radius: var(--r-xl); padding: 34px 20px; }
.stat { text-align: center; padding: 6px 10px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
.stat strong { display: block; font-variant-numeric: tabular-nums; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.05; font-weight: 500; color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.75); letter-spacing: -.02em; }
.stat span { font-size: 14px; color: #fff; font-weight: 500; }
/* Números: faixa própria logo depois dos diferenciais. O fundo é metade da cor da dobra de cima e metade da cor
   da dobra de baixo, então o cartão fica sempre no meio da emenda, em qualquer altura. */
.stats-band { position: relative; z-index: 2; margin-top: -1px; background: linear-gradient(var(--primary) 50%, #fff 50%); }
/* continua as linhas verticais da grade da dobra de cima */
.stats-band::before { content: ""; position: absolute; inset: 0 0 50%; pointer-events: none; z-index: 1; background: linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 72px 72px; }
.stats-band:has(+ .bg-soft) { background: linear-gradient(var(--primary) 50%, var(--soft) 50%); }
.stats-band:has(+ .dark) { background: linear-gradient(var(--primary) 50%, var(--dark) 50%); }

/* ---------- Depoimentos ---------- */
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.g-card { display: inline-block; background: #202124; color: #fff; border-radius: 6px; padding: 10px 16px; margin: 8px 0 14px; font-size: 13px; line-height: 1.5; }
.g-card strong { display: block; font-size: 16px; }
.g-card u { color: #8ab4f8; text-decoration: none; }
.g-card .stars svg { width: 13px; height: 13px; }
.g-logo img { width: 168px; height: auto; margin-top: 6px; }
.slider { position: relative; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.slide.is-active { opacity: 1; visibility: visible; }
.testi-card { margin: 0; background: var(--primary); color: #fff; border-radius: 16px; padding: 44px 40px 36px; text-align: center; box-shadow: var(--shadow); position: relative; }
.testi-card blockquote { margin: 0 0 26px; font: italic 400 19px/1.55 Georgia, 'Times New Roman', serif; }
.testi-card p { margin: 0; }
.tc-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 2px solid var(--accent); }
.tc-photo.initials { display: grid; place-items: center; background: #fff; color: var(--primary-ink); font-weight: 600; }
.testi-card figcaption strong { display: block; font-size: 15px; }
.testi-card figcaption span { font-size: 13px; color: rgba(255,255,255,.65); }
.g-mark { position: absolute; top: 18px; right: 20px; background: #fff; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; }
.g-mark .ico { width: 16px; height: 16px; }
.dots { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.slider-ctrl { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 24px; }
.slider-ctrl .dots { margin-top: 0; }
.slider-arrow { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--primary) 30%, transparent); background: transparent; color: var(--primary); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.slider-arrow:hover, .slider-arrow:focus-visible { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.slider-arrow .ico { width: 18px; height: 18px; }
.slider-arrow[data-prev] .ico { transform: rotate(180deg); }
/* arrastar para trocar (mouse ou dedo); a rolagem vertical da página continua livre */
.testi .slides, .pf-slider .slides { cursor: grab; touch-action: pan-y; }
.testi .is-dragging .slides, .pf-slider.is-dragging .slides { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: color-mix(in srgb, var(--primary) 25%, #fff); cursor: pointer; transition: width .3s, background .3s; }
.dots button.is-active { background: var(--primary); width: 26px; }

/* ---------- FAQ ---------- */
.dark { background: var(--dark); color: rgba(255,255,255,.85); }
.dark h2 { color: #fff; }
/* FAQ em sanfona (igual em todo o site): pergunta numa caixa; a resposta abre numa caixa recuada logo abaixo */
.faq-cols { display: grid; gap: 14px 28px; }
.faq-cols.cols-2 { grid-template-columns: 1fr 1fr; align-items: start; }
.faq-col { display: grid; gap: 14px; align-content: start; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 22px; border: 1px solid rgba(255,255,255,.4); border-radius: 18px; color: #fff; font-weight: 600; font-size: 16px; line-height: 1.35; letter-spacing: -.01em; transition: border-color .2s, background .2s; }
.faq-item summary:hover { border-color: rgba(255,255,255,.75); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { flex: none; width: 22px; height: 22px; color: var(--accent); transition: transform .25s; }
.faq-item[open]:not(.js-faq) summary, .faq-item.is-open summary { border-color: rgba(255,255,255,.75); }
.faq-item[open]:not(.js-faq) summary .ico, .faq-item.is-open summary .ico { transform: rotate(180deg); }
.faq-a { margin: 0 14px; padding: 22px 22px 26px; border: 1px solid rgba(255,255,255,.4); border-top: 0; border-radius: 0 0 18px 18px; font-size: 15px; color: rgba(255,255,255,.9); }
.faq-a > :last-child { margin-bottom: 0; }
.faq-item[open] .faq-a { animation: faqIn .32s ease; }
@keyframes faqIn { from { opacity: 0; } }
/* FAQ em fundo claro (página Perguntas frequentes): cada pergunta é um cartão branco de borda fina, resposta dentro dele */
.faq-light .faq-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, box-shadow .2s; }
.faq-light .faq-item:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.faq-light .faq-item[open]:not(.js-faq), .faq-light .faq-item.is-open { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); box-shadow: var(--shadow-card); }
.faq-light .faq-item summary, .faq-light .faq-item summary:hover, .faq-light .faq-item[open]:not(.js-faq) summary, .faq-light .faq-item.is-open summary { border: 0; color: var(--ink); }
.faq-light .faq-item summary .ico { color: var(--primary-ink); }
.faq-light .faq-a { margin: 0; padding: 0 22px 22px; border: 0; color: inherit; }
/* Pergunta fechada: faixa na cor de destaque. Aberta: a faixa fica num tom mais claro, separando a pergunta da resposta */
.faq-light .faq-item { overflow: hidden; border-color: var(--accent); }
.faq-light .faq-item summary, .faq-light .faq-item summary:hover { background: var(--accent); color: var(--on-accent); border-radius: 0; }
.faq-light .faq-item summary:hover { background: var(--accent-d); }
.faq-light .faq-item summary .ico { color: var(--on-accent); }
.faq-light .faq-item[open]:not(.js-faq) summary, .faq-light .faq-item.is-open summary { background: color-mix(in srgb, var(--accent) 38%, #fff); color: var(--ink); }
.faq-light .faq-item[open]:not(.js-faq), .faq-light .faq-item.is-open, .faq-light .faq-item:hover { border-color: var(--accent); }
.faq-light .faq-a { padding-top: 20px; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .25s; }
.post-card:hover { box-shadow: var(--shadow); }
.pc-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; margin-bottom: 10px; }
.pc-cat { background: var(--primary-t); color: var(--primary-ink); padding: 4px 12px; border-radius: 99px; font-weight: 500; font-size: 12px; }
.post-card h3 { font-size: 19px; line-height: 1.3; }
.post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.post-card p { font-size: 14px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--primary-ink); font-weight: 600; font-size: 14px; }
.more .ico { width: 16px; height: 16px; transition: transform .2s; }
.more:hover .ico { transform: translateX(4px); }
/* Categorias numa linha só: com muitas, a faixa rola de lado (dedo no celular, setas no computador) */
.cat-bar { position: relative; margin-bottom: 44px; }
.cat-filter { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.cat-filter::-webkit-scrollbar { display: none; }
.cat-filter > :first-child { margin-left: auto; }
.cat-filter > :last-child { margin-right: auto; }
.cat-filter > * { flex: none; }
.cat-bar.has-prev .cat-filter { -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px); mask-image: linear-gradient(90deg, transparent, #000 70px); }
.cat-bar.has-next .cat-filter { -webkit-mask-image: linear-gradient(270deg, transparent, #000 70px); mask-image: linear-gradient(270deg, transparent, #000 70px); }
.cat-bar.has-prev.has-next .cat-filter { -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent); }
.cat-arrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--primary) 30%, transparent); background: #fff; color: var(--primary); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.cat-arrow[hidden] { display: none; }
.cat-arrow:hover, .cat-arrow:focus-visible { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.cat-arrow .ico { width: 16px; height: 16px; }
.cat-arrow[data-cat-prev] { left: 0; }
.cat-arrow[data-cat-prev] .ico { transform: rotate(180deg); }
.cat-arrow[data-cat-next] { right: 0; }
/* Troca de filtro sem recarregar: a lista esmaece enquanto a nova chega */
[data-blog] .post-grid, [data-blog] .pf-grid, [data-blog] .pager { transition: opacity .25s; }
[data-blog].is-loading .post-grid, [data-blog].is-loading .pf-grid, [data-blog].is-loading .pager { opacity: .35; pointer-events: none; }
/* Filtro do portfólio (home e página): a mesma faixa com setas, com os botões brancos de contorno */
.cat-bar:has(.pf-links) { margin-bottom: 34px; }
.cat-filter.pf-links a, .cat-filter.pf-links button { font: 500 14px/1 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 12px 22px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.cat-filter.pf-links a:hover, .cat-filter.pf-links button:hover { background: #fff; color: var(--ink); border-color: var(--primary); }
.cat-filter.pf-links a.on, .cat-filter.pf-links button.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
#posts { scroll-margin-top: 90px; }
.cat-filter a { flex: none; padding: 9px 18px; border-radius: 99px; background: var(--soft); font-size: 14px; font-weight: 500; color: var(--ink); }
.cat-filter a.on, .cat-filter a:hover { background: var(--primary); color: var(--on-primary); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
#cases { scroll-margin-top: 90px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); font-weight: 600; color: var(--ink); }
.pager a.on { background: var(--primary); color: var(--on-primary); }

/* ---------- CTA e rodapé ---------- */
.cta-band { background: linear-gradient(180deg, #fff 50%, var(--dark) 50%); padding-top: 60px; }
.cta-box { background: var(--primary); border-radius: var(--r-xl); color: var(--on-primary); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 56px; min-height: 250px; }
.cta-box > * { position: relative; z-index: 2; }
.cta-box.no-img { grid-template-columns: 1fr 1fr; padding: 48px 56px; }
.cta-left h2 { color: var(--on-primary); font-size: clamp(26px, 2.8vw, 36px); margin: 0; }
.cta-img { align-self: end; margin-top: -60px; }
.cta-img img { width: auto; height: 310px; max-width: none; }
.cta-right p { font-size: 15px; font-weight: 500; }
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 80px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 56px; }
.site-footer .logo-img { height: 64px; margin-bottom: 20px; }
.f-about p { max-width: 460px; }
.f-phones { list-style: none; padding: 0; margin: 20px 0 16px; }
.f-phones a { display: flex; align-items: center; gap: 14px; font-size: 26px; font-weight: 600; color: #fff; line-height: 1.3; letter-spacing: -.01em; }
.f-phones .ico { color: var(--accent); width: 22px; height: 22px; }
.f-contact { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; color: #fff; }
.f-contact li { display: flex; gap: 12px; align-items: center; }
.f-contact .ico { color: var(--accent); width: 18px; height: 18px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--dark); display: grid; place-items: center; transition: transform .2s; }
.socials a:hover { transform: translateY(-2px); }
.socials .ico { width: 16px; height: 16px; }
.f-col h3 { color: var(--accent); font-size: 16px; margin: 8px 0 16px; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-col a:hover { color: var(--accent); }
.f-bottom { padding-top: 56px; padding-bottom: 30px; padding-right: calc(var(--pad) + 90px); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.f-bottom p { margin: 0; }
.f-legal a { color: inherit; opacity: .8; }
.f-legal a:hover { opacity: 1; }
.form-note { margin: 12px 0 0; font-size: 13px; opacity: .75; text-align: center; }
.form-note a { color: inherit; text-decoration: underline; }
/* Aceite da política de privacidade (caixa de marcar antes do botão de enviar) */
.form-check { display: flex; align-items: flex-start; gap: 10px; padding: 2px 6px; font-size: 13px; line-height: 1.5; text-align: left; cursor: pointer; }
.form-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }
.form-check a { color: inherit; text-decoration: underline; }

/* ---------- Páginas internas ---------- */
.page-banner { background: var(--primary); color: var(--on-primary); text-align: center; padding: 170px 0 90px; overflow: hidden; }
.page-banner.has-bg { background: var(--dark); color: #fff; }
.page-banner.has-bg h1 { color: #fff; }
.banner-bg { position: absolute; inset: 0; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.banner-bg::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--dark) 82%, transparent); }
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner h1 { color: var(--on-primary); margin-bottom: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .6; }
.crumbs a { opacity: .85; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs [aria-current] { color: var(--accent); font-weight: 600; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.content-grid.no-img { grid-template-columns: minmax(0, 820px); justify-content: center; }
.content-img img { width: 100%; border-radius: var(--r-xl); position: sticky; top: 110px; }
.rich > :last-child { margin-bottom: 0; }
.rich h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.4em; }
.rich h3 { margin-top: 1.4em; }
.rich ul, .rich ol { padding-left: 1.2em; }
.rich li { margin-bottom: .4em; }
.rich a { color: var(--primary-ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rich img { border-radius: var(--r-md); margin: 1.5em 0; }
.rich blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--primary); background: var(--soft); border-radius: 0 16px 16px 0; color: var(--ink); }
.rich strong { color: var(--ink); }
/* Em fundo escuro (FAQ da home), negrito e links usam a cor de destaque para não sumirem */
.dark .rich strong, .dark .rich a { color: var(--accent); }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.svc-title { font-size: clamp(28px, 3vw, 40px); }
.round-img { margin-bottom: 30px; }
.round-img img { width: 100%; border-radius: var(--r-xl); aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Case do portfólio (formato de página de produto) ---------- */
.pf-product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pf-main img, .pf-slider .slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); }
.pf-details { position: sticky; top: 120px; }
.pf-details h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.pf-client { font-size: 14px; margin: 0 0 16px; }
.pf-lead { font-size: 17px; color: var(--ink); font-weight: 500; }
.pf-cta { margin-top: 28px; padding: 28px; border-radius: var(--r-lg); background: var(--soft); }
.pf-cta strong { display: block; font-size: 19px; line-height: 1.3; color: var(--ink); margin-bottom: 8px; }
.pf-cta p { font-size: 14px; margin: 0 0 18px; }
.pf-cta .btn .ico { width: 18px; height: 18px; }
.pf-cta small { display: block; margin-top: 12px; font-size: 12px; text-align: center; opacity: .75; }
@media (max-width: 900px) {
  .pf-product { grid-template-columns: 1fr; }
  .pf-details { position: static; }
}
.dash-list { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; color: var(--ink); }
.dash-list li { position: relative; padding-left: 26px; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 14px; height: 2px; background: var(--ink); }
.gallery { margin-top: 36px; }
.gallery .slides { display: flex; gap: 20px; overflow: hidden; scroll-behavior: smooth; }
.gallery .slide { flex: 0 0 calc(50% - 10px); opacity: 1; visibility: visible; }
.gallery img { border-radius: var(--r-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.gallery .dots button { background: #cfcfcf; }
.gallery .dots button.is-active { background: var(--ink); width: 10px; }
.sidebar { display: grid; gap: 30px; position: sticky; top: 100px; }
.side-box { --pad: 30px; background: #fff; border-radius: var(--r-lg); padding: var(--pad); overflow: hidden; box-shadow: 0 10px 40px -10px rgba(0,0,0,.12); }
.side-form { background: var(--primary-t); box-shadow: none; }
.side-title, .form-title { font-size: 18px; text-align: center; color: var(--ink); margin: 0 0 20px; font-weight: 600; letter-spacing: 0; }
/* Nas caixas laterais, o título é uma faixa na cor principal, de ponta a ponta */
.side-box .side-title, .side-box .form-title { margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 26px; padding: 18px var(--pad); background: var(--primary); color: var(--on-primary); }
.side-links { list-style: none; margin: 0; padding: 0 6px; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: flex; align-items: center; gap: 12px; padding: 13px 0; color: var(--ink); font-weight: 500; font-size: 15px; }
.side-links a:hover { color: var(--primary-ink); }
.side-links .ico { width: 18px; height: 18px; color: var(--on-primary); background: var(--primary); border-radius: 50%; padding: 3px; }
.side-links em { color: var(--text); font-style: normal; font-size: 13px; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.recent a { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
.recent img { width: 84px; height: 70px; object-fit: cover; border-radius: 14px; }
.recent strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.35; font-weight: 600; }
.recent a:hover strong { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.recent small { font-size: 12px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-size: 14px; margin-bottom: 26px; }
.post-meta span { display: inline-flex; gap: 6px; align-items: center; }
.post-meta .ico { width: 16px; height: 16px; color: var(--primary-ink); }
.post-body { font-size: 16px; line-height: 1.8; }
.author-box { display: flex; gap: 20px; margin-top: 48px; padding: 28px; background: var(--soft); border-radius: var(--r-lg); align-items: flex-start; }
.ab-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.author-box strong { color: var(--ink); font-size: 18px; }
.ab-job { display: block; font-size: 13px; color: var(--primary-ink); margin-bottom: 8px; }
.author-box p { margin: 0; font-size: 14px; }

/* Formulários */
.form { display: grid; gap: 14px; }
.fld span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fld input, .fld select, .fld textarea { width: 100%; border: 1px solid transparent; background: #fff; border-radius: 26px; padding: 15px 22px; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s; }
.fld textarea { border-radius: 24px; resize: vertical; min-height: 140px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--primary); }
.form:not(.form-side) .fld input, .form:not(.form-side) .fld textarea, .form:not(.form-side) .fld select { background: var(--soft); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-size: 14px; font-weight: 500; color: var(--primary-ink); min-height: 1em; text-align: center; }
.form-msg.err { color: #c0392b; }
.form.sending button { opacity: .6; pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.info-cards { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.info-cards li { display: flex; gap: 18px; align-items: center; }
.info-cards .dia { color: var(--primary-ink); width: 54px; height: 54px; margin: 6px 10px 6px 6px; flex: none; }
.info-cards small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.info-cards a, .info-cards span:not(.dia) { display: block; color: var(--ink); font-weight: 600; }
.map iframe { width: 100%; height: 400px; border: 0; border-radius: var(--r-xl); }

/* ---------- Bolha WhatsApp ---------- */
.wa-bubble { position: fixed; bottom: 64px; z-index: 90; font-size: 14px; }
.wa-right { right: 22px; }
.wa-left { left: 22px; }
.wa-btn { width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--wa); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 28px -6px rgba(0,0,0,.35); position: relative; transition: transform .2s; }
.wa-btn:hover { transform: scale(1.06); }
.wa-btn .ico { width: 32px; height: 32px; }
.wa-badge { position: absolute; top: -2px; right: -2px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.wa-tip { position: absolute; bottom: 12px; white-space: nowrap; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 99px; box-shadow: var(--shadow); font-weight: 500; animation: pop .3s ease; }
.wa-right .wa-tip { right: 76px; }
.wa-left .wa-tip { left: 76px; }
.wa-box { position: absolute; bottom: 78px; width: min(340px, calc(100vw - 44px)); background: #e5ddd5; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px -10px rgba(0,0,0,.35); animation: pop .3s ease; }
.wa-right .wa-box { right: 0; transform-origin: bottom right; }
.wa-left .wa-box { left: 0; transform-origin: bottom left; }
.wa-head { display: flex; align-items: center; gap: 12px; background: var(--wa); color: #fff; padding: 14px 16px; }
.wa-head strong { display: block; font-size: 15px; line-height: 1.2; }
.wa-head span { font-size: 12px; opacity: .9; }
.wa-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: rgba(255,255,255,.25); display: grid; place-items: center; }
.wa-photo-ico { background: #fff; }
.wa-photo-ico .ico { width: 32px; height: 32px; }
.wa-x { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.wa-x:hover { background: rgba(255,255,255,.15); }
.wa-body { padding: 18px 16px; display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; }
.wa-msg { background: #fff; color: #303030; padding: 9px 12px; border-radius: 0 10px 10px 10px; max-width: 88%; box-shadow: 0 1px 1px rgba(0,0,0,.08); line-height: 1.5; animation: pop .3s ease both; }
.wa-msg:nth-child(2) { animation-delay: .4s; }
.wa-msg:nth-child(3) { animation-delay: .8s; }
.wa-go { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 16px 16px; background: var(--wa); color: #fff; border-radius: 99px; padding: 12px; font-weight: 600; }
.wa-go .ico { width: 18px; height: 18px; }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
/* Chamadas de atenção da bolha: o main.js sorteia uma de tempos em tempos (intervalos variados, poucas vezes por visita) */
.wa-tip.nudge-bounce { animation: waBounce .9s ease; }
.wa-tip.nudge-wiggle { animation: waWiggle .8s ease; transform-origin: 100% 50%; }
.wa-left .wa-tip.nudge-wiggle { transform-origin: 0 50%; }
.wa-btn.nudge-ring { animation: waRing 1.4s ease-out; }
.wa-btn.nudge-hop { animation: waBounce .9s ease; }
@keyframes waBounce { 0%, 100% { transform: none; } 30% { transform: translateY(-7px); } 55% { transform: none; } 75% { transform: translateY(-3px); } }
@keyframes waWiggle { 0%, 100% { transform: none; } 20% { transform: rotate(-3deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }
@keyframes waRing { 0% { box-shadow: 0 10px 28px -6px rgba(0,0,0,.3), 0 0 0 0 color-mix(in srgb, var(--wa) 55%, transparent); } 100% { box-shadow: 0 10px 28px -6px rgba(0,0,0,.3), 0 0 0 18px transparent; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .dif-grid, .dif-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .pf-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid, .testi-grid, .contact-grid, .content-grid, .split-head { grid-template-columns: 1fr; }
  .split-head { gap: 16px; margin-bottom: 40px; }
  .about-media { min-height: 0; aspect-ratio: 1 / .9; max-width: 560px; }
  .svc-grid, .svc-grid.count-2, .svc-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .svc-grid .svc-card:nth-child(n) { margin-top: 0; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .diff-img { grid-column: 1 / -1; order: 3; }
  .diff-col { padding-bottom: 0; gap: 32px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .stat:nth-child(3) { border-left: 0; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .faq-cols.cols-2 { grid-template-columns: 1fr; }
  .cta-box { grid-template-columns: 1fr; text-align: center; padding: 40px 28px 0; }
  .cta-img { order: 3; margin: 0 auto; }
  .cta-img img { max-height: 240px; }
  .content-img img { position: static; }
}
@media (max-width: 640px) {
  .dif-grid, .dif-grid.cols-3, .dif-grid.cols-2, .pf-grid, .pf-gallery { grid-template-columns: 1fr; }
  .pf-filter { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 26px; padding: 0 var(--pad) 4px; }
  .pf-filter button, .pf-filter a { flex: none; }
  body { font-size: 15px; }
  .header-in { height: 76px; }
  .logo-img { height: 40px; }
  .hero { min-height: 0; padding: 130px 0 80px; }
  .hero-proof { flex-wrap: wrap; gap: 14px; }
  .about-row { flex-direction: column; }
  .badge-years { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
  .badge-years span { margin: 0; text-align: left; }
  .svc-grid, .svc-grid.count-2, .svc-grid.cols-4, .post-grid, .diff-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 26px; border-radius: var(--r-lg); }
  .stats { padding: 24px 10px; }
  .stat + .stat { border-left: 0; }
  .dash-list { grid-template-columns: 1fr; }
  .gallery .slide { flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .f-phones a { font-size: 22px; }
  .page-banner { padding: 130px 0 64px; }
  .testi-card { padding: 34px 22px 28px; }
  .testi-card blockquote { font-size: 17px; }
  .side-box { --pad: 22px; }
  .author-box { flex-direction: column; }
  .wa-bubble { bottom: 40px; }
  .f-bottom { padding-right: var(--pad); padding-bottom: 120px; }  /* espaço para a bolha não cobrir os links */
  .wa-right { right: 16px; }
  .wa-left { left: 16px; }
  .wa-tip { display: none; }
}
@media (max-width: 1024px) { .wa-dev-desktop { display: none; } }
@media (min-width: 1025px) { .wa-dev-mobile { display: none; } }

/* ---------- Planos e preços ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.plans.cols-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.plans.cols-2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 38px 30px 30px; box-shadow: var(--shadow-card); }
.plan h3 { font-size: 22px; margin: 0 0 10px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 0 0 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--ink); }
.plan-price strong { font-size: clamp(40px, 4.4vw, 54px); line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.plan-price small { font-size: 16px; font-weight: 500; }
.plan-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 13px; flex: 1; align-content: start; }
.plan-list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; }
.plan-list .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--primary-ink); }
.plan-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1; padding: 9px 18px; border-radius: 99px; white-space: nowrap; }
/* Plano em destaque: cartão na cor principal */
.plan.is-featured { background: var(--primary); border-color: var(--primary); color: color-mix(in srgb, var(--on-primary) 88%, transparent); box-shadow: var(--shadow); }
.plan.is-featured h3, .plan.is-featured .plan-price { color: var(--on-primary); }
.plan.is-featured .plan-price { border-color: color-mix(in srgb, var(--on-primary) 22%, transparent); }
.plan.is-featured .plan-list .ico { color: var(--accent); }
.plan.is-featured .plan-list .ico path { stroke: var(--primary); }
.plan.is-featured .hl { color: var(--accent); background: none; padding: 0; }
.plans-note { max-width: 860px; margin: 44px auto 0; padding: 20px 26px; border-radius: var(--r-lg); background: var(--soft); border-left: 4px solid var(--accent); font-size: 14px; }
.plans-note > :last-child { margin-bottom: 0; }
@media (max-width: 980px) {
  .plans, .plans.cols-2 { grid-template-columns: minmax(0, 480px); justify-content: center; gap: 36px; }
}

/* ---------- Busca ---------- */
.search-btn { flex: none; width: 44px; height: 44px; margin: 0 -14px 0 -18px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--accent); cursor: pointer; transition: background .2s, transform .2s; }
.search-btn:hover, .search-btn:focus-visible { background: rgba(255,255,255,.12); transform: scale(1.06); }
.search-btn .ico { width: 22px; height: 22px; stroke-width: 2; }
/* Janela: fundo e caixa entram e saem com transição (sem "piscar") */
.search-pop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: start center; padding: clamp(96px, 24vh, 240px) 24px 24px; overflow-y: auto; background: color-mix(in srgb, var(--dark) 92%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
.search-pop.open { opacity: 1; visibility: visible; }
.search-form { width: min(680px, 100%); text-align: center; color: #fff; transform: translateY(18px) scale(.97); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease; }
.search-pop.open .search-form { transform: none; opacity: 1; transition-delay: .08s; }
.search-form label { display: block; font-size: clamp(24px, 3.4vw, 38px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 26px; }
.search-field { display: flex; align-items: center; background: #fff; border-radius: 99px; padding: 6px 6px 6px 26px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); padding: 14px 0; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field button { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); cursor: pointer; transition: background .2s; }
.search-field button:hover { background: var(--accent-d); }
.search-field button .ico { width: 22px; height: 22px; stroke-width: 2; }
.search-form small { display: block; margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.7); }
.search-x { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .2s, transform .3s; }
.search-x:hover { background: rgba(255,255,255,.22); transform: rotate(90deg); }
/* Resultados ao digitar */
.search-live { margin-top: 14px; background: #fff; border-radius: 22px; padding: 8px; text-align: left; max-height: min(52vh, 460px); overflow-y: auto; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); animation: searchIn .3s ease; }
@keyframes searchIn { from { opacity: 0; transform: translateY(-8px); } }
.search-item { display: block; padding: 12px 16px; border-radius: 14px; color: var(--text); transition: background .15s; }
.search-item:hover, .search-item:focus-visible { background: var(--soft); outline: none; }
.search-item small { display: block; margin: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--primary-ink); opacity: .7; }
.search-item strong { display: block; font-size: 16px; line-height: 1.35; color: var(--ink); font-weight: 600; }
.search-item span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.search-all { display: block; margin-top: 4px; padding: 13px 16px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; font-weight: 600; color: var(--primary-ink); }
.search-all:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.search-none { margin: 0; padding: 16px; text-align: center; font-size: 14px; color: var(--text); }
.search-pop.has-results .search-form > small { display: none; }
/* Página de resultados */
.search-again { max-width: 680px; margin: 0 auto 40px; }
.search-again .search-field { background: var(--soft); box-shadow: none; }
.search-count { text-align: center; margin: 0 0 28px; }
.search-results { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: grid; gap: 14px; }
.search-hit { display: block; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, box-shadow .2s, transform .2s; }
.search-hit:hover { border-color: var(--accent); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.search-hit .tag { margin-bottom: 10px; }
.search-hit h3 { font-size: 19px; margin: 0 0 6px; }
.search-hit p { margin: 0; font-size: 14px; }
@media (max-width: 1100px) {
  .search-btn { margin: 0 -14px 0 auto; }
  .search-btn ~ .burger { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .search-pop, .search-form { transition: none; }
}

/* Chamada com botão no fim do texto da solução */
.svc-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; margin: 34px 0; padding: 28px 30px; border-radius: var(--r-lg); background: var(--primary); color: color-mix(in srgb, var(--on-primary) 88%, transparent); }
.svc-cta > div { flex: 1 1 280px; }
.svc-cta strong { display: block; font-size: 20px; line-height: 1.3; color: var(--on-primary); }
.svc-cta p { margin: 8px 0 0; font-size: 14px; }
.svc-cta .btn { flex: none; }
.rich small { display: block; font-size: 12px; line-height: 1.5; opacity: .75; }

/* ---------- Celular: nada pode passar da largura da tela ---------- */
/* Se algum elemento ficar mais largo que a tela, o navegador alarga a página inteira e tudo que é fixo
   (janela de busca, bolha do WhatsApp) aparece cortado à direita. */
html { overflow-x: clip; }
.search-pop { width: 100%; max-width: 100vw; overflow-x: hidden; }
.search-form { min-width: 0; max-width: 100%; }
.search-field { min-width: 0; max-width: 100%; }
.search-field input { width: 100%; -webkit-appearance: none; appearance: none; border-radius: 0; }
.search-field input::-webkit-search-decoration { -webkit-appearance: none; }
.svc-cta .btn { flex: 0 1 auto; max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 640px) {
  .search-pop { padding-left: 16px; padding-right: 16px; }
  .search-x { top: 16px; right: 16px; }
  .search-field { padding-left: 20px; }
  .search-field input { font-size: 16px; }
  .svc-cta { padding: 24px 22px; }
  .svc-cta .btn { width: 100%; }
}
