:root {
  color-scheme: dark;
  --bg: #1b1220;
  --bg-deep: #140d18;
  --panel: #24172a;
  --text: #f7efe3;
  --muted: #c6b6c3;
  --line: rgba(230, 197, 120, 0.24);
  --accent: #e8c46f;
  --accent-soft: #b78a46;
  --green: #8ab58f;
  --blue: #9aa6c8;
  --font-heading: "Marcellus", serif;
  --font-accent: "Cormorant Garamond", serif;
  --font-label: "Josefin Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 500;
  background:
    linear-gradient(180deg, rgba(43, 25, 51, 0.94), rgba(20, 13, 24, 0.98)),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.qr-page {
  min-height: 100vh;
  overflow: auto;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr minmax(8rem, auto);
  gap: 1.5rem;
  align-items: center;
  min-height: 4.35rem;
  padding: 0.65rem clamp(1.25rem, 7vw, 5.5rem);
  background: linear-gradient(180deg, rgba(37, 22, 44, 0.86), rgba(37, 22, 44, 0));
  backdrop-filter: blur(6px);
}

.brand img {
  display: block;
  width: min(12rem, 100%);
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.4rem, 3.2vw, 2.9rem);
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-nav a,
.social-links a,
.contact-details > a {
  text-decoration: none;
}

.main-nav a {
  white-space: nowrap;
}

.main-nav a:hover,
.social-links a:hover,
.contact-details > a:hover {
  color: var(--accent);
}

.language-switcher {
  display: inline-grid;
  justify-self: end;
  grid-template-columns: repeat(3, 2rem);
  gap: 0.15rem;
  padding: 0.18rem;
  border-radius: 999px;
  background: rgba(61, 38, 69, 0.64);
}

.language-switcher button {
  height: 1.55rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.66rem;
}

.language-switcher button.active {
  color: #18110d;
  background: var(--accent);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8rem clamp(1.25rem, 6vw, 5rem) 5.5rem;
  background:
    linear-gradient(180deg, rgba(56, 34, 65, 0.72), rgba(24, 15, 28, 0.98)),
    radial-gradient(ellipse at center, rgba(85, 51, 99, 0.42), rgba(20, 13, 24, 0) 44rem),
    var(--bg);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(232, 196, 111, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(232, 196, 111, 0.04) 1px, transparent 1px);
  background-size: 5.4rem 5.4rem;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  opacity: 0.42;
}

.hero::after {
  left: 50%;
  bottom: 2.5rem;
  width: 1px;
  height: 4rem;
  background: linear-gradient(180deg, var(--accent), transparent);
  transform: translateX(-50%);
}

.hero-art {
  position: absolute;
  top: 51%;
  left: 50%;
  display: grid;
  place-items: center;
  width: min(46rem, 72vw);
  opacity: 0.1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: auto;
  filter: saturate(0.3) sepia(0.8) hue-rotate(350deg) drop-shadow(0 2.4rem 4rem rgba(0, 0, 0, 0.34));
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 62rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: rgba(247, 239, 227, 0.74);
  font-family: var(--font-label);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 1vw, 0.94rem);
  letter-spacing: 0.42em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: clamp(4.25rem, 12vw, 9.5rem);
  font-weight: 700;
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.42);
}

h2 {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 34rem;
  color: rgba(247, 239, 227, 0.8);
  font-family: var(--font-accent);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-style: italic;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  margin-top: 1.5rem;
  padding: 0 2.2rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: rgba(20, 13, 24, 0.18);
  color: var(--accent);
  font-family: var(--font-label);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

.button.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-deep), #1f1425);
}

.section-heading {
  max-width: 58rem;
  margin-bottom: 2rem;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1.15fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.about-grid > p,
.contact-details,
.hours,
.menu-links {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-list article {
  display: flex;
  flex-direction: column;
  min-height: 11rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232, 196, 111, 0.045);
}

.feature-list article:nth-child(1) h3 {
  color: var(--accent);
}

.feature-list article:nth-child(2) h3 {
  color: var(--green);
}

.feature-list article:nth-child(3) h3 {
  color: var(--blue);
}

.menu {
  background:
    linear-gradient(135deg, rgba(232, 196, 111, 0.1), rgba(92, 57, 105, 0.26)),
    var(--bg-deep);
}

.menu-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(10rem, 1fr));
  gap: 1rem;
}

.menu-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 13, 24, 0.58);
  color: var(--text);
  font-family: var(--font-label);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
}

.menu-links a.active,
.menu-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232, 196, 111, 0.08);
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid rgba(232, 196, 111, 0.26);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 780ms linear infinite;
}

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

body.pdf-open {
  overflow: hidden;
}

.pdf-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(180deg, rgba(37, 22, 44, 0.96), rgba(20, 13, 24, 0.98)),
    var(--bg-deep);
}

.pdf-overlay[hidden] {
  display: none;
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-label);
  min-height: 5.6rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(20, 13, 24, 0.78);
}

.pdf-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pdf-open-link,
.pdf-download-link {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(232, 196, 111, 0.08);
  color: var(--accent);
  text-decoration: none;
}

.pdf-open-link:hover,
.pdf-download-link:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg-deep);
}

.pdf-open-link svg,
.pdf-download-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pdf-close-button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(232, 196, 111, 0.08);
  color: var(--accent);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.pdf-close-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg-deep);
}

.pdf-stage {
  position: relative;
  min-height: 0;
  overflow: auto;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.pdf-pages {
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  min-height: 100%;
}

.pdf-page {
  max-width: 100%;
  padding: clamp(0.35rem, 1vw, 0.65rem);
  border: 1px solid rgba(232, 196, 111, 0.16);
  border-radius: 8px;
  background: rgba(20, 13, 24, 0.7);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.32);
}

.menu-image-page {
  max-height: calc(100dvh - 9rem);
  display: grid;
  place-items: center;
}

.pdf-page canvas,
.menu-page-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.menu-page-image {
  width: auto;
  max-height: calc(100dvh - 10.3rem);
  object-fit: contain;
}

.pdf-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 1rem;
  align-content: center;
  padding: 2rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  background: rgba(20, 13, 24, 0.94);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.pdf-loader:not(.is-visible) {
  visibility: hidden;
  opacity: 0;
}

.pdf-loader.is-error .spinner {
  display: none;
}

.contact-grid {
  grid-template-columns: 0.75fr 0.65fr 1.1fr;
}

address {
  margin-bottom: 1rem;
  font-style: normal;
}

.quick-actions,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.quick-actions,
.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.quick-actions .button.secondary,
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.4rem;
  margin-top: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: rgba(232, 196, 111, 0.08);
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.quick-actions .button.secondary:hover,
.social-links a:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

.hours {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(232, 196, 111, 0.045);
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 1rem;
  border-bottom: 1px solid var(--line);
}

.hours div:last-child {
  border-bottom: 0;
}

iframe {
  width: 100%;
  min-height: 24rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-label);
  background: var(--bg-deep);
}

.qr-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 8vw, 5rem) clamp(1.25rem, 6vw, 5rem);
  background:
    linear-gradient(180deg, rgba(56, 34, 65, 0.72), rgba(24, 15, 28, 0.98)),
    radial-gradient(ellipse at center, rgba(232, 196, 111, 0.16), rgba(20, 13, 24, 0) 34rem),
    var(--bg);
}

.qr-panel {
  display: grid;
  justify-items: center;
  width: min(100%, 34rem);
  text-align: center;
}

.qr-logo-title {
  margin-bottom: 1.15rem;
}

.qr-logo-title a,
.qr-logo-title img {
  display: block;
}

.qr-logo-title img {
  width: min(24rem, 78vw);
  height: auto;
}

.qr-panel p:not(.eyebrow) {
  max-width: 28rem;
  color: rgba(247, 239, 227, 0.82);
  font-size: clamp(1.18rem, 2.6vw, 1.42rem);
  font-style: italic;
  line-height: 1.42;
}

.qr-panel p a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.qr-code-frame {
  width: min(100%, 23rem);
  margin: 1.6rem 0 0;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1.4rem 3.5rem rgba(0, 0, 0, 0.36);
}

.qr-code-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 880px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr auto;
    background: var(--bg);
  }

  .brand {
    grid-column: 1;
  }

  .language-switcher {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 42rem;
    padding-top: 5rem;
  }

  .hero-art {
    width: min(34rem, 94vw);
  }

  .feature-list,
  .menu-links {
    grid-template-columns: 1fr;
  }

  .pdf-toolbar {
    align-items: center;
    flex-direction: row;
  }

  .pdf-toolbar-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 1.1rem;
    padding-inline: 1.5rem;
  }

  .brand img {
    width: 11.2rem;
  }

  .main-nav {
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.86rem;
    letter-spacing: 0.1em;
    line-height: 1.25;
  }

  .language-switcher {
    grid-template-columns: repeat(3, 2.35rem);
    justify-self: end;
  }

  .language-switcher button {
    height: 1.85rem;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 42rem;
    padding-inline: 1.25rem;
  }

  h1 {
    font-size: clamp(3.85rem, 16vw, 5.15rem);
    line-height: 0.9;
  }

  h2 {
    font-size: clamp(2.55rem, 11.5vw, 3.35rem);
    line-height: 1.03;
  }

  h3 {
    font-size: 1.32rem;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 0.88rem;
    letter-spacing: 0.22em;
    line-height: 1.35;
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 100%;
    font-size: 1.28rem;
    line-height: 1.45;
  }

  .about-grid > p,
  .contact-details,
  .hours,
  .menu-links {
    font-size: 1.22rem;
    line-height: 1.68;
  }

  .feature-list p {
    font-size: 1.2rem;
    line-height: 1.55;
  }

  .button {
    width: min(100%, 14.4rem);
    min-height: 3.65rem;
    padding-inline: 1rem;
    font-size: 0.92rem;
  }

  .quick-actions,
  .social-links {
    grid-template-columns: 1fr;
  }

  .quick-actions .button.secondary,
  .social-links a {
    min-height: 3.8rem;
    height: auto;
    font-size: 1rem;
  }

  footer {
    font-size: 0.96rem;
    line-height: 1.5;
  }
}
