
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 8px clamp(16px, 3vw, 40px);
  background: rgba(7, 27, 19, 0.88);
  border-bottom: 1px solid rgba(255, 241, 212, 0.14);
  backdrop-filter: blur(18px);
}

.site-header .brand-mark {
  display: grid;
  width: clamp(76px, 7vw, 104px);
  min-height: clamp(58px, 6vw, 78px);
  place-items: center;
  padding: 6px;
  background: linear-gradient(145deg, rgba(255, 241, 212, 0.16), rgba(255, 241, 212, 0.06));
  border: 1px solid rgba(240, 198, 106, 0.28);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-header .brand-mark img {
  display: block;
  max-width: 100%;
  border-radius: 14px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.34));
}

.site-header .brand-mark:hover {
  background: linear-gradient(145deg, rgba(240, 198, 106, 0.24), rgba(255, 241, 212, 0.08));
  border-color: rgba(240, 198, 106, 0.58);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
  transform: translateY(-2px);
}

.site-header nav,
.site-header .header-actions {
  display: flex;
  align-items: center;
}

.site-header nav {
  justify-content: center;
  gap: clamp(12px, 2.4vw, 30px);
}

.site-header nav a {
  color: rgba(255, 241, 212, 0.82);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--gold-2, #f0c66a);
}

.site-header .header-actions {
  justify-content: flex-end;
  gap: 12px;
}

.site-header .lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 78px;
  min-height: 38px;
  padding: 4px;
  color: var(--cream, #fff1d4);
  background: rgba(255, 241, 212, 0.1);
  border: 1px solid rgba(255, 241, 212, 0.18);
  border-radius: 15px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.site-header .lang-toggle span {
  display: grid;
  width: 32px;
  height: 28px;
  place-items: center;
  border-radius: 11px;
}

.site-header .lang-toggle.is-en [data-lang-option="en"],
.site-header .lang-toggle.is-es [data-lang-option="es"] {
  color: var(--ink, #16120d);
  background: var(--gold-2, #f0c66a);
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
  }

  .site-header nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-header .header-actions {
    justify-self: end;
  }
}

.social-rail {
  position: fixed;
  top: 50%;
  left: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.social-rail a {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--cream, #fff1d4);
  background: linear-gradient(145deg, rgba(255, 241, 212, 0.16), rgba(255, 241, 212, 0.06));
  border: 1px solid rgba(240, 198, 106, 0.34);
  border-radius: 15px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-rail a:hover,
.social-rail a:focus-visible {
  color: var(--ink, #1f1712);
  background: linear-gradient(145deg, var(--gold-2, #ffd66b), var(--gold, #f0b24a));
  border-color: rgba(240, 198, 106, 0.72);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
  transform: translateX(5px);
}

.social-rail svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .social-rail {
    left: 10px;
    gap: 7px;
  }

  .social-rail a {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .social-rail svg {
    width: 19px;
    height: 19px;
  }
}

/* Public header alignment fix: keep every public page matching Home. */
body > .site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9999;
  min-height: 118px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 8px clamp(16px, 3vw, 40px);
  background: rgba(7, 27, 19, 0.96);
  border-bottom: 1px solid rgba(255, 241, 212, 0.14);
  backdrop-filter: blur(18px);
}

body > .site-header .brand-mark {
  display: grid;
  width: clamp(76px, 7vw, 104px);
  min-height: clamp(58px, 6vw, 78px);
  place-items: center;
  padding: 6px;
  background: linear-gradient(145deg, rgba(255, 241, 212, 0.16), rgba(255, 241, 212, 0.06));
  border: 1px solid rgba(240, 198, 106, 0.28);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

body > .site-header .brand-mark img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 14px;
}

body > .site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 30px);
}

body > .site-header nav a {
  color: rgba(255, 241, 212, 0.82);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

body > .site-header .header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

body > .site-header .lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 78px;
  min-height: 38px;
  padding: 4px;
  color: var(--cream, #fff1d4);
  background: rgba(255, 241, 212, 0.1);
  border: 1px solid rgba(255, 241, 212, 0.18);
  border-radius: 15px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

body > .site-header .lang-toggle span {
  display: grid;
  width: 32px;
  height: 28px;
  place-items: center;
  border-radius: 11px;
}

body > .site-header .lang-toggle.is-en [data-lang-option="en"],
body > .site-header .lang-toggle.is-es [data-lang-option="es"] {
  color: var(--ink, #16120d);
  background: var(--gold-2, #f0c66a);
}

body:has(> .site-header) main,
body:has(> .site-header) .page-main {
  padding-top: 118px;
}

body:has(> .site-header) .menu-hero,
body:has(> .site-header) .gallery-hero,
body:has(> .site-header) .quote-hero,
body:has(> .site-header) .hero:first-child {
  margin-top: 0;
}

body:has(> .site-header) .menu-hero > img[src="hidalgo-logo.png"] {
  display: none;
}

@media (max-width: 760px) {
  body > .site-header {
    min-height: 142px;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 8px 12px;
  }

  body > .site-header nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 16px;
  }

  body > .site-header .header-actions {
    justify-self: end;
  }

  body:has(> .site-header) main,
  body:has(> .site-header) .page-main {
    padding-top: 142px;
  }
}

