:root {
  color-scheme: light;
  --bg: #fbf4e7;
  --panel: #fffaf1;
  --ink: #1d1712;
  --muted: #6d6258;
  --line: rgba(29, 23, 18, 0.14);
  --accent: #c8462f;
  --accent-2: #275d44;
  --light: #fff;
  --shadow: 0 22px 60px rgba(31, 25, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

.demo-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 10px clamp(16px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(16px);
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.brand-dot {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

.demo-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 850;
}

.demo-nav a {
  min-height: 40px;
  padding: 10px 11px;
  border-radius: 8px;
}

.demo-nav a:hover {
  background: rgba(255, 255, 255, 0.64);
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
}

.lang-switch button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 950;
  padding: 8px 10px;
}

.lang-switch button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.zetha-link {
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero {
  position: relative;
  display: grid;
  min-height: 78vh;
  align-items: end;
  padding: clamp(78px, 12vw, 140px) clamp(18px, 5vw, 72px) clamp(34px, 7vw, 72px);
  overflow: hidden;
}

.hero-media,
.hero::after {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.03);
}

.hero::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(14, 11, 8, 0.78), rgba(14, 11, 8, 0.34), rgba(14, 11, 8, 0.1)),
    linear-gradient(0deg, rgba(14, 11, 8, 0.62), rgba(14, 11, 8, 0.02) 62%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  color: #fff;
}

.demo-disclaimer,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffe4b2;
  font-size: 0.78rem;
  font-weight: 950;
}

h1 {
  margin: 18px 0 0;
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions,
.card-actions,
.sticky-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 17px;
  font-weight: 950;
  text-align: center;
}

.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.secondary {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.light-button {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

.section {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head h2,
.qr-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1.02;
}

.section-head p,
.menu-item p,
.info-card p,
.review-card p,
.qr-card p {
  color: var(--muted);
  line-height: 1.62;
}

.menu-grid,
.info-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.menu-category,
.info-card,
.review-card,
.qr-card,
.map-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.menu-category {
  padding: 20px;
}

.menu-category h3,
.info-card h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.menu-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.menu-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-weight: 950;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 900;
}

.info-card,
.review-card {
  padding: 22px;
}

.qr-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(220px, 0.3fr);
  gap: 24px;
  align-items: center;
}

.qr-card {
  padding: 26px;
}

.qr-code {
  display: grid;
  width: min(220px, 60vw);
  aspect-ratio: 1;
  place-items: center;
  border: 10px solid #fff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--ink) 12px, transparent 12px) 0 0/32px 32px,
    linear-gradient(var(--ink) 12px, transparent 12px) 0 0/32px 32px,
    #fff;
  box-shadow: var(--shadow);
}

.qr-code span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent);
  font-weight: 950;
}

.map-card {
  overflow: hidden;
}

.map-card iframe {
  width: 100%;
  min-height: 330px;
  border: 0;
  display: block;
}

.map-fallback {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--panel);
}

.sticky-cta {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.sticky-cta a {
  min-height: 46px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 950;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 4vw, 56px) 88px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

body.theme-trattoria { --bg: #f7efe1; --panel: #fff9ed; --ink: #1c2418; --accent: #b53324; --accent-2: #31563b; }
body.theme-sushi { --bg: #111414; --panel: #191d1d; --ink: #f6f1e8; --muted: #c9beb0; --line: rgba(255,255,255,0.14); --accent: #d7aa54; --accent-2: #fff; }
body.theme-pizzeria { --bg: #fff2cf; --panel: #fff9e8; --ink: #251409; --accent: #db2f1c; --accent-2: #f0ab1d; }
body.theme-bar { --bg: #f8f0dc; --panel: #fffaf0; --ink: #242019; --accent: #8b5a24; --accent-2: #3d7a72; }
body.theme-gelato { --bg: #f2fbff; --panel: #ffffff; --ink: #1e2a32; --accent: #ef6fa7; --accent-2: #47a6b8; }
body.theme-premium { --bg: #12100d; --panel: #1c1813; --ink: #f8f0df; --muted: #cfc0aa; --line: rgba(255,255,255,0.14); --accent: #caa25a; --accent-2: #fff; }

body.theme-sushi .demo-top,
body.theme-premium .demo-top {
  background: rgba(20, 20, 18, 0.9);
}

body.theme-sushi .zetha-link,
body.theme-premium .zetha-link,
body.theme-sushi .light-button,
body.theme-premium .light-button {
  background: var(--panel);
  color: var(--ink);
}

body.theme-sushi .sticky-cta,
body.theme-premium .sticky-cta {
  background: rgba(20, 18, 14, 0.95);
  border-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 860px) {
  .demo-nav {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
  }

  .hero {
    min-height: 82vh;
  }

  .menu-grid,
  .info-grid,
  .review-grid,
  .qr-wrap {
    grid-template-columns: 1fr;
  }

  .sticky-cta {
    display: grid;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.35rem, 13vw, 4.2rem);
  }

  .button {
    width: 100%;
  }

  .sticky-cta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
