/* ============================================================
   Melt Bistro — style.css
   Paleta: dru i errët, okër (karriget), qumësht i ngrohtë, ullinj
   ============================================================ */

:root {
  --walnut: #2b1d16;      /* dru i errët — sfondi kryesor */
  --walnut-2: #3a2a21;    /* sipërfaqe pak më e hapur */
  --ochre: #c9a02a;       /* karriget okër — aksenti */
  --ochre-soft: #e3c766;
  --linen: #f1e8d8;       /* teksti mbi dru */
  --linen-dim: rgba(241, 232, 216, 0.66);
  --olive: #6d6b3d;       /* gjelbërim / dekor */
  --ink: #1d140f;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--linen);
  background: var(--walnut);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-variation-settings: "SOFT" 60, "opsz" 96;
  letter-spacing: -0.01em;
}
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}

section {
  padding: clamp(4rem, 9vw, 7.5rem) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

/* ---------- Butonat ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--ochre);
  color: var(--ink);
}
.btn-primary:hover { background: var(--ochre-soft); }
.btn-ghost {
  background: transparent;
  color: var(--linen);
  border-color: rgba(241, 232, 216, 0.35);
}
.btn-ghost:hover { border-color: var(--linen); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  background: rgba(43, 29, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(241, 232, 216, 0.08);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 500;
  text-decoration: none;
  color: var(--ochre);
  line-height: 1;
}
.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--linen-dim);
  transition: color 0.2s;
}
.nav a:hover { color: var(--linen); }
.nav-cta {
  color: var(--ochre) !important;
  border-bottom: 1px solid var(--ochre);
  padding-bottom: 2px;
}
.header-tools { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  background: none;
  border: 1px solid rgba(241, 232, 216, 0.25);
  border-radius: 999px;
  color: var(--linen-dim);
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.lang-toggle .sep { margin: 0 0.35em; opacity: 0.4; }
.lang-toggle .active { color: var(--ochre); }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--linen);
  transition: transform 0.25s;
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding-top: clamp(2rem, 5vw, 4rem);
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--linen-dim);
  margin-bottom: 1.5rem;
}
.hero-status .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #7fbf6a;
  box-shadow: 0 0 0 4px rgba(127, 191, 106, 0.2);
}
.hero-status.closed .dot { background: #b56a4d; box-shadow: 0 0 0 4px rgba(181, 106, 77, 0.2); }

/* Elementi kryesor: fjala "Melt" e madhe, e butë, sikur shkrihet */
.wordmark {
  font-size: clamp(6rem, 18vw, 15rem);
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 350;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--linen);
  margin: 0 0 1.5rem -0.05em;
  position: relative;
}
.wordmark-dot {
  color: var(--ochre);
  display: inline-block;
  animation: drip 6s ease-in-out infinite;
}
@keyframes drip {
  0%, 70%, 100% { transform: translateY(0) scaleY(1); }
  80%  { transform: translateY(0.08em) scaleY(1.25); }
  90%  { transform: translateY(0.02em) scaleY(0.95); }
}

.hero-sub {
  max-width: 34ch;
  font-size: 1.15rem;
  color: var(--linen-dim);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-visual { position: relative; }
.photo-hero {
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--radius) var(--radius); /* hark — si dyert e drurit */
}
.hero-badge {
  position: absolute;
  left: -1.5rem;
  bottom: 2rem;
  background: var(--ochre);
  color: var(--ink);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.hero-badge strong {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
}
.hero-badge span { font-size: 0.8rem; font-weight: 600; }

/* ---------- Vendet e fotove (placeholder) ---------- */
.photo-slot {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201, 160, 42, 0.18), transparent 55%),
    linear-gradient(160deg, var(--walnut-2), #24170f);
  border: 1px solid rgba(241, 232, 216, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.photo-slot:has(img) span { display: none; }
.photo-slot span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--linen-dim);
  font-size: 1rem;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Historia ---------- */
.story {
  border-top: 1px solid rgba(241, 232, 216, 0.08);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.story h2 { max-width: 14ch; }
.story-body p { max-width: 58ch; color: var(--linen-dim); }
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 160, 42, 0.35);
}
.facts dt { font-size: 0.85rem; color: var(--ochre); margin-bottom: 0.25rem; }
.facts dd { margin: 0; font-weight: 500; }

/* ---------- Menyja ---------- */
.menu {
  background: var(--linen);
  color: var(--ink);
  max-width: none;
}
.menu > * { max-width: var(--max); margin-inline: auto; }
.menu-head { margin-bottom: 2.5rem; }
.menu-head p { color: rgba(29, 20, 15, 0.65); margin: 0.5rem 0 0; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(29, 20, 15, 0.15);
  margin-bottom: 2rem;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 500;
  color: rgba(29, 20, 15, 0.55);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--ochre);
}

.menu-panel { display: none; }
.menu-panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4rem;
  row-gap: 1.5rem;
}
.dish {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dotted rgba(29, 20, 15, 0.25);
}
.dish h3 { font-variation-settings: "SOFT" 40, "opsz" 24; margin-bottom: 0.2rem; }
.dish p { margin: 0; font-size: 0.92rem; color: rgba(29, 20, 15, 0.6); }
.price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  white-space: nowrap;
}
.price::before { content: "€ "; font-size: 0.8em; opacity: 0.6; }

/* ---------- Galeria ---------- */
.gallery h2 { margin-bottom: 2rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.75rem;
}
.gallery-grid .photo-slot { border-radius: var(--radius); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

/* ---------- Rezervo ---------- */
.reserve {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  border-top: 1px solid rgba(241, 232, 216, 0.08);
}
.reserve-text p { color: var(--linen-dim); max-width: 40ch; margin-top: 1rem; }
.reserve-phone {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--ochre);
  text-decoration: none;
}

.reserve-form {
  background: var(--walnut-2);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  display: grid;
  gap: 1.1rem;
}
.reserve-form label { display: grid; gap: 0.4rem; font-size: 0.9rem; color: var(--linen-dim); }
.reserve-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  width: 100%;
  background: var(--walnut);
  border: 1px solid rgba(241, 232, 216, 0.15);
  border-radius: var(--radius);
  color: var(--linen);
  padding: 0.75rem 0.9rem;
  font: inherit;
  color-scheme: dark;
}
.reserve-form input:focus,
.reserve-form select:focus,
.reserve-form textarea:focus {
  outline: none;
  border-color: var(--ochre);
}
.reserve-form input.invalid { border-color: #b56a4d; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.form-error { color: #e09a7f; font-size: 0.9rem; margin: 0; }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid rgba(241, 232, 216, 0.08);
}
.contact address { font-style: normal; margin: 1.5rem 0 1rem; line-height: 1.7; }
.hours-line { color: var(--ochre); font-weight: 500; }
.links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.5rem; }
.links a { color: var(--linen-dim); text-decoration: none; border-bottom: 1px solid rgba(241, 232, 216, 0.2); }
.links a:hover { color: var(--linen); border-bottom-color: var(--ochre); }
.map { min-height: 360px; border-radius: var(--radius); overflow: hidden; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(0.4) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem var(--pad);
  border-top: 1px solid rgba(241, 232, 216, 0.08);
  font-size: 0.9rem;
  color: var(--linen-dim);
}
.site-footer a { color: var(--linen-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { order: -1; }
  .photo-hero { aspect-ratio: 16 / 10; border-radius: 120px 120px var(--radius) var(--radius); }
  .hero-badge { left: 1rem; bottom: 1rem; }
  .story-grid, .reserve, .contact { grid-template-columns: 1fr; }
  .menu-panel.is-active { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-grid .tall { grid-row: span 1; }
}

@media (max-width: 720px) {
  .menu-btn { display: flex; }
  .nav {
    position: fixed;
    inset: 73px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--walnut);
    border-bottom: 1px solid rgba(241, 232, 216, 0.1);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 1rem var(--pad); width: 100%; border-bottom: 1px solid rgba(241, 232, 216, 0.06); }
  .nav-cta { border-bottom: 1px solid rgba(241, 232, 216, 0.06) !important; }
  .facts { grid-template-columns: 1fr; }
  .reserve-form .row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .wide { grid-column: span 1; }
}
