/* Chrome — header, footer, loader */

/* ——— Header ——— */

.header {
  background-color: var(--b2);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  min-height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 100;
  overflow-anchor: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.header.is-hidden {
  transform: translate3d(0, -100%, 0);
  pointer-events: none;
}

.header.is-open {
  transform: none;
  pointer-events: auto;
}

.divider-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 102;
}

.header-logo img {
  display: block;
  height: 28px;
  width: auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--w1) 18%, transparent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 102;
  flex-shrink: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.menu-toggle:hover {
  background: color-mix(in srgb, var(--w1) 8%, transparent);
  border-color: color-mix(in srgb, var(--w1) 35%, transparent);
}

.menu-toggle-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--w1);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.header.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.header-nav {
  display: flex;
  align-items: center;
}

.header-nav ul {
  display: flex;
  color: var(--w1);
  align-items: center;
  gap: 0.5rem;
}

.header-nav a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--w1);
  font-weight: 300;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 100px;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  background: var(--w1);
  color: var(--b1);
}

.header-nav .imagem-idioma a,
.header-nav .imagem-idioma a:hover {
  background: transparent;
  color: inherit;
  padding: 0.35rem;
  display: flex;
}

.imagem-idioma a img {
  width: 20px;
  height: 20px;
  border-radius: 100px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.imagem-idioma a img:hover {
  transform: scale(1.2);
  border: 1px solid var(--w1);
}

.nav-sep {
  color: var(--p1);
  margin: 0 0.25rem;
}

.menu-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .header {
    padding: 0.65rem 0.75rem;
    min-height: 72px;
  }

  .header .max-container {
    padding: 0 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 320px);
    height: 100dvh;
    background: var(--b2);
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 1.5rem
      calc(2rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(100%);
    transition: transform 0.35s ease, visibility 0.35s ease;
    z-index: 101;
    border-left: 1px solid color-mix(in srgb, var(--w1) 8%, transparent);
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
  }

  .header.is-open .header-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .header-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
  }

  .nav-sep {
    display: none;
  }

  .header-nav a {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    font-weight: 400;
    padding: 0.9rem 1rem;
    border-radius: 16px;
  }

  .imagem-idioma {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--w1) 10%, transparent);
  }

  .imagem-idioma a {
    width: fit-content;
    padding: 0.5rem;
  }

  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--b1) 55%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99;
  }

  .header.is-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-nav,
  .menu-backdrop,
  .menu-toggle-bar {
    transition: none;
  }
}

/* ——— Footer ——— */

.footer {
  background: var(--b2);
  padding: 4rem 0 2rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 400;
  line-height: 0.9;
  color: color-mix(in srgb, var(--w1) 12%, transparent);
  margin-bottom: 2.5rem;
  user-select: none;
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--w1) 10%, transparent);
}

.footer-col h3 {
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--w1) 45%, transparent);
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
  color: color-mix(in srgb, var(--w1) 70%, transparent);
  max-width: 28ch;
}

.footer-col--nav {
  text-align: center;
  justify-self: center;
}

.footer-col--nav .footer-links {
  align-items: center;
}

.footer-col--contact {
  text-align: right;
  justify-self: end;
}

.footer-col--contact .footer-links {
  align-items: flex-end;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--w1);
  transition: color 0.25s ease;
  width: fit-content;
}

.footer-links a:hover {
  color: var(--p1);
}

.footer-loc {
  font-size: 0.9rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--w1) 55%, transparent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--w1) 40%, transparent);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--w1);
  transition: color 0.25s ease;
}

.footer-social a:hover {
  color: var(--p1);
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col--about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-brand {
    margin-bottom: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-col--nav,
  .footer-col--contact {
    text-align: left;
    justify-self: start;
  }

  .footer-col--nav .footer-links,
  .footer-col--contact .footer-links {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— Loader ——— */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  background: var(--b1);
  color: var(--w1);
  transition: opacity 0.55s var(--anim-ease), visibility 0.55s linear;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  text-align: center;
  padding: 1.5rem;
}

.page-loader-star {
  width: 48px;
  height: 48px;
  animation: page-loader-spin 1.4s linear infinite;
}

.page-loader-brand {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--w1);
}

.page-loader-status {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--w1) 55%, transparent);
}

.page-loader-bar {
  width: min(180px, 50vw);
  height: 2px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--w1) 12%, transparent);
  overflow: hidden;
}

.page-loader-bar-fill {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: var(--p1);
  animation: page-loader-bar 1.1s ease-in-out infinite;
}

@keyframes page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes page-loader-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

body.is-loading {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-star,
  .page-loader-bar-fill {
    animation: none;
  }

  .page-loader-bar-fill {
    width: 100%;
    transform: none;
  }

  .page-loader {
    transition-duration: 0.2s;
  }
}

html.a11y-reduce-motion .page-loader-star,
html.a11y-reduce-motion .page-loader-bar-fill {
  animation: none;
}

html.a11y-reduce-motion .page-loader-bar-fill {
  width: 100%;
  transform: none;
}
