:root {
  color-scheme: light;
  --bg: #f5efe6;
  --surface: #fffdf8;
  --surface-strong: #f7f0e5;
  --border: #d7c4b0;
  --text: #2f261f;
  --muted: #6c5a4e;
  --accent: #b07d62;
  --accent-soft: rgba(176, 125, 98, 0.16);
  --shadow: 0 18px 44px rgba(47, 38, 31, 0.14);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, rgba(176, 125, 98, 0.12), transparent 35%),
    linear-gradient(180deg, #fbf2ea 0%, #efe1d3 100%);
  color: var(--text);
}

body {
  line-height: 1.55;
  font-family: 'Cormorant Garamond', serif;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 24px 20px 18px;
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0 16px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.logo-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.home-logo-img {
  width: min(100%, 240px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.lang-btn,
.ghost-btn,
.detail-btn,
.subtab-btn,
.home-card {
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.lang-btn {
  padding: 14px 16px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: #c78a6f;
}

.ghost-btn,
.subtab-btn,
.detail-btn {
  padding: 12px 14px;
  background: #fff6ef;
  color: var(--text);
}

.branch-home-btn {
  width: 100%;
  padding: 15px;
  text-align: center;
  background: #f4e6d8;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 2px;
  border: 1px solid rgba(176, 125, 98, 0.24);
  border-radius: 0;
  margin-top: 18px;
  display: grid;
  place-items: center;
}

.branch-home-btn:hover,
.branch-home-btn:focus-visible {
  background: #e7d2c0;
}

.ghost-btn:hover,
.subtab-btn:hover,
.detail-btn:hover,
.ghost-btn:focus-visible,
.subtab-btn:focus-visible,
.detail-btn:focus-visible {
  background: #f2e5d6;
}

.app-content {
  margin-top: 28px;
}

.home-screen,
.menu-screen {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
}

.home-screen {
  justify-content: flex-start;
}

.home-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.home-card {
  width: 100%;
  padding: 15px;
  text-align: center;
  background: #f4e6d8;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 2px;
  border-radius: 0;
  min-height: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(176, 125, 98, 0.24);
}

.home-card:hover,
.home-card:focus-visible {
  background: #e7d2c0;
}

.home-card:focus-visible {
  outline: 2px solid #b07d62;
  outline-offset: 2px;
}

.home-lang {
  margin-top: 24px;
  width: 100%;
  padding: 18px 20px;
  background: #ff5a37;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.menu-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 18px 0 24px;
  text-align: center;
}

.menu-back-btn {
  align-self: flex-start;
  padding: 12px 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(176, 125, 98, 0.3);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(47, 38, 31, 0.08);
}

.menu-back-btn:hover,
.menu-back-btn:focus-visible {
  background: #f7f0e2;
}

.page-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.branch-label {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.menu-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.subtab-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 0 auto 26px;
  max-width: 760px;
  justify-content: center;
}

.subtab-panel.hidden {
  display: none;
}

.subtab-btn {
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #f7f3ee;
  color: var(--text);
  font-weight: 600;
  text-align: center;
}

.hidden {
  display: none !important;
}

.branch-card,
.home-card {
  width: 100%;
  padding: 15px;
  text-align: center;
  background: #f4e6d8;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 2px;
  border-radius: 0;
  min-height: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(176, 125, 98, 0.24);
}

.branch-card:hover,
.branch-card:focus-visible,
.home-card:hover,
.home-card:focus-visible {
  background: #e7d2c0;
}

.branch-card:focus-visible,
.home-card:focus-visible {
  outline: 2px solid #b07d62;
  outline-offset: 2px;
}

.subtab-btn {
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #f7f3ee;
  color: var(--text);
  font-weight: 600;
  text-align: left;
}

.subtab-btn.active,
.subtab-btn:hover {
  background: var(--accent-soft);
  border-color: rgba(176, 125, 98, 0.30);
}

.menu-grid {
  display: grid;
  gap: 18px;
  flex: 1;
}

.menu-back-btn {
  margin: 28px auto 0;
  width: min(100%, 360px);
  justify-self: center;
}

.menu-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid rgba(176, 125, 98, 0.18);
}

.menu-card .menu-tag {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.menu-card .menu-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.menu-right {
  display: grid;
  gap: 12px;
  align-items: start;
  text-align: right;
}

.menu-price {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

.detail-btn {
  padding: 12px 16px;
  color: var(--accent);
  background: rgba(176, 125, 98, 0.12);
}

.ghost-btn {
  padding: 12px 18px;
  background: #f2efe8;
  color: var(--text);
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(18, 24, 25, 0.65);
  padding: 20px;
}

.modal-backdrop[hidden],
.menu-screen.hidden,
.home-screen.hidden {
  display: none !important;
}

.modal-card {
  position: relative;
  width: min(100%, 520px);
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.menu-page {
  display: grid;
  gap: 40px;
}

.menu-intro {
  text-align: center;
  padding: 24px 0 12px;
}

.menu-intro h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 10px 0 10px;
}

.menu-note {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.menu-section {
  display: grid;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid rgba(176, 125, 98, 0.16);
}

.menu-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.menu-section h2 {
  margin: 0;
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(176, 125, 98, 0.10);
}

.menu-row:last-child {
  border-bottom: none;
}

.menu-name {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 700;
}

.item-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.menu-price {
  display: block;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
}

@media (max-width: 720px) {
  .menu-row {
    grid-template-columns: 1fr;
  }

  .menu-price {
    margin-top: 10px;
  }
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #f2efe8;
  color: var(--text);
  font-size: 1.4rem;
}

.modal-card h3 {
  margin: 0 0 14px;
}

.modal-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.modal-meta {
  margin: 0 10px 0 0;
  color: var(--text);
}

@media (max-width: 720px) {
  .menu-card {
    grid-template-columns: 1fr;
  }

  .menu-right {
    text-align: left;
  }
}

@media (min-width: 640px) {
  .page-shell {
    padding: 28px 22px 38px;
  }

  .menu-card {
    gap: 20px;
  }
}

@media (min-width: 900px) {
  .page-shell {
    padding: 36px 30px 40px;
  }

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

@media (max-width: 520px) {
  .topbar {
    flex-direction: column;
    align-items: center;
  }

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