/* ============================================
   CASPER - KARTA PICA
   ============================================ */

:root {
  --bg: #0c0c0a;
  --bg-nav: rgba(12, 12, 10, 0.92);
  --gold: #c8a96e;
  --gold-dim: rgba(200, 169, 110, 0.2);
  --gold-glow: rgba(200, 169, 110, 0.08);
  --text: #e8e4dc;
  --text-dim: rgba(232, 228, 220, 0.5);
  --text-faint: rgba(232, 228, 220, 0.15);
  --header-h: 56px;
  --nav-h: 44px;
  --top-offset: calc(var(--header-h) + var(--nav-h));
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-offset) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---- SPECIAL BANNER ---- */

.special-banner {
  display: none;
  background: linear-gradient(135deg, #2a2010, #1a1508);
  border-bottom: 1px solid var(--gold-dim);
  padding: 14px 20px;
  text-align: center;
}

.special-banner.visible {
  display: block;
}

.special-banner p {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.3px;
  line-height: 1.6;
}

.special-banner p + p {
  margin-top: 4px;
}

.special-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
}

/* ---- HEADER ---- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--text-faint);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(0.92) sepia(0.12) saturate(1.2);
  opacity: 0.4;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-links a {
  color: var(--text-dim);
  transition: color 0.25s;
  display: flex;
  align-items: center;
}

.header-links a:hover {
  color: var(--gold);
}

.header-links svg {
  width: 20px;
  height: 20px;
}

/* ---- CATEGORY NAV ---- */

.category-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 99;
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--text-faint);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.nav-inner {
  display: inline-flex;
  padding: 0 12px;
}

.nav-inner button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.nav-inner button:hover {
  color: var(--text);
}

.nav-inner button.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---- HERO ---- */

.hero {
  text-align: center;
  padding: 24px 20px 0;
}

.menu-section:first-child {
  padding-top: 20px;
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-line {
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
  margin: 24px auto 0;
}

/* ---- MENU SECTIONS ---- */

.menu-container {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

@media (min-width: 768px) {
  .menu-container {
    max-width: calc(100% - 100px);
  }
}

@media (min-width: 1400px) {
  .menu-container {
    max-width: 1200px;
  }
}

.menu-section {
  padding-top: 44px;
  padding-bottom: 12px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.category-title::before,
.category-title::after {
  content: '';
  flex: 1;
  height: 1px;
}

.category-title::before {
  background: linear-gradient(to right, transparent, var(--gold-dim));
}

.category-title::after {
  background: linear-gradient(to left, transparent, var(--gold-dim));
}

.category-title span {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* ---- SUBSECTIONS ---- */

.subsection-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--text-dim);
  text-align: center;
  margin: 28px 0 16px;
  letter-spacing: 0.5px;
}

.subsection-title:first-child {
  margin-top: 0;
}

/* ---- MENU ITEMS ---- */

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
}

.item-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  flex-shrink: 0;
}

.item-dots {
  flex: 1;
  min-width: 12px;
  border-bottom: 1px dotted var(--text-faint);
  transform: translateY(-3px);
}

.item-price {
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.item-price small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.6;
  margin-left: 2px;
}

.item-desc {
  font-size: 12px;
  color: var(--text-dim);
  padding: 0 0 4px;
  font-style: italic;
  line-height: 1.5;
}

/* ---- SECTION NOTE ---- */

.section-note {
  margin-top: 14px;
  padding-top: 8px;
  text-align: center;
  position: relative;
}

.section-note-ornament {
  display: block;
  color: var(--gold);
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 12px;
  letter-spacing: 8px;
}

.section-note-ornament::before,
.section-note-ornament::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold-dim);
  vertical-align: middle;
  margin: 0 12px;
}

.section-note-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  letter-spacing: 0.3px;
  max-width: 520px;
  margin: 0 auto;
}

.section-note-price {
  display: block;
  width: fit-content;
  margin: 10px auto 0;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  color: var(--gold);
  font-weight: 500;
  font-size: 13px;
  padding: 2px 10px;
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.section-note-price small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 1px;
}

@media (min-width: 768px) {
  .section-note {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding-top: 10px;
  }

  .section-note-text {
    font-size: 14px;
  }

  .section-note-price {
    display: inline-block;
    width: auto;
    margin: 0 0 0 6px;
    font-size: 14px;
    padding: 3px 12px;
  }
}

@media (max-width: 380px) {
  .section-note-text {
    font-size: 12px;
  }

  .section-note-price {
    font-size: 12px;
    padding: 2px 8px;
  }

  .section-note-ornament::before,
  .section-note-ornament::after {
    width: 24px;
    margin: 0 8px;
  }
}

/* ---- CATEGORY UNAVAILABLE ---- */

.category-unavailable {
  text-align: center;
  padding: 20px;
  border: 1px dashed var(--gold-dim);
  border-radius: 4px;
  margin-top: 4px;
}

.category-unavailable p {
  color: var(--gold);
  font-size: 13px;
  font-style: italic;
}

/* ---- FOOTER ---- */

.footer {
  border-top: 1px solid var(--text-faint);
  text-align: center;
  padding: 40px 20px;
  max-width: 620px;
  margin: 0 auto;
}

.footer-logo {
  height: 40px;
  filter: brightness(0) invert(0.92) sepia(0.12) saturate(1.2);
  margin-bottom: 20px;
  opacity: 0.4;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s;
}

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

.footer-links svg {
  width: 14px;
  height: 14px;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.3px;
}

/* ---- ANIMATIONS ---- */

.menu-section {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.menu-section.visible {
  opacity: 1;
}

/* ---- DESKTOP ---- */

@media (min-width: 768px) {
  :root {
    --header-h: 64px;
    --nav-h: 48px;
  }

  .logo img {
    height: 34px;
  }

  .header-links {
    gap: 20px;
  }

  .nav-inner button {
    font-size: 12px;
    padding: 14px 18px;
  }

  .hero {
    padding: 36px 20px 0;
  }

  .hero-subtitle {
    font-size: 15px;
    letter-spacing: 6px;
  }

  .menu-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    padding-top: 56px;
    padding-bottom: 16px;
  }

  .category-title,
  .subsection-title {
    grid-column: 1 / -1;
  }

  .category-title span {
    font-size: 28px;
  }

  .item-name {
    font-size: 15px;
  }

  .item-price {
    font-size: 15px;
  }

  .menu-item {
    padding: 8px 0;
  }

  .item-desc {
    font-size: 13px;
  }

  .footer {
    padding: 56px 20px;
  }
}

/* ---- SMALL PHONES ---- */

@media (max-width: 380px) {
  .hero-subtitle {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .category-title span {
    font-size: 20px;
  }

  .nav-inner button {
    font-size: 10px;
    padding: 10px 10px;
  }

  .item-name {
    font-size: 13px;
  }

  .item-price {
    font-size: 13px;
  }
}
