/* =========================================================
   Calil Contábil — Assessoria Empresarial
   Design system & estilos globais
   ========================================================= */

:root {
  /* Cores da marca */
  --navy-950: #000a2b;
  --navy-900: #00113f;
  --navy-800: #001b66; /* azul Calil */
  --navy-700: #0a2a85;
  --navy-600: #1d3e9e;
  --navy-500: #3a5bbd;
  --navy-300: #9db0e3;
  --navy-200: #c9d4f1;
  --navy-100: #e6ebf8;
  --navy-50: #f3f6fc;

  --graphite: #424242;  /* cinza escuro da marca */
  --gray: #868686;      /* cinza médio da marca (decorativo) */
  --gray-text: #6b6b6b; /* cinza para textos pequenos, com contraste AA */
  --slate: #454f5f;
  --line: #dcdcde;
  --surface: #f4f6f7;
  --paper: #fcfcfd;
  --white: #ffffff;
  --ink: #0d0d0d;
  --whatsapp: #25d366;
  --whatsapp-dark: #0f7a41; /* texto branco com contraste 5,4:1 */

  /* Tipografia */
  --font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Michroma", "Manrope", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-xl: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);

  /* Espaçamento e forma */
  --container: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(0, 17, 63, 0.06), 0 1px 3px rgba(0, 17, 63, 0.08);
  --shadow: 0 4px 12px -2px rgba(0, 17, 63, 0.08), 0 12px 32px -8px rgba(0, 17, 63, 0.12);
  --shadow-lg: 0 24px 64px -16px rgba(0, 17, 63, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { color: var(--navy-900); font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--navy-500);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Anel de foco claro nos blocos de fundo escuro (navy-500 fica abaixo de 3:1 sobre eles) */
.topbar :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.section--navy :focus-visible,
.cta-band :focus-visible,
.side-card--navy :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

::selection { background: var(--navy-200); color: var(--navy-950); }

.visually-hidden {
  position: absolute !important;
  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: 1rem; top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--surface); }
.section--paper { background: var(--paper); }
.section--navy {
  background: var(--navy-900);
  color: var(--navy-100);
}
.section--navy h2,
.section--navy h3 { color: var(--white); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { font-size: var(--fs-lg); color: var(--slate); }
.section--navy .section-head p:not(.eyebrow) { color: var(--navy-200); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section--navy .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow { color: var(--navy-300); }

.lead { font-size: var(--fs-lg); color: var(--slate); }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: var(--white);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.005em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 27, 102, 0.55); }
.btn:hover svg.icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy-800); }
.btn--light:hover { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--navy-200); }
.btn--ghost:hover { --btn-bd: var(--navy-800); box-shadow: none; }
.btn--ghost-light { --btn-bg: rgba(255, 255, 255, 0.06); --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, 0.28); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.12); --btn-bd: rgba(255, 255, 255, 0.6); box-shadow: none; }
.btn--whatsapp { --btn-bg: var(--whatsapp-dark); --btn-fg: var(--white); }
.btn--whatsapp:hover { --btn-bg: #0b6b38; box-shadow: 0 10px 24px -10px rgba(15, 122, 65, 0.7); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0.55rem 1.1rem; font-size: var(--fs-xs); }
.btn--lg { min-height: 56px; padding: 1rem 1.9rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--navy-700);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; color: var(--navy-800); flex: none; }
.brand svg { height: 44px; width: auto; }
.brand text { font-family: var(--font-brand); fill: currentColor; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--navy-200);
  font-size: var(--fs-xs);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 40px;
}
.topbar__info, .topbar__links { display: flex; align-items: center; gap: 1.5rem; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar svg { width: 14px; height: 14px; opacity: 0.8; }
.topbar a:hover { color: var(--white); }
.topbar__social { display: flex; gap: 0.25rem; }
.topbar__social a { padding: 0.35rem; border-radius: 6px; }
.topbar__social a:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(0, 27, 102, 0.08);
  box-shadow: 0 8px 30px -18px rgba(0, 17, 63, 0.35);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__list { display: flex; align-items: center; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--graphite);
  transition: color 0.2s, background-color 0.2s;
}
.nav__link:hover,
.nav__item:focus-within > .nav__link { color: var(--navy-800); background: var(--navy-50); }
/* Página/seção atual: cor + sublinhado (não depende só da cor) */
.nav__link[aria-current] {
  color: var(--navy-800);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}
.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 32px;
  margin-left: -0.6rem;
  border-radius: 8px;
  color: var(--graphite);
}
.nav__toggle:hover,
.nav__toggle[aria-expanded="true"] { color: var(--navy-800); }
.nav__toggle svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: 340px;
  padding: 0.6rem;
  background: var(--white);
  border: 1px solid rgba(0, 27, 102, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item:hover > .dropdown,
.nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover > .nav__toggle svg,
.nav__item.is-open > .nav__toggle svg { transform: rotate(180deg); }
.nav__item.is-suppressed > .dropdown { opacity: 0; visibility: hidden; transform: translateY(6px); }
.nav__item.is-suppressed > .nav__toggle svg { transform: none; }

.dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 12px;
  transition: background-color 0.2s;
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--navy-50); }
.dropdown__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--navy-100);
  color: var(--navy-800);
}
.dropdown__icon svg { width: 20px; height: 20px; }
.dropdown strong { display: block; font-family: var(--font-display); font-size: 0.92rem; line-height: 1.3; }
.dropdown small { display: block; color: var(--gray-text); font-size: 0.8rem; line-height: 1.4; margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  place-items: center;
  color: var(--navy-800);
  background: var(--navy-50);
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

/* Menu mobile */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--white);
  overflow-y: auto;
  padding: 1.25rem var(--gutter) 2.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.menu-open body { overflow: hidden; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav > ul > li > a,
.mobile-nav .mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-900);
  text-align: left;
}
.mobile-nav__toggle svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.mobile-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav__sub { display: none; padding-bottom: 0.75rem !important; }
.mobile-nav__sub.is-open { display: block; }
.mobile-nav__sub a {
  display: block;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--slate);
  border-radius: 10px;
}
.mobile-nav__sub a:hover { background: var(--navy-50); color: var(--navy-800); }
.mobile-nav a[aria-current="page"] { color: var(--navy-800); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.mobile-nav__cta { display: grid; gap: 0.75rem; margin-top: 1.75rem; }
.mobile-nav__cta .btn { width: 100%; }
.mobile-nav__contact { margin-top: 1.75rem; font-size: var(--fs-sm); color: var(--slate); display: grid; gap: 0.35rem; }
.mobile-nav__contact a { color: var(--navy-800); font-weight: 600; padding-block: 0.35rem; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(58, 91, 189, 0.45), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(29, 62, 158, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  color: var(--navy-100);
  padding-block: clamp(4rem, 3rem + 5vw, 7.5rem) clamp(4.5rem, 3rem + 6vw, 8.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2.5rem, 2rem + 4vw, 5rem);
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ffffff 0%, var(--navy-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__text { font-size: var(--fs-lg); color: var(--navy-200); max-width: 600px; }
.hero .btn-row { margin-top: 2rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
  padding-left: 0;
}
.hero__trust li { display: flex; align-items: center; gap: 0.7rem; font-size: var(--fs-sm); color: var(--navy-200); line-height: 1.35; }
.hero__trust strong { color: var(--white); display: block; font-family: var(--font-display); font-size: 1rem; }
.hero__trust svg { width: 22px; height: 22px; color: var(--navy-300); flex: none; }

/* Visual do hero */
.hero-visual { position: relative; min-height: 460px; }
.hero-visual__mark {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 62%;
  color: rgba(255, 255, 255, 0.07);
}
.hero-visual__mark svg { width: 100%; height: auto; }
.hero-visual__ring {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  color: var(--graphite);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  box-shadow: 0 30px 60px -20px rgba(0, 5, 30, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  animation: card-in 0.9s var(--ease) both;
}
.glass-card--a { top: 4%; left: 0; width: 290px; animation-delay: 0.2s; }
.glass-card--b { top: 40%; right: 0; width: 250px; animation-delay: 0.4s; }
.glass-card--c { bottom: 2%; left: 9%; width: 310px; animation-delay: 0.6s; }
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } }

.glass-card__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; }
.glass-card__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--navy-800);
  color: var(--white);
  flex: none;
}
.glass-card__icon svg { width: 20px; height: 20px; }
.glass-card__title { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); font-size: 0.95rem; line-height: 1.25; }
.glass-card__sub { font-size: 0.78rem; color: var(--gray-text); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.check-list li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; }
.check-list svg { width: 18px; height: 18px; color: var(--whatsapp-dark); flex: none; }

.meter { height: 8px; border-radius: 99px; background: var(--navy-100); overflow: hidden; margin: 0.35rem 0 0.5rem; }
.meter span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy-600), var(--navy-800)); }
.meter-row { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--gray-text); }
.meter-row b { color: var(--navy-800); font-weight: 700; }

.big-number { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--navy-800); letter-spacing: -0.03em; }

/* ---------- Faixa de destaques ---------- */
.highlights {
  position: relative;
  z-index: 2;
  margin-top: calc(clamp(3rem, 2rem + 3vw, 4.5rem) * -1);
}
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 27, 102, 0.06);
  overflow: hidden;
}
.highlight { padding: 1.75rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.highlight + .highlight { border-left: 1px solid var(--line); }
.highlight__icon {
  flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--navy-50);
  color: var(--navy-800);
}
.highlight__icon svg { width: 24px; height: 24px; }
.highlight strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--navy-900); line-height: 1.2; letter-spacing: -0.02em; }
.highlight > div > span { font-size: var(--fs-sm); color: var(--slate); line-height: 1.4; display: block; margin-top: 0.15rem; }
a.highlight { transition: background-color 0.2s; }
a.highlight:hover,
a.highlight:focus-visible { background: var(--navy-50); }
/* a grade tem overflow:hidden; o contorno de foco fica dentro do card para não ser cortado */
a.highlight:focus-visible { outline-offset: -4px; }

/* ---------- Cards de serviços ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.service-card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  overflow: hidden;
}
.service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; }
.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-800), var(--navy-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--navy-800);
  color: var(--white);
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 22px -10px rgba(0, 27, 102, 0.7);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--slate); font-size: var(--fs-sm); flex: 1; }
.service-card .link-arrow { margin-top: 0.5rem; }
.service-card .link-arrow::before { content: ""; position: absolute; inset: 0; }

/* ---------- Sobre (home) ---------- */
.about {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 2rem + 4vw, 5.5rem);
  align-items: center;
}
.about__visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  color: var(--white);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}
.about__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
.about__visual-mark {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 260px;
  color: rgba(255, 255, 255, 0.08);
  z-index: -1;
}
.about__year { font-family: var(--font-display); font-weight: 800; font-size: clamp(4.5rem, 3rem + 6vw, 7.5rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--white); }
.about__year-label { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.14em; color: var(--navy-300); font-weight: 600; margin-top: 0.75rem; }
.about__quote { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--white); line-height: 1.45; max-width: 380px; }
.about__quote cite { display: block; font-style: normal; font-size: var(--fs-sm); font-weight: 500; color: var(--navy-300); margin-top: 0.75rem; }

.timeline { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 1.5rem 2.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; bottom: -8px;
  width: 2px;
  background: var(--navy-100);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy-800);
}
.timeline b { display: block; font-family: var(--font-display); color: var(--navy-800); font-size: 0.95rem; }
.timeline li > span { display: block; color: var(--slate); font-size: var(--fs-sm); }

/* ---------- Especialidades ---------- */
.segments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.segment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s, transform 0.35s var(--ease), border-color 0.3s;
}
.segment-card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); transform: translateY(-4px); }
.segment-card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--white);
  color: var(--navy-800);
  margin-bottom: 1.4rem;
}
.segment-card__icon svg { width: 26px; height: 26px; }
.segment-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.segment-card p { font-size: var(--fs-sm); color: var(--navy-200); flex: 1; }
.segment-card .link-arrow { color: var(--white); }
.segment-card .link-arrow::before { content: ""; position: absolute; inset: 0; }

/* ---------- Banda de CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-xl);
  padding: clamp(2.25rem, 1.5rem + 4vw, 4.5rem);
  background: linear-gradient(120deg, var(--navy-800) 0%, var(--navy-700) 50%, var(--navy-600) 100%);
  color: var(--navy-100);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px; height: 520px;
  right: -140px; top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
}
.cta-band__mark { position: absolute; z-index: -1; right: 6%; bottom: -60px; width: 170px; color: rgba(255, 255, 255, 0.07); }
.cta-band h2 { color: var(--white); margin-bottom: 0.6rem; }
.cta-band p:not(.eyebrow) { margin: 0; max-width: 620px; font-size: var(--fs-lg); color: var(--navy-200); }
.cta-band .btn-row { justify-content: flex-end; }

/* ---------- Passo a passo ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  counter-increment: step;
}
.step__num {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: 1.25rem;
}
.step__num::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--slate); font-size: var(--fs-sm); margin: 0; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 54px;
  right: -1.25rem;
  width: 1.25rem;
  height: 2px;
  background: var(--navy-200);
}

/* ---------- Qualidade / certificação ---------- */
.quality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: center;
}
.badge-stack { display: grid; gap: 1rem; }
.badge-card {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.badge-card__icon {
  flex: none;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy-800);
  border: 1px solid var(--navy-100);
}
.badge-card__icon svg { width: 26px; height: 26px; }
.badge-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.badge-card p { font-size: var(--fs-sm); color: var(--slate); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq details[open] { border-color: var(--navy-200); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001B66' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--navy-100); }
.faq__answer { padding: 0 1.4rem 1.3rem; color: var(--slate); }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Blog ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-700);
  background: var(--navy-50);
  border-radius: 99px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1rem;
}
.post-card h3 { font-size: 1.1rem; line-height: 1.35; }
.post-card p { font-size: var(--fs-sm); color: var(--slate); flex: 1; }
.post-card .link-arrow::before { content: ""; position: absolute; inset: 0; }

/* ---------- Contato ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: start;
}
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
a.contact-item:hover { border-color: var(--navy-200); box-shadow: var(--shadow-sm); }
.contact-item__icon {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--white);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item > span:last-child { min-width: 0; }
.contact-item > span:last-child > small { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--gray-text); }
.contact-item > span:last-child > span { display: block; color: var(--navy-900); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }

.form-card {
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-card h3 { margin-bottom: 0.35rem; }
.form-card > p:not(.form-note) { color: var(--slate); font-size: var(--fs-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy-900); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--gray);
  background: var(--paper);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--gray-text); opacity: 1; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  background: var(--white);
  box-shadow: 0 0 0 1.5px var(--navy-600), 0 0 0 5px rgba(58, 91, 189, 0.18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #b42318; }
.field-error { margin: 0; font-size: var(--fs-sm); font-weight: 500; color: #b42318; }
.field-hint { font-weight: 400; color: var(--gray-text); }
.form-note { font-size: var(--fs-xs); color: var(--gray-text); margin: 1rem 0 0; display: flex; gap: 0.5rem; align-items: center; }
.form-note svg { width: 16px; height: 16px; flex: none; }
.form-card .btn { width: 100%; margin-top: 1.25rem; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  /* altura fixa: aspect-ratio + min-height alargaria o bloco além da tela */
  height: clamp(360px, 38vw, 480px);
  background: var(--surface);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-embed__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(rgba(0, 27, 102, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(0, 27, 102, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--navy-50);
}
.map-embed__placeholder p { margin: 0; max-width: 460px; color: var(--slate); font-size: var(--fs-sm); }
.map-embed__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy-800); color: var(--white); }
.map-embed__icon svg { width: 28px; height: 28px; }
.no-js .map-embed [data-map-load] { display: none; }

/* ---------- Hero das páginas internas ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(900px 500px at 90% -20%, rgba(58, 91, 189, 0.45), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--navy-200);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-hero__mark { position: absolute; z-index: -1; right: 4%; top: 50%; translate: 0 -50%; width: 200px; color: rgba(255, 255, 255, 0.06); }
.page-hero h1 { color: var(--white); max-width: 820px; font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); }
.page-hero p:not(.eyebrow) { max-width: 680px; font-size: var(--fs-lg); color: var(--navy-200); }
.page-hero .btn-row { margin-top: 1.75rem; }

.breadcrumb { margin-bottom: 1.5rem; font-size: var(--fs-xs); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--navy-300); }
.breadcrumb li + li::before { content: "/"; opacity: 0.5; }
.breadcrumb a { color: var(--navy-200); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }

/* Conteúdo das páginas internas */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  align-items: start;
}
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--slate); }
.prose a:not(.btn):not(.link-arrow) {
  color: var(--navy-700);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.prose a:not(.btn):not(.link-arrow):hover { color: var(--navy-900); text-decoration-thickness: 2px; }
.prose ol { padding-left: 1.4rem; display: grid; gap: 0.35rem; margin: 0 0 1.5rem; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 0.6rem; margin: 0 0 1.5rem; }
.prose ul li { position: relative; padding-left: 2rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--navy-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001B66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0 2rem; }
.feature-grid > .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
.feature {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid transparent;
}
.feature__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy-800); color: var(--white); margin-bottom: 0.9rem; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.feature p { font-size: var(--fs-sm); margin: 0; }

.callout {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--navy-50);
  border-left: 4px solid var(--navy-800);
}
.callout p { margin: 0; color: var(--navy-900); font-weight: 500; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.25rem; }
.side-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.side-card--navy {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  color: var(--navy-200);
  border: 0;
}
.side-card--navy h3 { color: var(--white); }
.side-card h3 { font-size: 1.15rem; }
.side-card p { font-size: var(--fs-sm); }
.side-card .btn { width: 100%; margin-top: 0.5rem; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--slate);
  transition: background-color 0.2s, color 0.2s;
}
.side-links a svg { width: 16px; height: 16px; flex: none; opacity: 0.5; }
.side-links a:hover { background: var(--navy-50); color: var(--navy-800); }
.side-links a[aria-current="page"] { background: var(--navy-800); color: var(--white); }
.side-links a[aria-current="page"] svg { opacity: 1; }

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-50); color: var(--navy-800); }
.related-card__icon svg { width: 22px; height: 22px; }
.related-card h3 { font-size: 1rem; margin: 0; }
.related-card .link-arrow { margin-top: auto; }
.related-card .link-arrow::before { content: ""; position: absolute; inset: 0; }

/* ---------- Utilitários de grade e cartão genérico ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.section--tint .card { border-color: transparent; box-shadow: var(--shadow-sm); }
.card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--navy-800);
  color: var(--white);
  margin-bottom: 1.25rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { font-size: var(--fs-sm); color: var(--slate); margin: 0; }
.card p + p { margin-top: 0.75rem; }
.narrow { max-width: 820px; margin-inline: auto; }
.mt-lg { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.text-center { text-align: center; }

.socials.socials--light a { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy-800); }
.socials.socials--light a:hover { background: var(--navy-100); }

/* =========================================================
   Blog: lista, categorias, paginação, artigo e página de erro
   (páginas montadas pelo servidor a partir de servidor/modelos/;
   classes combinadas na ESPECIFICACAO-BLOG.md, item 7.7).
   O texto do artigo só depende de .artigo e .artigo__corpo, porque a
   pré-visualização do painel no CalilTech usa este mesmo arquivo.
   ========================================================= */

/* Link "Blog" do menu do celular quando a página é do blog */
.mobile-nav a[aria-current="true"] { color: var(--navy-800); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

/* ---------- Filtro por categoria ---------- */
.blog-categorias { margin-bottom: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
.blog-categorias ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.blog-categorias a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--navy-200);
  background: var(--white);
  color: var(--navy-800);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.2;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.blog-categorias a:hover { border-color: var(--navy-800); background: var(--navy-50); }
/* Filtro ativo: fundo cheio e um marcador redondo (não depende só da cor) */
.blog-categorias a[aria-current] { border-color: var(--navy-800); background: var(--navy-800); color: var(--white); }
.blog-categorias a[aria-current]::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Cartões da lista ---------- */
.blog-cartoes { list-style: none; margin: 0; padding: 0; }
.blog-cartoes > li { display: flex; min-width: 0; }
.blog-cartoes > li > .post-card { flex: 1; min-width: 0; }
.post-card__capa {
  width: calc(100% + 3.5rem);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: -1.75rem -1.75rem 1.25rem;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  background: var(--surface);
}
.post-card .post-card__titulo { font-size: 1.15rem; line-height: 1.35; margin-bottom: 0.6rem; }
.post-card .post-card__data { flex: none; margin: 0 0 0.9rem; font-size: var(--fs-xs); color: var(--gray-text); }

.blog-vazio {
  margin: 0;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--slate);
  text-align: center;
}
.posts-grid > .blog-vazio { grid-column: 1 / -1; }

/* ---------- Paginação (alvos de 44 px) ---------- */
.blog-paginacao { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.blog-paginacao ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.blog-paginacao a,
.blog-paginacao__atual,
.blog-paginacao__reticencias {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1;
}
.blog-paginacao a {
  border: 1.5px solid var(--navy-200);
  background: var(--white);
  color: var(--navy-800);
  transition: background-color 0.2s, border-color 0.2s;
}
.blog-paginacao a:hover { border-color: var(--navy-800); background: var(--navy-50); }
/* Página atual: fundo cheio e número sublinhado (não depende só da cor) */
.blog-paginacao__atual {
  border: 1.5px solid var(--navy-800);
  background: var(--navy-800);
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.blog-paginacao__reticencias { min-width: 24px; padding-inline: 0.25rem; color: var(--gray-text); }
/* Setas desenhadas com borda: nada de texto extra para o leitor de tela */
.blog-paginacao__anterior::before,
.blog-paginacao__proxima::after {
  content: "";
  flex: none;
  width: 0.5em; height: 0.5em;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}
.blog-paginacao__proxima::after { transform: rotate(-135deg); }

/* ---------- Topo do artigo ---------- */
.page-hero--artigo h1 { max-width: 900px; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }

.artigo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.35rem;
  margin: 0 0 1.25rem;
  font-size: var(--fs-sm);
  color: var(--slate);
}
/* Separador entre autor, datas e tempo de leitura */
.artigo-meta > span + span::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 4px; height: 4px;
  margin-inline: 0.75rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.artigo-meta__autor { font-weight: 600; color: var(--navy-900); }
/* a data e o tempo de leitura não quebram no meio ("5 de novembro de 2026");
   "Publicado em"/"Atualizado em" podem ir para outra linha em telas estreitas (WCAG 1.4.10) */
.artigo-meta__data time,
.artigo-meta__leitura { white-space: nowrap; }
.page-hero p.artigo-meta { max-width: none; margin: 1.25rem 0 0; font-size: var(--fs-sm); color: var(--navy-200); }
.page-hero .artigo-meta__autor { color: var(--white); }

/* ---------- Artigo ---------- */
.artigo { min-width: 0; max-width: 760px; }
/* Título dentro do artigo: só na pré-visualização do painel (no site, o h1 fica no topo da página) */
.artigo > h1 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); margin-bottom: 1.25rem; }

/* Aviso de artigo antigo (âmbar; contraste do texto acima de 10:1) */
.artigo-aviso {
  margin: 0 0 2rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid #f1d38a;
  border-left: 5px solid #b54708;
  border-radius: var(--radius);
  background: #fff6e0;
}
.artigo-aviso p { margin: 0; color: #4a3200; }
.artigo-aviso strong { color: #7a2e0e; font-weight: 700; }

.artigo-capa { margin: 0 0 2rem; }
.artigo-capa img { width: 100%; border-radius: var(--radius-lg); background: var(--surface); }

/* Sumário ("Neste artigo") */
.artigo-sumario {
  margin: 0 0 2.25rem;
  padding: 1.35rem 1.5rem;
  border-left: 4px solid var(--navy-800);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}
.artigo-sumario .artigo-sumario__titulo {
  margin: 0 0 0.75rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-600);
}
.artigo-sumario ol { margin: 0; padding-left: 1.35rem; display: grid; gap: 0.35rem; }
.artigo-sumario ol ol { margin-top: 0.35rem; list-style: lower-alpha; }
.artigo-sumario li { font-size: var(--fs-sm); color: var(--slate); }
.artigo-sumario li::marker { color: var(--navy-600); font-weight: 700; }
.artigo-sumario a {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.artigo-sumario a:hover { color: var(--navy-900); text-decoration-thickness: 2px; }

/* Texto do artigo (sobre o .prose das páginas internas) */
.artigo__corpo { line-height: 1.75; overflow-wrap: break-word; }
.artigo__corpo > :first-child { margin-top: 0; }
.artigo__corpo h3 { font-size: 1.25rem; }
.artigo__corpo ul,
.artigo__corpo ol { display: block; margin: 0 0 1.5rem; padding-left: 1.5rem; }
.artigo__corpo ul { list-style: disc; }
.artigo__corpo ul ul { list-style: circle; }
.artigo__corpo ol ol { list-style: lower-alpha; }
.artigo__corpo ul li { padding-left: 0.2rem; }
.artigo__corpo ul li::before { content: none; }
.artigo__corpo li + li { margin-top: 0.4rem; }
.artigo__corpo li::marker { color: var(--navy-600); font-weight: 600; }
.artigo__corpo li > ul,
.artigo__corpo li > ol { margin: 0.4rem 0 0.25rem; }
.artigo__corpo blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--navy-800);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--navy-50);
}
.artigo__corpo blockquote p {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy-900);
}
.artigo__corpo blockquote p:last-child { margin-bottom: 0; }
.artigo__corpo hr { height: 0; margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }

/* Tabelas: rolam na horizontal dentro da moldura (focável pelo teclado) */
.artigo-tabela {
  max-width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.artigo-tabela:focus-visible { outline: 3px solid var(--navy-500); outline-offset: 3px; border-radius: var(--radius); }
.artigo-tabela table { min-width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.5; }
.artigo-tabela th,
.artigo-tabela td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.artigo-tabela th {
  background: var(--navy-50);
  border-bottom: 2px solid var(--navy-200);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
}
/* largura mínima: no celular a tabela rola em vez de espremer o texto uma palavra por linha */
.artigo-tabela th,
.artigo-tabela td { min-width: 6.5rem; }
.artigo-tabela td { color: var(--slate); }
.artigo-tabela tbody tr:nth-child(even) { background: var(--surface); }
.artigo-tabela tbody tr:last-child td { border-bottom: 0; }
.artigo-tabela .alinhar-direita { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.artigo-tabela .alinhar-centro { text-align: center; }

/* Imagens do texto, com legenda */
.artigo-figura { margin: 2rem 0; }
.artigo-figura img { max-width: 100%; height: auto; border-radius: var(--radius); background: var(--surface); }
.artigo-figura figcaption { margin-top: 0.65rem; font-size: var(--fs-sm); line-height: 1.5; color: var(--gray-text); }

/* Quem escreveu */
.artigo-autor {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.artigo-autor .artigo-autor__titulo {
  margin: 0 0 0.75rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-600);
}
.artigo-autor__nome { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--navy-900); }
.artigo-autor__cargo { margin: 0.15rem 0 0; font-size: var(--fs-sm); color: var(--gray-text); }
.artigo-autor__bio { margin: 0.85rem 0 0; font-size: var(--fs-sm); color: var(--slate); }

/* Cartão lateral do artigo (títulos h2, para manter a ordem dos títulos da página) */
.side-card h2 { font-size: 1.15rem; }
.side-card--navy h2 { color: var(--white); }

/* Leia também */
.artigo-leia-tambem h2 { margin-bottom: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }

/* ---------- Página de erro (404 e 503) ---------- */
.blog-erro { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.blog-erro .btn-row { margin-top: 2rem; }

/* ---------- Pré-visualização do painel (<body class="previa-blog">) ---------- */
.previa-blog main { max-width: 820px; margin-inline: auto; padding: 1.5rem var(--gutter) 3rem; }

@media (max-width: 640px) {
  .artigo-sumario, .artigo-autor { padding: 1.15rem 1.25rem; }
  .artigo-tabela th, .artigo-tabela td { padding: 0.6rem 0.75rem; }
  .artigo__corpo blockquote { padding: 1rem 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .post-card:hover { transform: none; }
}

@media print {
  .artigo-layout .sidebar, .artigo-leia-tambem, .blog-categorias, .blog-paginacao { display: none !important; }
  .artigo-layout { grid-template-columns: 1fr; }
  .artigo-tabela { overflow: visible; }
}

/* =========================================================
   Indicação: faixa "Conhece alguém que precisa de contabilidade?"
   da página inicial. O programa (formulário, regras e aviso de
   privacidade) fica numa página pública do CalilTech; a faixa e o link
   "Indique a Calil Contábil" do rodapé só aparecem quando o endereço
   dessa página está em servidor/config.json (indicacaoUrl).
   Tom discreto: nada de cor de destaque ou de "oferta".
   ========================================================= */

/* ---------- Faixa da página inicial ---------- */
.section.indicacao-faixa { padding-block: 0 clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.indicacao-faixa .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center;
  width: min(var(--container), 100% - var(--gutter) * 2);
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem) clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-xl);
  background: var(--navy-50);
}
.indicacao-faixa .container > * { grid-column: 1; }
.indicacao-faixa .eyebrow { justify-self: start; margin-bottom: 0.6rem; }
.indicacao-faixa h2 { font-size: var(--fs-xl); margin-bottom: 0.4rem; }
.indicacao-faixa p:not(.eyebrow) { margin: 0; color: var(--slate); }
.indicacao-faixa .container > .btn { grid-column: 2; grid-row: 1 / span 3; }

@media (max-width: 760px) {
  .indicacao-faixa .container { grid-template-columns: 1fr; }
  .indicacao-faixa .container > .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 1.25rem; }
}

@media (max-width: 640px) {
  .indicacao-faixa .container > .btn { justify-self: stretch; }
}

@media print {
  .indicacao-faixa { display: none !important; }
}

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--navy-200);
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 1fr 1fr 1.25fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.site-footer .brand { color: var(--white); }
.site-footer .brand svg { height: 48px; }
.footer-about { margin: 1.5rem 0; max-width: 340px; color: var(--navy-200); }
.footer-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1.1rem;
  letter-spacing: 0;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-links a { color: var(--navy-200); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--navy-300); }
.footer-contact a:hover { color: var(--white); }
.socials { display: flex; gap: 0.6rem; }
.socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background-color 0.2s, transform 0.25s var(--ease);
}
.socials a:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem 6rem; /* espaço para o botão flutuante do WhatsApp */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: var(--fs-xs);
  color: var(--navy-300);
}
.footer-bottom a:hover { color: var(--white); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  bottom: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 58px;
  padding: 0 1.1rem 0 1rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #06331a;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 14px 30px -10px rgba(18, 140, 75, 0.65);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 36px -10px rgba(18, 140, 75, 0.75); }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--whatsapp);
  animation: pulse 2.4s var(--ease) 2 forwards; /* dura menos de 5 s (WCAG 2.2.2) */
  pointer-events: none;
}
@keyframes pulse { 0% { opacity: 0.8; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.25); } }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.no-js .reveal { opacity: 1; transform: none; }
@media print {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .topbar, .site-header, .mobile-nav, .wa-float, .hero-visual { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1180px) {
  .nav__link { padding-inline: 0.6rem; font-size: 0.9rem; }
  .header-actions .btn--ghost { display: none; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}

@media (max-width: 1080px) {
  .topbar { display: none; }
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: grid; }
  /* Sem JavaScript: o menu mobile aparece aberto, no fluxo da página */
  .no-js .menu-toggle { display: none; }
  .no-js .mobile-nav { position: static; opacity: 1; visibility: visible; transform: none; overflow: visible; }
  .no-js .mobile-nav__sub { display: block; }
  .no-js .mobile-nav__toggle svg { display: none; }
  :root { --header-h: 68px; }
  .brand svg { height: 38px; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; max-width: 560px; width: 100%; margin-inline: auto; }

  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(3) { border-left: 0; }
  .highlight:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 1; }
  .service-card:nth-child(5) { grid-column: 1 / -1; }

  .about, .quality, .contact { grid-template-columns: 1fr; }
  .about__visual { min-height: 360px; }

  .segments-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }

  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (min-width: 1081px) {
  .mobile-nav { display: none; }
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { top: auto; bottom: -1.25rem; right: auto; left: 54px; width: 2px; height: 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --fs-base: 1rem; }
  .btn { white-space: normal; text-align: center; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero-visual { min-height: 470px; }
  .glass-card--a { width: 250px; top: 0; }
  .glass-card--b { width: 210px; top: 38%; }
  .glass-card--c { width: 270px; left: 0; bottom: 0; }
  .hero-visual__ring { width: 320px; height: 320px; }

  .highlights__grid { grid-template-columns: 1fr; }
  .highlight + .highlight { border-left: 0; border-top: 1px solid var(--line); }

  .services-grid, .segments-grid, .related-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .service-card:nth-child(5) { grid-column: auto; }
  .service-card { padding: 1.6rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .wa-float span { display: none; }
  .wa-float { width: 58px; padding: 0; justify-content: center; }
}

@media (max-width: 380px) {
  .brand svg { height: 32px; }
  .glass-card--a { width: 230px; }
  .glass-card--c { width: 250px; }
  .glass-card--b { width: 190px; }
}
