/* =========================================================
   Jarna Traditional Restaurant base styles
   (extends Tailwind via Play CDN)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Bilingual visibility ---------- */
html[lang="en"] [data-lang]:not([data-lang="en"]) { display: none !important; }
html[lang="sq"] [data-lang]:not([data-lang="sq"]) { display: none !important; }

/* ---------- Root palette ---------- */
:root {
  --cream:     #FAF6EE;
  --bone:      #F3EBD9;
  --sand:      #E8DCC0;
  --terracotta:#C84B31;
  --brick:     #8B3A1F;
  --espresso:  #2A1810;
  --ink:       #120905;
  --gold:      #D4A94A;
  --sage:      #6B7F5E;
  --muted:     #6B5A50;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--espresso);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, .font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

/* ---------- Hero wordmark ---------- */
.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.05em;
  color: var(--espresso);
  line-height: 0.82;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-transform: lowercase;
}

/* ---------- Paper grain overlay ---------- */
.texture-paper { position: relative; }
.texture-paper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.09 0 0 0 0 0.06 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.55;
}

/* ---------- Folk-pattern border strip ---------- */
.folk-border {
  height: 10px;
  background-image:
    radial-gradient(circle at 8px 5px, var(--terracotta) 2px, transparent 2.5px),
    radial-gradient(circle at 20px 5px, var(--espresso) 2px, transparent 2.5px);
  background-size: 28px 10px;
  background-repeat: repeat-x;
}
.folk-border-fine {
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--terracotta) 0 14px,
    transparent 14px 20px,
    var(--espresso) 20px 26px,
    transparent 26px 34px
  );
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.8rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  border: 1.5px solid var(--terracotta);
}
.btn-primary:hover { background: var(--brick); border-color: var(--brick); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border: 1.5px solid var(--espresso);
}
.btn-ghost:hover { background: var(--espresso); color: var(--cream); }

.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(250,246,238,0.55);
}
.btn-ghost-light:hover { background: var(--cream); color: var(--espresso); border-color: var(--cream); }

/* ---------- Header ---------- */
[data-header] {
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
[data-header].is-scrolled {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(42, 24, 16, 0.08);
}
.logo-mark { height: 42px; width: auto; display: block; }
.logo-mark-sm { height: 34px; }

/* ---------- Nav links ---------- */
.nav-link {
  position: relative;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso);
  padding: 0.5rem 0;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width .3s ease, left .3s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; left: 0; }
.nav-link.is-active { color: var(--terracotta); }

/* ---------- Mobile nav panel ---------- */
[data-nav-panel] {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 60;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(0.6, 0, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
}
[data-nav-panel].is-open { transform: translateY(0); }
[data-nav-panel] a {
  font-family: 'Fraunces', serif;
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--espresso);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(42, 24, 16, 0.12);
}
[data-nav-panel] .btn {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  white-space: normal;
  text-align: center;
}
[data-nav-panel] a.btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  border-bottom: none;
}

/* ---------- Hamburger ---------- */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
}
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--espresso);
  transition: all .3s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
[aria-expanded="true"] .hamburger span:nth-child(1) { top: 9px; transform: rotate(45deg); }
[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .hamburger span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ---------- Reveal animation (CSS-only, runs once on load) ---------- */
/* Pure CSS animation with `forwards` fill, elements are always in their
   final visible state after the animation, regardless of JS, observer, or
   screenshot timing. Bots and crawlers also see fully-rendered content. */
.reveal {
  animation: reveal-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both;
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal-delay-1 { animation-delay: 0.14s; }
.reveal-delay-2 { animation-delay: 0.22s; }
.reveal-delay-3 { animation-delay: 0.30s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none !important; }
}

/* ---------- Gallery ---------- */
.gallery-item {
  overflow: hidden;
  border-radius: 2px;
  background: var(--bone);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Dish tag ---------- */
.tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  background: rgba(200, 75, 49, 0.08);
  border: 1px solid rgba(200, 75, 49, 0.25);
  border-radius: 999px;
}

/* ---------- Section eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--terracotta);
}

/* ---------- Menu page ---------- */
.menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(42, 24, 16, 0.18);
}
.menu-row:last-child { border-bottom: none; }
.menu-row .name {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--espresso);
}
.menu-row .desc {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  max-width: 46ch;
}
.menu-row .price {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--terracotta);
  white-space: nowrap;
  font-size: 1rem;
}

/* ---------- Utility: big display fill ---------- */
.fill-display {
  font-size: clamp(5rem, 18vw, 18rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
}

/* ---------- Stars ---------- */
.stars { color: var(--gold); letter-spacing: 0.15em; }
