:root {
  color-scheme: dark;
  --bg: #070909;
  --panel: #101514;
  --panel-soft: #17110d;
  --text: #f7efe2;
  --muted: #c8bdae;
  --line: rgba(232, 174, 55, 0.3);
  --gold: #d99921;
  --gold-light: #f0c475;
  --warm: #9f4c1f;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(217, 153, 33, 0.16), transparent 28rem),
    linear-gradient(180deg, #050707 0%, #0a0d0c 44%, #120d0a 100%);
  color: var(--text);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 55%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-content: space-between;
  padding: 18px clamp(18px, 5vw, 72px) 42px;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/images/hero-sham.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 7, 7, 0.76) 0%, rgba(5, 7, 7, 0.34) 38%, rgba(5, 7, 7, 0.92) 100%),
    linear-gradient(90deg, rgba(5, 7, 7, 0.88), rgba(5, 7, 7, 0.18));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 68px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__whatsapp,
.topbar__instagram,
.button,
.product-card__order {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.topbar__whatsapp,
.topbar__instagram {
  padding: 10px 15px;
  border: 1px solid rgba(240, 196, 117, 0.34);
  background: rgba(5, 7, 7, 0.58);
  color: var(--gold-light);
  backdrop-filter: blur(14px);
}

.hero__content {
  max-width: 680px;
  padding-top: 12vh;
  animation: rise 640ms ease both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 14vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__content > p:not(.eyebrow) {
  max-width: 34rem;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 4vw, 1.35rem);
}

.hero__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 420px;
}

.button {
  padding: 13px 18px;
}

.button--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 52%, #aa6a15);
  color: #17100a;
  box-shadow: 0 14px 34px rgba(217, 153, 33, 0.24);
}

.button--ghost {
  border: 1px solid rgba(240, 196, 117, 0.38);
  background: rgba(9, 11, 11, 0.66);
}

.button:hover,
.topbar__whatsapp:hover,
.topbar__instagram:hover,
.product-card__order:hover {
  transform: translateY(-2px);
}

.section {
  width: min(1160px, 100%);
  margin-inline: auto;
  padding: 58px clamp(16px, 4vw, 34px);
}

.section__heading {
  margin-bottom: 22px;
}

.section__heading--split {
  display: grid;
  gap: 16px;
}

.instagram-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 10px 16px;
  border: 1px solid rgba(240, 196, 117, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--gold-light);
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 8vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.category-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  margin-inline: calc(clamp(16px, 4vw, 34px) * -1);
  padding: 10px clamp(16px, 4vw, 34px);
  overflow-x: auto;
  background: rgba(7, 9, 9, 0.78);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(240, 196, 117, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.category-tab[aria-selected="true"] {
  background: var(--gold);
  color: #100c08;
  border-color: var(--gold);
  font-weight: 900;
}

.menu-grid {
  display: grid;
  gap: 18px;
  padding-top: 22px;
}

.product-card {
  overflow: hidden;
  border: 1px solid rgba(240, 196, 117, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
  animation: cardIn 360ms ease both;
}

.product-card__image {
  width: 100%;
  aspect-ratio: 4 / 2.55;
  padding: 0;
  border: 0;
  background: #090909;
  cursor: zoom-in;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.035);
}

.product-card__body {
  padding: 16px;
}

.product-card__title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 9px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.product-card h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.product-card data {
  color: var(--gold);
  font-size: 1.02rem;
  font-weight: 900;
  white-space: nowrap;
}

.product-card p {
  min-height: 3em;
  margin-bottom: 16px;
  color: var(--muted);
}

.product-card__order {
  width: 100%;
  padding: 11px 14px;
  background: #1f7f43;
  color: #f7fff9;
}

.empty-state {
  padding: 24px;
  border: 1px dashed rgba(240, 196, 117, 0.34);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.gallery__grid {
  display: grid;
  gap: 12px;
}

.gallery__item {
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid rgba(240, 196, 117, 0.24);
  border-radius: var(--radius);
  background: #090909;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__item--wide {
  aspect-ratio: 16 / 10;
}

.qr-mode .topbar__whatsapp,
.qr-mode .button--ghost,
.qr-mode .product-card__order,
.qr-mode .contact__item--whatsapp {
  display: none;
}

.qr-mode .hero__actions {
  grid-template-columns: 1fr;
}

.contact__grid {
  display: grid;
  gap: 12px;
}

.contact__item {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(240, 196, 117, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.contact__item span {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact__item strong {
  overflow-wrap: anywhere;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px 18px calc(30px + var(--safe-bottom));
  border-top: 1px solid rgba(240, 196, 117, 0.2);
  color: var(--muted);
}

.footer p {
  display: grid;
  margin: 0;
}

.footer strong {
  color: var(--text);
}

.photo-modal {
  width: min(980px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid rgba(240, 196, 117, 0.34);
  border-radius: var(--radius);
  background: #050606;
  box-shadow: var(--shadow);
}

.photo-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.photo-modal img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.photo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(240, 196, 117, 0.35);
  border-radius: 999px;
  background: rgba(5, 6, 6, 0.78);
  color: var(--text);
  cursor: pointer;
}

@media (min-width: 560px) {
  .hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-grid,
  .contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery__item--wide {
    grid-column: 1 / -1;
  }

  .section__heading--split {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (min-width: 920px) {
  .hero {
    min-height: 86vh;
  }

  .brand img {
    width: 84px;
  }

  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery__grid {
    grid-template-columns: 1.18fr 0.82fr 0.82fr;
    align-items: stretch;
  }

  .gallery__item--wide {
    grid-column: auto;
    grid-row: span 2;
  }

  .contact__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
