/* ============================================================
   Hacı Saad Kebap · style.css
   Card & img-holder patterns from Grilli template (codewithsadee)
   Everything else custom
============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --red:        hsl(0, 100%, 37%);
  --red-dim:    hsl(0, 80%, 30%);
  --dark:       hsl(32, 20%, 6%);   /* matches logo background */
  --dark-2:     hsl(32, 15%, 9%);
  --gold:       hsl(38, 61%, 73%);  /* Grilli accent */
  --white:      hsl(0, 0%, 100%);
  --off-white:  hsl(35, 25%, 96%);
  --text:       hsl(0, 0%, 14%);
  --text-muted: hsl(0, 0%, 50%);
  --border:     hsl(0, 0%, 88%);

  --font-display: 'Forum', cursive;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 12px hsla(0,0%,0%,0.06);
  --shadow-md: 0 6px 28px hsla(0,0%,0%,0.11);

  --ease: 250ms ease;
  --ease-slow: 500ms ease;

  --header-h: 60px;
  --max-w: 1100px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 62.5%; }
body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
address { font-style: normal; }

/* ── Utilities ──────────────────────────────────────────── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 20px; }
.section   { padding-block: 80px; }

/* From Grilli — image aspect-ratio holder */
.img-holder { aspect-ratio: var(--width) / var(--height); overflow: hidden; }
.img-cover  { width: 100%; height: 100%; object-fit: cover; }

/* ── Typography ─────────────────────────────────────────── */
.section-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-block-end: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 1.2;
  color: var(--text);
  margin-block-end: 40px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  font-weight: 700;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn ion-icon { font-size: 1.8rem; flex-shrink: 0; }

.btn-wa {
  background: #25D366;
  color: var(--white);
}
.btn-wa:hover { background: #1aae54; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid hsla(0,0%,100%,0.45);
}
.btn-outline:hover { border-color: var(--white); background: hsla(0,0%,100%,0.08); }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dim); }

/* ── Header ─────────────────────────────────────────────── */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  background: hsla(32, 20%, 6%, 0.6);
  border-bottom: 1px solid hsl(0, 0%, 21.57%);
}
.header.scrolled {
  background: var(--dark);
  border-bottom-color: transparent;
  box-shadow: 0 2px 24px hsla(0,0%,0%,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
}

.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; }
.logo .logo-img { border-radius: 5px; }

/* Desktop nav fills the middle */
.navbar { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  color: hsla(0,0%,100%,0.75);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
}
.nav-link:hover { color: var(--white); background: hsla(0,0%,100%,0.07); }
.nav-link-wa { color: #4ade80; }
.nav-link-wa:hover { color: #25D366; background: hsla(142,70%,45%,0.08); }
.nav-link ion-icon { font-size: 1.7rem; }

/* Lang switcher */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-inline-start: auto; }
.lang-switcher  { display: flex; gap: 2px; }
.lang-btn {
  padding: 5px 9px;
  border-radius: 4px;
  color: hsla(0,0%,100%,0.45);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color var(--ease), background var(--ease);
}
.lang-btn:hover       { color: var(--white); background: hsla(0,0%,100%,0.08); }
.lang-btn.active      { color: var(--white); background: var(--red); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: hsla(0,0%,0%,0.55);
  backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--header-h) 64px;
  position: relative;
  overflow: hidden;
}

/* Background image slider */
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.8s ease;
}
.hero-slide.active {
  opacity: 1;
  animation: heroZoom 7s linear forwards;
}

@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.12); }
}

/* Dark gradient overlay — solid at top (behind header), translucent in middle */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsla(32, 20%, 6%, 0.18) 0%,
    hsla(32, 20%, 6%, 0.10) 45%,
    hsla(32, 20%, 6%, 0.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-inline: 20px;
}
.hero-eyebrow {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-block-end: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-block-end: 12px;
}
.hero-sub {
  font-size: 1.7rem;
  color: hsla(0,0%,100%,0.6);
  margin-block-end: 44px;
  line-height: 1.65;
}
.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Menu section ───────────────────────────────────────── */
.menu-section { background: var(--off-white); scroll-margin-top: 40px; }
.menu-section .section-subtitle,
.menu-section .section-title { text-align: center; }

/* Category tabs */
.menu-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-block-end: 48px;
}
.menu-tab {
  padding: 10px 26px;
  border-radius: 40px;
  border: 2px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: 700;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.menu-tab:hover  { border-color: var(--red); color: var(--red); }
.menu-tab.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* Collection heading */
.collection-block { margin-block-start: 52px; }
.collection-block:first-child { margin-block-start: 0; }

.collection-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-block-end: 20px;
  padding-block-end: 14px;
  border-bottom: 2px solid var(--border);
}
.collection-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--text);
  line-height: 1;
}
.collection-name-en {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* Menu grid */
.menu-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

/* Menu card — adapted from Grilli .menu-card / .hover:card */
.menu-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease);
}
.menu-card:hover { box-shadow: var(--shadow-md); }

/* Card photo (from Grilli .card-banner) */
.card-banner {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border);
}

/* Make the image a clickable zoom button */
.card-img-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: inherit;
  overflow: hidden;
}
/* From Grilli hover:card — subtle zoom on hover */
.menu-card .card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow), opacity var(--ease-slow);
}
.menu-card:hover .card-banner img { transform: scale(1.07); opacity: 0.92; }

.card-body { flex: 1; min-width: 0; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.3;
  color: var(--text);
  margin-block-end: 4px;
}
.card-desc {
  font-size: 1.6rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-block-end: 8px;
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* From Grilli — gold-ish price colour, adapted to brand red */
.card-price {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--red);
  font-family: var(--font-display);
}

/* ── Modal / Lightbox ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: hsla(0, 0%, 0%, 0.88);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  position: relative;
  max-width: min(92vw, 580px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px hsla(0,0%,0%,0.5);
  transform: scale(0.95);
  transition: transform var(--ease);
}
.modal-overlay.open .modal-box { transform: scale(1); }

.modal-img { width: 100%; height: auto; display: block; }

.modal-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 48px 12px 16px;
  background: hsla(0, 0%, 0%, 0.65);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.3;
}
.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: hsla(0, 0%, 0%, 0.55);
  color: var(--white);
  font-size: 2rem;
  transition: background var(--ease);
}
.modal-close:hover { background: var(--red); }

/* Loading / error state */
.menu-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.6rem;
}

/* ── Location section ───────────────────────────────────── */
.location-section { background: white; scroll-margin-top: 40px; }

.location-inner {
  display: grid;
  gap: 48px;
}
.location-info .section-title { margin-block-end: 28px; }

.location-list { display: flex; flex-direction: column; gap: 16px; margin-block-end: 32px; }
.location-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.5rem;
  line-height: 1.5;
}
.location-item ion-icon { flex-shrink: 0; font-size: 2.2rem; color: var(--red); margin-top: 1px; }
.location-link { color: var(--red); font-weight: 700; }
.location-link:hover { text-decoration: underline; }

.map-wrapper {
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--border);
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: hsla(0,0%,100%,0.65);
  padding-block: 52px 28px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  padding-block-end: 36px;
  border-bottom: 1px solid hsla(0,0%,100%,0.1);
  margin-block-end: 28px;
}
.footer-logo-img { height: 78px; width: auto; margin-block-end: 8px; border-radius: 5px; }
.footer-tagline {
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-contact { font-size: 1.5rem; line-height: 1.9; }
.footer-contact a { color: var(--red); font-weight: 700; transition: opacity var(--ease); }
.footer-contact a:hover { opacity: 0.8; }

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid hsla(0,0%,100%,0.15);
  color: hsla(0,0%,100%,0.65);
  font-size: 2rem;
  transition: border-color var(--ease), color var(--ease);
}
.social-btn:hover { border-color: var(--red); color: var(--red); }

.footer-copy { font-size: 1.3rem; text-align: center; color: hsla(0,0%,100%,0.45); }

/* ── WhatsApp float ─────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  font-size: 2.8rem;
  box-shadow: 0 4px 20px hsla(142,70%,45%,0.45);
  transition: transform var(--ease), background var(--ease);
}
.wa-float:hover { background: #1aae54; transform: scale(1.08); }

/* Back to top */
.back-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 80;
  display: none;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--dark-2);
  border: 1px solid hsla(0,0%,100%,0.12);
  color: hsla(0,0%,100%,0.7);
  font-size: 1.8rem;
  transition: background var(--ease), color var(--ease);
}
.back-top.visible { display: grid; }
.back-top:hover { background: var(--red); color: var(--white); border-color: transparent; }

/* ── Responsive ─────────────────────────────────────────── */

/* 560px — 2-col menu grid */
@media (min-width: 560px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
}

/* 900px — desktop layout */
@media (min-width: 900px) {
  /* Nav visible, burger hidden */
  .burger { display: none !important; }

  .menu-grid { grid-template-columns: 1fr 1fr; }

  /* Drinks & Desserts: 3-col since cards are shorter */
  .menu-grid.flat-grid { grid-template-columns: 1fr 1fr 1fr; }

  .location-inner {
    grid-template-columns: 1fr 1.3fr;
    align-items: start;
  }
  .map-wrapper { height: 460px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 899px) {
  .menu-section,
  .location-section { scroll-margin-top: 10px; }
}

/* Mobile nav drawer */
@media (max-width: 899px) {
  .burger { display: flex; }

  .navbar {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(280px, 82vw);
    background: var(--dark-2);
    padding: 24px 16px;
    transform: translateX(100%);
    transition: transform var(--ease);
    z-index: 95;
    overflow-y: auto;
  }
  .navbar.open { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
  }
  .nav-link { font-size: 1.6rem; padding: 12px 16px; justify-content: flex-start; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }
  .menu-tab { padding: 10px 12px; }
}

/* ── QR Menu page ───────────────────────────────────────── */
.qr-header {
  background: var(--dark) !important;
  box-shadow: 0 2px 20px hsla(0,0%,0%,0.4);
}

.qr-main { padding-top: var(--header-h); }

.qr-sticky-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: hsl(35, 20%, 92%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 11px hsla(0,0%,0%,0.1);
}

.qr-sticky-bar .container { padding-block: 12px; }

.qr-sticky-bar .menu-tabs {
  margin-block-end: 0;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
}

.qr-sticky-bar .menu-tab {
  padding: 8px 20px;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.qr-pills {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  border-top: 2px solid #d8d8d8;
  justify-content: center;
  gap: 6px;
  padding-block: 10px 0;
}

@media (min-width: 600px) {
  .qr-pills { width: 70%; margin-inline: auto; }
}
.qr-pills[hidden] { display: none; }

.qr-pill {
  flex-shrink: 0;
  padding: 3px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fafafa;
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.qr-pill:hover { border-color: var(--red); color: var(--red); }

.qr-content { padding-block: 28px 52px; }

.qr-footer {
  background: var(--dark);
  color: hsla(0,0%,100%,0.55);
  text-align: center;
  padding-block: 18px;
  font-size: 1.3rem;
}

.qr-page .back-top { bottom: 57px; }
.qr-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.qr-page .qr-main { flex: 1; }
