/* Header refinement */
.site-chrome .shell {
  width: min(1440px, calc(100% - 2.5rem));
}

.site-chrome {
  transition: transform 0.32s ease;
}

.site-chrome.is-hidden {
  transform: translate3d(0, calc(-100% - 1.25rem), 0);
}

.site-chrome.is-condensed .utility-bar,
.site-chrome.is-condensed .utility-row {
  min-height: 1.65rem;
}

.site-chrome.is-condensed .utility-copy,
.site-chrome.is-condensed .utility-links {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.utility-bar {
  min-height: 1.95rem;
  background:
    linear-gradient(90deg, rgba(247, 127, 60, 0.12), transparent 18%, transparent 82%, rgba(247, 127, 60, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%),
    rgba(8, 11, 15, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.utility-row {
  min-height: 1.95rem;
}

.utility-copy,
.utility-links {
  font-size: 0.69rem;
  font-family: "IBM Plex Mono", "SFMono-Regular", "Roboto Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.utility-copy a,
.utility-links a {
  color: inherit;
}

.utility-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: max-content;
}

.utility-links {
  gap: 0.9rem;
}

.utility-bar .locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.14rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.utility-bar .locale-switcher a {
  min-width: 2.15rem;
  padding: 0.3rem 0.56rem;
  border: none;
  background: transparent;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
}

.utility-bar .locale-switcher a:hover {
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: #fff8ef;
}

.utility-bar .locale-switcher .active {
  border: none;
  background: linear-gradient(180deg, rgba(247, 127, 60, 0.3), rgba(247, 127, 60, 0.18));
  color: #fff4e6;
  box-shadow: inset 0 0 0 1px rgba(247, 127, 60, 0.24);
}

.site-header {
  --nav-glow-x: 24%;
  --nav-glow-width: 320px;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: #fff;
  overflow: visible;
}

.site-header.is-open:not(.is-solid) {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 44%),
    rgba(16, 20, 25, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(38, 38, 38, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(18px);
  color: #1e1e1e;
}

.header-row {
  gap: 2rem;
  min-height: 5.25rem;
  padding: 0.88rem 0;
}

.site-header.is-short .header-row {
  min-height: 4.35rem;
  padding: 0.55rem 0;
}

.brand-lockup {
  gap: 1rem;
  min-width: max-content;
}

.brand-wordmark {
  display: grid;
  gap: 0.08rem;
}

.brand-mark-shell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
}

.brand-mark-halo,
.brand-mark-sheen {
  position: absolute;
  inset: 0;
  border-radius: 12px;
}

.brand-mark-halo {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 36%),
    radial-gradient(circle at 82% 76%, rgba(247, 127, 60, 0.16), transparent 34%);
  filter: blur(6px);
  opacity: 0.6;
  transform: scale(1.03);
}

.brand-mark-sheen {
  background: linear-gradient(125deg, transparent 12%, rgba(255, 255, 255, 0.18) 42%, transparent 64%);
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: header-sheen 6s ease-in-out infinite;
}

.brand-wordmark {
  position: relative;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  animation: none;
}

.site-header.is-solid .brand-mark {
  background: rgba(16, 20, 25, 0.04);
}

.site-header.is-solid .brand-mark-halo {
  opacity: 0.2;
}

.site-header.is-solid .brand-mark-sheen {
  opacity: 0;
  animation: none;
}

.brand-lockup strong {
  font-family: "Cormorant Garamond", "Baskerville", "Palatino Linotype", Georgia, serif;
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-rendering: optimizeLegibility;
}

.brand-lockup small {
  font-family: "IBM Plex Mono", "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.58);
}

.site-header.is-solid .brand-lockup strong {
  color: #1e1e1e;
}

.site-header.is-solid .brand-lockup small {
  color: rgba(30, 30, 30, 0.5);
}

.site-nav-desktop {
  position: relative;
  gap: 0;
  justify-self: center;
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 3rem;
  height: 3px;
  border-radius: 0;
  background: #f77f3c;
  box-shadow: none;
  opacity: 0;
  transition:
    transform 0.26s ease,
    width 0.26s ease,
    opacity 0.2s ease;
  pointer-events: none;
}

.nav-indicator.is-active {
  opacity: 1;
}

.nav-link {
  min-height: 3.9rem;
  padding: 0.78rem 1rem 1.2rem;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", "SFMono-Regular", "Roboto Mono", monospace;
  color: rgba(255, 255, 255, 0.88);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 2.4rem;
}

.nav-link::after {
  display: none;
}

.nav-link:hover,
.nav-link.is-current,
.nav-link.is-active,
.nav-item:hover .nav-link {
  color: #f77f3c;
}

.site-header.is-solid .nav-link,
.site-header.is-solid .locale-switcher a {
  color: #5a5a5a;
  font-weight: 400;
}

.site-header.is-solid .nav-link:hover,
.site-header.is-solid .nav-link.is-current,
.site-header.is-solid .nav-link.is-active,
.site-header.is-solid .nav-item:hover .nav-link {
  color: #f77f3c;
}

.header-right {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.header-locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.14rem;
  padding: 0.16rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-locale-switcher a {
  min-width: 2rem;
  padding: 0.38rem 0.58rem;
  border: none;
  background: transparent;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}

.header-locale-switcher .active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.header-actions {
  gap: 0;
}

.header-actions .button {
  min-height: 2.78rem;
  padding: 0 1.16rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.header-actions .button-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: auto;
  padding: 0 1rem;
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  box-shadow: none;
}

.header-actions .button-whatsapp:hover {
  background: #20ba5a;
  border-color: #20ba5a;
  color: #fff;
}

.header-actions .button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.94);
}

.header-actions .button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.header-actions .button-primary {
  background: linear-gradient(180deg, #ff9558 0%, #f77f3c 100%);
  border-color: rgba(247, 127, 60, 0.92);
  box-shadow: 0 10px 20px rgba(247, 127, 60, 0.18);
}

.header-actions .button-primary:hover {
  background: linear-gradient(180deg, #ffa066 0%, #f77f3c 100%);
  box-shadow: 0 12px 24px rgba(247, 127, 60, 0.22);
}

.header-whatsapp {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.header-whatsapp-icon {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.header-whatsapp-icon::before {
  content: "";
  position: absolute;
  inset: 0.22rem;
  border: 2px solid #fff;
  border-radius: 999px;
}

.header-whatsapp-icon::after {
  content: "";
  position: absolute;
  left: 0.18rem;
  bottom: 0.12rem;
  width: 0.34rem;
  height: 0.34rem;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: rotate(18deg);
}

.header-whatsapp-text {
  display: inline-block;
  color: inherit;
  line-height: 1;
}

.header-whatsapp-text-short {
  display: inline-block;
}

.site-header.is-solid .header-actions .button-secondary {
  background: rgba(30, 30, 30, 0.03);
  border-color: rgba(30, 30, 30, 0.12);
  color: #1e1e1e;
}

.site-header.is-solid .header-actions .button-secondary:hover {
  background: rgba(30, 30, 30, 0.06);
  border-color: rgba(30, 30, 30, 0.18);
}

.site-header.is-solid .header-locale-switcher {
  background: rgba(30, 30, 30, 0.02);
  border-color: rgba(30, 30, 30, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.site-header.is-solid .header-locale-switcher a {
  color: rgba(30, 30, 30, 0.62);
}

.site-header.is-solid .header-locale-switcher .active {
  color: #1e1e1e;
  background: rgba(30, 30, 30, 0.06);
  box-shadow: inset 0 0 0 1px rgba(30, 30, 30, 0.08);
}

.locale-switcher {
  gap: 0.38rem;
}

.locale-switcher a {
  font-family: "IBM Plex Mono", "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.68);
}

.site-header .locale-switcher a:hover,
.locale-switcher a:hover {
  border-color: rgba(247, 127, 60, 0.26);
  color: #f77f3c;
}

.site-header .locale-switcher .active,
.locale-switcher .active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.site-header.is-solid .locale-switcher .active {
  color: #1e1e1e;
  background: rgba(30, 30, 30, 0.06);
  border-color: rgba(30, 30, 30, 0.1);
}

.site-header.is-solid .locale-switcher a {
  background: rgba(30, 30, 30, 0.02);
  border-color: rgba(30, 30, 30, 0.08);
}

.site-header.is-solid .nav-toggle {
  background: none;
  border: none;
}

.site-header.is-solid .nav-toggle span {
  background: #1f2328;
}

.nav-panel {
  padding-top: 0;
  transform-origin: top center;
}

.nav-panel-grid {
  position: relative;
  padding: 2.2rem 2.3rem 2.1rem;
  border-top-color: rgba(247, 127, 60, 0.45);
  border-radius: 0 0 4px 4px;
  background:
    linear-gradient(180deg, rgba(247, 127, 60, 0.08), transparent 18%),
    radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.06), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 14%),
    #1e2227;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.42);
}

.nav-panel-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(var(--nav-glow-width) circle at var(--nav-glow-x) -4%, rgba(247, 127, 60, 0.18), transparent 60%),
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.025) 24%, transparent 46%);
  opacity: 0.9;
}

.nav-column a span,
.nav-card p {
  color: rgba(245, 245, 245, 0.72);
}

.nav-card {
  min-height: 17.75rem;
  background:
    linear-gradient(180deg, rgba(7, 11, 16, 0.12), rgba(7, 11, 16, 0.88)),
    radial-gradient(circle at top right, rgba(247, 127, 60, 0.24), transparent 34%),
    var(--card-image, linear-gradient(160deg, rgba(38, 44, 52, 0.96), rgba(20, 25, 31, 0.96)));
  background-position: center, center, var(--card-position, center center);
  background-repeat: no-repeat;
  background-size: auto, auto, cover;
  overflow: hidden;
}

/* Header structure refactor */
body.nav-drawer-open {
  overflow: hidden;
}

.site-nav-desktop {
  min-width: 0;
  width: 100%;
}

.header-right {
  min-width: max-content;
  justify-self: end;
}

.header-row {
  grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr) auto;
  align-items: center;
}

.brand-lockup {
  min-width: 0;
  max-width: 23rem;
}

.brand-wordmark {
  min-width: 0;
}

.brand-lockup small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.nav-link-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  min-width: 0;
  white-space: nowrap;
}

.nav-link-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-left: -0.12rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.nav-link-toggle:hover,
.nav-link-toggle.is-active,
.nav-link-cluster:hover .nav-link-toggle,
.nav-link-cluster.is-active .nav-link-toggle,
.nav-link-cluster.is-current .nav-link-toggle {
  background: rgba(255, 255, 255, 0.1);
}

.site-header.is-solid .nav-link-toggle {
  color: rgba(18, 16, 14, 0.7);
}

.site-header.is-solid .nav-link-toggle:hover,
.site-header.is-solid .nav-link-toggle.is-active,
.site-header.is-solid .nav-link-cluster:hover .nav-link-toggle,
.site-header.is-solid .nav-link-cluster.is-active .nav-link-toggle,
.site-header.is-solid .nav-link-cluster.is-current .nav-link-toggle {
  background: rgba(15, 17, 18, 0.06);
  color: #11100f;
}

.nav-link-label {
  display: inline-block;
}

.nav-link-caret {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 0.5rem;
  margin-top: -0.12rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.64;
  transform: rotate(45deg);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.nav-link-toggle.is-active .nav-link-caret,
.nav-link-toggle[aria-expanded="true"] .nav-link-caret,
.nav-link-cluster:hover .nav-link-caret,
.nav-link-cluster.is-active .nav-link-caret {
  opacity: 1;
  transform: rotate(-135deg);
}

.nav-link:focus-visible,
.nav-link-toggle:focus-visible,
.mobile-nav-primary:focus-visible,
.mobile-nav-overview:focus-visible,
.nav-toggle:focus-visible,
.mobile-close:focus-visible {
  outline: 2px solid rgba(247, 127, 60, 0.82);
  outline-offset: 3px;
}

.nav-panel[hidden],
.mobile-nav-panel[hidden] {
  display: none !important;
}

.nav-mega.is-active {
  pointer-events: auto;
}

.mobile-nav-item.has-children {
  padding: 0.85rem 0;
}

.mobile-nav-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.98rem 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.mobile-nav-link {
  display: block;
}

.mobile-nav-caret {
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 0.7rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.7;
  transform: rotate(45deg);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.mobile-nav-primary[aria-expanded="true"] .mobile-nav-caret {
  opacity: 1;
  transform: rotate(-135deg);
}

.mobile-nav-primary[aria-expanded="true"],
.mobile-nav-primary:hover,
.mobile-nav-link:hover {
  color: #fff;
}

.mobile-nav-panel {
  display: grid;
  gap: 1rem;
  padding: 0.2rem 0 0.35rem;
}

.mobile-nav-panel.is-open {
  animation: nav-panel-in 0.24s ease;
}

.mobile-nav-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mobile-nav-overview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff6ea;
  font-family: "IBM Plex Mono", "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-nav-overview.is-secondary {
  background: transparent;
  color: rgba(246, 241, 236, 0.74);
}

.mobile-nav-overview:hover {
  border-color: rgba(247, 127, 60, 0.3);
  color: #fff;
}

.mobile-nav-columns {
  padding-top: 0.15rem;
}

.mobile-nav-column a {
  padding: 0.4rem 0;
}

@media (max-width: 1320px) {
  .header-row {
    grid-template-columns: minmax(15.5rem, 20rem) minmax(0, 1fr) auto;
  }
}

@media (max-width: 1100px) {
  .header-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand locale toggle";
    gap: 1rem;
  }

  .brand-lockup {
    max-width: none;
  }

  .header-right {
    grid-area: locale;
    justify-self: end;
    gap: 0;
  }

  .header-actions {
    display: none;
  }

  .header-locale-switcher a {
    min-width: 1.88rem;
    padding: 0.34rem 0.46rem;
  }

  .nav-toggle {
    grid-area: toggle;
    justify-self: end;
  }
}

@media (max-width: 1760px) {
  .header-whatsapp-text-long {
    display: none;
  }

  .nav-indicator {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-chrome .shell {
    width: min(1440px, calc(100% - 1rem));
  }

  .header-row {
    gap: 0.75rem;
    min-height: 4.35rem;
    padding: 0.7rem 0;
  }

  .brand-lockup {
    gap: 0.7rem;
  }

  .brand-lockup strong {
    font-size: 1.38rem;
  }

  .utility-meta {
    gap: 0.4rem;
  }

  .utility-bar .locale-switcher a {
    min-width: 1.95rem;
    padding: 0.28rem 0.48rem;
  }

  .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .brand-mark-shell {
    width: 2.5rem;
    height: 2.5rem;
    flex-basis: 2.5rem;
  }

  .nav-toggle {
    width: 2.9rem;
    height: 2.9rem;
  }

  .header-right {
    gap: 0;
  }

  .header-locale-switcher {
    padding: 0.12rem;
    background: rgba(255, 255, 255, 0.05);
  }

  .header-locale-switcher a {
    min-width: 1.72rem;
    padding: 0.32rem 0.38rem;
    font-size: 0.54rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-chrome {
    transition: none;
  }

  .brand-mark {
    animation: none;
  }
}

@keyframes header-mark-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes header-sheen {
  0%,
  100% {
    transform: translateX(-28%) rotate(0deg);
    opacity: 0.55;
  }

  50% {
    transform: translateX(28%) rotate(0deg);
    opacity: 0.95;
  }
}
