/* Liquid glass navbar — Sushi Deluxe Studios */

.liquid-glass-nav {
  border-radius: 9999px;
  isolation: isolate;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 35%,
    rgba(255, 255, 255, 0.09) 65%,
    rgba(255, 255, 255, 0.03) 100%
  );

  backdrop-filter: blur(28px) saturate(190%) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.08);

  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 2px 12px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

header.liquid-glass-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  right: auto;
  width: calc(100% - 2rem);
  max-width: 1000px;
  transform: translateX(-50%);
  z-index: 50;
}

.liquid-glass-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      ellipse 70% 80% at 15% -30%,
      rgba(255, 255, 255, 0.18) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 60% at 85% 130%,
      rgba(255, 255, 255, 0.07) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

.liquid-glass-nav::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35) 25%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.35) 75%,
    transparent
  );
  border-radius: 9999px;
  pointer-events: none;
}

.liquid-glass-panel {
  border-radius: 20px;
  isolation: isolate;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.07) 45%,
    rgba(255, 255, 255, 0.04) 100%
  );

  backdrop-filter: blur(32px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(32px) saturate(180%) brightness(1.06);

  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

div.liquid-glass-panel {
  position: fixed;
  top: 5.5rem;
  left: 50%;
  right: auto;
  width: calc(100% - 2rem);
  max-width: 1000px;
  transform: translateX(-50%);
  z-index: 99;
}

.liquid-glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 100% 55% at 50% 0%,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* Static contact nav layout (Tailwind stripped on /contact) */
header.liquid-glass-nav {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  header.liquid-glass-nav {
    padding: 0 1.5rem;
  }
}

header.liquid-glass-nav > a img,
header.liquid-glass-nav img.h-12 {
  width: 28rem;
  height: 9.75rem;
  max-width: none;
  display: block;
}

header.liquid-glass-nav > a[href="/"] {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin-left: -24px;
  flex: 0 0 9rem;
  width: 9rem;
  overflow: visible;
  justify-content: flex-start;
}

header.liquid-glass-nav > a:not([href="/"]) {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

header.liquid-glass-nav > .liquid-glass-nav__links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  font-weight: 500;
}

@media (min-width: 1024px) {
  header.liquid-glass-nav > .liquid-glass-nav__links {
    display: flex;
  }
}

header.liquid-glass-nav > .liquid-glass-nav__links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  transition: color 0.15s ease;
}

header.liquid-glass-nav > .liquid-glass-nav__links a:hover {
  color: #fff;
}

/* Homepage nav — brighter than text-white/70 on liquid glass */
header.liquid-glass-nav a.text-white\/70,
header.liquid-glass-nav .text-white\/70 {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.38);
}

header.liquid-glass-nav a.text-white\/70:hover,
header.liquid-glass-nav .text-white\/70:hover {
  color: #ffffff !important;
}

header.liquid-glass-nav > .liquid-glass-nav__links > .liquid-glass-nav__divider {
  height: 2rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

header.liquid-glass-nav > .liquid-glass-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

@media (min-width: 1024px) {
  header.liquid-glass-nav > .liquid-glass-nav__toggle {
    display: none;
  }
}

.liquid-glass-nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.liquid-glass-nav__backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

div.liquid-glass-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    max-height 0.5s ease,
    opacity 0.5s ease;
}

div.liquid-glass-panel.is-open {
  max-height: 480px;
  opacity: 1;
  pointer-events: auto;
}

div.liquid-glass-panel > div {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
}

div.liquid-glass-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  border-radius: 0.5rem;
  transition: background 0.15s ease;
}

div.liquid-glass-panel a:hover {
  background: rgba(255, 255, 255, 0.1);
}

div.liquid-glass-panel a i {
  font-size: 0.875rem;
  opacity: 0.7;
}

div.liquid-glass-panel .liquid-glass-nav__mobile-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 0 1rem;
}

div.liquid-glass-panel .liquid-glass-nav__mobile-social a {
  width: auto;
  justify-content: center;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .liquid-glass-nav__backdrop,
  div.liquid-glass-panel {
    display: none !important;
  }
}

/* The hydrated homepage uses React's opacity utility for its open state.
   Static pages use is-open; both must reveal the same mobile panel. */
@media (max-width: 1023px) {
  div.liquid-glass-panel.opacity-100 {
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
  }
}

/* Keep the mobile social links compact in both rendered navigation variants. */
@media (max-width: 1023px) {
  div.liquid-glass-panel > div > div {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
  }
  div.liquid-glass-panel > div > div > a {
    flex: 0 0 auto;
    width: auto;
    justify-content: center;
    padding: 0.5rem;
  }
}
