/* =========================================================
   Luis Gregório Advocacia: estilos (mobile-first)
   Tokens espelhados em /docs/design-system.json (v1.0.0, editorial)
   Breakpoints: 560 / 768 / 1024 / 1280
   ========================================================= */
:root {
  /* Cores */
  --c-primary: #0A1B36;
  --c-primary-hover: #10284E;
  --c-primary-soft: #EAF0F8;
  --c-secondary: #C8C8CB;
  --c-accent: #17315C;
  --c-accent-hover: #244776;
  --c-text: #1E2430;
  --c-muted: #5A6270;
  --c-inverse: #FFFFFF;
  --c-surface: #F7F8FB;
  --c-surface-alt: #EDF1F7;
  --c-card: #FFFFFF;
  --c-dark: #091325;
  --c-border: #D8DFEA;
  --c-border-strong: #8391A6;
  --c-success: #146C4E;
  --c-success-hover: #0F5A40;
  --c-error: #B42318;
  --c-focus: #356AC3;
  --c-disabled: #98A3B5;
  --c-on-dark-muted: #B9C0CC;
  --c-line-dark: rgba(200, 200, 203, .18);
  --c-wa-bubble: #DCF8C6;
  --c-wa-bg: #EFEAE2;

  /* Tipografia */
  --f-display: "Lora", Georgia, serif;
  --f-body: "DM Sans", Arial, sans-serif;
  --fs-h1: clamp(2.75rem, 4.4vw, 5rem);
  --fs-h2: clamp(2.125rem, 3vw, 3.5rem);
  --fs-h3: clamp(1.625rem, 2.2vw, 2.25rem);
  --fs-card-title: clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-body-lg: clamp(1.0625rem, 1.35vw, 1.25rem);
  --fs-body: clamp(1rem, 1.05vw, 1.125rem);
  --fs-small: clamp(.9375rem, 1vw, 1rem);
  --fs-caption: clamp(.875rem, .9vw, .9375rem);

  /* Espaçamento */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-6: 24px;
  --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px; --sp-32: 128px;
  --section-y: 64px;

  /* Raios, sombras, transições */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px; --r-img: 8px;
  --sh-xs: 0 1px 3px rgba(10, 27, 54, .05);
  --sh-sm: 0 4px 12px rgba(10, 27, 54, .07);
  --sh-md: 0 12px 30px rgba(10, 27, 54, .09);
  --sh-lg: 0 22px 55px rgba(10, 27, 54, .12);
  --t-fast: 150ms ease-out;
  --t-normal: 220ms ease-out;
  --t-transform: 220ms cubic-bezier(.2, .8, .2, 1);

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-surface); color: var(--c-text);
  font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-accent); font-weight: 500; text-underline-offset: 4px; transition: color var(--t-fast); }
a:hover { color: var(--c-accent-hover); text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; color: var(--c-primary); margin: 0 0 var(--sp-4); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -.045em; max-width: 13ch; }
h2 { font-size: var(--fs-h2); line-height: 1.16; letter-spacing: -.035em; max-width: 21ch; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.025em; }
p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
strong { font-weight: 700; color: var(--c-primary); }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--c-card); color: var(--c-primary); padding: .6rem 1rem; border-radius: var(--r-sm); box-shadow: var(--sh-md); }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: var(--f-body); font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color var(--t-normal), color var(--t-normal), border-color var(--t-normal), box-shadow var(--t-normal), transform var(--t-fast);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-inverse); }
.btn-primary:hover { background: var(--c-primary-hover); color: var(--c-inverse); }
.btn-primary:active { background: var(--c-dark); }
.btn-secondary { background: transparent; border-color: var(--c-accent); color: var(--c-accent); }
.btn-secondary:hover { background: var(--c-primary-soft); color: var(--c-accent); }
.btn-secondary:active { background: var(--c-surface-alt); }
.btn-whatsapp { background: var(--c-success); border-color: var(--c-success); color: var(--c-inverse); }
.btn-whatsapp:hover { background: var(--c-success-hover); color: var(--c-inverse); }
.btn-light { background: var(--c-card); border-color: var(--c-card); color: var(--c-primary); }
.btn-light:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: var(--c-inverse); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); color: var(--c-inverse); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 4px; font-size: inherit; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--c-accent); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--t-normal); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Rótulos ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 var(--sp-3);
  font-size: var(--fs-caption); font-weight: 700; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--c-secondary); }
.badge {
  display: inline-block; margin: 0 0 var(--sp-3); padding: 5px 10px; border-radius: var(--r-xs);
  background: var(--c-primary-soft); color: var(--c-accent); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4;
}
.icon-box { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--c-primary-soft); color: var(--c-accent); }
.icon-box .icon { width: 24px; height: 24px; }
.icon-box--sm { width: 40px; height: 40px; border-radius: 8px; }
.icon-box--sm .icon { width: 20px; height: 20px; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--c-dark); color: var(--c-secondary); font-size: 14px; font-weight: 500; text-align: center; }
.topbar p { margin: 0; padding: 7px 0; line-height: 1.4; }
.topbar-long { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--c-surface); /* sem backdrop-filter: ele prenderia o drawer fixo dentro do header */
  border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-4); height: 100%; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo { height: 40px; width: auto; max-width: 220px; }
.header-cta { display: none; }

.menu-toggle {
  display: grid; gap: 5px; place-content: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm);
}
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--c-primary); }

.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-card); color: var(--c-primary); }

/* Drawer (mobile) */
.nav-backdrop { position: fixed; inset: 0; z-index: 140; background: rgba(9, 19, 37, .55); }
.main-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(360px, 88vw);
  display: flex; flex-direction: column; background: var(--c-surface); box-shadow: var(--sh-lg);
  transform: translateX(100%); visibility: hidden; transition: transform 300ms ease-in-out, visibility 300ms;
}
.menu-open { overflow: hidden; }
.menu-open .main-nav { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); border-bottom: 1px solid var(--c-border); }
.drawer-logo { height: 34px; width: auto; }
.nav-list { flex: 1; overflow-y: auto; padding: 8px var(--gutter); }
.nav-list > li { border-bottom: 1px solid var(--c-border); }
.nav-list > li > a, .mega-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 12px 0;
  background: none; border: 0; color: var(--c-primary); font-weight: 500; font-size: 16px; text-decoration: none; text-align: left;
}
.mega-trigger .icon { width: 18px; height: 18px; color: var(--c-accent); transition: transform 180ms ease-out; }
.has-mega.is-open .mega-trigger .icon { transform: rotate(180deg); }
.mega { display: none; padding: 0 0 16px; }
.has-mega.is-open .mega { display: grid; gap: 16px; }
.mega-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.mega a { display: block; padding: 8px 0; color: var(--c-text); font-weight: 400; font-size: 15px; text-decoration: none; }
.mega a:hover { color: var(--c-accent); text-decoration: underline; }
.drawer-foot { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-border); background: var(--c-card); }
.drawer-info { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--c-muted); }
.drawer-info .icon { width: 18px; height: 18px; color: var(--c-accent); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 64px; background: var(--c-surface); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-kicker { font-family: var(--f-display); font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.35; color: var(--c-accent); margin-bottom: var(--sp-6); max-width: 30ch; }
.hero .lead { font-size: var(--fs-body-lg); color: var(--c-muted); max-width: 60ch; }
.hero .lead strong { font-weight: 500; color: var(--c-primary); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin: var(--sp-8) 0 var(--sp-6); }
.microproof { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: var(--fs-small); color: var(--c-text); }
.microproof li { display: inline-flex; align-items: center; gap: 8px; }
.microproof .icon { width: 18px; height: 18px; color: var(--c-success); }
.hero-media { position: relative; width: 100%; max-width: 460px; justify-self: center; }
.hero-badge {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--sh-md);
}
.hero-badge-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: var(--c-inverse); flex: none; }
.hero-badge-icon .icon { width: 22px; height: 22px; }
.hero-badge strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.125rem; line-height: 1.2; }
.hero-badge span { font-size: 14px; color: var(--c-muted); }

/* ---------- Placeholders de imagem ---------- */
.img-ph {
  position: relative; margin: 0; width: 100%; overflow: hidden; border-radius: var(--r-img);
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255, 255, 255, .7), transparent 60%),
    linear-gradient(145deg, #E4E9F2 0%, #C9D2E0 100%);
}
.img-ph::before {
  content: "LG"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-display); font-size: clamp(3rem, 10vw, 6rem); font-weight: 500; letter-spacing: .06em; color: rgba(10, 27, 54, .08);
}
.img-ph--dark { background: radial-gradient(120% 80% at 70% 10%, rgba(200, 200, 203, .18), transparent 60%), linear-gradient(160deg, #17315C 0%, #0A1B36 70%); }
.img-ph--dark::before { color: rgba(255, 255, 255, .06); }
.img-ph > img, .img-ph > picture, .img-ph > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.img-ph[data-image-status="generated"]::before, .img-ph[data-image-status="approved"]::before { content: none; }
.img-ph-label {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--r-xs); background: rgba(10, 27, 54, .78); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .03em; line-height: 1.4;
}
.img-ph-label .icon { width: 14px; height: 14px; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-16-9 { aspect-ratio: 16 / 9; }

/* ---------- Faixa de credibilidade ---------- */
.trust { background: var(--c-surface-alt); border-block: 1px solid var(--c-border); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; }
.trust-grid li { display: flex; flex-direction: column; gap: 10px; padding: 20px 12px; }
.trust-grid li:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--c-border); }
.trust-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--c-border); }
.trust-icon { color: var(--c-accent); }
.trust-icon .icon { width: 24px; height: 24px; }
.trust-grid strong { display: block; font-size: 15px; line-height: 1.35; }
.trust-grid span:not(.trust-icon) { display: block; font-size: 14px; color: var(--c-muted); line-height: 1.45; }

/* ---------- Seções ---------- */
.section { padding: var(--section-y) 0; }
.section--white { background: var(--c-card); }
.section--alt { background: var(--c-surface-alt); }
.section--dark { background: var(--c-dark); color: var(--c-inverse); }
.section--dark h2, .section--dark h3 { color: var(--c-inverse); }
.section--tight { padding: 48px 0; }
.section--tight-top { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: var(--sp-12); }
.section-head h2 { margin-bottom: 20px; }
.section-head > p:last-child { color: var(--c-muted); margin-bottom: 0; max-width: 64ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center h2, .section-head--center > p:last-child { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-cta { display: flex; justify-content: center; margin-top: var(--sp-12); }
.sub-head { font-size: var(--fs-card-title); margin: var(--sp-16) 0 var(--sp-6); }

/* Grades simétricas */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }

/* Divisão texto/imagem */
.split { display: grid; gap: 40px; align-items: center; }
.split-copy > p { color: var(--c-muted); }
.split-copy .btn { margin-top: var(--sp-4); }
.split-media { width: 100%; }
.split--media-first .split-media { order: 1; } /* no celular, texto antes da imagem */

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column; height: 100%; padding: 24px;
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-md);
  transition: transform var(--t-transform), box-shadow var(--t-normal), border-color var(--t-normal);
}
.card h3 { font-size: var(--fs-card-title); margin-bottom: var(--sp-3); }
.card p { color: var(--c-muted); font-size: var(--fs-small); }
.card > .icon-box { margin-bottom: 20px; }
.card .link-arrow, .card > .btn { margin-top: auto; align-self: flex-start; }

.card--quote h3 { font-size: clamp(1.1875rem, 1.45vw, 1.375rem); line-height: 1.35; }
.card--quote p { margin-bottom: 0; }

.matrix-card h3 { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.matrix-card dl { display: grid; gap: 16px; }
.matrix-card dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 4px; }
.matrix-card dd { color: var(--c-muted); font-size: var(--fs-small); line-height: 1.6; }

.info-block { height: 100%; padding: 28px 24px; background: var(--c-surface); border-left: 3px solid var(--c-accent); border-radius: var(--r-sm); display: flex; flex-direction: column; }
.info-block .icon-box { margin-bottom: 20px; background: var(--c-card); }
.info-block h3 { font-size: var(--fs-card-title); }
.info-block .link-arrow { margin-top: auto; padding-top: 20px; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); line-height: 1.55; }
.check-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--c-accent); }

.card--image { padding: 0; overflow: hidden; }
.card--image .img-ph { border-radius: 0; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.card--image h3 { font-size: clamp(1.375rem, 1.7vw, 1.75rem); }

.service-card--cta { background: var(--c-primary); border-color: var(--c-primary); }
.service-card--cta h3 { color: var(--c-inverse); }
.service-card--cta p { color: var(--c-on-dark-muted); }
.service-card--cta .icon-box { background: rgba(255, 255, 255, .1); color: var(--c-inverse); }

.feature-card { min-height: 220px; padding: 28px; }
.feature-card p { margin-bottom: 0; }

.principle { padding: 28px; }
.principle-num { display: block; font-family: var(--f-display); font-size: 1.75rem; line-height: 1; color: var(--c-accent); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.principle p { margin-bottom: 0; }
.place-card p { margin-bottom: 0; }

/* Hover somente em cards clicáveis */
.card--image:hover, .service-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

/* Citação editorial */
.quote { margin: var(--sp-8) 0 0; padding-left: 24px; border-left: 3px solid var(--c-accent); font-family: var(--f-display); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.5; color: var(--c-primary); }

/* ---------- Faixa editorial ---------- */
.band { position: relative; overflow: hidden; background: var(--c-dark); color: var(--c-inverse); padding: 88px 0; }
.band-bg { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.band-bg::after { content: ""; position: absolute; inset: 0; background: rgba(9, 19, 37, .62); }
.band-bg .img-ph-label { z-index: 1; }
.band-inner { position: relative; z-index: 1; text-align: center; }
.band-quote { max-width: 22ch; margin: 0 auto 20px; font-family: var(--f-display); font-style: italic; font-size: clamp(1.875rem, 3.4vw, 3.25rem); line-height: 1.25; letter-spacing: -.02em; }
.band-sub { max-width: 52ch; margin: 0 auto; color: var(--c-secondary); font-size: var(--fs-body-lg); }

/* ---------- Planejamento ---------- */
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: var(--sp-6) 0 var(--sp-4); }
.mini-grid li { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-sm); font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--c-primary); }
.mini-grid .icon { width: 20px; height: 20px; color: var(--c-accent); }

/* ---------- Fluxo (etapas da análise) ---------- */
.flow { display: grid; gap: 0; counter-reset: f; }
.flow li { position: relative; padding: 0 0 32px 64px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 1px; background: var(--c-border-strong); }
.flow li:last-child::before { content: none; }
.flow-num { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-card); border: 1px solid var(--c-accent); font-family: var(--f-display); font-size: 1.25rem; color: var(--c-accent); }
.flow h3 { font-size: var(--fs-card-title); margin-bottom: 6px; padding-top: 8px; }
.flow p { margin: 0; color: var(--c-muted); font-size: var(--fs-small); }

/* ---------- Como funciona ---------- */
.split--intro { margin-bottom: var(--sp-12); }
.steps { counter-reset: s; }
.step { height: 100%; padding: 28px 24px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); }
.step-num { display: block; font-family: var(--f-display); font-size: 2rem; font-weight: 500; line-height: 1; color: var(--c-accent); margin-bottom: 20px; }
.step h3 { font-size: var(--fs-card-title); margin-bottom: 8px; }
.step p { margin: 0; color: var(--c-muted); font-size: var(--fs-small); }

/* ---------- Modalidades ---------- */
.mode { padding: 24px 0 0; border-top: 2px solid var(--c-accent); }
.mode .icon { width: 28px; height: 28px; color: var(--c-accent); margin-bottom: 14px; }
.mode h3 { font-size: var(--fs-card-title); margin-bottom: 8px; }
.mode p { margin: 0; color: var(--c-muted); font-size: var(--fs-small); }

/* ---------- CTA intermediário ---------- */
.cta-band { background: var(--c-dark); color: var(--c-inverse); padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid var(--c-line-dark); pointer-events: none; }
.cta-band-inner { position: relative; z-index: 1; display: grid; gap: 28px; }
.cta-band h2 { color: var(--c-inverse); margin-bottom: 12px; }
.cta-band p { color: var(--c-secondary); margin: 0; font-size: var(--fs-body-lg); }
.cta-band-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Comparativo ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-card); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-small); }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); line-height: 1.55; }
.compare thead th { background: var(--c-primary); color: var(--c-inverse); font-weight: 700; font-size: 15px; }
.compare tbody th { width: 24%; font-weight: 700; color: var(--c-primary); }
.compare td { color: var(--c-text); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr { transition: background-color var(--t-fast); }
.compare tbody tr:hover { background: var(--c-primary-soft); }
.table-note { margin: 16px 0 0; font-size: 14px; color: var(--c-muted); }

/* ---------- Sobre ---------- */
.split--about { align-items: start; }
.split--about .split-media { max-width: 460px; justify-self: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: var(--sp-6) 0; border-top: 1px solid var(--c-border); }
.facts div { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--c-border); }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 2px; }
.facts dd { font-family: var(--f-display); font-size: 1.125rem; line-height: 1.35; color: var(--c-primary); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 40px; }
.faq-media { display: none; margin-top: var(--sp-8); }
.faq-aside > p { color: var(--c-muted); }
.faq { display: grid; gap: 0; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--c-border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 20px; cursor: pointer; list-style: none; transition: background-color var(--t-fast); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--c-primary-soft); }
.faq summary h3 { margin: 0; font-family: var(--f-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.45; letter-spacing: 0; color: var(--c-primary); }
.faq summary .icon { width: 20px; height: 20px; color: var(--c-accent); transition: transform 180ms ease-out; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq-body { padding: 0 20px 20px; color: var(--c-muted); font-size: var(--fs-small); }
.faq-body p { margin: 0; }

/* ---------- Google Meu Negócio ---------- */
.gmb { display: grid; gap: 20px; margin-top: var(--sp-12); }
.gmb-map { position: relative; min-height: 300px; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--c-border);
  background: radial-gradient(120% 90% at 30% 20%, #fff 0%, transparent 60%), repeating-linear-gradient(45deg, #E4E9F2 0 14px, #EDF1F7 14px 28px); }
.gmb-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gmb-map-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 24px; border: 0; background: transparent; text-align: left; color: var(--c-primary); }
.gmb-map-load > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--c-primary); color: var(--c-inverse); }
.gmb-map-load strong { display: block; font-size: 16px; }
.gmb-map-load small { display: block; font-size: 13px; color: var(--c-muted); max-width: 30ch; line-height: 1.45; }
.gmb-map-load:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.gmb-card { display: flex; flex-direction: column; padding: 28px 24px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); }
.gmb-card h3 { font-size: var(--fs-card-title); margin-bottom: 4px; }
.gmb-type { color: var(--c-muted); font-size: 14px; margin-bottom: 20px; }
.gmb-list { display: grid; gap: 14px; margin-bottom: 24px; }
.gmb-list div { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); line-height: 1.55; }
.gmb-list dt .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--c-accent); }
.gmb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

/* ---------- Faixa escura de avisos ---------- */
.dark-card { height: 100%; padding: 28px; border: 1px solid var(--c-line-dark); border-radius: var(--r-md); background: rgba(255, 255, 255, .03); }
.dark-card .icon { width: 28px; height: 28px; color: var(--c-secondary); margin-bottom: 16px; }
.dark-card h3 { font-size: var(--fs-card-title); margin-bottom: 8px; }
.dark-card p { margin: 0; color: var(--c-on-dark-muted); font-size: var(--fs-small); }

/* ---------- Contato ---------- */
.section--contact { background: var(--c-surface); }
.contact-grid { display: grid; gap: 40px; align-items: start; }
.contact-copy > p { color: var(--c-muted); }
.contact-list { display: grid; gap: 12px; margin: var(--sp-6) 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-small); }

.lead-form { margin-top: var(--sp-8); padding: 24px; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-md); display: grid; gap: 18px; }
.lead-form h3 { font-size: var(--fs-card-title); margin: 0; }
.form-row { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 700; color: var(--c-text); }
.field label .opt { font-weight: 400; color: var(--c-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--c-border-strong);
  background: var(--c-card); color: var(--c-text); font: inherit; font-size: 16px; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-muted); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-accent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-focus); outline-offset: 0; border-color: var(--c-focus); }
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field-error { margin: 0; font-size: 14px; color: var(--c-error); }
.consent { display: flex; gap: 10px; font-size: 14px; color: var(--c-muted); align-items: flex-start; line-height: 1.5; }
.consent input { margin-top: 2px; width: 20px; height: 20px; flex: none; accent-color: var(--c-primary); }
.form-error { margin: 0; color: var(--c-error); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* campo-isca invisível */

/* ---------- Componente de mensagem pronta ---------- */
.wa-card { background: var(--c-card); color: var(--c-text); border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--sh-md); overflow: hidden; }
.wa-card-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; background: var(--c-primary); color: var(--c-inverse); }
.wa-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); flex: none; }
.wa-card-title { margin: 0; font-weight: 700; line-height: 1.3; color: var(--c-inverse); }
.wa-card-sub { margin: 0; font-size: 14px; color: var(--c-secondary); }
.wa-builder-body { padding: 24px; }
.wa-builder-foot { padding: 0 24px 24px; }
.chip-group { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.chip-group legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text); }
.chip-group legend span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--c-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--c-border-strong); border-radius: var(--r-pill); background: var(--c-card); color: var(--c-text);
  font-size: 15px; font-weight: 500; line-height: 1.2; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip .icon { width: 16px; height: 16px; color: var(--c-accent); }
.chip:hover { border-color: var(--c-accent); background: var(--c-primary-soft); }
.chip[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-inverse); }
.chip[aria-pressed="true"] .icon { color: var(--c-inverse); }
.wa-preview { background: var(--c-wa-bg); border-radius: var(--r-sm); padding: 16px; }
.wa-preview-label { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #5E574B; }
.wa-bubble {
  position: relative; max-width: 92%; margin-left: auto; padding: 10px 12px; background: var(--c-wa-bubble); color: #111B21;
  border-radius: 8px 0 8px 8px; font-size: 15px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.wa-bubble::after { content: ""; position: absolute; top: 0; right: -8px; border-width: 0 0 10px 8px; border-style: solid; border-color: transparent transparent transparent var(--c-wa-bubble); }
.wa-note { margin: 12px 0 0; font-size: 13px; color: var(--c-muted); text-align: center; line-height: 1.5; }
.wa-note .icon { display: inline-block; width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }

/* ---------- Pop-up ---------- */
.popup-open { overflow: hidden; }
.popup-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(9, 19, 37, .62); opacity: 0; transition: opacity var(--t-normal);
}
.popup-overlay.is-visible { opacity: 1; }
.popup {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 540px; max-height: calc(100dvh - 24px);
  border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; box-shadow: var(--sh-lg);
  background: linear-gradient(180deg, var(--c-primary-soft) 0%, var(--c-card) 180px);
  transform: translateY(16px); transition: transform 300ms cubic-bezier(.2, .8, .2, 1);
}
.is-visible .popup { transform: none; }
.popup-scroll { flex: 1; overflow-y: auto; padding: 24px 24px 16px; overscroll-behavior: contain; }
.popup-foot { padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); background: var(--c-card); border-top: 1px solid var(--c-border); }
.popup-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-right: 48px; }
.avatar { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(145deg, var(--c-accent), var(--c-primary)); box-shadow: 0 0 0 3px var(--c-card), var(--sh-sm); }
.avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.avatar-initials { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c-inverse); font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; }
.online-dot { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: #25D366; border: 2.5px solid var(--c-card); }
.popup-name { margin: 0; font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; color: var(--c-primary); line-height: 1.2; }
.popup-role { margin: 0; font-size: 14px; color: var(--c-muted); }
.popup-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-border); background: var(--c-card); color: var(--c-text); }
.popup-close:hover { background: var(--c-surface); }
.popup-title { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); line-height: 1.2; margin-bottom: 8px; max-width: none; }
.popup-sub { color: var(--c-muted); font-size: var(--fs-small); margin-bottom: 24px; }

/* Botão manual flutuante */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 12px 16px; border: 0; border-radius: var(--r-pill);
  background: var(--c-success); color: var(--c-inverse); font-weight: 700; font-size: 15px; box-shadow: 0 10px 28px rgba(9, 19, 37, .28);
  transition: transform var(--t-fast), background-color var(--t-normal);
}
.fab:hover { transform: translateY(-1px); background: var(--c-success-hover); }
.fab .icon { width: 22px; height: 22px; }
.fab span { display: none; }

/* Aviso discreto no celular */
.nudge {
  position: fixed; left: 12px; right: 84px; bottom: 16px; z-index: 91; display: flex; align-items: center;
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-pill); box-shadow: var(--sh-md);
  opacity: 0; transform: translateY(10px); transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.nudge.is-visible { opacity: 1; transform: none; }
.nudge-open { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 8px 8px 16px; border: 0; background: none; text-align: left; font-size: 14px; font-weight: 700; color: var(--c-primary); }
.nudge-open .icon { color: var(--c-success); }
.nudge-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--c-muted); }
.nudge-close .icon { width: 18px; height: 18px; }

/* Cookies */
.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 180; display: grid; gap: 12px;
  padding: 16px; background: var(--c-card); color: var(--c-text); border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--sh-lg); font-size: 14px;
}
.cookie-bar p { margin: 0; line-height: 1.5; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--c-dark); color: var(--c-on-dark-muted); padding: 64px 0 96px; font-size: var(--fs-small); }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--c-line-dark); }
.footer-brand img { height: 48px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 38ch; }
.footer-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-inverse); }
.site-footer strong { color: var(--c-inverse); }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer address a { color: var(--c-on-dark-muted); font-weight: 400; }
.site-footer address a:hover { color: var(--c-inverse); }
.footer-social { margin-top: 12px; }
.footer-links { display: grid; gap: 6px; }
.footer-links a, .footer-bottom-links a, .footer-bottom-links .link-btn { color: var(--c-on-dark-muted); font-weight: 400; text-decoration: none; }
.footer-links a:hover, .footer-bottom-links a:hover, .footer-bottom-links .link-btn:hover { color: var(--c-inverse); text-decoration: underline; }
.footer-legal { padding-top: 24px; font-size: 14px; }
.footer-legal p { margin-bottom: 8px; }
.footer-bottom { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-line-dark); }
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer :focus-visible { outline-color: #8FB0EA; }
.section--dark :focus-visible, .cta-band :focus-visible, .wa-card-head :focus-visible { outline-color: #8FB0EA; }

/* ---------- Páginas de mensagem (obrigado e 404) ---------- */
.msg { min-height: 100vh; display: grid; place-items: center; padding: 48px var(--gutter); background: var(--c-surface); }
.msg-box { max-width: 620px; text-align: center; }
.msg-box .eyebrow { justify-content: center; }
.msg-box h1 { max-width: none; font-size: clamp(2.25rem, 4vw, 3.25rem); }
.msg-box p { color: var(--c-muted); }
.msg-logo { height: 52px; width: auto; margin: 0 auto 40px; }
.msg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 350ms ease-out, transform 350ms ease-out; }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal.is-in.card--image:hover, .js .reveal.is-in.service-card:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =================== Breakpoints =================== */
@media (min-width: 560px) {
  .hero-actions, .cta-band-actions { flex-direction: row; flex-wrap: wrap; }
  .cookie-bar { left: auto; right: 16px; bottom: 16px; max-width: 420px; }
  .hero-badge { left: -12px; right: auto; bottom: 24px; }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: 80px; }
  .topbar-long { display: inline; }
  .grid { gap: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-grid li { flex-direction: row; align-items: flex-start; padding: 24px 20px; border-bottom: 0 !important; border-right: 1px solid var(--c-border); }
  .trust-grid li:first-child { padding-left: 0; }
  .trust-grid li:last-child { border-right: 0; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .flow li { padding: 0 0 0 64px; }
  .flow li::before { content: none; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .lead-form { padding: 32px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts div { padding: 16px 16px 16px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .popup-overlay { align-items: center; padding: 24px; }
  .popup { max-height: calc(100dvh - 48px); border-radius: var(--r-lg); }
  .popup-scroll { padding: 32px 32px 16px; }
  .popup-foot { padding: 16px 32px 24px; }
  .fab span { display: inline; }
  .fab { padding: 12px 20px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; --section-y: 96px; }
  .menu-toggle, .drawer-head, .drawer-foot, .nav-backdrop { display: none !important; }
  .brand-logo { height: 46px; }
  .header-cta { display: inline-flex; margin-left: 20px; }
  .main-nav { position: static; width: auto; flex-direction: row; background: none; box-shadow: none; transform: none; visibility: visible; transition: none; margin-left: auto; }
  .menu-open { overflow: auto; }
  .nav-list { display: flex; align-items: center; gap: 28px; padding: 0; overflow: visible; }
  .nav-list > li { border: 0; position: static; }
  .nav-list > li > a, .mega-trigger { min-height: var(--header-h); padding: 0; font-size: 15px; gap: 6px; justify-content: flex-start; position: relative; }
  .nav-list > li > a::after, .mega-trigger::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 2px; background: var(--c-accent); transform: scaleX(0); transition: transform var(--t-normal); }
  .nav-list > li > a:hover, .mega-trigger:hover { color: var(--c-accent); }
  .nav-list > li > a:hover::after, .mega-trigger:hover::after, .has-mega.is-open .mega-trigger::after { transform: scaleX(1); }
  .mega {
    position: absolute; top: calc(100% - 8px); left: 50%; translate: -50% 0; width: min(960px, 90vw);
    grid-template-columns: repeat(3, 1fr); gap: 32px !important; padding: 32px;
    background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--sh-md);
  }
  .mega-col { padding-left: 20px; border-left: 1px solid var(--c-border); }
  .mega-col:first-child { padding-left: 0; border-left: 0; }
  .mega-title { color: var(--c-accent); margin-bottom: 8px; }
  .mega a { padding: 6px 0; }
  .site-header .container { position: relative; }

  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; }
  .hero-media { justify-self: end; }
  .hero-badge { left: -40px; }
  .hero-actions { margin-top: 40px; }

  .grid { gap: 24px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: auto; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split--media-first .split-media { order: -1; }
  .split--about { grid-template-columns: 5fr 7fr; }
  .split--about .split-media { position: sticky; top: 120px; }
  .flow { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .flow li { padding: 64px 0 0; }
  .flow li::before { content: ""; left: 56px; right: -24px; top: 23px; bottom: auto; width: auto; height: 1px; }
  .flow li:last-child::before { content: none; }
  .flow h3 { padding-top: 0; }
  .cta-band { padding: 80px 0; }
  .cta-band-inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 48px; }
  .cta-band-actions { justify-content: flex-end; }
  .gmb { grid-template-columns: 7fr 5fr; gap: 24px; }
  .gmb-map { min-height: 380px; }
  .faq-layout { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .faq-aside { position: sticky; top: 120px; }
  .faq-media { display: block; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
  .site-footer { padding: 80px 0 32px; }
}

@media (min-width: 1280px) {
  .hero-grid { gap: 96px; }
}
