/* =========================
   Contact - Header (1 blur só) — igual ao About
   ========================= */

.contact-page {
  --oh-header-alpha: 0.18; /* fallback */
  --oh-header-blur: 6px;   /* fallback */
}

.contact-page #main-header {
  background: transparent;
  isolation: isolate;
}

/* 1 overlay para o header inteiro */
.contact-page #main-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(242, 238, 230, var(--oh-header-alpha));
  -webkit-backdrop-filter: blur(var(--oh-header-blur));
  backdrop-filter: blur(var(--oh-header-blur));
  transition: background-color 300ms ease, backdrop-filter 300ms ease;
  z-index: 0;
  pointer-events: none;
}

/* garante que o conteúdo fica acima do overlay */
.contact-page #main-header > * {
  position: relative;
  z-index: 1;
}

/* remove backgrounds/blurs individuais (acabam os “riscos”) */
.contact-page #main-header .bg-primary-900\/50,
.contact-page #main-header .header-surface {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* =========================
   Nav hover "hotel boutique"
   ========================= */

.contact-page #main-header nav a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);

  background: transparent !important;
  box-shadow: none !important;

  display: inline-block;
  position: relative;
  padding: 6px 0;
  border-radius: 0;

  letter-spacing: 0.25em;
  color: rgba(44, 36, 25, 0.92);

  transform: translateZ(0);
  transition:
    letter-spacing 260ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

/* underline do centro para fora */
.contact-page #main-header nav a::before,
.contact-page #main-header nav a::after {
  content: "";
  position: absolute;
  bottom: -7px;
  height: 1px;
  width: 28%;
  opacity: 0;
  background: rgba(44, 36, 25, 0.30);

  transition:
    transform 1600ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 2200ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-page #main-header nav a::before {
  left: 50%;
  transform: translateX(-2px) scaleX(0);
  transform-origin: right;
}

.contact-page #main-header nav a::after {
  right: 50%;
  transform: translateX(2px) scaleX(0);
  transform-origin: left;
}

.contact-page #main-header nav a:hover {
  letter-spacing: 0.31em;
  color: rgba(84, 60, 33, 0.85);
}

.contact-page #main-header nav a:hover::before,
.contact-page #main-header nav a:hover::after {
  opacity: 1;
  transform: translateX(0) scaleX(1);
  background: rgba(84, 60, 33, 0.42);
}

/* FECHO mais lento (trailing) */
.contact-page #main-header nav a:not(:hover)::before,
.contact-page #main-header nav a:not(:hover)::after {
  transition:
    transform 900ms cubic-bezier(0.2, 0, 0.2, 1),
    opacity 1100ms cubic-bezier(0.2, 0, 0.2, 1),
    background-color 700ms cubic-bezier(0.2, 0, 0.2, 1);
}

/* focus acessível */
.contact-page #main-header nav a:focus-visible {
  outline: none;
  color: rgba(84, 60, 33, 0.92);
}

.contact-page #main-header nav a:focus-visible::before,
.contact-page #main-header nav a:focus-visible::after {
  opacity: 1;
  transform: translateX(0) scaleX(1);
  height: 2px;
  background: rgba(201, 168, 118, 0.70);
}

/* =========================
   Logo hover (premium)
   ========================= */

.contact-page #main-header .header-surface a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
}

.contact-page #main-header .header-surface a img {
  transform: translateZ(0);
  transform-origin: center;
  transition: transform 260ms ease, filter 260ms ease, opacity 260ms ease;
  will-change: transform;
}

.contact-page #main-header .header-surface a:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.10));
}

.contact-page #main-header .header-surface a:active img {
  transform: scale(1.01);
}

/* reduz motion */
@media (prefers-reduced-motion: reduce) {
  .contact-page #main-header nav a,
  .contact-page #main-header nav a::before,
  .contact-page #main-header nav a::after,
  .contact-page #main-header .header-surface a img {
    transition: none !important;
  }
}

@media (max-width: 1023px) {
  #mobile-menu > div {
    justify-content: flex-start !important;
    padding-top: clamp(28px, 6vh, 70px) !important;
    box-sizing: border-box;
    transform: translateY(-28px);
  }

  /* opcional: ainda mais compacto */
  #mobile-menu > div > :not([hidden]) ~ :not([hidden]) {
    margin-top: 14px !important;
  }
}

/* =========================
   Contact — Mobile menu: cores do texto
   ========================= */
@media (max-width: 1023px) {
  /* Links do menu */
  .contact-page #mobile-menu a {
    color: rgba(44, 36, 25, 0.92) !important; /* escuro elegante */
    text-shadow: none !important;
  }

  .contact-page #mobile-menu a:hover,
  .contact-page #mobile-menu a:focus-visible {
    color: rgba(84, 60, 33, 0.92) !important; /* hover um pouco mais quente */
    outline: none;
  }

  /* Título "IDIOMA" e texto do menu */
  .contact-page #mobile-menu .mobile-menu-panel span {
    color: rgba(44, 36, 25, 0.65) !important;
  }

  /* (opcional) se quiseres também os ícones/qualquer svg seguir a cor */
  .contact-page #mobile-menu svg {
    color: rgba(44, 36, 25, 0.92) !important;
  }
}

/* Contact — Nº em cima + email em baixo (mobile pequeno) */
@media (max-width: 480px) {
  .contact-page #main-header .top-bar .max-w-7xl > .flex {
    display: grid !important;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    row-gap: 6px;
    align-items: start !important;
  }

  .contact-page #main-header .top-bar .max-w-7xl > .flex > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    min-width: 0;
  }

  /* esconde o separador | */
  .contact-page #main-header .top-bar .max-w-7xl > .flex > div:first-child span {
    display: none !important;
  }

  .contact-page #main-header .top-bar .max-w-7xl > .flex > div:last-child {
    justify-self: end;
    align-self: start;
  }

  .contact-page #mobile-menu-button {
    padding: 6px !important;
  }
}
