﻿/* =========================
     1. Theme variables
     ========================= */
:root {
  --cream: #ede7db;
  --ink: #222220;
  --paper: #ffffff;
  --header-bg: #ffffff;
  --header-ink: #111111;
  --page-bg: var(--cream);
  --page-ink: #2b2a27;
  --card-bg: #ffffff;
  --card-ink: #111111;
  --ph: #dcdcdc;
  --dark: #222220;
  --dark-ink: #ede7db;
  --btn-bg: #222220;
  --btn-ink: #ffffff;
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

:root[data-theme="dark"] {
  --header-bg: #2a2825;
  --header-ink: #ede7db;
  --page-bg: #1f1d1a;
  --page-ink: #ede7db;
  --btn-bg: #ede7db;
  --btn-ink: #1f1d1a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --header-bg: #2a2825;
    --header-ink: #ede7db;
    --page-bg: #1f1d1a;
    --page-ink: #ede7db;
    --btn-bg: #ede7db;
    --btn-ink: #1f1d1a;
  }
}

/* =========================
     2. Base styles
     ========================= */
html {
  scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--page-ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-page="dark"] {
  --page-bg: #222220;
  --page-ink: #f4f0e8;
  --header-bg: #222220;
  --header-ink: #f4f0e8;
  background: #222220;
}

body[data-page="dark"] .pager .btn {
  background: #3a3936;
  color: #f4f0e8;
}

a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid #b8741a;
  outline-offset: 3px;
}

main {
  flex: 1;
  outline: none;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: auto;
  padding:  24px;
  justify-content: center;
  text-align: center;
  align-items: center;
}

/* =========================
     3. Header and navigation
     ========================= */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 24px;
  background: var(--header-bg);

  color: var(--header-ink);
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-toggle {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.cart-toggle svg {
  width: 23px;
  height: 23px;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.05);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.7;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.lang-btn.is-active {
  background: var(--btn-bg);
  color: var(--btn-ink);
  opacity: 1;
}

.lang-btn .lang-abbr {
  display: inline;
}

.lang-btn .lang-full,
.lang-btn .lang-abbr {
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.lang-btn .lang-full {
  display: none;
}

.lang-btn.is-active .lang-full {
  display: inline;
  animation: lang-label-in 220ms ease both;
}

.lang-btn.is-active .lang-abbr {
  display: none;
}

.lang-btn:not(.is-active) {
  animation: lang-button-in 220ms ease both;
}

@keyframes lang-label-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lang-button-in {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lang-btn,
  .lang-btn .lang-full,
  .lang-btn .lang-abbr {
    animation: none;
    transition: none;
  }
}

.logo-link {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.logo-link img,
.logo img,
.footer-logo img {
  display: block;
  width: 120px;
  height: auto;
}

.logo-link svg {
  width: 92px;
  height: auto;
  display: block;
}

.icon-btn {
  background: none;
  border: 0;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* =========================
     4. Hero and general content
     ========================= */
.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  min-height: calc(100svh - 66px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: #6d4f37;
  background-image:
    linear-gradient(
      180deg,
      rgba(20, 14, 8, 0.15) 0%,
      rgba(20, 14, 8, 0.55) 100%
    ),
    radial-gradient(60% 45% at 72% 22%, #d9c1a0 0%, transparent 70%),
    radial-gradient(45% 40% at 18% 70%, #8a3b2a 0%, transparent 70%),
    radial-gradient(50% 40% at 62% 62%, #b98a52 0%, transparent 72%);
  background-size: cover;
  background-position: center;
}

.hero.has-img {
  background-image:
    linear-gradient(180deg, rgba(20, 14, 8, 0.15), rgba(20, 14, 8, 0.55)),
    var(--hero-img);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(20, 14, 8, 0.15) 0%,
    rgba(20, 14, 8, 0.55) 100%
  );
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 48px 24px 64px;
  max-width: 640px;
  margin: 0 auto; /* centers the box horizontally */
  text-align: center; /* centers the text inside it */
}

.hero h1 {
  margin: 0 auto;
  font-size: clamp(38px, 9vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 auto 26px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 44ch;
}

@media (min-width: 768px) {
  .hero {
    align-items: center;
  }

  .hero-inner {
    padding: 48px 24px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.85);
  color: #222;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.signatures {
  padding: 64px 0 72px;
  background: var(--cream);
  color: #2b2a27;
}

.signatures .section-title {
  margin-bottom: 40px;
}

/* =========================
     5. Menu cards and sections
     ========================= */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card-bg);
  color: var(--card-ink);
  padding: 8px 8px 0;
}

.ph {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f3efe8 0%, #d9d1c4 100%);
  width: 100%;
  overflow: hidden;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(0, 0, 0, 0.08)),
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.7),
      transparent 24%
    ),
    linear-gradient(135deg, #ece4d6 0%, #d8d2c6 35%, #c7bca7 100%);
  opacity: 1;
}

.ph img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 18px 8px 20px;
  font-weight: 700;
}

.card-name {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card-price {
  font-size: 19px;
  white-space: nowrap;
}

.add-to-cart {
  width: 100%;
  min-height: 40px;
  margin: 0 0 8px;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.add-to-cart:hover,
.cart-clear:hover {
  opacity: 0.82;
}

.add-to-cart.is-added,
.add-to-cart.is-added:hover {
  background: #248a46;
  color: #fff;
  opacity: 1;
}

.cart-dialog {
  width: min(520px, calc(100% - 24px));
  max-width: none;
  max-height: min(82vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--card-ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.cart-dialog::backdrop {
  background: rgba(20, 18, 15, 0.62);
  backdrop-filter: blur(3px);
}

.cart-panel {
  padding: 24px;
}

.cart-header,
.cart-row,
.cart-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-header {
  margin-bottom: 20px;
}

.cart-header h2 {
  margin: 0;
  font-size: 24px;
}

.cart-note {
  margin: 5px 0 0;
  font-size: 14px;
  opacity: 0.75;
}

.cart-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.cart-items {
  max-height: min(48vh, 440px);
  overflow-y: auto;
}

.cart-empty {
  margin: 0;
  padding: 28px 0;
  text-align: center;
  opacity: 0.7;
}

.cart-row {
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.cart-row-info {
  min-width: 0;
}

.cart-row-title {
  display: block;
  font-weight: 700;
}

.cart-row-actions {
  flex-shrink: 0;
}

.cart-row-actions button {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid rgba(128, 128, 128, 0.4);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.cart-row-actions .cart-remove {
  width: auto;
  padding: 0 8px;
  border: 0;
  text-decoration: underline;
}

.cart-summary {
  margin-top: 18px;
}

.cart-clear {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 420px) {
  .site-header {
    gap: 8px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-header .logo-link img {
    width: 100px;
  }

  .header-actions {
    gap: 8px;
  }

  .lang-btn {
    padding-right: 7px;
    padding-left: 7px;
  }

  .cart-toggle {
    width: 34px;
    height: 34px;
  }

  .cart-panel {
    padding: 18px;
  }

  .cart-row {
    flex-wrap: wrap;
  }

  .cart-row-actions {
    margin-left: auto;
  }
}

.menu-head {
  text-align: center;
  padding: 72px 0 8px;
}

.menu-head h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 8vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.menu-head p {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.55;
}

.menu-section {
  padding-top: 56px;
}

.menu-section > h2 {
  text-align: center;
  margin: 0 0 32px;
  font-size: 26px;
  font-weight: 700;
}

.menu-section > h2.sub {
  margin-top: 24px;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 56px 24px 72px;
  flex-wrap: wrap;
}

.pager .btn {
  height: 44px;
  padding: 0 18px;
}

.pager .btn.square {
  padding: 0 12px;
}

.pager .btn.next {
  min-width: 176px;
  justify-content: space-between;
}

/* =========================
     6. FAQ and footer
     ========================= */
.faq {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 56px 0 72px;
 /* border-top: 4px solid #4a4843;*/
  text-align: center;
  justify-content: center;
}

.faq h2.big {
  margin: 0 0 40px;
  font-size: clamp(64px, 16vw, 104px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.faq-list {
  display: grid;
  gap: 44px;
  max-width: 720px;
  align-content: center;
  text-align: center;
  justify-content: center;

}

.faq h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

.faq p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  max-width: 56ch;
  opacity: 0.92;
  text-align: center;
}

.site-footer {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 72px 0 56px;
}

.footer-map {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 40px;
  border-radius: 8px;
  overflow: hidden;
}

.footer-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
}

body[data-page="dark"] .site-footer {
  border-top: 1px solid #3a3835;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 44px;
  margin-bottom: 56px;
}

.socials a {
  display: inline-flex;
  padding: 6px;
  color: inherit;
}

.socials svg {
  width: 26px;
  height: 26px;
}

/* =========================
     7. Overlay menu
     ========================= */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--cream);
  color: #111;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px
    calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.overlay::before {
  display: none;
}

.overlay > * {
  position: relative;
  z-index: 1;
}

.overlay.open {
  display: flex;
}

.overlay .close {
  align-self: flex-start;
}

.overlay .close svg {
  width: 24px;
  height: 24px;
}

.overlay .logo {
  margin-top: 14px;
}

.overlay .logo svg {
  width: 124px;
  height: auto;
  display: block;
}

.overlay nav {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overlay nav a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  text-decoration: none;
}

.overlay nav a[aria-current="page"] {
  font-weight: 700;
}

.overlay .socials {
  margin: 48px 0 0;
  gap: 28px;
}

.overlay .socials svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 720px) {
  .overlay {
    isolation: isolate;
    align-items: flex-end;
    padding: calc(32px + env(safe-area-inset-top, 0px)) 32px 32px;
    background: rgba(20, 18, 15, 0.38);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .overlay::before {
    content: "";
    display: block;
    position: fixed;
    z-index: 0;
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
    left: auto;
    width: min(380px, calc(100vw - 32px));
    height: min(560px, calc(100svh - 32px));
    transform: none;
    border-radius: 8px;
    background: var(--cream);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  }

  .overlay .close {
    position: absolute;
    z-index: 2;
    top: calc(32px + env(safe-area-inset-top, 0px));
    right: 40px;
  }

  .overlay .logo,
  .overlay nav,
  .overlay .socials {
    width: min(332px, calc(100vw - 80px));
  }
}

/* =========================
     8. Interactions and motion
     ========================= */
@media (hover: hover) {
  .card {
    position: relative;
  }

  .card:hover,
  .card:focus-within {
    box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.35);
  }

  .card:hover .ph,
  .card:focus-within .ph {
    background: #cfcfcf;
  }

  .card-name {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px
      no-repeat;
    padding-bottom: 2px;
  }

  .card:hover .card-name {
    background-size: 100% 2px;
  }

  .btn:hover {
    background: #3a3936;
  }

  .btn.ghost:hover {
    background: #fff;
  }

  .btn:hover svg {
    transform: translateX(3px);
  }

  .btn.square:hover svg {
    transform: translateX(-3px);
  }

  body[data-page="dark"] .btn:hover {
    background: #ede7db;
    color: #222220;
  }

  .icon-btn:hover svg {
    transform: scale(1.12);
  }

  .socials a:hover svg {
    transform: translateY(-3px);
  }

  .logo-link:hover {
    opacity: 0.7;
  }

  .overlay nav a {
    background: linear-gradient(currentColor, currentColor) 50%
      calc(100% - 6px) / 0 1.5px no-repeat;
  }

  .overlay nav a:hover {
    background-size: calc(100% - 32px) 1.5px;
  }

  .faq h3 {
    transition: none;
  }

  .faq-list > div:hover h3 {
    color: #fff;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card {
    transition:
      transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
      box-shadow 0.25s ease;
  }

  .card:hover,
  .card:focus-within {
    transform: translateY(-4px);
  }

  .ph {
    transition: background-color 0.25s ease;
  }

  .ph img {
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .card:hover .ph img {
    transform: scale(1.05);
  }

  .card-name {
    transition: background-size 0.3s ease;
  }

  .btn {
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .btn svg,
  .icon-btn svg,
  .socials svg {
    transition: transform 0.2s ease;
  }

  .logo-link {
    transition: opacity 0.2s ease;
  }

  .overlay nav a {
    transition: background-size 0.3s ease;
  }

  .faq h3 {
    transition: color 0.2s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .btn:hover svg,
  .socials a:hover svg {
    transform: none;
  }
}
