/**
 * Header premium — mega menu, trust strip, news ticker, CTAs
 * v13 — faixa de notícias RSS
 */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.header-shell {
  transition:
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.header-bar {
  position: relative;
  z-index: 5;
  background: oklch(1 0 0 / 92%);
  border-bottom: 1px solid var(--border, oklch(0.92 0.01 250));
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.header-shell--scrolled .header-bar {
  background: oklch(1 0 0 / 97%);
  box-shadow: 0 4px 24px oklch(0.2 0.04 250 / 0.08);
}

.header-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 4rem;
}

@media (min-width: 1024px) {
  .header-bar-inner {
    height: 4.25rem;
    gap: 1rem;
  }
}

.header-logo {
  display: block;
  height: 3.125rem;
  width: auto;
  max-width: 228px;
  object-fit: contain;
  transition: height 0.25s ease, max-width 0.25s ease;
}

.header-shell--scrolled .header-logo {
  height: 2.875rem;
  max-width: 208px;
}

.header-logo--mobile {
  height: 3rem;
  max-width: 200px;
}

/* Nav desktop */
.header-nav {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 0.25rem;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .header-nav {
    padding: 0 0.5rem;
  }
}

.header-nav-rail {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  max-width: 100%;
  padding: 0 0 0.2rem;
  border: none;
  background: transparent;
  box-shadow: none;
}

.header-nav .nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.72rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-foreground, oklch(0.46 0.02 250));
  border-radius: calc(var(--radius-sm, 0.25rem) - 1px);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

@media (min-width: 1280px) {
  .header-nav-rail {
    gap: 0.35rem;
  }

  .header-nav .nav-link {
    padding: 0.55rem 0.82rem;
    font-size: 0.84375rem;
  }
}

.nav-link-label {
  line-height: 1.2;
}

.nav-link-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.header-nav .nav-link:hover .nav-link-icon,
.header-nav .nav-link-active .nav-link-icon,
.header-nav .nav-link--mega[aria-expanded="true"] .nav-link-icon {
  opacity: 1;
  color: var(--secondary, oklch(0.5 0.14 155));
}

.header-nav-divider {
  width: 1px;
  height: 1.25rem;
  margin: 0 0.15rem;
  background: oklch(0.88 0.01 250);
  flex-shrink: 0;
}

.header-nav-hint {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 30;
  max-width: 14rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: center;
  color: oklch(0.99 0.02 155);
  background: oklch(0.46 0.14 155);
  border: 1px solid oklch(0.55 0.14 155);
  border-radius: var(--radius-sm, 0.25rem);
  box-shadow: 0 6px 18px oklch(0.38 0.12 155 / 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(-0.2rem);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.header-nav-hint::before {
  content: "";
  position: absolute;
  top: -0.3rem;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  background: oklch(0.46 0.14 155);
  border-top: 1px solid oklch(0.55 0.14 155);
  border-left: 1px solid oklch(0.55 0.14 155);
  transform: translateX(-50%) rotate(45deg);
}

.header-nav-hint.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.header-nav-hint[hidden] {
  display: block;
}

.header-shell--scrolled .header-nav .nav-link {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.header-nav .nav-link:hover,
.header-nav .nav-link--mega[aria-expanded="true"] {
  color: var(--primary, oklch(0.3 0.08 250));
  background: transparent;
  border-color: transparent;
}

.header-nav .nav-link:focus-visible {
  outline: 2px solid var(--secondary, oklch(0.55 0.14 155));
  outline-offset: 2px;
}

.header-nav .nav-link-active {
  color: var(--primary, oklch(0.26 0.08 250));
  font-weight: 600;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* site.css legado: .nav-link-active::after — evita linha dupla com o indicador */
.header-nav .nav-link-active::after,
.header-nav .nav-link--mega.nav-link-active::after {
  display: none;
  content: none;
}

.nav-link--featured {
  margin-left: 0.1rem;
  padding-left: 0.85rem;
  border-left: 2px solid oklch(0.55 0.14 155 / 0.32);
}

.nav-link--featured:hover,
.nav-link--featured.nav-link-active,
.nav-link--featured.nav-link--mega[aria-expanded="true"] {
  border-left-color: var(--secondary, oklch(0.55 0.14 155));
}

.nav-link--featured.nav-link-active {
  color: oklch(0.26 0.09 155);
}

.nav-link-chevron {
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0.55;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-link--mega:hover .nav-link-chevron,
.nav-link--mega[aria-expanded="true"] .nav-link-chevron {
  opacity: 0.9;
}

.nav-link--mega[aria-expanded="true"] .nav-link-chevron {
  transform: rotate(180deg);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary, oklch(0.48 0.14 155));
  background: oklch(0.55 0.14 155 / 0.1);
  border: 1px solid oklch(0.55 0.14 155 / 0.28);
  border-radius: var(--radius-sm, 0.25rem);
}

.nav-link--featured.nav-link-active .nav-badge {
  background: oklch(0.55 0.14 155 / 0.16);
  border-color: oklch(0.55 0.14 155 / 0.4);
}

/* Indicador — linha inferior (sem caixa) */
.header-nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary, oklch(0.55 0.14 155));
  border: none;
  border-radius: 0;
  pointer-events: none;
  opacity: 0;
  box-shadow: none;
  transition:
    left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.18s ease;
  z-index: 0;
}

.header-nav-indicator.is-visible {
  opacity: 1;
}

.header-shell--mega-open .header-bar {
  z-index: 6;
  border-bottom-color: oklch(0.55 0.14 155 / 0.22);
  box-shadow: 0 8px 28px oklch(0.2 0.04 250 / 0.06);
}

.header-shell--mega-open .header-trust {
  z-index: 0;
}

.header-mega-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 4.25rem;
  z-index: 1;
  background: oklch(0.28 0.08 250 / 0.22);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.header-mega-backdrop:not([hidden]) {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.header-mega-backdrop[hidden] {
  display: none;
}

/* Mega menu */
.header-nav-mega {
  position: relative;
  z-index: 20;
}

.header-nav-mega::after {
  content: "";
  position: absolute;
  left: -0.5rem;
  right: -0.5rem;
  top: 100%;
  height: 0.75rem;
}

.header-mega-panel {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  z-index: 25;
  width: min(36rem, calc(100vw - 2rem));
  padding: 0;
  background: var(--background, #fff);
  border: 1px solid var(--border, oklch(0.92 0.01 250));
  border-radius: var(--radius-sm, 0.25rem);
  box-shadow:
    0 1px 0 oklch(0.55 0.14 155 / 0.4) inset,
    0 24px 56px oklch(0.2 0.04 250 / 0.18);
  overflow: hidden;
}

@media (min-width: 1280px) {
  .header-mega-panel {
    width: min(44rem, calc(100vw - 3rem));
  }
}

.header-mega-caret {
  position: absolute;
  top: -0.45rem;
  left: 1.35rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--background, #fff);
  border-top: 1px solid var(--border, oklch(0.92 0.01 250));
  border-left: 1px solid var(--border, oklch(0.92 0.01 250));
  transform: rotate(45deg);
  pointer-events: none;
}

.header-mega-panel:not([hidden]) {
  animation: header-mega-in 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes header-mega-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-mega-panel[hidden] {
  display: none;
}

.header-mega-inner {
  display: grid;
  grid-template-columns: minmax(10rem, 11.25rem) 1fr;
  gap: 0;
}

.header-mega-aside {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem 1rem;
  background: linear-gradient(165deg, oklch(0.3 0.085 250) 0%, oklch(0.26 0.08 250) 100%);
  color: oklch(1 0 0 / 0.88);
}

.header-mega-kicker {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.75 0.12 155);
}

.header-mega-lead {
  margin: 0;
  flex: 1;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: oklch(1 0 0 / 0.72);
}

.header-mega-aside-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding: 0.5rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: oklch(1 0 0 / 0.95);
  text-decoration: none;
  border: 1px solid oklch(1 0 0 / 18%);
  border-radius: var(--radius-sm, 0.25rem);
  background: oklch(1 0 0 / 6%);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.header-mega-aside-cta:hover {
  background: oklch(0.55 0.14 155 / 0.22);
  border-color: oklch(0.55 0.14 155 / 0.45);
  color: #fff;
}

.header-mega-trust {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.header-mega-trust li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.625rem;
  line-height: 1.35;
  color: oklch(1 0 0 / 0.78);
}

.header-mega-trust i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: oklch(0.75 0.12 155);
}

.header-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.85rem;
  background: oklch(0.975 0.006 250);
}

.header-mega-points {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.header-mega-points li {
  position: relative;
  padding-left: 0.65rem;
  font-size: 0.6rem;
  line-height: 1.35;
  color: var(--muted-foreground, oklch(0.48 0.02 250));
}

.header-mega-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background: var(--secondary, oklch(0.55 0.14 155));
}

.header-mega-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.85rem 0.9rem 0.8rem;
  min-height: 100%;
  text-decoration: none;
  border: 1px solid var(--border, oklch(0.92 0.01 250));
  border-radius: var(--radius-sm, 0.25rem);
  background: var(--background, #fff);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.2s ease;
}

.header-mega-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: oklch(0.3 0.08 250 / 0.2);
  border-radius: var(--radius-sm, 0.25rem) var(--radius-sm, 0.25rem) 0 0;
}

.header-mega-card:hover {
  border-color: oklch(0.55 0.14 155 / 0.45);
  box-shadow: 0 10px 24px oklch(0.2 0.04 250 / 0.1);
  transform: translateY(-1px);
}

.header-mega-card:hover .header-mega-cta i {
  transform: translateX(3px);
}

.header-mega-card--accent::before {
  background: var(--secondary, oklch(0.55 0.14 155));
}

.header-mega-card--accent {
  background: oklch(0.99 0.02 155 / 0.55);
  border-color: oklch(0.55 0.14 155 / 0.28);
}

.header-mega-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.header-mega-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary, oklch(0.3 0.08 250));
  background: var(--muted, oklch(0.96 0.01 250));
  border: 1px solid var(--border, oklch(0.92 0.01 250));
  border-radius: var(--radius-sm, 0.25rem);
}

.header-mega-card--accent .header-mega-icon {
  color: var(--secondary, oklch(0.48 0.14 155));
  background: oklch(0.55 0.14 155 / 0.12);
  border-color: oklch(0.55 0.14 155 / 0.25);
}

.header-mega-index {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted-foreground, oklch(0.5 0.02 250));
}

.header-mega-metric {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--primary, oklch(0.3 0.08 250));
}

.header-mega-title {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary, oklch(0.3 0.08 250));
}

.header-mega-subtitle {
  font-size: 0.625rem;
  line-height: 1.35;
  color: var(--muted-foreground, oklch(0.5 0.02 250));
}

.header-mega-audience {
  font-size: 0.5625rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted-foreground, oklch(0.55 0.02 250));
}

.header-mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--secondary, oklch(0.5 0.14 155));
}

.header-mega-cta i {
  transition: transform 0.2s ease;
}

.header-mega-card:focus-visible {
  outline: 2px solid var(--secondary, oklch(0.55 0.14 155));
  outline-offset: 2px;
}

.header-mega-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--background, #fff);
  border-top: 1px solid var(--border, oklch(0.92 0.01 250));
}

.header-mega-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-foreground, oklch(0.5 0.02 250));
}

.header-mega-foot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.header-mega-foot-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-mega-foot-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--primary, oklch(0.3 0.08 250));
  text-decoration: none;
  border: 1px solid var(--border, oklch(0.92 0.01 250));
  border-radius: var(--radius-sm, 0.25rem);
  background: var(--muted, oklch(0.97 0.005 250));
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
}

.header-mega-foot-wa:hover {
  color: var(--secondary, oklch(0.48 0.14 155));
  border-color: oklch(0.55 0.14 155 / 0.4);
  background: oklch(0.99 0.02 155 / 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .header-nav-indicator,
  .header-nav-hint,
  .header-mega-backdrop {
    transition: opacity 0.15s ease;
  }

  .header-mega-panel:not([hidden]) {
    animation: none;
  }

  .header-mega-card:hover {
    box-shadow: none;
    transform: none;
  }

  .header-mega-card:hover .header-mega-cta i {
    transform: none;
  }
}

/* Ações */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .header-actions::before {
    content: "";
    width: 1px;
    height: 1.75rem;
    margin-right: 0.35rem;
    background: oklch(0.9 0.01 250);
  }
}

@media (min-width: 640px) {
  .header-actions {
    gap: 0.5rem;
  }
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm, 0.25rem);
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
  color: var(--primary, oklch(0.3 0.08 250));
}

.header-phone:hover {
  color: var(--secondary, oklch(0.55 0.14 155));
  background: oklch(0.97 0.005 250 / 80%);
}

.header-cta-desktop {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .header-cta-desktop {
    display: inline-flex;
  }
}

.header-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--primary, oklch(0.3 0.08 250));
  background: var(--muted, oklch(0.97 0.005 250));
  border: 1px solid var(--border, oklch(0.92 0.01 250));
  border-radius: var(--radius-sm, 0.25rem);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
}

.header-menu-btn:hover {
  border-color: oklch(0.55 0.14 155 / 0.45);
  color: var(--secondary, oklch(0.55 0.14 155));
  background: oklch(0.98 0.02 155 / 0.35);
}

.header-menu-btn[aria-expanded="true"] {
  border-color: oklch(0.55 0.14 155 / 0.5);
  color: var(--secondary, oklch(0.5 0.14 155));
  background: oklch(0.55 0.14 155 / 0.12);
}

/* Atalhos mobile — telefone e WhatsApp */
.header-quick-action {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm, 0.25rem);
  border: 1px solid var(--border, oklch(0.92 0.01 250));
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

@media (max-width: 1023px) {
  .header-quick-action {
    display: inline-flex;
  }
}

.header-quick-action--phone {
  color: var(--primary, oklch(0.3 0.08 250));
  background: var(--muted, oklch(0.97 0.005 250));
}

.header-quick-action--phone:hover {
  border-color: oklch(0.55 0.14 155 / 0.45);
  color: var(--secondary, oklch(0.5 0.14 155));
}

.header-quick-action:focus-visible {
  outline: 2px solid var(--secondary, oklch(0.55 0.14 155));
  outline-offset: 2px;
}

@media (min-width: 1280px) {
  .header-phone {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  #mobile-overlay,
  #mobile-nav {
    display: none !important;
  }
}

/* Trust strip — abaixo da barra e do mega (z-index menor) */
.header-trust {
  position: relative;
  z-index: 1;
  overflow: visible;
  max-height: 0;
  opacity: 0;
  background: oklch(0.28 0.08 250);
  border-bottom: 1px solid oklch(1 0 0 / 8%);
  transition:
    max-height 0.3s ease,
    opacity 0.25s ease;
}

/* Notícias: sempre visível (não depende do scroll) */
.header-trust.header-trust--news {
  max-height: 2.85rem;
  opacity: 1;
}

.header-shell--scrolled .header-trust {
  max-height: 3rem;
  opacity: 1;
}

.header-shell--scrolled .header-trust.header-trust--news {
  max-height: 2.85rem;
}

@media (max-width: 639px) {
  .header-trust.header-trust--news {
    max-height: 3.35rem;
  }

  .header-shell--scrolled .header-trust {
    max-height: 3.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .header-shell--scrolled .header-trust.header-trust--news {
    max-height: 3.35rem;
    overflow-x: visible;
    overflow-y: hidden;
  }

  .header-trust.header-trust--news {
    overflow-x: visible;
  }

  .header-shell--scrolled .header-trust::-webkit-scrollbar {
    display: none;
  }

  .header-trust .max-w-7xl {
    padding-right: 0.5rem;
  }
}

@media (min-width: 640px) {
  .header-shell--scrolled .header-trust {
    max-height: 2.75rem;
  }
}

.header-trust .max-w-7xl {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.header-trust-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.header-trust-list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .header-trust-list {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 0.45rem 0;
  }
}

.header-trust-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.75);
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .header-trust-list li {
    white-space: normal;
    scroll-snap-align: unset;
  }
}

.header-trust-list li::before {
  content: "";
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--secondary, oklch(0.55 0.14 155));
  flex-shrink: 0;
}

.header-trust-list li:first-child::before {
  display: none;
}

@media (min-width: 640px) {
  .header-trust-list li::before {
    display: block;
  }

  .header-trust-list li:first-child::before {
    display: none;
  }
}

/* News ticker (RSS) */
.header-trust__bar {
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.header-news-ticker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  padding: 0.4rem 0;
}

.header-news-ticker:focus {
  outline: none;
}

.header-news-ticker:focus-visible {
  outline: 2px solid oklch(0.55 0.14 155 / 55%);
  outline-offset: 2px;
  border-radius: 0.2rem;
}

.header-news-ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.78 0.16 25);
}

.header-news-ticker__pulse {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: oklch(0.58 0.22 25);
  box-shadow: 0 0 0 0 oklch(0.58 0.22 25 / 0.55);
  animation: header-news-pulse 2.2s ease-out infinite;
}

@keyframes header-news-pulse {
  0% {
    box-shadow: 0 0 0 0 oklch(0.58 0.22 25 / 0.55);
  }

  70% {
    box-shadow: 0 0 0 0.35rem oklch(0.58 0.22 25 / 0);
  }

  100% {
    box-shadow: 0 0 0 0 oklch(0.58 0.22 25 / 0);
  }
}

.header-news-ticker__controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.header-news-ticker__nav-group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.15rem;
  padding: 0.12rem;
  background: oklch(1 0 0 / 6%);
  border: 1px solid oklch(1 0 0 / 14%);
  border-radius: 0.25rem;
}

.header-news-ticker__nav-group .header-news-ticker__nav {
  width: 1.4rem;
  height: 1.4rem;
  background: transparent;
  border: none;
}

.header-news-ticker__nav-group .header-news-ticker__nav:hover,
.header-news-ticker__nav-group .header-news-ticker__nav:focus-visible {
  background: oklch(0.55 0.14 155 / 22%);
}

.header-news-ticker__counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0 0.15rem;
  font-size: 0.5625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: oklch(1 0 0 / 0.72);
  user-select: none;
}

.header-news-ticker__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  color: oklch(1 0 0 / 0.85);
  background: oklch(1 0 0 / 10%);
  border: 1px solid oklch(1 0 0 / 22%);
  border-radius: 0.2rem;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.header-news-ticker__nav-icon {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

.header-news-ticker__nav:hover,
.header-news-ticker__nav:focus-visible {
  color: #fff;
  background: oklch(0.55 0.14 155 / 22%);
  border-color: oklch(0.55 0.14 155 / 45%);
}

.header-news-ticker__nav:focus-visible {
  outline: 2px solid var(--secondary, oklch(0.55 0.14 155));
  outline-offset: 1px;
}

.header-news-ticker__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.header-news-ticker__viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 1.35rem;
}

@media (min-width: 640px) {
  .header-news-ticker__viewport {
    height: 1.25rem;
  }
}

.header-news-ticker__track {
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-news-ticker__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  margin: 0;
  opacity: 0;
  transform: translateY(0.35rem);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.header-news-ticker__item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-news-ticker__link {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: oklch(1 0 0 / 0.88);
  cursor: pointer;
  transition: color 0.15s ease;
}

.header-news-ticker__link--bullet {
  cursor: default;
}

.header-news-ticker__link:hover,
.header-news-ticker__link:focus-visible {
  color: #fff;
}

.header-news-ticker__link:focus-visible {
  outline: 2px solid var(--secondary, oklch(0.55 0.14 155));
  outline-offset: 2px;
  border-radius: 2px;
}

.header-news-ticker__title {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .header-news-ticker__title {
    font-size: 0.65625rem;
  }
}

.header-news-ticker__source {
  flex-shrink: 0;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.45);
}

@media (max-width: 479px) {
  .header-news-ticker__source {
    display: none;
  }

  .header-news-ticker__label-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .header-news-ticker__label {
    min-width: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-news-ticker__pulse {
    animation: none;
  }

  .header-news-ticker__item {
    transition: opacity 0.2s ease;
    transform: none;
  }

  .header-news-ticker__item.is-active {
    transform: none;
  }
}

/* Modal de manchete */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.news-modal.u-hidden,
.news-modal[hidden] {
  display: none !important;
}

.news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0.2 0.04 250 / 0.55);
  backdrop-filter: blur(3px);
}

.news-modal__panel {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--background, #fff);
  border: 1px solid var(--border, oklch(0.92 0.01 250));
  border-radius: var(--radius-sm, 0.25rem);
  box-shadow: 0 24px 48px oklch(0.2 0.04 250 / 0.2);
}

.news-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border, oklch(0.92 0.01 250));
  border-radius: var(--radius-sm, 0.25rem);
  background: var(--muted, oklch(0.97 0.005 250));
  color: var(--primary, oklch(0.3 0.08 250));
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.news-modal__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.55 0.2 25);
}

.news-modal__live {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: oklch(0.58 0.22 25);
  animation: header-news-pulse 2.2s ease-out infinite;
}

.news-modal__title {
  margin: 0 0 0.5rem;
  padding-right: 2rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--primary, oklch(0.28 0.08 250));
}

.news-modal__source {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground, oklch(0.5 0.02 250));
}

.news-modal__lead {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted-foreground, oklch(0.48 0.02 250));
}

.news-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Mobile drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: oklch(0.28 0.08 250 / 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(100%, 24rem);
  background: var(--background, #fff);
  border-left: 1px solid var(--border, oklch(0.92 0.01 250));
  box-shadow: -12px 0 40px oklch(0.2 0.04 250 / 0.14);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.translate-x-0 {
  transform: translateX(0);
}

.mobile-drawer.translate-x-full {
  transform: translateX(100%);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem;
  height: 4rem;
  background: oklch(0.28 0.08 250);
  border-bottom: 2px solid var(--secondary, oklch(0.55 0.14 155));
  flex-shrink: 0;
}

.mobile-drawer-head .header-menu-btn {
  color: oklch(1 0 0 / 0.92);
  background: oklch(1 0 0 / 8%);
  border-color: oklch(1 0 0 / 22%);
}

.mobile-drawer-head .header-menu-btn:hover {
  color: #fff;
  background: oklch(0.55 0.14 155 / 0.25);
  border-color: oklch(0.55 0.14 155 / 0.5);
}

.mobile-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-section {
  padding: 1rem;
}

.mobile-drawer-section + .mobile-drawer-section {
  padding-top: 0.65rem;
}

.mobile-drawer-section-head {
  margin-bottom: 0.65rem;
}

.mobile-drawer-eyebrow {
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground, oklch(0.5 0.02 250));
}

.mobile-drawer-lead {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted-foreground, oklch(0.48 0.02 250));
}

.mobile-drawer-pillars {
  background: var(--muted, oklch(0.97 0.005 250));
  border-bottom: 1px solid var(--border, oklch(0.92 0.01 250));
  padding-bottom: 1rem;
}

.mobile-drawer-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

@media (max-width: 399px) {
  .mobile-drawer-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-pillar-card {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.7rem 0.75rem;
  text-decoration: none;
  background: var(--background, #fff);
  border: 1px solid var(--border, oklch(0.92 0.01 250));
  border-radius: var(--radius-sm, 0.25rem);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.mobile-pillar-card:active {
  border-color: oklch(0.55 0.14 155 / 0.4);
}

.mobile-pillar-card--accent {
  border-color: oklch(0.55 0.14 155 / 0.35);
  background: oklch(0.99 0.02 155 / 0.45);
}

.mobile-pillar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.1rem;
}

.mobile-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary, oklch(0.3 0.08 250));
  background: var(--muted, oklch(0.96 0.01 250));
  border: 1px solid var(--border, oklch(0.92 0.01 250));
  border-radius: var(--radius-sm, 0.25rem);
}

.mobile-pillar-card--accent .mobile-pillar-icon {
  color: var(--secondary, oklch(0.48 0.14 155));
  background: oklch(0.55 0.14 155 / 0.12);
}

.mobile-pillar-index {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-foreground, oklch(0.5 0.02 250));
}

.mobile-pillar-metric {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--primary, oklch(0.3 0.08 250));
}

.mobile-pillar-title {
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary, oklch(0.3 0.08 250));
}

.mobile-pillar-audience {
  font-size: 0.5625rem;
  line-height: 1.3;
  color: var(--muted-foreground, oklch(0.5 0.02 250));
}

.mobile-drawer-servicos-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary, oklch(0.3 0.08 250));
  text-decoration: none;
  background: var(--background, #fff);
  border: 1px solid var(--border, oklch(0.92 0.01 250));
  border-radius: var(--radius-sm, 0.25rem);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.mobile-drawer-servicos-link:hover,
.mobile-drawer-servicos-link.mobile-nav-link-active {
  color: var(--primary, oklch(0.28 0.08 250));
  background: oklch(0.98 0.02 155 / 0.5);
  border-color: oklch(0.55 0.14 155 / 0.35);
}

.mobile-drawer-nav {
  padding-top: 0.25rem;
  padding-bottom: 1.25rem;
}

.mobile-drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-drawer-nav .mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.8rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary, oklch(0.32 0.06 250));
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 0.25rem);
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.mobile-nav-link--with-icon .mobile-nav-link__text {
  flex: 1;
  min-width: 0;
}

.mobile-nav-link__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: var(--primary, oklch(0.32 0.06 250));
  background: var(--muted, oklch(0.97 0.005 250));
  border: 1px solid var(--border, oklch(0.92 0.01 250));
  border-radius: var(--radius-sm, 0.25rem);
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.mobile-nav-link__text {
  display: block;
  line-height: 1.25;
}

.mobile-nav-link__chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.mobile-drawer-nav .mobile-nav-link:hover,
.mobile-drawer-nav .mobile-nav-link-active,
.mobile-drawer-pillars .mobile-pillar-card:hover,
.mobile-drawer-pillars .mobile-pillar-card.mobile-nav-link-active {
  color: var(--primary, oklch(0.28 0.08 250));
  background: oklch(0.98 0.02 155 / 0.5);
  border-color: oklch(0.55 0.14 155 / 0.25);
  font-weight: 600;
}

.mobile-drawer-nav .mobile-nav-link:hover .mobile-nav-link__icon-wrap,
.mobile-drawer-nav .mobile-nav-link-active .mobile-nav-link__icon-wrap {
  color: var(--secondary, oklch(0.48 0.14 155));
  background: oklch(0.55 0.14 155 / 0.12);
  border-color: oklch(0.55 0.14 155 / 0.35);
}

.mobile-drawer-nav .mobile-nav-link:hover .mobile-nav-link__chevron,
.mobile-drawer-nav .mobile-nav-link-active .mobile-nav-link__chevron {
  opacity: 0.85;
  transform: translateX(2px);
}

.mobile-drawer-foot {
  flex-shrink: 0;
  padding: 1rem;
  border-top: 1px solid var(--border, oklch(0.92 0.01 250));
  background: oklch(0.28 0.08 250);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.mobile-drawer-foot .btn-outline {
  color: oklch(1 0 0 / 0.9);
  border-color: oklch(1 0 0 / 28%);
  background: oklch(1 0 0 / 6%);
}

.mobile-drawer-foot .btn-outline:hover {
  border-color: oklch(0.55 0.14 155 / 0.55);
  background: oklch(0.55 0.14 155 / 0.15);
  color: #fff;
}

.mobile-drawer-foot .mobile-drawer-phone {
  color: oklch(1 0 0 / 0.85);
}

.mobile-drawer-foot .mobile-drawer-phone:hover {
  color: oklch(0.75 0.12 155);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-drawer {
    transition: none;
  }

  .mobile-drawer-nav .mobile-nav-link:hover .mobile-nav-link__chevron,
  .mobile-drawer-nav .mobile-nav-link-active .mobile-nav-link__chevron {
    transform: none;
  }
}

.mobile-drawer-foot .w-full {
  width: 100%;
  justify-content: center;
}

.mobile-drawer-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary, oklch(0.3 0.08 250));
  text-decoration: none;
}

.mobile-drawer-phone:hover {
  color: var(--secondary, oklch(0.55 0.14 155));
}
