/* layout.css: header, footer, mobile call bar, lightbox, 404 page. */

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
}

/* Blur lives on a pseudo-element so the dropdown menu is not trapped by it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 9, 8, 0.55);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color 0.3s, border-color 0.3s;
}

.site-header[data-scrolled]::before {
  background: rgba(11, 9, 8, 0.9);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  text-decoration: none;
}

/* The venue's crest (images-src/logo-thuong-hai-ktv.png). */
.brand-logo {
  flex: none;
  width: 42px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
}

.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}

.site-nav[data-open] {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: 0.5rem var(--gutter) 1rem;
}

.site-nav a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
}

.site-nav a:hover {
  color: var(--gold-bright);
}

.header-call {
  padding-inline: 0.85rem;
}

.header-call-text {
  display: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
}

@media (min-width: 560px) {
  .header-call-text {
    display: inline;
  }
}

@media (min-width: 960px) {
  .brand {
    margin-right: 0;
  }

  .site-nav {
    position: static;
    display: block;
    margin-left: auto;
    margin-right: 1.5rem;
    background: none;
    border: 0;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 2rem;
    padding: 0;
  }

  .site-nav a {
    padding: 0.5rem 0;
    border: 0;
    font-size: 0.75rem;
  }

  .menu-toggle {
    display: none;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: clamp(48px, 7vw, 80px);
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand .brand-logo {
  width: 64px;
}

.footer-brand p,
.footer-contact p {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-nav ul {
  display: grid;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
}

.footer-nav a:hover {
  color: var(--gold-bright);
}

.footer-contact .fact-label {
  margin: 0;
  font-size: 0.7rem;
  color: var(--gold);
}

.footer-contact .footer-phone {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
}

.footer-phone a {
  text-decoration: none;
}

.footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line-soft);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* ---------- Mobile call bar ---------- */

.call-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(var(--call-bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.call-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-bright);
}

.call-bar-call {
  background: var(--red);
  color: var(--cream);
}

@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }

  .call-bar {
    display: none;
  }
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  background: rgba(11, 9, 8, 0.95);
  border: 0;
  color: var(--cream);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

body:has(.lightbox[open]) {
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.lightbox-figure {
  max-width: min(1200px, 100%);
  margin: 0;
  padding: 64px 16px 24px;
}

.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  max-height: calc(100svh - 170px);
  margin-inline: auto;
  object-fit: contain;
  border: 1px solid var(--line);
}

.lightbox-figure figcaption {
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
  color: var(--muted);
}

.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(11, 9, 8, 0.6);
  border: 1px solid var(--line);
  color: var(--gold-bright);
  cursor: pointer;
}

.lightbox-btn .icon {
  width: 24px;
  height: 24px;
}

.lightbox-close {
  top: 12px;
  right: 12px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

/* ---------- 404 ---------- */

.page-404 {
  padding-bottom: 0;
}

.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 64px;
}

.not-found .brand {
  margin: 0 0 3rem;
}

.not-found .brand-logo {
  width: 88px;
}

.not-found p {
  max-width: 34rem;
  color: var(--muted);
}

