/* Almeida & Silva Advogados Associados (demonstração) — site institucional
   Marca do briefing: azul-marinho, azul-petróleo e dourado contido.
   Motivo visual: o filete dourado sob o monograma da logo, repetido como régua de seção.
   Dourado #D4AF37 só sobre azul-marinho ou como decoração; texto dourado em fundo claro usa --gold-ink. */

:root {
  --navy: #0d1b2a;
  --navy-2: #16293d;
  --navy-line: #2b3e53;
  --petrol: #1b4965;
  --petrol-2: #133750;
  --gold: #d4af37;
  --gold-hi: #e4c766;
  --gold-ink: #7a5e10;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #263238;
  --ink-2: #5f6b73;
  --rule: #dde1e6;
  --on-navy: #ffffff;
  --on-navy-2: #b8c2cd;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Inter Fallback", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-2: clamp(1.625rem, 1.4rem + 1vw, 2.125rem);
  --step-3: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem);
  --step-4: clamp(2.625rem, 1.7rem + 4.2vw, 5.25rem);

  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --wrap: 76rem;
  --radius: 6px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-ui: 0.3s;
  --dur-enter: 0.9s;
}

/* Arial ajustada às medidas da Inter: o texto não muda de largura quando a fonte web carrega */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--navy); color: var(--gold-hi); }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
}

a {
  color: var(--petrol);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--petrol-2); }

:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-navy :focus-visible { outline-color: var(--gold-hi); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--on-navy); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

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

.demo-banner {
  padding: 0.5rem var(--gutter);
  background: var(--gold-hi);
  color: var(--navy);
  font-size: var(--step--1);
  text-align: center;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.125rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-ui) var(--ease-soft),
    color var(--dur-ui) var(--ease-soft),
    border-color var(--dur-ui) var(--ease-soft),
    box-shadow var(--dur-ui) var(--ease-soft),
    transform var(--dur-ui) var(--ease-soft);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgb(13 27 42 / 0.55); }
.btn:active { transform: translateY(0); box-shadow: none; transition-duration: 0.08s; }
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--petrol); color: var(--on-navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--on-navy); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hi); color: var(--navy); }
.btn-outline-light { border-color: var(--on-navy-2); color: var(--on-navy); }
.btn-outline-light:hover { border-color: var(--on-navy); background: var(--navy-2); color: var(--on-navy); }
.btn-sm { min-height: 2.75rem; padding: 0.55rem 1.1rem; font-size: 0.9375rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em;
}
.text-link .icon { transition: transform var(--dur-ui) var(--ease-soft); }
.text-link:hover .icon { transform: translateX(3px); }

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.4s var(--ease-soft);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgb(13 27 42 / 0.6); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}
.brand { display: block; flex: none; }
.brand img { width: clamp(10rem, 7rem + 8vw, 15.5rem); height: auto; }

.menu-toggle { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav ul { display: flex; gap: 1.75rem; }
.nav ul a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--ink);
  font-size: 0.9875rem;
  font-weight: 500;
  text-decoration: none;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-soft);
}
.nav ul a:hover::after { transform: scaleX(1); }
.nav ul a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav ul a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--navy);
    font: 600 0.9375rem var(--sans);
    cursor: pointer;
  }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -20px rgb(13 27 42 / 0.35);
  }
  .js .nav:not(.is-open) { display: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav ul a::after { display: none; }
  .nav ul a[aria-current="page"] { color: var(--petrol); box-shadow: inset 3px 0 0 var(--gold); padding-left: 0.85rem; }
}

/* Estrutura de seção */
.section { padding-block: var(--space-section); }
.section-white { background: var(--surface); }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  color: var(--gold-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker::after {
  content: "";
  width: 3rem; height: 1px;
  background: var(--gold);
}
.on-navy .kicker { color: var(--gold); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head h2 { font-size: var(--step-3); max-width: 18em; }
.section-head p.lead-sm { grid-column: 1; max-width: 40em; color: var(--ink-2); }
.section-head .text-link { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .text-link { grid-column: 1; grid-row: auto; justify-self: start; }
}

.prose { max-width: 40em; color: var(--ink-2); }
.prose p + p { margin-top: 1.2rem; }
.prose strong { color: var(--ink); font-weight: 600; }

/* Hero da página inicial */
.hero {
  padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  background: var(--bg);
}
.hero-grid > div { max-width: 54rem; }
.hero h1 {
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--petrol); }
.hero .lead {
  margin-top: 1.75rem;
  max-width: 34em;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.6;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Cabeçalho das páginas internas */
.page-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { font-size: var(--step-4); max-width: 14em; }
.page-hero .lead {
  margin-top: 1.5rem;
  max-width: 38em;
  color: var(--ink-2);
  font-size: var(--step-1);
}

/* Introdução / dois tempos */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4vw, 6rem);
  align-items: start;
}
.split h2 { font-size: var(--step-3); }
.split .prose { padding-top: 0.5rem; }
.split .text-link { margin-top: 2rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Princípios de trabalho */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.principles li { padding-top: 1.5rem; border-top: 1px solid var(--navy); }
.principles .num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-ink);
}
.principles h3 { font-size: var(--step-2); }
.principles p { margin-top: 0.75rem; color: var(--ink-2); }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }

/* Áreas: índice compacto (página inicial) */
.area-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.area-index li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.area-index a {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--dur-ui) var(--ease-soft);
}
.area-index a:hover { background: var(--bg); color: var(--ink); }
.area-index .num { font-family: var(--serif); font-style: italic; color: var(--gold-ink); }
.area-index h3 { font-size: 1.5rem; }
.area-index p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.55; }
@media (max-width: 1040px) { .area-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .area-index { grid-template-columns: 1fr; } }

/* Áreas: página completa */
.area-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.area-nav a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--step--1);
  text-decoration: none;
}
.area-nav a:hover { border-color: var(--navy); color: var(--navy); }

.area-list { border-top: 1px solid var(--navy); }
.area {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 1rem + 3vw, 4rem);
  padding-block: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-bottom: 1px solid var(--rule);
}
.area .num { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--gold-ink); line-height: 1.3; }
.area h2 { font-size: var(--step-2); }
.area .summary { margin-top: 0.75rem; color: var(--ink-2); }
.area-side { display: grid; gap: 1.25rem; align-content: start; padding-top: 0.35rem; }
.area-side dt {
  margin-bottom: 0.35rem;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.area-side dd { color: var(--ink); }
.area-side dd a { color: var(--petrol); }
@media (max-width: 820px) {
  .area { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .area-side { grid-column: 2; }
}

/* Equipe — mesma linguagem da página de áreas: filetes e colunas */

.team-group + .team-group { margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.team-group-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--gold-ink);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.team-group-title::after { content: ""; width: 3rem; height: 1px; background: var(--gold); }

.member-list { border-top: 1px solid var(--navy); }
.member {
  display: grid;
  grid-template-columns: clamp(7rem, 5rem + 5vw, 10rem) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: start;
  padding-block: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}
.member h3 { padding-top: 0.5rem; font-size: var(--step-2); }
.member-photo,
.team-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  background: var(--rule);
}
.member-role { margin-top: 0.35rem; color: var(--gold-ink); font-size: var(--step--1); font-weight: 600; }
.member-side { display: grid; gap: 1.1rem; padding-top: 0.6rem; }
.member-side dt {
  margin-bottom: 0.3rem;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.member-side dd { color: var(--ink); }
@media (max-width: 820px) {
  .member { grid-template-columns: 7rem minmax(0, 1fr); }
  .member-side { grid-column: 1 / -1; }
  .member h3 { padding-top: 0.25rem; }
  .member-side { padding-top: 0; }
}

.team-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.team-strip li { display: flex; flex-direction: column; gap: 0.2rem; }
.team-strip img { margin-bottom: 0.8rem; padding-bottom: 0; border-bottom: 2px solid var(--gold); border-radius: var(--radius) var(--radius) 0 0; }
.team-strip strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
.team-strip span { color: var(--ink-2); font-size: var(--step--1); }
@media (max-width: 900px) { .team-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .team-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.channels { border-top: 1px solid var(--navy); }
.channels li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.channels .icon { margin-top: 0.2rem; color: var(--gold-ink); }
.channels .label {
  display: block;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.channels a { font-weight: 500; }
.channels .note { display: block; margin-top: 0.15rem; color: var(--ink-2); font-size: var(--step--1); }

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.form-card h2 { font-size: var(--step-2); }
.notice {
  margin-block: 1rem 1.75rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--gold);
  background: #fbf7e9;
  color: var(--ink);
  font-size: var(--step--1);
}
.field { display: grid; gap: 0.4rem; margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.field .hint { color: var(--ink-2); font-size: 0.875rem; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #b9c1c9;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 1px;
  border-color: var(--petrol);
}
.field [aria-invalid="true"] { border-color: #a4262c; }
.field .error { color: #a4262c; font-size: 0.875rem; font-weight: 500; }
.field .error:empty { display: none; }
.check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.9375rem; color: var(--ink); }
.check label { font-weight: 400; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: none; accent-color: var(--navy); }
.form-status {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--rule);
  font-size: var(--step--1);
}
.form-status:empty { display: none; }

/* Faixa de chamada */
.cta-band {
  padding-block: clamp(4rem, 3rem + 4vw, 6.5rem);
  background: var(--navy);
  color: var(--on-navy);
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 2rem 4rem;
  align-items: end;
}
.cta-band h2 { color: var(--on-navy); font-size: var(--step-3); max-width: 16em; }
.cta-band p { margin-top: 1rem; color: var(--on-navy-2); max-width: 36em; }
.cta-band .actions { margin: 0; }
@media (max-width: 820px) { .cta-inner { grid-template-columns: 1fr; } }

/* Rodapé */
.site-footer {
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) 2rem;
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  color: var(--on-navy-2);
  font-size: var(--step--1);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer-brand img { width: 13rem; height: auto; }
.footer-brand p { margin-top: 1.25rem; max-width: 22em; }
.site-footer h2 {
  margin-bottom: 1rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer li + li { margin-top: 0.4rem; }
.site-footer a { color: var(--on-navy); text-decoration-color: rgb(255 255 255 / 0.35); }
.site-footer a:hover { color: var(--gold-hi); }
.footer-hours { margin-top: 0.75rem; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-line);
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.not-found { padding-block: clamp(5rem, 3rem + 8vw, 10rem); text-align: left; }
.not-found .code { font-family: var(--serif); font-size: var(--step-4); font-style: italic; color: var(--gold-ink); }
.not-found h1 { font-size: var(--step-3); }
.not-found .lead { margin-top: 1.25rem; max-width: 34em; color: var(--ink-2); }

/* Movimento
   1. Troca de página: esmaecimento entre documentos (View Transitions), cabeçalho fica parado.
   2. Carregamento: entrada em cascata do topo da página, depois que as fontes chegam
      (main.js adiciona .is-ready; o <head> garante .is-ready em até 1,2s mesmo sem main.js).
   3. Rolagem: blocos com [data-reveal] (marcados pelo main.js) sobem ao entrar na tela. */
@view-transition { navigation: auto; }
.demo-banner { view-transition-name: demo-banner; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 0.25s var(--ease-soft) both vt-fade-out; }
::view-transition-new(root) { animation: 0.45s var(--ease-soft) both vt-fade-in; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }

@keyframes enter-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.js :is(.hero-grid > div > *, .page-hero .wrap > *, .not-found .wrap > *) { opacity: 0; }
.js.is-ready :is(.hero-grid > div > *, .page-hero .wrap > *, .not-found .wrap > *) {
  animation: enter-rise var(--dur-enter) var(--ease-soft) both;
}
.js.is-ready :is(.hero-grid > div, .page-hero .wrap, .not-found .wrap) > :nth-child(2) { animation-delay: 0.08s; }
.js.is-ready :is(.hero-grid > div, .page-hero .wrap, .not-found .wrap) > :nth-child(3) { animation-delay: 0.16s; }
.js.is-ready :is(.hero-grid > div, .page-hero .wrap, .not-found .wrap) > :nth-child(4) { animation-delay: 0.24s; }

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease-soft),
    transform 0.9s var(--ease-soft);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js :is(.hero-grid > div > *, .page-hero .wrap > *, .not-found .wrap > *),
  [data-reveal] { opacity: 1; transform: none; animation: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Aviso de cookies (assets/js/analytics.js). Só aparece com o GA4 configurado. */
.consent {
  --cc-bg: var(--navy); --cc-fg: var(--on-navy); --cc-muted: var(--on-navy-2); --cc-focus: var(--gold); --cc-radius: var(--radius); --cc-border: var(--navy-line);
  --cc-accept-bg: var(--gold); --cc-accept-fg: var(--navy);
  position: fixed; z-index: 90;
  left: 50%; bottom: 0.75rem; transform: translateX(-50%);
  width: min(40rem, calc(100% - 1.5rem));
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--cc-bg); color: var(--cc-fg);
  border: 1px solid var(--cc-border, transparent);
  border-radius: var(--cc-radius);
  box-shadow: 0 14px 32px -16px rgb(0 0 0 / 0.55);
  font-size: 0.8125rem; line-height: 1.45;
}
.consent-text { flex: 1 1 16rem; margin: 0; }
.consent-text a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.consent-actions { display: flex; gap: 0.5rem; flex: 0 0 auto; }
.consent-btn {
  min-height: 2.5rem; padding: 0.4rem 1rem;
  font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--cc-muted); border-radius: var(--cc-radius);
  background: transparent; color: var(--cc-muted);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, filter 0.2s;
}
.consent-btn:hover { border-color: var(--cc-fg); color: var(--cc-fg); }
.consent-btn[data-consent="granted"] {
  border-color: var(--cc-accept-bg); background: var(--cc-accept-bg); color: var(--cc-accept-fg);
}
.consent-btn[data-consent="granted"]:hover { filter: brightness(1.12); color: var(--cc-accept-fg); }
.consent-btn:focus-visible, .consent-text a:focus-visible { outline: 2px solid var(--cc-focus); outline-offset: 2px; }
@media (max-width: 30rem) {
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1; }
}
.consent-open {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.2em;
}
[data-consent-open][hidden] { display: none; }
