/* ===== Kenora — public site =====
   Brand tokens (--burgundy, --gold, --font-en …) are injected per-request by
   the renderer from the dashboard's theme settings, so this file never
   hard-codes a brand colour or typeface. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  font-size: var(--base-size, 16px);
  color: var(--black);
  background: var(--ivory);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { font-family: var(--font-ar); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: var(--heading-ls, .01em); line-height: 1.2; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  display: block;
  font-size: .75rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600;
}
.sec--light .eyebrow { color: var(--burgundy); }

/* ===== Draft preview banner ===== */
.preview-bar {
  position: sticky; top: 0; z-index: 200;
  background: var(--gold); color: var(--black);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-align: center; padding: 7px 12px;
}
.preview-bar a { text-decoration: underline; }

/* ===== Header ===== */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header.is-sticky { position: fixed; }
.site-header.scrolled {
  background: color-mix(in srgb, var(--black) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgb(0 0 0 / .25);
}
.header-inner {
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand-mark { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark img { width: auto; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark span:first-child {
  font-size: 1.06rem; font-weight: 700; letter-spacing: .12em; color: var(--ink);
}
.wordmark span:last-child {
  font-size: .53rem; letter-spacing: .18em; color: var(--gold-soft); margin-top: 3px;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: .84rem; letter-spacing: .04em; color: var(--ink);
  font-weight: 600; position: relative; padding: 6px 0;
}
.nav-link::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: 0;
  height: 1px; width: 0; background: var(--gold); transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  padding: 7px 13px; border-radius: 999px; background: transparent; cursor: pointer;
  white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }

.btn-reserve, .btn-outline, .btn-dark {
  display: inline-block; border-radius: 999px; white-space: nowrap;
  font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  padding: 12px 24px; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-reserve { background: var(--gold); color: var(--black); }
.btn-reserve:hover { background: var(--gold-soft); }
.btn-outline { border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.sec--light .btn-outline { border-color: color-mix(in srgb, var(--black) 30%, transparent); color: var(--black); }
.sec--light .btn-outline:hover { border-color: var(--burgundy); color: var(--burgundy); }
.btn-dark { background: var(--black); color: var(--ink); }
.btn-dark:hover { background: var(--burgundy); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 4px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }

.mobile-nav {
  position: fixed; inset: 0; background: var(--black); z-index: 99;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transform: translateY(-100%); transition: transform .35s ease; visibility: hidden;
}
.mobile-nav.open { transform: translateY(0); visibility: visible; }
.mobile-nav a { font-size: 1.25rem; color: var(--ink); font-weight: 600; }
.mobile-close {
  position: absolute; top: 24px; inset-inline-end: 6vw; background: none; border: 0;
  color: var(--ink); font-size: 1.9rem; cursor: pointer; line-height: 1;
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100svh; background: var(--black);
  display: flex; align-items: center; overflow: hidden; perspective: 1400px;
}
.hero-scene { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .25s ease-out; }
.hero-pattern {
  position: absolute; inset: -10%; opacity: .16;
  background: url('/patterns/pattern-on-black.png') repeat; background-size: 420px;
  will-change: transform;
}
.hero-pattern.p2 { opacity: .22; background-size: 620px; }
.hero-content {
  position: relative; z-index: 3; width: 100%; max-width: 1280px; margin: 0 auto;
  padding: calc(var(--header-h) + 5vh) 6vw 6vh;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.hero-logo { height: auto; margin-bottom: 26px; opacity: .95; }
.hero-content h1 {
  color: var(--ink); font-size: clamp(1.9rem, 5vw, 3.6rem);
  max-width: 16ch; line-height: 1.15; margin: 6px 0 10px;
}
.hero-ar {
  font-family: var(--font-ar); color: var(--gold-soft);
  font-size: clamp(1rem, 2.2vw, 1.4rem); margin-bottom: 20px; direction: rtl;
}
.tagline-sub { color: var(--ink-dim); max-width: 46ch; font-size: .97rem; }
.hero-content .btn-row { margin-top: 32px; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--ink-dim); font-size: .69rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3;
}
.scroll-hint .line {
  width: 1px; height: 26px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollpulse 2s ease infinite;
}
@keyframes scrollpulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ===== Generic section shell ===== */
.sec { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 108px) 6vw; }
.sec--light { background: var(--ivory); color: var(--black); }
.sec--dark { background: var(--black); color: var(--ink); }
.sec--burgundy { background: var(--burgundy); color: var(--ink); }
.sec--dark h2, .sec--burgundy h2 { color: var(--ink); }
.sec--dark p, .sec--burgundy p { color: color-mix(in srgb, var(--ink) 80%, transparent); }
.sec--light p { color: #4a4440; }

.pattern-bg { position: absolute; inset: 0; opacity: .06; background-repeat: repeat; background-size: 380px; }
.sec--dark .pattern-bg, .sec--burgundy .pattern-bg { opacity: .12; }

.sec-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }
.sec-inner--narrow { max-width: 720px; text-align: center; }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 14px 0 0; }
.sec-inner--narrow h2 { margin-bottom: 20px; }
.sec-inner--narrow > p { font-size: 1rem; }

.rte { font-size: 1rem; }
.rte p + p { margin-top: 1em; }
.rte ul, .rte ol { margin: 1em 0; padding-inline-start: 1.4em; }
.rte a { color: var(--burgundy); text-decoration: underline; }
.sec--dark .rte a, .sec--burgundy .rte a { color: var(--gold); }
.rte .gold { color: var(--gold); }
.rte .muted { opacity: .7; }
.rte .lead { font-size: 1.1em; }

/* ===== Pinned dish showcase ===== */
.featured { background: var(--black); position: relative; }
.featured-head { text-align: center; padding: clamp(64px, 8vw, 90px) 6vw 0; position: relative; z-index: 2; }
.featured-head h2 { color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 12px; }
.pin-wrap { position: relative; }
.pin-stage {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.dish-frame {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; opacity: 0; transform: scale(1.06);
  transition: opacity .6s ease, transform .8s ease; padding: 0 6vw; text-align: center;
}
.dish-frame.active { opacity: 1; transform: scale(1); }
.dish-photo, .dish-photo-placeholder {
  width: min(420px, 70vw); aspect-ratio: 4 / 5; border-radius: 6px;
  margin-bottom: 26px; position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.dish-photo img { width: 100%; height: 100%; object-fit: cover; }
.dish-photo-placeholder {
  background: linear-gradient(155deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  display: flex; align-items: center; justify-content: center;
}
.dish-photo-placeholder::before {
  content: ''; position: absolute; inset: 0; opacity: .25;
  background: url('/patterns/pattern-on-burgundy.png') repeat; background-size: 260px;
}
.dish-photo-placeholder span {
  position: relative; color: var(--gold-soft); font-size: .69rem;
  letter-spacing: .16em; text-transform: uppercase; padding: 0 20px;
}
.dish-frame h3 { color: var(--ink); font-size: 1.5rem; margin-bottom: 8px; }
.dish-frame p { color: var(--ink-dim); font-size: .88rem; max-width: 46ch; }
.pin-dots {
  position: absolute; inset-inline-end: 5vw; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; z-index: 4;
}
.pin-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 25%, transparent);
  transition: background .3s ease, transform .3s ease;
}
.pin-dots span.active { background: var(--gold); transform: scale(1.4); }

/* ===== Menu grid ===== */
.menu-grid { display: grid; gap: 28px; }
.menu-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.menu-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.menu-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.menu-card {
  background: #fff; border: 1px solid #e7e0d3; border-radius: 8px;
  padding: 24px 22px; display: flex; flex-direction: column;
}
.sec--dark .menu-card, .sec--burgundy .menu-card {
  background: color-mix(in srgb, var(--black) 55%, transparent);
  border-color: color-mix(in srgb, var(--gold) 22%, transparent);
}
.menu-card-img { margin: -24px -22px 18px; aspect-ratio: 3 / 2; overflow: hidden; }
.menu-card-img img { width: 100%; height: 100%; object-fit: cover; }
.menu-card .cat {
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--burgundy); font-weight: 700;
}
.sec--dark .menu-card .cat, .sec--burgundy .menu-card .cat { color: var(--gold-soft); }
.menu-card h3 { font-size: 1.06rem; margin: 10px 0 8px; }
.sec--dark .menu-card h3, .sec--burgundy .menu-card h3 { color: var(--ink); }
.menu-card p { font-size: .84rem; color: #6b625a; margin-bottom: 14px; flex: 1; }
.sec--dark .menu-card p, .sec--burgundy .menu-card p { color: var(--ink-dim); }
.menu-card .price { font-size: .75rem; color: var(--gold); font-weight: 700; letter-spacing: .03em; }
.menu-cat + .menu-cat { margin-top: 56px; }
.menu-cat-title {
  font-size: 1.25rem; margin-bottom: 22px; padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.sec--menu .btn-row { margin-top: 44px; }

/* ===== Gallery ===== */
.gal-grid { display: grid; gap: 18px; }
.gal-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gal-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gal-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gal-item { position: relative; overflow: hidden; border-radius: 6px; }
.gal-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.gal-item:hover img { transform: scale(1.04); }
.gal-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 20px 16px 12px;
  background: linear-gradient(transparent, rgb(0 0 0 / .7));
  color: #fff; font-size: .78rem;
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-col address { font-style: normal; font-size: 1rem; margin-bottom: 14px; }
.contact-col a { text-decoration: underline; }
.contact-col a:hover { color: var(--burgundy); }
.sec--dark .contact-col a:hover, .sec--burgundy .contact-col a:hover { color: var(--gold); }
.hours-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  font-size: .9rem;
}
.map-wrap { margin-top: 40px; border-radius: 8px; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ===== Divider ===== */
.sec--divider { display: flex; align-items: center; justify-content: center; overflow: visible; }
.sec--divider.space-sm { padding: 28px 6vw; }
.sec--divider.space-md { padding: 56px 6vw; }
.sec--divider.space-lg { padding: 96px 6vw; }
.sec--divider .rule { width: min(120px, 30vw); height: 1px; background: var(--gold); opacity: .7; }

/* ===== Footer ===== */
.site-footer { background: var(--black); color: var(--ink-dim); padding: 60px 6vw 34px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  max-width: 1180px; margin: 0 auto 40px;
}
.footer-brand img { height: 34px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .84rem; max-width: 32ch; }
.social-row { display: flex; gap: 14px; margin-top: 16px; font-size: .8rem; }
.social-row a:hover { color: var(--gold); }
.footer-col h4 {
  color: var(--ink); font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a, .footer-col p { display: block; font-size: .84rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); padding-top: 24px;
  max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between;
  font-size: .72rem; flex-wrap: wrap; gap: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .menu-grid.cols-3, .menu-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .gal-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .menu-grid, .menu-grid.cols-2, .menu-grid.cols-3, .menu-grid.cols-4 { grid-template-columns: 1fr; }
  .gal-grid.cols-3, .gal-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .lang-toggle { padding: 6px 10px; }
  .wordmark { display: none; }
  .btn-row { flex-direction: column; width: 100%; }
  .btn-row a { width: 100%; text-align: center; }
  .pin-dots { inset-inline-end: 3vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scene, .hero-pattern, .scroll-hint .line, .dish-frame, .gal-item img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .dish-frame { opacity: 1; position: relative; inset: auto; }
  .pin-stage { position: relative; height: auto; display: block; padding: 40px 0; }
  .pin-track { display: none; }
  .pin-dots { display: none; }
}
