:root {
  /* TEMA CLARO — ATIVO */
  color-scheme: light;
  --background: #F7F6F3;
  --surface: #FFFFFF;
  --text: #161616;
  --text-muted: #6F6F6F;
  --border: #DEDDD8;
  --accent: currentColor; 
  --on-accent: #FFFFFF; 
  --header-background: rgba(247, 246, 243, 0.96);
  --image-background: #E8E3DB;
  --focus-contrast: #FFFFFF;

  /* TEMA ESCURO — PRONTO, MAS INATIVO
  color-scheme: dark;
  --background: #121211;
  --surface: #1B1B19;
  --text: #F2F0EA;
  --text-muted: #AAA69D;
  --border: #34332F;
  --accent: currentColor;
  --on-accent: #FFFFFF;
  --header-background: rgba(18, 18, 17, 0.96);
  --image-background: #24231F;
  --focus-contrast: #121211;
*/
  

  --font-display: "Poppins", Arial, sans-serif;
  --font-body: "Montserrat", Arial, sans-serif;
  --container: 1400px;
  --page-gutter: clamp(20px, 4vw, 64px);
  --header-height: 72px;
  --transition: 200ms cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--text);
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.visually-hidden {
  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: fixed;
  z-index: 70;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--text);
  color: var(--surface);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: var(--header-background);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand__office {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav,
.nav-links {
  display: flex;
  align-items: center;
}

.primary-nav {
  gap: clamp(20px, 2.5vw, 40px);
}

.nav-links {
  gap: clamp(16px, 2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a::after {
  position: absolute;
  inset: auto 0 -8px;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.button:hover {
  background: transparent;
  color: var(--text);
  transform: none;
}

.button--small {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform var(--transition);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  min-height: 100svh;
  padding-top: var(--header-height);
}

.hero__layout {
  display: grid;
  min-height: calc(100svh - var(--header-height));
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.8fr);
  align-items: stretch;
  gap: clamp(48px, 7vw, 112px);
}

.hero__content {
  display: flex;
  max-width: 720px;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(72px, 10vh, 128px) 56px;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero__description {
  max-width: 590px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero .hero__name {
  font-size: clamp(48px, 4.8vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero__positioning {
  max-width: 440px;
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.text-link {
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.text-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin: auto 0 0;
  padding-top: 56px;
}

.hero__credentials div {
  min-width: 150px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.hero__credentials dt {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__credentials dd {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 500;
}

.hero__media {
  position: relative;
  align-self: stretch;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  background: var(--image-background);
}

.hero__media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(22, 22, 22, 0.08);
  content: "";
  pointer-events: none;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
}

.hero__media figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  padding: 8px 10px;
  background: var(--header-background);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

/* Etapa 02: composição editorial e percurso do atendimento. */
.content-section {
  padding-block: clamp(72px, 8vw, 120px);
  border-top: 1px solid var(--border);
}

.content-section[hidden] { display: none; }

.content-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.content-section h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.about { background: var(--surface); }
.about__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(48px, 9vw, 128px);
}
.about h2 { max-width: 480px; }
.about__copy p { margin: 24px 0 0; color: var(--text-muted); }
.about__copy .about__lead {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.65;
}
.about__signature {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.about__signature span:first-child { flex-basis: 100%; color: var(--text); font-weight: 600; }
.practice__list, .journey__list { padding: 0; list-style: none; }
.practice__list { margin: 56px 0 0; }
.practice__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 32px;
  align-items: baseline;
  padding-block: 32px;
  border-top: 1px solid var(--border);
}
.practice__item:last-child { border-bottom: 1px solid var(--border); }
.practice__number, .journey__number { color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.practice__item p { max-width: 560px; margin: 0; color: var(--text-muted); }
.practice__item h3 { transition: color var(--transition); }
@media (hover: hover) {
  .practice__item:hover h3 { color: var(--accent); }
}
.journey { background: var(--surface); }
.journey__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(48px, 8vw, 112px);
}
.journey h2 { position: sticky; top: calc(var(--header-height) + 48px); max-width: 420px; }
.journey__body { position: relative; min-width: 0; }
.journey__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.journey__svg[hidden] { display: none; }
.journey__svg path { fill: none; stroke-width: 1.5; }
.journey__track { stroke: var(--border); }
.journey__progress { stroke: var(--accent); }
.journey__list { position: relative; margin: 0; }
.journey__item { position: relative; min-height: 240px; padding: 0 0 64px 96px; }
.journey__item:last-child { min-height: 0; padding-bottom: 0; }
.journey__number { display: block; margin-bottom: 12px; }
.journey__item p { max-width: 440px; margin: 16px 0 0; color: var(--text-muted); }
.journey__marker {
  position: absolute;
  top: 8px;
  left: 16px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
}
.journey__item:nth-child(even) .journey__marker { left: 40px; }
.journey__item.is-reached .journey__marker { border-color: var(--accent); background: var(--accent); }
.journey__item.is-reached .journey__number { color: var(--accent); }
@media (max-width: 767px) {
  .about__layout, .journey__layout { grid-template-columns: 1fr; gap: 36px; }
  .practice__list { margin-top: 36px; }
  .practice__item { grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding-block: 28px; }
  .practice__item p { grid-column: 2; }
  .journey h2 { position: static; }
  .journey__item { min-height: 224px; padding-left: 48px; padding-bottom: 56px; }
  .journey__marker, .journey__item:nth-child(even) .journey__marker { left: 8px; }
}

.differences__layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; }
.differences h2 { max-width: 360px; }
.differences__list { list-style: none; padding: 0; margin: 0; }
.differences__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px 24px; padding: 28px 0; border-top: 1px solid var(--border); }
.differences__item:first-child { padding-top: 0; border-top: 0; }
.differences__number { padding-top: 4px; color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.differences__item p { grid-column: 2; max-width: 540px; margin: 0; color: var(--text-muted); }
.contact { background: var(--surface); }
.contact__layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(40px, 8vw, 112px); }
.contact h2 { max-width: 680px; }
.contact__intro { max-width: 560px; margin: 28px 0 0; color: var(--text-muted); }
.contact__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.contact__details { align-self: center; font-style: normal; }
.contact__details div { padding: 24px 0; border-bottom: 1px solid var(--border); }
.contact__details div:first-child { padding-top: 0; }
.contact__details span { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 13px; }
.contact__details p { margin: 0; }
.contact__details a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.final-cta__layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 64px; }
.final-cta h2 { max-width: 740px; font-size: clamp(30px, 3vw, 40px); }
.final-cta p { max-width: 620px; margin: 24px 0 0; color: var(--text-muted); }
.site-footer { padding-block: 48px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.footer__main { display: flex; justify-content: space-between; gap: 40px; }
.footer__identity p { margin: 0 0 8px; color: var(--text-muted); font-size: 13px; }
.footer__identity p:first-child { color: var(--text); font-family: var(--font-display); font-size: 20px; }
.footer__links { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 14px; text-underline-offset: 4px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer__bottom p { margin: 0; color: var(--text-muted); font-size: 12px; }
.footer__bottom a { text-underline-offset: 4px; }
.contact__details a:hover, .site-footer a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
/* A cor da linha e dos estados vem do mesmo accent em ambos os temas.
   O texto permanece legível inclusive com o accent marrom no tema escuro. */
.journey__item.is-reached .journey__number { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.text-link:hover, .practice__item:hover h3 { color: var(--text); }
.practice__item:hover { border-top-color: var(--accent); }
a, p, dd, .brand__name, .brand__office { overflow-wrap: anywhere; }
.hero h1 { overflow-wrap: anywhere; }
.contact__layout > *, .differences__layout > *, .footer__main > * { min-width: 0; }

@media (max-width: 900px) {
  .hero .hero__layout { grid-template-columns: 1fr; }
  .hero__content { max-width: none; padding-top: 64px; }
  .hero__media { min-height: 0; height: 620px; }
  .hero__media img { object-position: center 35%; }
  .differences__layout { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 767px) {
  .contact__layout, .final-cta__layout { grid-template-columns: 1fr; gap: 40px; }
  .contact__actions { align-items: flex-start; flex-direction: column; }
  .contact__actions .button { width: 100%; }
  .final-cta .button { justify-self: start; }
  .footer__main { flex-direction: column; gap: 28px; }
  .differences__item { grid-template-columns: 24px minmax(0, 1fr); gap: 12px 16px; }
}

@media (max-width: 1120px) {
  .primary-nav {
    gap: 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
    gap: 48px;
  }
}

@media (max-width: 1120px) {
  :root {
    --header-height: 68px;
  }

  .menu-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    z-index: 40;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: min(88vw, 420px);
    align-items: stretch;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px var(--page-gutter) 32px;
    border-left: 1px solid var(--border);
    background: var(--surface);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 300ms cubic-bezier(.4, 0, .2, 1), visibility 300ms;
  }

  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
  }

  .nav-links a::after {
    display: none;
  }

  .primary-nav .button {
    width: 100%;
  }

  .hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(40px, 5vw, 52px);
  }
}

@media (max-width: 767px) {
  :root {
    --page-gutter: 20px;
  }

  .brand__office {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
    padding-inline: 0;
  }

  .hero__content {
    max-width: none;
    padding: 64px var(--page-gutter) 48px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 50px);
    line-height: 1.1;
  }

  .hero .hero__name {
    font-size: clamp(40px, 10vw, 48px);
  }

  .hero__positioning {
    margin-top: 24px;
    font-size: 20px;
  }

  .hero__description {
    margin-top: 12px;
    font-size: 16px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    margin-top: 32px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .text-link {
    align-self: flex-start;
  }

  .hero__credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
    padding-top: 0;
  }

  .hero__credentials div {
    min-width: 0;
  }

  .hero__media {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .hero__media figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero__credentials {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Retrato em tela cheia. A sombra sobre a fotografia garante a leitura,
   independentemente do tema da página. A imagem continua vindo do config.js. */
.hero--portrait {
  position: relative;
  isolation: isolate;
  background: #171715;
  color: #FFFFFF;
  min-height: 100svh;
}
.hero--portrait .hero__media {
  position: absolute;
  inset: var(--header-height) 0 0;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  z-index: -1;
  background: #171715;
}
.hero--portrait .hero__media img { object-position: 50% 24%; }
.hero--portrait .hero__media::after {
  border: 0;
  background: linear-gradient(90deg, rgb(12 12 11 / 82%) 0%, rgb(12 12 11 / 58%) 45%, rgb(12 12 11 / 12%) 100%);
}
.hero--portrait .hero__media figcaption { position: absolute; padding: 0; }
.hero--portrait .hero__layout {
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header-height));
  padding-inline: var(--page-gutter);
}
.hero--portrait .hero__content {
  max-width: 620px;
  padding: clamp(120px, 22vh, 240px) 0 clamp(48px, 8vh, 88px);
}
.hero--portrait .hero__name {
  max-width: 560px;
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.06;
  text-wrap: balance;
}
.hero__identity { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 0; font-size: 12px; color: #E1DED7; }
.hero--portrait .hero__positioning { max-width: 360px; margin-top: 32px; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: #E1DED7; }
.hero--portrait .hero__actions { margin-top: 28px; gap: 24px; }
.hero--portrait .hero__actions .button { border-color: #FFFFFF; background: #FFFFFF; color: #161616; border-radius: 0; }
.hero--portrait .hero__actions .button:hover { background: #E1DED7; border-color: #E1DED7; }
.hero--portrait .hero__actions .text-link { width: auto; padding: 12px 20px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 0; color: #FFFFFF; background: transparent; font-weight: 500; text-decoration: none; }
.hero--portrait .hero__actions .text-link:hover { background: rgb(255 255 255 / 12%); border-color: #FFFFFF; }
.hero--portrait a:focus-visible { outline-color: #FFFFFF; box-shadow: 0 0 0 2px #161616; }
@media (max-width: 767px) {
  .hero--portrait .hero__media img { object-position: 60% 20%; }
  .hero--portrait .hero__media::after { background: linear-gradient(0deg, rgb(12 12 11 / 95%) 0%, rgb(12 12 11 / 75%) 45%, rgb(12 12 11 / 12%) 85%); }
  .hero--portrait .hero__content { padding: 280px 0 36px; }
  .hero--portrait .hero__name { max-width: 360px; font-size: clamp(42px, 11vw, 56px); }
  .hero--portrait .hero__identity { gap: 6px 16px; margin-top: 16px; font-size: 11px; }
  .hero--portrait .hero__positioning { margin-top: 24px; font-size: 15px; max-width: 320px; }
  .hero--portrait .hero__actions { align-items: flex-start; gap: 8px; margin-top: 24px; }
  .hero--portrait .hero__actions .button { width: auto; }
}

/* Navbar centralizada: colunas laterais iguais mantêm a marca no centro real. */
.site-header { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-shell { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
.site-header .brand { grid-column: 2; grid-row: 1; justify-self: center; position: relative; }
.site-header .brand__name { font-size: 22px; letter-spacing: -0.06em; }
.site-header .brand::before {
  content: ""; position: absolute; right: calc(100% + 10px); top: calc(50% - 5px);
  width: 10px; height: 10px; border-radius: 3px; background: var(--accent);
  transform: rotate(45deg); transition: transform 300ms ease;
}
.site-header .brand:hover::before { transform: rotate(135deg); }
.primary-nav { display: contents; }
.primary-nav > .nav-links { grid-column: 1; grid-row: 1; justify-self: start; }
.nav-right { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 24px; }
.nav-links { gap: 24px; }
.nav-links a { letter-spacing: 0.005em; }
.nav-ghost { border-radius: 0; border-color: var(--border); background: transparent; color: var(--text); white-space: nowrap; font-weight: 500; }
.nav-ghost:hover { border-color: var(--accent); color: var(--text); transform: none; }
.nav-mobile-cta { display: none; }
.site-header .brand.brand--with-logo::before { display: none; }
.site-header .brand--with-logo .brand__name { display: none; }
.brand__logo { width: 56px; height: 56px; object-fit: contain; }
.footer__logo { width: 72px; height: 72px; object-fit: contain; margin-bottom: 20px; }
.brand__logo[hidden], .footer__logo[hidden] { display: none; }
@media (max-width: 1120px) {
  .brand__logo { width: 44px; height: 44px; }
}

/* Ticker: duas metades idênticas, fade por máscara compatível com ambos os temas. */
.logo-ticker { padding-block: 28px 16px; border-top: 1px solid var(--border); background: var(--background); }
.logo-ticker[hidden] { display: none; }
.logo-ticker__heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo-ticker__heading h2 { margin: 0; font-size: 12px; font-weight: 400; color: var(--text-muted); }
.logo-ticker__toggle { border: 0; padding: 12px; background: var(--surface); color: var(--text); font-size: 12px; cursor: pointer; text-decoration: none; flex-shrink: 0; }
.logo-ticker__viewport {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logo-ticker__track { display: flex; width: max-content; animation: ticker-loop var(--ticker-duration, 32s) linear infinite; }
.logo-ticker__group {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: space-around;
  gap: 64px; min-width: calc(min(100vw, 1400px) - var(--page-gutter) * 2);
  margin: 0; padding: 24px 32px; list-style: none;
}
.logo-ticker__group li { min-width: 144px; text-align: center; color: var(--text-muted); font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.06em; white-space: nowrap; }
.logo-ticker__group li:nth-child(3n + 2) { font-size: 20px; font-weight: 500; letter-spacing: 0.12em; }
.logo-ticker__group li:nth-child(3n) { font-family: Georgia, serif; font-style: italic; font-size: 34px; }
.logo-ticker__group img { width: 144px; height: 48px; object-fit: contain; }
.logo-ticker:hover .logo-ticker__track,
.logo-ticker:focus-within .logo-ticker__track,
.logo-ticker.is-paused .logo-ticker__track { animation-play-state: paused; }
@keyframes ticker-loop { to { transform: translateX(-50%); } }

@media (max-width: 1120px) {
  :root { --header-height: 60px; }
  /* Backdrop-filter cria um containing block para descendentes fixos.
     Sem ele, o painel usa a altura da janela, e não os 60px do header. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .nav-shell { position: relative; display: flex; justify-content: space-between; gap: 12px; }
  .site-header .brand { position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 216px); }
  .site-header .brand__name { font-size: clamp(12px, 3.5vw, 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-header .brand::before { width: 8px; height: 8px; top: calc(50% - 4px); right: calc(100% + 8px); }
  .nav-mobile-cta { display: inline-flex; min-height: 44px; padding: 8px 12px; font-size: 12px; }
  .primary-nav {
    display: flex; inset: var(--header-height) 0 0; width: 100%;
    padding: 24px var(--page-gutter) max(24px, env(safe-area-inset-bottom));
    border-left: 0; border-top: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; }
  .primary-nav > .nav-links { align-self: stretch; }
  .nav-right { display: flex; align-items: stretch; flex-direction: column; flex: 1; gap: 24px; }
  .nav-right .nav-ghost { display: inline-flex; margin-top: auto; min-height: 52px; flex-shrink: 0; }
  .nav-right > .nav-links { width: 100%; }
  .menu-open .nav-mobile-cta { visibility: hidden; }
  .primary-nav { justify-content: flex-start; gap: 0; }
  .nav-links { gap: 0; }
  .logo-ticker__group { gap: 32px; padding-inline: 16px; }
}

/* Botões: acabamento sóbrio e distinção entre ações principais e secundárias. */
.button {
  min-height: 48px; padding: 12px 20px; border-radius: 0;
  letter-spacing: 0.01em; font-weight: 500; text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition);
}
.button:not(.nav-ghost):hover {
  background: color-mix(in srgb, var(--accent) 92%, var(--text));
  color: var(--on-accent); transform: none;
}
.button:active { transform: none; filter: brightness(0.94); }
.button--small { min-height: 44px; padding: 10px 16px; font-size: 12px; }
.nav-ghost { border-radius: 0; font-weight: 500; }
.nav-ghost:hover { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-color: var(--accent); }
.hero__actions .text-link, .contact__actions .text-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 20px; border: 1px solid var(--border);
  border-radius: 0; line-height: 1.25; text-align: center; text-decoration: none; font-weight: 500;
  transition: border-color var(--transition), background-color var(--transition);
}
.hero__actions .text-link:hover, .contact__actions .text-link:hover {
  border-color: var(--accent); background: var(--surface);
}
.menu-toggle { border: 1px solid var(--border); border-radius: 0; flex-shrink: 0; }
.nav-links a::after { display: none; }
.menu-toggle[aria-expanded="true"] { border-color: var(--accent); }
@media (max-width: 767px) {
  .hero__actions, .contact__actions { gap: 12px; }
  .hero__actions .text-link, .contact__actions .text-link { width: 100%; }
  .final-cta .button { width: 100%; }
  .nav-mobile-cta { padding-inline: 12px; }
}
@media (max-width: 430px) {
  .logo-ticker__heading { align-items: flex-start; }
  .logo-ticker__heading h2 { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-ticker__track { animation: none; width: 100%; }
  .logo-ticker__group { min-width: 0; width: 100%; flex-wrap: wrap; gap: 24px; }
  .logo-ticker__group[aria-hidden="true"], .logo-ticker__toggle { display: none; }
  .logo-ticker__viewport { mask-image: none; -webkit-mask-image: none; }
  .site-header .brand:hover::before { transform: rotate(45deg); }
}
