html { scroll-padding-top: 7.75rem; }

@media (max-width: 720px) { html { scroll-padding-top: 10.5rem; } }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: var(--dark);
  border-block-end: 1px solid #ffffff20;
}

.investment-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .35rem .65rem;
  padding-block: .45rem .55rem;
}

.site-header .indikey-signature {
  display: flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  gap: clamp(.32rem, 1vw, .7rem);
}
.site-header .indikey-signature a { display: flex; align-items: center; min-height: 44px; min-width: 0; color: inherit; }
.site-header .indikey-signature__logo { display: block; width: clamp(98px, 29vw, 174px); height: auto; }
.indikey-signature__divider { width: 1px; height: 1.05rem; flex: none; background: currentColor; opacity: .75; }
.indikey-signature__label svg { max-width: 100%; height: auto; }
.site-header :focus-visible { outline-color: var(--gold); }

.investment-header-actions { display: flex; justify-content: end; }
.investment-audiences {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  gap: .375rem;
  flex-wrap: wrap;
}
.site-header .investment-audiences a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-height: 44px;
  padding: 0 clamp(.48rem, 2vw, .95rem);
  border: 1px solid #ffffff2e;
  border-radius: var(--r-pill);
  color: #f7f6f2;
  font-size: clamp(.75rem, 2.65vw, .875rem);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .investment-audiences a:hover,
.site-header .investment-audiences [aria-current] { border-color: #d9b87799; color: var(--gold); }
.site-header .investment-audiences .investment-contact { color: #18140d; }
.investment-audiences svg { flex: none; }
/* Atalhos de Investimentos, separados do menu geral. */
.site-header:has(.investment-local[open]) { z-index: 10; }
.investment-local {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  min-width: 0;
  border: 0;
  color: #f4f0e9;
  font-family: Geist, system-ui, sans-serif;
}
.investment-local > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #535459;
  border-radius: 10px;
  background: linear-gradient(170deg, #23252a, #16181c 80%);
  box-shadow: inset 0 1px 0 #ffffff0e;
  color: inherit;
  font: 550 .8125rem/1.25 Geist, system-ui, sans-serif;
  list-style: none;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
.investment-local > summary::-webkit-details-marker { display: none; }
.investment-local > summary:hover { border-color: #a18f70; box-shadow: inset 0 1px 0 #ffffff22; }
.investment-local[open]:not(.is-closing) > summary {
  border-color: #d4bb89;
  background: #f0e6d1;
  box-shadow: 0 4px 12px #0002;
  color: #30251a;
}
.investment-local__icon,
.investment-local__chevron { flex: none; color: #ddc496; }
.investment-local__chevron { margin-inline-start: 3px; transition: transform 260ms cubic-bezier(.22,.78,.24,1); }
.investment-local[open]:not(.is-closing) :is(.investment-local__icon, .investment-local__chevron) { color: #6b522b; }
.investment-local[open]:not(.is-closing) .investment-local__chevron { transform: rotate(180deg); }
.investment-local__panel {
  position: absolute;
  inset-block-start: calc(100% - 2px);
  inset-inline-end: 0;
  z-index: 1;
  width: min(100%, 33rem);
  overflow: hidden;
  border: 1px solid #ded9cf;
  border-block-start-color: #ccb985;
  border-radius: 16px;
  background: #fcfbf7;
  box-shadow: 0 20px 48px #0005, 0 4px 12px #0002;
  color: #23262b;
  transform-origin: top right;
}
.investment-local__links {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 17px;
  max-height: min(31rem, max(4.25rem, calc(100vh - 9rem)));
  max-height: min(31rem, max(4.25rem, calc(100dvh - 9rem - env(safe-area-inset-bottom, 0px))));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b4a88b #fcfbf7;
  padding: 12px 14px;
  color-scheme: light;
}
.investment-local__group { min-width: 0; }
.investment-local__group + .investment-local__group { border-inline-start: 1px solid #e4dfd4; padding-inline-start: 13px; }
.investment-local[open]:not(.is-closing) .investment-local__group { animation: investment-links-in 240ms cubic-bezier(.22,.78,.24,1) both; }
.investment-local[open]:not(.is-closing) .investment-local__group + .investment-local__group { animation-delay: 36ms; }
@keyframes investment-links-in {
  from { opacity: .35; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.investment-local__heading {
  margin: 0;
  padding: 6px 9px 3px;
  color: #634b23;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .035em;
}
.investment-local__group ul { margin: 0; padding: 0; list-style: none; }
.site-header .investment-local a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 9px;
  border-radius: 7px;
  color: #23262b;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.site-header .investment-local a:hover,
.site-header .investment-local a[aria-current="page"] {
  background: #f1e8d5;
  color: #4e391a;
}
.site-header .investment-local a[aria-current="page"] { font-weight: 650; }
.investment-local summary:focus-visible { outline: 2px solid #e4c88e; outline-offset: 2px; }
.site-header .investment-local a:focus-visible { outline: 2px solid #876321; outline-offset: -2px; }
@media (max-width: 720px) {
  .investment-audiences { grid-column: 1 / -1; }
  .investment-local { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  .investment-local__panel { inset-inline: 0; width: auto; transform-origin: top left; }
  .investment-local__links {
    grid-template-columns: minmax(0,1fr);
    gap: 5px;
    padding: 8px 10px;
    max-height: min(31rem, max(4.25rem, calc(100vh - 10.25rem)));
    max-height: min(31rem, max(4.25rem, calc(100dvh - 10.25rem - env(safe-area-inset-bottom, 0px))));
  }
  .investment-local__group + .investment-local__group {
    border-inline-start: 0;
    border-block-start: 1px solid #e4dfd4;
    padding-inline-start: 0;
    padding-block-start: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .investment-local > summary,
  .investment-local__chevron,
  .site-header .investment-local a { transition: none; }
  .investment-local[open]:not(.is-closing) .investment-local__group { animation: none; }
}

@media (max-width: 420px) {
  .site-header .wrap { width: calc(100% - 1.5rem); }
  .investment-audiences svg { width: 14px; height: 14px; }
}
