/* ==========================================================
   Mateus Moreira Advocacia
   Paleta tirada das próprias fotos: o fundo do estúdio,
   o cinza do terno e o azul da gravata.
   ========================================================== */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Fundos escuros: mesmo tom do fundo de cada foto */
  --studio: #2b2326;        /* foto 1 (início) */
  --studio-deep: #1f1a1c;   /* foto 2 (sobre) */
  --studio-night: #1c181a;  /* foto 3 (contato) */
  --footer: #151113;

  /* Fundos claros */
  --paper: #eef0f3;
  --white: #ffffff;

  /* Texto */
  --ink: #1c1f2b;
  --ink-soft: #4a4e5c;
  --on-dark: #efebec;
  --on-dark-soft: #c4babd;

  /* Acentos */
  --suit: #9da1b8;          /* cinza do terno */
  --tie: #2e3f86;           /* azul da gravata */
  --tie-light: #b6bfeb;
  --amber: #e3b04b;         /* "atenção": usado só para o que precisa ser conferido */
  --whats: #167c45;
  --whats-hover: #10673a;

  --rule: #d3d6de;
  --rule-dark: rgba(255, 255, 255, 0.13);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 8px;
  --header-h: 72px;
  --focus: var(--tie);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 0.99rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 54px;
  padding: 0.8em 1.4em;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font: 700 1.02rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-whats { background: var(--whats); color: #fff; }
.btn-whats:hover { background: var(--whats-hover); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.38); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-small { min-height: 42px; padding: 0.5em 1em; font-size: 0.95rem; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--studio);
  color: var(--on-dark);
  border-bottom: 1px solid var(--rule-dark);
  --focus: var(--amber);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  color: #fff;
}
.brand-name { font: 600 1.35rem/1.1 var(--serif); }
.brand-sub { font-size: 0.82rem; color: var(--on-dark-soft); letter-spacing: 0.06em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  display: inline-block;
  padding: 6px 0;
  color: var(--on-dark-soft);
  text-decoration: none;
  font-size: 0.98rem;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { color: #fff; }
.site-nav ul a[aria-current="true"] { color: #fff; border-bottom-color: var(--tie-light); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: 700 0.95rem var(--sans);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Início ---------- */
.hero {
  background:
    radial-gradient(60% 75% at 74% 42%, #32292d 0%, rgba(43, 35, 38, 0) 70%),
    var(--studio);
  color: var(--on-dark);
  overflow: hidden;
  --focus: var(--amber);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: 24px;
  padding-top: clamp(40px, 6vw, 72px);
}

.hero-copy { padding-bottom: clamp(32px, 5vw, 64px); }

.hero-id { margin-bottom: 28px; }
.hero-id strong { display: block; color: #fff; font-size: 1.05rem; }
.hero-id span { display: block; color: var(--on-dark-soft); font-size: 0.95rem; }

.hero h1 {
  max-width: 11.5em;
  margin-bottom: 0.45em;
  color: #fff;
  font-size: clamp(2.55rem, 1.7rem + 3.8vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 33em;
  margin-bottom: 1.8em;
  color: #ddd5d7;
  font-size: 1.15em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.6em; }

.hero-where {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  color: var(--on-dark-soft);
  font-size: 0.95rem;
}
.hero-where .icon { color: var(--tie-light); }

.hero-photo { margin: 0; justify-self: end; width: 100%; max-width: 450px; }
.hero-photo img {
  width: 100%;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 74%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 16%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 74%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 16%, #000 86%, transparent 100%);
  mask-composite: intersect;
}

/* Linha do tempo de contribuições (elemento de assinatura) */
.cnis {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  grid-template-areas:
    "cap track"
    "cap years"
    "cap legend";
  column-gap: 48px;
  margin: 0;
  padding: 32px 0 44px;
  border-top: 1px solid var(--rule-dark);
  --y0: 1994;
  --span: 32;
}
.cnis-caption { grid-area: cap; }
.cnis-title { display: block; margin-bottom: 0.3em; color: #fff; font-weight: 700; font-size: 0.98rem; }
.cnis-note { display: block; color: var(--on-dark-soft); font-size: 0.9rem; line-height: 1.5; }

.cnis-track {
  grid-area: track;
  position: relative;
  height: 22px;
  margin-top: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
}
.seg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((var(--s) - var(--y0)) / var(--span) * 100%);
  width: calc((var(--e) - var(--s)) / var(--span) * 100%);
  border-radius: 3px;
  transform-origin: left center;
}
.seg-clt { background: var(--suit); }
.seg-ind { background: #7d8bd6; }
.seg-gap {
  border: 1.5px dashed var(--amber);
  background: repeating-linear-gradient(135deg, rgba(227, 176, 75, 0.26) 0 5px, transparent 5px 10px);
}

.cnis-years {
  grid-area: years;
  position: relative;
  height: 1.6em;
  margin-top: 8px;
  color: var(--on-dark-soft);
  font-size: 0.82rem;
}
.cnis-years span {
  position: absolute;
  top: 0;
  left: calc((var(--s) - var(--y0)) / var(--span) * 100%);
  white-space: nowrap;
}
.cnis-years .y-gap { color: var(--amber); }
.cnis-years .y-gap:first-of-type { transform: translateX(calc(-100% - 6px)); }
.cnis-years .y-gap + .y-gap { transform: translateX(6px); }
.cnis-years .y-end { transform: translateX(-100%); }

.cnis-legend {
  grid-area: legend;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-dark-soft);
  font-size: 0.85rem;
}
.cnis-legend li { display: flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 22px; height: 10px; border-radius: 2px; }
.sw-clt { background: var(--suit); }
.sw-ind { background: #7d8bd6; }
.sw-gap { border: 1.5px dashed var(--amber); background: rgba(227, 176, 75, 0.2); }

/* Um único momento animado: a linha do tempo se preenche ao abrir a página */
@media (prefers-reduced-motion: no-preference) {
  .seg { animation: seg-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 170ms + 350ms); }
  .seg-gap { animation-name: seg-fade; animation-duration: 0.6s; }
  .cnis-years .y-gap { animation: seg-fade 0.6s ease both; animation-delay: 1.05s; }
}
@keyframes seg-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes seg-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Seções ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-dark { background: var(--studio-deep); color: var(--on-dark); --focus: var(--amber); }

.section h2 {
  margin-bottom: 0.45em;
  font-size: clamp(2rem, 1.55rem + 1.9vw, 2.9rem);
  line-height: 1.1;
}
.section-dark h2 { color: #fff; }

.lead { max-width: 36em; color: var(--ink-soft); font-size: 1.1em; }

/* ---------- Previdenciário ---------- */
.prev-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.prev-head .lead { margin-bottom: 0; }

.paths {
  display: grid;
  gap: 22px;
  padding-left: 24px;
  border-left: 3px solid var(--tie);
}
.path h3 { margin-bottom: 0.25em; font-size: 1.3rem; color: var(--tie); }
.path p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px clamp(32px, 5vw, 72px);
  margin-top: clamp(48px, 6vw, 72px);
}
.benefit-group h3 {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font-size: 1.6rem;
}
.benefit-group dl { margin: 6px 0 0; }
.benefit-group dl > div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.benefit-group dt { font-weight: 700; font-size: 1.07rem; }
.dt-note { font-weight: 400; color: var(--ink-soft); font-size: 0.92em; }
.benefit-group dd { margin: 0.3em 0 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-photo {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin: 0;
  max-width: 460px;
}
.about-photo img {
  width: 100%;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%);
  mask-composite: intersect;
}

.facts { margin: 8px 0 36px; padding: 0; list-style: none; }
.facts li {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule-dark);
  color: var(--on-dark-soft);
  font-size: 0.98rem;
}
.facts li:last-child { border-bottom: 1px solid var(--rule-dark); }
.facts strong { color: #fff; }

.bio p { max-width: 36em; color: #e2dcde; }
.about-social { margin: 1.6em 0 0; color: var(--on-dark-soft); }
.about-social a { color: var(--tie-light); }

/* ---------- Atendimento ---------- */
.atend-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 44px);
}

.steps { margin: 0; padding: 0; list-style: none; counter-reset: passo; }
.steps li {
  position: relative;
  padding: 0 0 32px 68px;
  counter-increment: passo;
}
.steps li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--tie);
  border-radius: 50%;
  color: var(--tie);
  font: 600 1.3rem/1 var(--serif);
  background: var(--white);
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 2px;
  width: 1.5px;
  background: var(--rule);
}
.steps h3 { margin-bottom: 0.2em; font-size: 1.3rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.checklist {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 10px;
  background: var(--paper);
}
.checklist h3 { margin-bottom: 0.6em; font-size: 1.35rem; }
.checklist ul { margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 0.6em; padding: 0.42em 0; font-size: 0.98rem; }
.checklist li .icon { margin-top: 0.15em; color: var(--tie); stroke-width: 2.2; }
.checklist-note { margin: 1em 0 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Outras áreas ---------- */
.areas {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 5vw, 72px);
  margin-top: clamp(32px, 4vw, 48px);
}
.area h3 {
  margin-bottom: 18px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font-size: 1.5rem;
}
.area-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.area h4 { margin: 0 0 0.4em; font-size: 1rem; }
.area ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); font-size: 0.98rem; }
.area li { margin: 0.35em 0; }
.area li::marker { color: var(--tie); }

/* ---------- Avaliações ---------- */
.reviews {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.reviews-head { position: sticky; top: calc(var(--header-h) + 32px); }
.reviews-head .lead { margin-bottom: 1.4em; font-size: 1.02em; }

.review-list { columns: 2; column-gap: 20px; }
.review {
  break-inside: avoid;
  margin: 0 0 20px;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: 10px;
  background: var(--paper);
}
.stars { display: flex; gap: 3px; margin: 0 0 14px; color: #c4890f; }
.stars svg { width: 20px; height: 20px; fill: currentColor; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-size: 1.04rem; line-height: 1.6; }
.review figcaption { margin-top: 16px; color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- Dúvidas ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1em;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { margin-top: 0.15em; color: var(--tie); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq-a p { max-width: 40em; margin: 0; padding-bottom: 22px; color: var(--ink-soft); }

/* ---------- Contato ---------- */
.contact { background: var(--studio-night); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}

.contact-list { margin: 8px 0 0; padding: 0; list-style: none; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-dark);
}
.contact-list li:first-child { border-top: 1px solid var(--rule-dark); }
.contact-list .icon { margin-top: 0.2em; color: var(--tie-light); width: 1.4em; height: 1.4em; }
.contact-list a { color: #fff; word-break: break-word; }
.c-label { display: block; color: var(--on-dark-soft); font-size: 0.85rem; }

.whats-form {
  margin-top: 40px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--rule-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.whats-form h3 { margin-bottom: 0.8em; color: #fff; font-size: 1.35rem; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; color: var(--on-dark-soft); font-size: 0.95rem; }
.field .opt { opacity: 0.8; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: #272124;
  color: #fff;
  font: inherit;
  font-size: 1rem;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-dark-soft) 50%), linear-gradient(135deg, var(--on-dark-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--tie-light); }
.field [aria-invalid="true"] { border-color: var(--amber); }
.form-error { margin: 0 0 12px; color: var(--amber); font-weight: 700; font-size: 0.95rem; }
.form-note { margin: 12px 0 0; color: var(--on-dark-soft); font-size: 0.85rem; }

.contact-photo { margin: 0; justify-self: end; align-self: center; width: 100%; max-width: 470px; }
.contact-photo img {
  width: 100%;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

.map { margin-top: clamp(40px, 6vw, 64px); }
.map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 10px;
  filter: grayscale(0.35);
}

/* ---------- Rodapé ---------- */
.site-footer {
  padding: 48px 0 104px;
  background: var(--footer);
  color: var(--on-dark-soft);
  font-size: 0.92rem;
  --focus: var(--amber);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 32px;
}
.footer-grid p { margin: 0 0 0.5em; }
.footer-name { color: #fff; font: 600 1.2rem var(--serif); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 0.4em; }
.footer-links a { color: var(--on-dark); }
.footer-legal p { font-size: 0.86rem; }

/* ---------- Botão flutuante ---------- */
.whats-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--whats);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  --focus: var(--amber);
}
.whats-float:hover { background: var(--whats-hover); }
.whats-float { transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s; }
.whats-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.whats-float .icon { width: 1.5em; height: 1.5em; }

/* ---------- Responsivo ---------- */
@media (max-width: 1040px) {
  .site-nav ul { gap: 16px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px clamp(20px, 4vw, 40px) 24px;
    background: var(--studio);
    border-bottom: 1px solid var(--rule-dark);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); font-size: 1.05rem; }
  .site-nav ul a[aria-current="true"] { border-bottom-color: var(--rule-dark); }
  .site-nav .btn { min-height: 52px; }

  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .hero-photo { order: -1; justify-self: center; max-width: 440px; }
  .hero-photo img {
    aspect-ratio: 1 / 1.02;
    object-fit: cover;
    object-position: 50% 6%;
    -webkit-mask-image:
      linear-gradient(to bottom, #000 62%, transparent 100%),
      linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image:
      linear-gradient(to bottom, #000 62%, transparent 100%),
      linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }
  .hero-copy { position: relative; margin-top: -56px; }

  .cnis {
    grid-template-columns: 1fr;
    grid-template-areas: "cap" "track" "years" "legend";
    row-gap: 0;
  }
  .cnis-caption { margin-bottom: 16px; }

  .prev-head,
  .atend-grid,
  .faq-wrap,
  .reviews,
  .areas { grid-template-columns: 1fr; }
  .reviews-head { position: static; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 400px; justify-self: center; }
  .about-photo img { aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 0; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-photo { justify-self: center; max-width: 400px; }
  .contact-photo img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; }
}

@media (max-width: 760px) {
  .benefits { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  .area-cols { grid-template-columns: 1fr; gap: 20px; }
  .review-list { columns: 1; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .hero-actions .btn { width: 100%; }
  .whats-float { padding: 0; width: 58px; justify-content: center; }
  .whats-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .map iframe { height: 280px; }
}

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