/* =====================================================================
   CEP Digital — Laboratório de Prótese Dentária
   Estilo: escuro, premium, técnico e tecnológico
   Mobile-first · sem cores hardcoded fora do :root
   ===================================================================== */

/* ----------------------------- TOKENS ----------------------------- */
:root {
  /* Cores — base escura */
  --preto-carbono: #0E1417;
  --grafite-profundo: #0D1113;
  --grafite-card: #151A1D;
  --grafite-secundario: #1E2428;

  /* Cores — texto */
  --branco-gelo: #F4F4F2;
  --cinza-tecnico: #A9B0B5;
  --cinza-borda: #2E363B;

  /* Acento (uso discreto) */
  --laranja-cobre: #C8752A;
  --laranja-escuro: #8C552A;

  /* Papéis semânticos */
  --bg: var(--preto-carbono);
  --bg-alt: var(--grafite-profundo);
  --surface: var(--grafite-card);
  --surface-2: var(--grafite-secundario);
  --border: var(--cinza-borda);
  --text: var(--branco-gelo);
  --text-muted: var(--cinza-tecnico);
  --accent: var(--laranja-cobre);

  /* Tipografia */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Escala fluida */
  --fs-eyebrow: 0.78rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
  --fs-h3: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 3.2vw, 3.6rem);

  /* Espaçamento */
  --space-section: clamp(2.25rem, 1.5rem + 3vw, 4.25rem);
  --container: 1200px;
  --gap: 1.5rem;

  /* Bordas e sombras */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 24px;
  --radius-img: 12px; /* padrão único para molduras de imagem e cards */
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
  --shadow-soft: 0 10px 30px -18px rgba(0, 0, 0, 0.7);

  /* Transições */
  --t-fast: 160ms ease;
  --t: 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

/* Lenis — smooth scroll (o JS controla a rolagem; desliga o smooth nativo) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

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

img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Foco visível — acessibilidade */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--preto-carbono);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ----------------------------- LAYOUT ----------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: var(--space-section); }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section__head--center .eyebrow::before,
.section__head--center .eyebrow::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-inline: 10px;
  opacity: 0.6;
}

.section__title { font-size: var(--fs-h2); }

.section__lead {
  margin-top: 1.1rem;
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 620px;
}
.section__head--center .section__lead { margin-inline: auto; }

/* ----------------------------- BOTÕES ----------------------------- */
.btn {
  --btn-py: 0.85rem;
  --btn-px: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t), border-color var(--t), color var(--t);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--cinza-tecnico);
  color: var(--preto-carbono);
}
.btn--primary:hover {
  background: var(--branco-gelo);
  color: var(--preto-carbono);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--secondary:hover {
  border-color: var(--accent);
  background: rgba(200, 117, 42, 0.08);
}

.btn--sm { --btn-py: 0.6rem; --btn-px: 1.1rem; font-size: 0.72rem; }
.btn--lg { --btn-py: 1rem; --btn-px: 2rem; font-size: 1.05rem; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.icon--wa { width: 1.35em; height: 1.35em; }

/* ----------------------------- HEADER ----------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: 0.75rem;
  background: transparent;
  pointer-events: none;
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: calc(100% - 2rem);
  max-width: 1160px;
  min-height: 68px;
  padding-inline: clamp(1rem, 2.5vw, 1.6rem);
  /* topo: barra totalmente transparente, sem ilha */
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  box-shadow: none;
  pointer-events: auto;
  transition:
    min-height var(--t),
    max-width var(--t),
    background var(--t),
    border-color var(--t),
    box-shadow var(--t);
}
/* O desfoque do vidro mora num pseudo-elemento: backdrop-filter no próprio
   .header__inner viraria containing block do drawer mobile (position:fixed),
   prendendo o menu dentro da ilha depois do primeiro scroll. */
.header__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
/* ao rolar: a ilha de vidro é ativada (o header fixo já acompanha o scroll) */
.header.is-scrolled .header__inner {
  max-width: 1080px;
  min-height: 60px;
  background: rgba(5, 6, 7, 0.32);
  border-color: rgba(169, 176, 181, 0.24);
  box-shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.9);
}
.header.is-scrolled .header__inner::before { opacity: 1; }

.header__logo {
  display: flex;
  align-items: center;
  color: var(--text);
}
.logo-img { width: auto; height: 44px; color: var(--text); }

/* Nav desktop escondida em mobile (drawer) */
.nav__list { display: flex; gap: 0.35rem; }
.nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* Página atual (páginas internas): sublinhado cobre, fiel ao template */
.nav__link[aria-current="page"] {
  color: var(--text);
  background: transparent;
  position: relative;
}
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Sublinhado deslizante (magic line) sob os links da navbar — desktop.
   Uma única barrinha, criada via JS, segue o link em hover/foco e repousa sob
   a página atual. A cada troca de página ela é "desenhada" da esquerda. */
@media (min-width: 901px) {
  .nav__list { position: relative; }
  /* com o indicador deslizante ativo, dispensamos o sublinhado estático */
  .nav__list.has-indicator .nav__link[aria-current="page"]::after { display: none; }

  .nav__indicator {
    position: absolute;
    bottom: 0.2rem;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0;
    transform: translateX(0);
    pointer-events: none;
    box-shadow: 0 0 8px -1px var(--accent);
    transition:
      transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
      width 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 0.3s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__indicator { transition: opacity 0.2s ease; }
}

/* Rodapé do drawer: escondido no desktop, aparece dentro do menu mobile */
.nav__extra { display: none; }

.header__actions { display: flex; align-items: center; gap: 0.75rem; }

/* Toggle mobile */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------- HERO (full-bleed) ----------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 820px);
  padding-top: calc(72px + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}

/* Imagem de fundo + overlay para leitura do texto */
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.95) 0%, rgba(5, 6, 7, 0.8) 30%, rgba(5, 6, 7, 0.34) 58%, rgba(5, 6, 7, 0) 82%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.3) 0%, transparent 22%, transparent 68%, rgba(5, 6, 7, 0.5) 100%);
}
/* Páginas internas (#topo): overlay mais leve para o assunto à direita aparecer
   claro como no original; o lado esquerdo segue escuro para a leitura do título. */
.hero#topo::before {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.86) 36%, rgba(5, 6, 7, 0.4) 64%, rgba(5, 6, 7, 0) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.16) 0%, transparent 24%, transparent 74%, rgba(5, 6, 7, 0.36) 100%);
}

.hero__inner { position: relative; }
.hero__content { max-width: 700px; }

.hero__title { font-size: var(--fs-h1); font-weight: 800; margin-bottom: 1.25rem; text-wrap: balance; }
.hero__text { color: var(--text-muted); font-size: var(--fs-lead); max-width: 500px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.hero__highlights {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.75rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.hero__highlights li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
}
.hl__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cinza-tecnico);
  flex-shrink: 0;
}
.hl__icon svg { width: 28px; height: 28px; }
.hl__label { line-height: 1.25; }

/* Marca d'água CEP Digital no canto inferior direito */
.hero__watermark {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 4vw, 2.25rem);
  z-index: -1;
  width: clamp(150px, 22vw, 300px);
  opacity: 0.9;
  pointer-events: none;
}
.hero__watermark img { width: 100%; height: auto; }

/* ----------------------------- HERO — páginas internas ----------------------------- */
/* Reusa a casca do .hero SEM alterar altura/overlay (fica idêntica à Home)
   e troca os highlights simples por uma linha de estatísticas: ícone +
   título forte + descrição, com divisores verticais entre os itens. */
.hero__stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.hstat { display: flex; align-items: center; gap: 0.8rem; }
.hstat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cinza-tecnico);
  flex-shrink: 0;
}
.hstat__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hstat__body { display: flex; flex-direction: column; gap: 0.15rem; }
.hstat__title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}
.hstat__desc {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ≥ 768px: 3 colunas numa única linha (grid não quebra) com divisores */
@media (min-width: 768px) {
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0;
    max-width: 640px;
  }
  .hstat { padding-inline: 1.15rem; }
  .hstat:first-child { padding-left: 0; }
  .hstat__body { max-width: 8.5rem; }
}

/* ----------------------------- CARDS BASE ----------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--t), border-color var(--t), background var(--t);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.94rem; }

/* ----------------------------- NOSSA HISTÓRIA (página Sobre) ----------------------------- */
/* Aproxima esta seção da hero acima (reduz o respiro superior) */
.historia { padding-top: clamp(0.5rem, 0.25rem + 1vw, 1.5rem); }

/* Cabeçalho em 2 colunas (título à esquerda, texto à direita), reusado nas seções da Sobre */
.lab__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.lab__intro .section__title { margin-top: 0.25rem; text-wrap: balance; }
.lab__lead {
  color: var(--text-muted);
  font-size: var(--fs-lead);
}

/* Linha do tempo: mobile vertical (linha à esquerda), desktop horizontal.
   O progresso cobre acompanha o marco ativo via var(--p), como o fluxo da Tecnologia. */
.historia__linha {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.9rem;
  list-style: none;
  padding: 0 0 0 1.9rem;
}
.historia__linha::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}
.historia__linha::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--p));
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.marco {
  position: relative;
  outline: none;
}
.marco__ponto {
  position: absolute;
  left: -1.9rem;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.marco__ano {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.55;
  transition: color var(--t), opacity var(--t);
}
.marco__titulo {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-top: 0.55rem;
}
.marco__desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-top: 0.35rem;
  max-width: 30ch;
}
.marco.is-done .marco__ponto,
.marco.is-active .marco__ponto {
  border-color: var(--accent);
  background: var(--accent);
}
.marco.is-active .marco__ponto { transform: scale(1.35); }
.marco.is-active .marco__ano { color: var(--accent); opacity: 1; }
.marco.is-done .marco__ano { opacity: 0.85; }
.marco:focus-visible .marco__ano { color: var(--accent); opacity: 1; }

@media (min-width: 768px) {
  .historia__linha {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 2rem 0 0;
  }
  .historia__linha::before,
  .historia__linha::after {
    left: 6px;
    right: 6px;
    top: calc(2rem + 46px); /* alinha a linha com os pontos, abaixo dos anos */
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .historia__linha::after {
    transform-origin: left;
    transform: scaleX(var(--p));
  }
  .marco__ponto {
    left: 0;
    top: 40px;
  }
  .marco {
    padding-top: 0;
    padding-left: 0;
  }
  .marco__ano { margin-bottom: 1.7rem; }
  .marco__titulo { margin-top: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .historia__linha::after { transition: none; }
}

/* ----------------------------- QUEM FAZ (página Sobre) ----------------------------- */
/* Acordeão de três painéis de foto; o painel sob o cursor cresce (flex) e revela
   o título. No mobile viram grade 2+1 (o último ocupa a linha inteira). */
.equipe__paineis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.equipe-painel:last-child { grid-column: 1 / -1; }
.equipe-painel {
  position: relative;
  overflow: hidden;
  margin: 0;
  flex: 1;
  min-height: 240px;
  border: 1px solid var(--border);
  border-radius: var(--radius-img);
  background: var(--surface);
  transition: flex 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), border-color var(--t);
}
.equipe-painel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.88);
  transition: filter var(--t);
}
.equipe-painel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(14, 20, 23, 0.85) 100%);
  pointer-events: none;
}
.equipe-painel__caption {
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.equipe-painel__tag {
  font-family: var(--font-head);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.equipe-painel__titulo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.equipe-painel:hover {
  border-color: var(--accent);
}
.equipe-painel:hover img { filter: saturate(1) brightness(1); }

@media (min-width: 768px) {
  .equipe__paineis { display: flex; flex-direction: row; height: 400px; }
  .equipe-painel { min-height: 0; }
  .equipe-painel:hover { flex: 1.7; }
}
/* Com ponteiro de verdade, o painel fechado mostra só a tag (título recolhido
   a 0 de altura, para todas as tags alinharem na mesma linha de base); o título
   desliza quando o painel expande. No touch os títulos ficam sempre visíveis. */
@media (min-width: 768px) and (hover: hover) {
  .equipe-painel__caption {
    display: grid;
    grid-template-rows: auto 0fr;
    gap: 0;
    transition: grid-template-rows 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .equipe-painel__titulo {
    overflow: hidden;
    min-height: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .equipe-painel:hover .equipe-painel__caption { grid-template-rows: auto 1fr; }
  .equipe-painel:hover .equipe-painel__titulo {
    opacity: 1;
    transform: none;
    transition-delay: 0.12s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .equipe-painel { transition: border-color var(--t); }
  .equipe-painel__caption { grid-template-rows: auto 1fr !important; transition: none !important; }
  .equipe-painel__titulo { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ----------------------------- COMPROMISSOS (página Sobre) ----------------------------- */
.compromissos {
  padding-top: clamp(1.75rem, 3vw, 2.75rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.compromissos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  list-style: none;
  padding: 0;
}
.comp-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t), border-color var(--t);
}
.comp-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.comp-card__check { display: inline-flex; color: var(--accent); }
.comp-card__check svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.comp-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.3;
}
.comp-card p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
/* Checks se desenham ao entrar na tela, em sequência (somente com motion permitido) */
@media (prefers-reduced-motion: no-preference) {
  .comp-card__check svg * {
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
  }
  .comp-card.is-visible .comp-card__check svg * {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .comp-card.is-visible:nth-child(2) .comp-card__check svg * { transition-delay: 0.15s; }
  .comp-card.is-visible:nth-child(3) .comp-card__check svg * { transition-delay: 0.3s; }
  .comp-card.is-visible:nth-child(4) .comp-card__check svg * { transition-delay: 0.45s; }
}

/* Teaser: aponta para a página Tecnologia sem repetir o conteúdo dela */
.tec-teaser {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tec-teaser__thumbs {
  display: flex;
  flex-shrink: 0;
}
.tec-teaser__thumbs img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--surface-2);
}
.tec-teaser__thumbs img + img { margin-left: -14px; }
.tec-teaser__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.tec-teaser__body strong {
  font-family: var(--font-head);
  font-size: 0.92rem;
  color: var(--text);
}
.tec-teaser__body small {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .compromissos__grid { grid-template-columns: repeat(2, 1fr); }
  .tec-teaser { flex-direction: row; align-items: center; gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .compromissos__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ----------------------------- DIREÇÃO TÉCNICA (página Sobre) ----------------------------- */
.direcao {
  padding-top: clamp(1.75rem, 3vw, 2.75rem);
  border-top: 1px solid var(--border);
}
.direcao__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  align-items: center;
}
.direcao__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.direcao__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(5, 6, 7, 0.32));
  pointer-events: none;
}
.direcao__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  filter: saturate(0.92) contrast(1.03);
}
.direcao__content .eyebrow {
  margin-bottom: 0.7rem;
}
.direcao__title {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.15rem);
  margin-bottom: 0.85rem;
}
.direcao__text {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.direcao__signature {
  width: fit-content;
  margin-top: 0.85rem;
  color: var(--accent);
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.45rem);
  line-height: 1;
  letter-spacing: 0.01em;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.direcao__signature::after {
  content: "";
  display: block;
  width: 92%;
  height: 1px;
  margin-top: 0.1rem;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.55;
}
.direcao__role {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}
.direcao__separator {
  margin-inline: 0.4rem;
  color: var(--border);
}
.direcao__cards {
  display: grid;
  gap: 0.75rem;
}
.direcao-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 0.95rem;
  min-height: 108px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.025), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}
.direcao-card__icon {
  display: inline-flex;
  color: var(--cinza-tecnico);
}
.direcao-card:nth-child(2) .direcao-card__icon {
  color: var(--accent);
}
.direcao-card__icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.direcao-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.direcao-card__body strong {
  font-family: var(--font-head);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.direcao-card__body small {
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

/* ----------------------------- SOBRE ----------------------------- */
.sobre__top { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }

.sobre__media-frame {
  position: relative;
  border-radius: var(--radius-img);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.sobre__media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.1), rgba(5, 6, 7, 0.4));
}
.sobre__media-frame img { width: 100%; height: 100%; object-fit: cover; }

.sobre__text p { color: var(--text-muted); font-size: var(--fs-lead); }
.sobre__text p + p { margin-top: 1rem; }
.sobre__text p:first-of-type { margin-top: 0.5rem; }

/* Faixa de 4 diferenciais */
.sobre__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  transition: transform var(--t), border-color var(--t);
}
.feature:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.feature__icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature__body h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.feature__body p { color: var(--text-muted); font-size: 0.84rem; line-height: 1.45; }

/* ----------------------------- SERVIÇOS (bento) ----------------------------- */
#servicos {
  background:
    /* degradê no topo e na base funde a textura ao preto sólido das seções vizinhas */
    linear-gradient(
      to bottom,
      var(--preto-carbono) 0,
      rgba(5, 6, 7, 0) 90px,
      rgba(5, 6, 7, 0) calc(100% - 90px),
      var(--preto-carbono) 100%
    ),
    linear-gradient(rgba(5, 6, 7, 0.72), rgba(5, 6, 7, 0.72)),
    url("../assets/images/background-carbono.webp") center / cover no-repeat;
}
.servicos { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.servicos__intro { display: flex; flex-direction: column; }
.servicos__intro .section__title { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.7rem); }
.servicos__lead { margin-top: 0.85rem; color: var(--text-muted); font-size: 0.94rem; }
/* imagem dos serviços sem máscara ou fade */
.servicos__media {
  margin-top: 1.5rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-img);
  overflow: hidden;
}
.servicos__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.servicos__bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
.svc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
  min-height: 132px;
  padding: 1.1rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t), border-color var(--t);
}
.svc:hover { transform: translateY(-3px); border-color: var(--accent); }
.svc__icon {
  display: inline-flex;
  color: #d9dde0;
}
.svc__icon svg {
  width: 50px;
  height: 50px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc__icon svg * { vector-effect: non-scaling-stroke; }
.svc__icon circle {
  fill: currentColor;
  stroke: none;
}
.svc h3 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1.25;
}
.svc--note {
  grid-column: 1 / -1;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  /* card "ativo": borda cobre fixa + leve brilho, destacando o convite da grade */
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(200, 117, 42, 0.12), var(--surface) 60%);
}
.svc--note p { color: var(--text-muted); font-size: 0.84rem; line-height: 1.5; max-width: 22ch; }
.svc--note strong { color: var(--text); font-weight: 600; }
.svc--note .btn {
  margin-top: 0.9rem;
  width: 100%;
  white-space: nowrap;
  --btn-px: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

/* ----------------------------- PÁGINA SERVIÇOS — grade de serviços ----------------------------- */
/* Reaproveita o layout .servicos (intro à esquerda | grade à direita) e os
   ícones padrão do site (.svc__icon). Cada card: ícone + título + descrição. */
.svc-section { padding-block: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); }
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  align-self: start;      /* não estica para a altura da coluna da imagem */
  align-content: start;   /* linhas com altura do conteúdo (cards compactos) */
}
.svc-card {
  display: grid;
  grid-template-columns: auto 1fr; /* ícone à esquerda | texto à direita */
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.1rem;
  padding: 0.6rem 0.9rem;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t), border-color var(--t);
}
.svc-card:hover { border-color: var(--accent); }
.svc-card .svc__icon {
  grid-column: 1;
  grid-row: 1 / 3;       /* ícone alinhado ao lado do bloco título + descrição */
  align-self: center;
}
.svc-card .svc__icon svg { width: 32px; height: 32px; }
.svc-card h3 {
  grid-column: 2;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.25;
}
.svc-card p {
  grid-column: 2;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}
/* Miniatura da foto do trabalho — preview flutuante que acompanha o cursor
   enquanto o mouse está sobre o card (desktop). A posição vem do JS (transform). */
.svc-card__thumb {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  width: 156px;
  height: 112px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
  will-change: transform;
}
.svc-card__thumb.is-visible { opacity: 1; }
@media (hover: none) { .svc-card__thumb { display: none; } }

/* Dica visual: um card aleatório realça a borda (cobre) para convidar o hover */
@keyframes svcHint {
  0%, 100% { border-color: var(--border); box-shadow: none; }
  40% {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(200, 117, 42, 0.35), 0 10px 30px -14px rgba(200, 117, 42, 0.5);
  }
}
.svc-card.is-hint { animation: svcHint 1.3s ease; }

@media (min-width: 600px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Desktop: preenche coluna a coluna (6 + 5), como no layout de referência */
@media (min-width: 1024px) {
  .svc-grid {
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
  }
}

/* ----------------------------- PÁGINA SERVIÇOS — galeria de trabalhos ----------------------------- */
/* Mosaico em grade: linhas de altura fixa (auto-rows) para os spans alinharem.
   Mobile: 2 colunas · desktop: 4 colunas. Destaque 2x2 e um tile wide 2x1. */
/* Seções da página Serviços mais próximas: mesmo padding compacto da .svc-section */
.galeria-section,
.depo-section,
.mat-section { padding-block: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); }

/* A foto da intro é um recorte com transparência: contain exibe a composição
   inteira flutuando sobre a textura de carbono, sem o zoom do cover */
.svc-section .servicos__media img { object-fit: contain; object-position: center; }
/* Galeria em acordeão de linhas (mesmo mecanismo da seção "Quem faz"). */
/* Mobile: a galeria inteira é uma única grade de 2 colunas. As linhas
   (.gal-row) são dissolvidas com display:contents para que os 10 tiles fluam
   de forma contínua, sem sobrar tile solto/lacuna nas linhas de 3. */
.gal-acc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.gal-row {
  display: contents;
}
.gal-tile {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: clamp(150px, 40vw, 220px);
  border-radius: var(--radius-img);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--t);
}
/* Mesmo tratamento da seção "Quem faz": imagem dessaturada/escurecida que
   ganha cor plena ao passar o mouse, com a borda acendendo em accent. */
.gal-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.86);
  transition: filter var(--t);
}
.gal-tile:hover img { filter: saturate(1) brightness(1); }
.gal-tile:hover { border-color: var(--accent); }

/* Legenda em overlay: gradiente escuro de baixo para cima + tag do material */
.gal-tile__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 2.4rem 0.9rem 0.8rem;
  background: linear-gradient(to top, rgba(5, 6, 7, 0.88), rgba(5, 6, 7, 0.45) 55%, transparent);
}
.gal-tile__tag {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.gal-tile__title {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* Desktop: cada linha é um acordeão flex. O tile sob o cursor cresce (flex)
   e os vizinhos encolhem para caber na linha, sem sobrepor. */
@media (min-width: 768px) {
  .gal-acc {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .gal-row {
    display: flex;
    gap: 0.75rem;
    height: clamp(300px, 30vw, 380px);
  }
  .gal-tile {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
  }
}
/* Só com ponteiro de verdade: legenda escondida até o hover e o crescimento
   do tile. A transição do flex precisa de especificidade maior para vencer a
   transição de [data-animate]; mantemos o fade de entrada (opacity). */
@media (hover: hover) {
  .gal-tile__caption {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--t), transform var(--t);
  }
  .gal-tile:hover .gal-tile__caption { opacity: 1; transform: none; }
}
@media (min-width: 768px) and (hover: hover) {
  .gal-row .gal-tile[data-animate] {
    transition: flex 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.7s ease, border-color var(--t);
  }
  .gal-row .gal-tile:hover { flex: 2.6; }
}
@media (prefers-reduced-motion: reduce) {
  .gal-row .gal-tile[data-animate] { transition: border-color var(--t); }
}

.galeria__cta {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ----------------------------- PÁGINA SERVIÇOS — depoimentos ----------------------------- */
/* Faixa editorial com scroll nativo: legível sem JS e controlada por setas com JS. */
.depo-carousel {
  position: relative;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.depo-carousel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.depo-carousel__count {
  font-family: var(--font-head);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.depo-carousel__controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.depo-carousel__button {
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition:
    color var(--t-fast),
    background var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast);
}
.depo-carousel__button:hover {
  color: var(--accent);
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.depo-carousel__button:active { transform: none; }
.depo-carousel__button svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.depo-carousel__viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
  /* respiro para o translateY do hover: sem isso o overflow corta a borda de cima do card */
  padding-top: 4px;
  margin-top: -4px;
}
.depo-carousel__viewport::-webkit-scrollbar { display: none; }
.depo-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0.75rem;
  align-items: stretch;
}
.depo-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: transform var(--t), border-color var(--t);
}
.depo-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.depo-card__quote { display: inline-flex; color: var(--accent); }
.depo-card__quote svg { width: 26px; height: 26px; }
.depo-card__text p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}
.depo-card__author {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.depo-card__name {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.depo-card__role { color: var(--text-muted); font-size: 0.78rem; }

@media (min-width: 640px) {
  .depo-track { grid-auto-columns: calc((100% - 0.75rem) / 2); }
}

@media (min-width: 900px) {
  .depo-track { grid-auto-columns: calc((100% - 1.5rem) / 3); }
}

@media (prefers-reduced-motion: reduce) {
  .depo-carousel__viewport { scroll-behavior: auto; }
}

/* ----------------------------- PÁGINA SERVIÇOS — materiais (comparador) ----------------------------- */
/* Abas à esquerda trocam o painel à direita; barras de propriedade animam
   a largura via JS (data-w) a cada troca de material. */
.mat {
  display: grid;
  gap: 1rem;
  max-width: 880px;
  margin-inline: auto;
}
.mat__tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mat-tab {
  position: relative;
  z-index: 1;
  padding: 0.55rem 1rem;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.mat-tab:hover { color: var(--text); border-color: var(--accent); }
.mat-tab.is-active {
  color: var(--accent);
  /* o visual ativo (borda accent, fundo, brilho) fica no indicador que desliza */
  border-color: transparent;
  background: transparent;
}
/* Indicador deslizante: um "pill" absoluto que o JS posiciona sobre a aba ativa
   e anima até a próxima (desce, na coluna do desktop). */
.mat-tab__ind {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 0;
  height: 0;
  box-sizing: border-box;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px rgba(200, 117, 42, 0.25), 0 10px 30px -18px rgba(200, 117, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease;
}
.mat-tab__ind.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .mat-tab__ind { transition: opacity 0.3s ease; }
}
/* Painéis empilhados na mesma célula do grid: a troca vira um cross-fade suave
   (o que sai desaparece enquanto o novo aparece), sem salto de altura porque o
   container acompanha o painel mais alto. */
.mat__panels {
  display: grid;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mat-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 420ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1), visibility 420ms;
}
.mat-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .mat-panel { transition: opacity 1ms, visibility 1ms; transform: none; }
}
.mat-panel__brand {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.mat-panel h3 { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.mat-panel__body > p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.1rem; }

/* Thumb do material: quadrado à direita no desktop, oculto no mobile */
.mat-panel__thumb { display: none; }
@media (min-width: 600px) {
  .mat-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 1.5rem;
    align-items: start;
  }
  .mat-panel__thumb {
    display: block;
    width: 132px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
  }
}

.mat-bar {
  display: grid;
  grid-template-columns: 106px 1fr auto;
  align-items: center;
  gap: 0.75rem;
}
.mat-bar + .mat-bar { margin-top: 0.7rem; }
.mat-bar__label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mat-bar__track {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.mat-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--laranja-escuro), var(--laranja-cobre));
  transition: width 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mat-bar__value {
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* Desktop: abas em coluna à esquerda, painel à direita */
@media (min-width: 768px) {
  .mat { grid-template-columns: 200px 1fr; align-items: start; }
  .mat__tabs { flex-direction: column; }
  .mat-tab { text-align: left; }
  .mat__panels { padding: 1.75rem 2rem; }
}

/* ----------------------------- PÁGINA TECNOLOGIA ----------------------------- */
/* Mesmo padding compacto das seções da página Serviços */
.fluxo-section,
.equip-section,
.pilar-section { padding-block: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); }

/* --- Fluxo digital: linha de produção interativa ---
   A linha cobre avança até a etapa ativa (largura vem de --p, definida no JS).
   Mobile: conector vertical entre os números · desktop: linha horizontal. */
.fluxo {
  position: relative;
  display: grid;
  gap: 0.9rem;
}
.fluxo-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 0.9rem;
  align-items: start;
}
.fluxo-step__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  transition: border-color var(--t), color var(--t), background var(--t), box-shadow var(--t);
}
/* Conector vertical (mobile): liga o número da etapa ao próximo */
.fluxo-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: -0.9rem;
  width: 2px;
  background: var(--surface-2);
  transition: background var(--t);
}
.fluxo-step.is-done:not(:last-child)::before {
  background: linear-gradient(180deg, var(--laranja-escuro), var(--laranja-cobre));
}
.fluxo-step__card {
  padding: 0.9rem 1.1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t), border-color var(--t);
}
.fluxo-step__icon {
  display: inline-flex;
  color: var(--cinza-tecnico);
  margin-bottom: 0.45rem;
  transition: color var(--t);
}
.fluxo-step__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fluxo-step__card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.3rem;
}
.fluxo-step__card p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
/* Etapa concluída/ativa: número e card acendem em cobre */
.fluxo-step.is-done .fluxo-step__num {
  border-color: var(--accent);
  color: var(--accent);
}
.fluxo-step.is-active .fluxo-step__num {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--preto-carbono);
  box-shadow: 0 0 0 4px rgba(200, 117, 42, 0.16), 0 0 18px rgba(200, 117, 42, 0.35);
}
.fluxo-step.is-active .fluxo-step__card {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.fluxo-step.is-active .fluxo-step__icon { color: var(--accent); }

/* Desktop: 5 colunas, número centrado acima do card e linha horizontal */
@media (min-width: 900px) {
  .fluxo { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* trilho (fundo) e linha de progresso (cobre) na altura dos números */
  .fluxo::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--surface-2);
  }
  .fluxo::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 10%;
    width: calc(var(--p, 0) * 80%);
    height: 2px;
    background: linear-gradient(90deg, var(--laranja-escuro), var(--laranja-cobre));
    box-shadow: 0 0 12px rgba(200, 117, 42, 0.45);
    transition: width 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .fluxo-step {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 0.8rem;
  }
  .fluxo-step:not(:last-child)::before { display: none; }
  .fluxo-step__card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.1rem 0.85rem 1.2rem;
  }
  .fluxo-step__card p { max-width: 24ch; }
}

/* --- Equipamentos: bento com spotlight que segue o cursor --- */
.equip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.equip-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 230px;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-img);
  transition: border-color var(--t);
}
/* Tile do vídeo 9:16: no mobile acompanha a proporção do reel (sem recorte);
   no desktop o grid manda na altura e o vídeo entra inteiro via contain */
.equip-tile--lg { aspect-ratio: 9 / 16; }
.equip-tile--lg video { object-fit: contain; }
.equip-tile img,
.equip-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.85);
  transition: transform var(--t), filter var(--t);
}
/* a foto do ambiente é vertical com bordas: recorta a faixa central */
.equip-tile:hover img,
.equip-tile:hover video {
  transform: scale(1.04);
  filter: saturate(1) brightness(0.95);
}
.equip-tile:hover { border-color: rgba(200, 117, 42, 0.55); }
/* Spotlight cobre: posição vem do JS (--mx/--my) enquanto o cursor passeia */
.equip-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(200, 117, 42, 0.18),
    transparent 65%
  );
  transition: opacity var(--t);
  pointer-events: none;
}
.equip-tile:hover::after { opacity: 1; }

.equip-tile__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 2.6rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(5, 6, 7, 0.92), rgba(5, 6, 7, 0.5) 55%, transparent);
}
.equip-tile__tag {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.equip-tile__title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.equip-tile__desc {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 46ch;
}

@media (min-width: 900px) {
  .equip-grid {
    grid-template-columns: 1.15fr 0.95fr 0.95fr;
    grid-template-rows: repeat(3, 235px);
  }
  .equip-tile { min-height: 0; }
  .equip-tile--lg { grid-row: 1 / 4; grid-column: 1; aspect-ratio: auto; }
  .equip-tile--wide { grid-column: 2 / 4; }
}

/* --- Faixa "na bancada": equipamentos reais com LED de status --- */
.equip-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.equip-strip__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.equip-strip__led {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--laranja-cobre);
  box-shadow: 0 0 8px rgba(200, 117, 42, 0.8);
  animation: ledPulse 2.4s ease-in-out infinite;
}
/* LEDs pulsam fora de fase, como painel de máquina */
.equip-strip__item:nth-child(2) .equip-strip__led { animation-delay: 0.6s; }
.equip-strip__item:nth-child(3) .equip-strip__led { animation-delay: 1.2s; }
.equip-strip__item:nth-child(4) .equip-strip__led { animation-delay: 1.8s; }
@keyframes ledPulse {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 3px rgba(200, 117, 42, 0.35); }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(200, 117, 42, 0.85); }
}
.equip-strip__body { display: flex; flex-direction: column; min-width: 0; }
.equip-strip__body strong {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.3;
}
.equip-strip__body small {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .equip-strip { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .equip-strip__item { padding-inline: 1.1rem; }
  .equip-strip__item:first-child { padding-left: 0; }
  .equip-strip__item + .equip-strip__item { border-left: 1px solid var(--border); }
}

/* --- Pilares: tecnologia + olhar técnico --- */
.pilar { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.pilar__intro .section__lead { max-width: 560px; }
.pilar__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.pilar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 1.9rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t), border-color var(--t);
}
.pilar-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.pilar-card__icon { display: inline-flex; color: var(--accent); }
.pilar-card__icon svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pilar-card__title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1.25;
}
.pilar-card__desc {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 26ch;
}
/* Ícones se desenham (stroke draw) quando o card entra na tela */
@media (prefers-reduced-motion: no-preference) {
  .pilar-card__icon svg * {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
  }
  .pilar-card.is-visible .pilar-card__icon svg * {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s;
  }
}
@media (min-width: 768px) {
  .pilar__cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .pilar {
    grid-template-columns: 0.95fr 1.55fr;
    align-items: center;
  }
  .pilar__intro .section__title { text-wrap: balance; }
  .pilar-card { padding: 1.7rem 1rem; }
}

/* ----------------------------- PÁGINA CONTATO ----------------------------- */
/* Hero compacta: página de ação, o conteúdo importa mais que a vitrine */
.hero.hero--compact { min-height: min(62vh, 600px); }
.hero--compact .hero__bg img { object-position: center 26%; }
/* Contato: enquadra a guia cirúrgica (parte baixa da foto) no hero */
.hero--compact .hero__bg img.hero__img--contato { object-position: center 40%; }
@media (min-width: 1024px) {
  .hero.hero--compact { min-height: 620px; }
}

.ccards-section,
.contato-main { padding-block: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); }

/* --- Canais de contato: 3 cartões de acesso rápido --- */
.ccards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.ccard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t), border-color var(--t);
}
a.ccard:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.ccard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 0.85rem;
}
.ccard__icon svg { width: 20px; height: 20px; }
.ccard__icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ccard__label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ccard__value {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.ccard__desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 0.35rem;
}
/* risquinho cobre, fiel ao template; estica no hover dos cartões clicáveis */
.ccard::after {
  content: "";
  width: 26px;
  height: 2px;
  margin-top: 0.9rem;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
  transition: width var(--t);
}
a.ccard:hover::after { width: 44px; }

@media (min-width: 768px) {
  .ccards { grid-template-columns: repeat(3, 1fr); }
}

/* --- Formulário + localização --- */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
}
.cpanel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.cpanel__title {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  margin-bottom: 0.6rem;
  text-wrap: balance;
}
.cpanel__lead {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.cform { display: grid; gap: 1.05rem; }
.cform__row { display: grid; gap: 1.05rem; }
.cform__field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.cform__field label small {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: none;
}
.cform input,
.cform select,
.cform textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cform input::placeholder,
.cform textarea::placeholder { color: var(--text-muted); opacity: 0.55; }
.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 117, 42, 0.14);
}
.cform select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B0B5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.6rem;
  cursor: pointer;
}
.cform textarea { min-height: 120px; resize: vertical; }

/* Prévia ao vivo da mensagem (balão de chat) */
.cform__preview {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-top-left-radius: 4px;
  padding: 0.85rem 1rem 0.95rem;
}
.cform__preview-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.cform__preview-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  font-style: italic;
  overflow-wrap: anywhere;
}
.cform__submit { justify-self: start; min-width: 250px; }
.cform__note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}
.cform__note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 0.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Mapa escurecido + pino cobre --- */
.contato-aside {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.mapa {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mapa__frame {
  position: relative;
  height: 280px;
  background: var(--surface-2);
}
.mapa__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* mapa claro do Google vira mapa escuro no clima do site */
  filter: grayscale(1) invert(0.92) brightness(0.85) contrast(0.95);
}
/* vinheta para fundir o mapa ao card */
.mapa__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(5, 6, 7, 0.55);
  pointer-events: none;
}
.mapa__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -90%);
  color: var(--accent);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}
.mapa__pin svg { width: 100%; height: 100%; }
.mapa__pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 14px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(200, 117, 42, 0.5);
  animation: pinPulse 2.2s ease-in-out infinite;
}
@keyframes pinPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.55; }
  50% { transform: translateX(-50%) scale(1.6); opacity: 0.2; }
}
.mapa__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.1rem 1.25rem 1.3rem;
}
.mapa__eyebrow {
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.mapa__addr {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.mapa__addr-sub { color: var(--text-muted); font-size: 0.82rem; }
.mapa__btn { margin-top: 0.9rem; align-self: flex-start; }

/* Nota: atendimento exclusivo para dentistas e clínicas */
.cnote {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cnote__icon { display: inline-flex; color: var(--accent); flex-shrink: 0; }
.cnote__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cnote__body { display: flex; flex-direction: column; gap: 0.15rem; }
.cnote__body strong {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.35;
}
.cnote__body small { color: var(--text-muted); font-size: 0.78rem; }

@media (min-width: 600px) {
  .cform__row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .contato-grid { grid-template-columns: 1.08fr 0.92fr; align-items: stretch; }
  /* A coluna do mapa acompanha a altura do formulário: o frame do mapa
     cresce e a nota fica ancorada embaixo, sem sobrar vazio na coluna. */
  .contato-aside { grid-template-rows: 1fr auto; align-content: stretch; }
  .mapa { display: flex; flex-direction: column; }
  .mapa__frame { flex: 1; height: auto; min-height: 280px; }
}

/* ----------------------------- TECNOLOGIA ----------------------------- */
#tecnologia {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--preto-carbono);
}
.tech__grid::before {
  content: "";
  position: absolute;
  inset: 34% 0 0;
  z-index: -2;
  background: url("../assets/images/equipamento-cadcam-alternativa.webp") center / cover no-repeat;
  opacity: 0.28;
}
.tech__grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* degradê na cor do fundo do site (--preto-carbono #0E1417) para a seção não destoar */
  background: linear-gradient(90deg, rgba(14, 20, 23, 0.98) 0%, rgba(14, 20, 23, 0.9) 58%, rgba(14, 20, 23, 0.7) 100%);
  pointer-events: none;
}
#tecnologia .container {
  position: relative;
  z-index: 1;
}
.tech__grid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  width: 100%;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
  border-radius: var(--radius-img);
}
.tech__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tech__content .section__head {
  max-width: 650px;
  margin-bottom: 1.5rem;
}
.tech__content .section__title {
  font-size: clamp(1.65rem, 1.35rem + 1.25vw, 2.25rem);
}
.tech__content .section__lead {
  margin-top: 0.8rem;
  font-size: 0.94rem;
  line-height: 1.55;
}
.tech__cards {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}
.tech-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform var(--t), border-color var(--t);
}
.tech-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 117, 42, 0.65);
}
.tech-card__media {
  height: 112px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.tech-card__media img {
  --tech-card-scale: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.82);
  transform: scale(var(--tech-card-scale));
  transition: transform var(--t), filter var(--t);
}
.tech-card:hover .tech-card__media img {
  transform: scale(calc(var(--tech-card-scale) * 1.035));
  filter: saturate(1) brightness(0.9);
}
.tech-card__media--cadcam img {
  object-position: 38% 54%;
}
.tech-card__media--print img {
  object-position: center;
}
.tech-card__body {
  min-height: 108px;
  padding: 0.9rem 0.85rem 1rem;
}
.tech-card__body h3 {
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tech-card__body p {
  color: var(--text-muted);
  font-size: 0.73rem;
  line-height: 1.5;
}
.tech__cta { margin-top: 1.25rem; }
/* ----------------------------- CTA ----------------------------- */
.cta {
  padding: clamp(1.5rem, 3vw, 2.5rem) 1.25rem;
  background: var(--preto-carbono);
}
/* Layout do CTA (separado do visual para não quebrar o grid responsivo) */
.cta__inner {
  display: grid;
  gap: 1.75rem;
  width: 100%;
  max-width: 1320px;
  min-height: 250px;
  margin-inline: auto;
  padding: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 3vw, 3.5rem);
  align-items: center;
}

/* =====================================================================
   .cta-carbon — moldura premium: carbono + borda luminosa sutil
   Ajuste o efeito nas variáveis abaixo (cobre discreto sobre grafite).
   ===================================================================== */
.cta-carbon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(rgba(5, 6, 7, 0.72), rgba(5, 6, 7, 0.72)),
    url("../assets/images/background-carbono.webp") center / cover no-repeat;
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 70px rgba(0, 0, 0, 0.48);
}

/* CAMADA 3 — borda com gradiente prateado diagonal (luz correndo pela borda) */
.cta-carbon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--branco-gelo) 0%, color-mix(in srgb, var(--cinza-tecnico) 85%, transparent) 45%, transparent 100%),
    linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--cinza-tecnico) 78%, transparent) 55%, var(--branco-gelo) 100%);
  background-position: top left, bottom right;
  background-size: 58% 2px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--cinza-tecnico) 45%, transparent));
  pointer-events: none;
}

/* CAMADA 4 — brilho suave sob a base (aura externa inferior) */
.cta-carbon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--cinza-tecnico) 15%, transparent), transparent 22%),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--cinza-tecnico) 16%, transparent), transparent 24%);
  pointer-events: none;
}

/* conteúdo sempre acima dos pseudo-elementos */
.cta-carbon > * {
  position: relative;
  z-index: 1;
}
.cta__text h2 { font-size: var(--fs-h2); margin-bottom: 0.6rem; text-wrap: balance; }
.cta__text p { color: var(--text-muted); max-width: 520px; }

/* Botão metálico prateado — fiel à referência */
.cta .btn--primary {
  min-width: 300px;
  min-height: 58px;
  color: #1b1e20;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(180deg, #f2f3f3 0%, #d3d7d9 52%, #b9bec1 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 8px 22px -12px rgba(0, 0, 0, 0.6);
}
.cta .btn--primary:hover {
  color: #1b1e20;
  background:
    linear-gradient(180deg, #ffffff 0%, #e3e6e7 52%, #c9ced1 100%);
}

/* CTA da Sobre — foto de bastidor com a marca na parede.
   O tilt (--rx/--ry) e o brilho (--mx/--my) são alimentados pelo JS. */
.cta__foto {
  position: relative;
  overflow: hidden;
  width: clamp(180px, 24vw, 260px);
  margin-inline: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform: perspective(700px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.2s ease;
}
.cta__foto img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.cta__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 25%), rgba(255, 255, 255, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.cta__foto:hover::after { opacity: 1; }

/* ----------------------------- FOOTER ----------------------------- */
.footer {
  background:
    radial-gradient(circle at 9% 20%, rgba(255, 255, 255, 0.035), transparent 27%),
    var(--preto-carbono);
  border-top: 1px solid var(--border);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: 2.25rem;
}
.footer__grid > * {
  min-width: 0;
  padding-block: 1.5rem;
}
/* Mobile: as duas listas curtas (Links rápidos + Serviços) ficam lado a lado,
   enquanto marca e contato ocupam a linha inteira. Encurta a altura do rodapé. */
@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
  .footer__brand,
  .footer__grid > .footer__col:last-child {
    grid-column: 1 / -1;
  }
}
.footer__brand .logo-img {
  width: clamp(140px, 12vw, 150px);
  height: auto;
  margin-bottom: 1.1rem;
  color: var(--text);
}
.footer__desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 310px;
}
.footer__socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.footer__socials a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer__socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer__socials svg { width: 16px; height: 16px; }

.footer__col h4 {
  font-family: var(--font-head);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col a {
  color: var(--text);
  font-size: 0.86rem;
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--accent); }
.footer__contact { gap: 0.65rem; }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.footer__contact-item svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 0.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.footer__contact-item a,
.footer__contact-item span { color: inherit; font-size: inherit; }
.footer__col .footer__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.68rem 1rem;
  border: 1px solid var(--cinza-tecnico);
  border-radius: var(--radius-sm);
  background: var(--cinza-tecnico);
  color: var(--preto-carbono);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.footer__col .footer__whatsapp:hover {
  background: var(--branco-gelo);
  border-color: var(--branco-gelo);
  color: var(--preto-carbono);
  transform: translateY(-2px);
}
.footer__whatsapp svg { width: 17px; height: 17px; }

.footer__bottom {
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
}

/* ----------------------------- CONTATO — FAQ ----------------------------- */
.faq {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 0.6rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  transition: color var(--t-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius);
}
.faq-item__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform var(--t);
}
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }
/* padding vertical fica no <p> para a animação de altura fechar em 0 de verdade */
.faq-item__body { padding: 0 1.25rem; overflow: hidden; }
.faq-item__body p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  padding-bottom: 1.15rem;
}
@media (prefers-reduced-motion: reduce) {
  .faq-item__chevron { transition: none; }
}

/* ----------------------------- ANIMAÇÃO DE ENTRADA ----------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-animate].is-visible { opacity: 1; transform: none; }

/* ----------------------------- PRELOADER ----------------------------- */
/* Cortina em duas metades que se parte no vão central do glifo CD.
   Cada metade carrega uma cópia do logo alinhada à emenda; ao abrir,
   cada lado leva a sua metade do símbolo. JS fecha com .is-done. */
html.preloading { overflow: hidden; }
html.preloader-skip .preloader { display: none; }
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
}
.preloader.is-hidden { display: none; }
.preloader__half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.05s;
}
.preloader__half--l { left: 0; }
.preloader__half--r { left: 50%; }
.preloader.is-done .preloader__half--l { transform: translateX(-101%); }
.preloader.is-done .preloader__half--r { transform: translateX(101%); }
.preloader__pane {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  background:
    radial-gradient(circle at 50% 42%, #222a30 0%, #131a1f 52%, #0a0e11 100%);
}
.preloader__half--l .preloader__pane { left: 0; }
.preloader__half--r .preloader__pane { left: -50vw; }
.preloader__pane img {
  width: clamp(200px, 28vw, 320px);
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.55));
  animation: preloader-logo 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes preloader-logo {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
/* linha de carregamento: trilho discreto com varredura cobre */
.preloader__bar {
  position: relative;
  width: min(38vw, 240px);
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.preloader__bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 44%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: preloader-sweep 1.15s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes preloader-sweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(340%); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader { transition: opacity 0.3s ease; }
  .preloader__half { transition: none; }
  .preloader.is-done { opacity: 0; }
  .preloader.is-done .preloader__half--l,
  .preloader.is-done .preloader__half--r { transform: none; }
  .preloader__pane img { animation: none; }
  .preloader__bar::after { animation: none; width: 100%; transform: none; }
}

/* ----------------------------- WHATSAPP FLUTUANTE ----------------------------- */
/* Glifo oficial do WhatsApp com a paleta do site: pílula metálica (mesma dos CTAs)
   e halo cobre pulsante. Entra depois que o visitante rola o hero (.is-visible
   via JS) e o rótulo se expande no hover. */
.whats-fab {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 80; /* abaixo do overlay do drawer (90): escurece junto com o fundo */
  display: flex;
  align-items: center;
  height: 56px;
  padding-inline: 14px;
  border-radius: 999px;
  color: #1b1e20;
  background: linear-gradient(180deg, #f2f3f3 0%, #d3d7d9 52%, #b9bec1 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 12px 30px -10px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--t), transform var(--t), background var(--t-fast);
}
.whats-fab.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.whats-fab:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e3e6e7 52%, #c9ced1 100%);
}
.whats-fab svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.whats-fab::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
.whats-fab.is-visible::before { animation: fab-halo 2.8s ease-out infinite; }
@keyframes fab-halo {
  0% { transform: scale(0.92); opacity: 0.55; }
  60% { transform: scale(1.16); opacity: 0; }
  100% { transform: scale(1.16); opacity: 0; }
}
.whats-fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    max-width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    margin-left 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.3s ease;
}
.whats-fab:hover .whats-fab__label,
.whats-fab:focus-visible .whats-fab__label {
  max-width: 190px;
  margin-left: 0.55rem;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .whats-fab { transform: none; transition: opacity var(--t); }
  .whats-fab.is-visible::before { animation: none; }
  .whats-fab__label { transition: none; }
}

/* =====================================================================
   BREAKPOINTS
   ===================================================================== */

@media (max-width: 767px) {
  .cta { padding-inline: 1rem; }
  .cta__inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    min-height: auto;
    padding: 2rem 1.5rem;
  }
  .cta__text { min-width: 0; }
  .cta__text p { overflow-wrap: anywhere; }
  .cta .btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }
  .cta__text h2 {
    white-space: normal;
    /* no mobile, 'balance' pode manter uma linha larga demais e o card (overflow:hidden)
       corta a palavra; quebra normal + break-word garante que nunca estoure */
    text-wrap: normal;
    overflow-wrap: break-word;
    font-size: clamp(1.5rem, 1.2rem + 2vw, 1.9rem);
  }
}

/* --- Tablet ≥ 768px --- */
@media (min-width: 768px) {
  .servicos__bento { grid-template-columns: repeat(8, 1fr); }
  .svc { grid-column: span 2; }
  .svc--wide { grid-column: span 3; }
  .svc--note { grid-column: span 2; }
  .sobre__features { grid-template-columns: repeat(2, 1fr); }
  .lab__head {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
  .lab__lead { padding-top: 2.1rem; } /* alinha o texto com a 1ª linha do título */
  .tech__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .direcao__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
  }
  .direcao__media {
    aspect-ratio: auto;
    min-height: 280px;
  }
  .direcao__cards {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 3rem;
  }
  .cta__inner { grid-template-columns: 1.6fr auto; }
  .cta__inner--foto { grid-template-columns: auto 1.6fr auto; }
}

/* --- Desktop ≥ 1024px --- */
@media (min-width: 1024px) {
  /* Heros da Home e da Sobre travadas na MESMA altura fixa no desktop */
  .hero { min-height: 880px; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .sobre__top { grid-template-columns: 0.92fr 1.08fr; }
  .sobre__features { grid-template-columns: repeat(4, 1fr); }
  .servicos { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
  /* imagem preenche só o espaço restante (basis 0 evita empurrar a altura e esticar o bento) */
  .servicos__media { flex: 1 1 0; min-height: 0; aspect-ratio: auto; margin-top: 1.5rem; }
  .tech__grid::before {
    inset: 0;
    opacity: 1;
    background-size: auto 100%;
    background-position: right center;
    -webkit-mask-image: linear-gradient(90deg, transparent 61%, #000 78%);
    mask-image: linear-gradient(90deg, transparent 61%, #000 78%);
  }
  .tech__grid::after {
    background: linear-gradient(
      90deg,
      rgba(14, 20, 23, 1) 0%,
      rgba(14, 20, 23, 0.98) 42%,
      rgba(14, 20, 23, 0.82) 54%,
      rgba(14, 20, 23, 0.38) 70%,
      rgba(14, 20, 23, 0.08) 100%
    );
  }
  .tech__grid { min-height: 430px; }
  .tech__content { max-width: min(58%, 700px); }
  .processo .section__head {
    margin-bottom: 1.25rem;
  }
  .direcao__grid {
    grid-template-columns: 0.9fr 1.4fr 0.9fr;
    gap: 2rem;
  }
  .direcao__cards {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1.55fr .8fr 1fr 1.45fr;
    column-gap: 2.5rem;
    align-items: start;
  }
  .footer__grid > * {
    padding: 0;
  }
}

/* --- Nav: drawer abaixo de 900px --- */
@media (max-width: 900px) {
  .header {
    padding-top: 0.5rem;
  }
  .header__inner {
    width: calc(100% - 1rem);
    min-height: 60px;
    padding-inline: 0.85rem;
    border-radius: 10px;
  }
  .header.is-scrolled .header__inner { min-height: 56px; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 360px);
    display: flex;
    flex-direction: column;
    padding: 96px 1.5rem 1.4rem;
    background:
      radial-gradient(circle at 92% 4%, rgba(200, 117, 42, 0.14), transparent 36%),
      var(--grafite-profundo);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: var(--shadow);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }

  /* Links grandes e numerados, entrando em cascata quando o drawer abre */
  .nav__list { flex-direction: column; gap: 0.15rem; counter-reset: navnum; }
  .nav__list li {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav.is-open .nav__list li { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(1) { transition-delay: 0.10s; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: 0.16s; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: 0.22s; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: 0.28s; }
  .nav.is-open .nav__list li:nth-child(5) { transition-delay: 0.34s; }
  .nav__link {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.95rem 0.4rem;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav__link::before {
    counter-increment: navnum;
    content: counter(navnum, decimal-leading-zero);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.85;
  }
  .nav__link:hover, .nav__link.is-active { background: transparent; color: var(--text); }
  /* Página atual: ponto cobre à direita no lugar do sublinhado do desktop */
  .nav__link[aria-current="page"]::after {
    left: auto;
    right: 0.4rem;
    bottom: auto;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  /* Rodapé do drawer: CTA de WhatsApp, Instagram e horário */
  .nav__extra {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.38s, transform 0.3s ease 0.38s;
  }
  .nav.is-open .nav__extra { opacity: 1; transform: none; }
  .nav__extra-wa { width: 100%; }
  .nav__extra-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-muted);
    font-size: 0.8rem;
  }
  .nav__extra-meta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    transition: border-color var(--t-fast), color var(--t-fast);
  }
  .nav__extra-meta a:hover { border-color: var(--accent); color: var(--accent); }
  .nav__extra-meta svg { width: 18px; height: 18px; }

  .nav-toggle { display: flex; }
  .header__cta { display: none; }

  /* Trava o scroll do conteúdo enquanto o drawer está aberto */
  body.nav-open { overflow: hidden; }

  /* Overlay do drawer */
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(5, 6, 7, 0.65);
    backdrop-filter: blur(3px);
  }
  .nav { z-index: 95; }
}

/* Drawer sem coreografia para quem prefere menos movimento */
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
  .nav__list li,
  .nav__extra {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Hero em telas menores: overlay vertical mais forte p/ leitura --- */
@media (max-width: 768px) {
  .hero__bg img { object-position: 32% center; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 6, 7, 0.55) 0%, rgba(5, 6, 7, 0.75) 45%, rgba(5, 6, 7, 0.82) 100%);
  }
  .hero#topo::before {
    background:
      linear-gradient(180deg, rgba(5, 6, 7, 0.64) 0%, rgba(5, 6, 7, 0.82) 45%, rgba(5, 6, 7, 0.88) 100%);
  }
  .hero__content { max-width: 100%; }
  .hero__watermark { width: 130px; opacity: 0.6; }
  .hero__highlights { flex-wrap: wrap; gap: 1rem 1.5rem; }
}

/* --- Ajuste fino telas pequenas (≤ 400px) --- */
@media (max-width: 400px) {
  .hero__actions .btn { width: 100%; }
}

/* ----------------------------- REDUÇÃO DE MOVIMENTO ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-animate] { opacity: 1; transform: none; }
}
