/* =====================================================================
   MANQAL — brand design system  ·  "Charcoal & Ember"
   Dönər & mangal house, Baku. Dark, smoky, appetite-driven.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:        #161311;   /* charcoal */
  --bg-2:      #1d1815;
  --surface:   #241d18;
  --surface-2: #2e2520;
  --ink:       #0d0a08;

  --text:      #f0e7da;   /* warm cream */
  --text-dim:  #c3b6a6;
  --muted:     #8c7d6e;

  --ember:      #d6452b;  /* ember red — primary accent */
  --ember-deep: #b5371f;
  --flame:      #e8913a;  /* flame orange — secondary accent */
  --char:       #0f0c0a;

  --line:   rgba(240,231,218,.12);
  --line-2: rgba(240,231,218,.22);

  --ff-display: 'Oswald', 'Arial Narrow', sans-serif;
  --ff-body:    'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gut: 26px;
  --nav-h: 84px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --shadow: 0 30px 70px rgba(0,0,0,.55);
  --shadow-sm: 0 14px 34px rgba(0,0,0,.4);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { font-family: var(--ff-display); font-weight: 600; line-height: 1.18; letter-spacing: .01em; text-transform: uppercase; }
::selection { background: var(--ember); color: #fff; }
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--ink); }
body::-webkit-scrollbar-thumb { background: var(--ember-deep); border-radius: 8px; }

/* ---------- Helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--flame);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--ember); }
.section-head { text-align: center; margin-bottom: 3rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--text); }
.section-head .eyebrow::after { content: ''; width: 26px; height: 2px; background: var(--ember); }
section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.8rem; border-radius: 4px; cursor: pointer; border: none;
  font-family: var(--ff-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .08em; text-transform: uppercase;
  transition: transform .4s var(--ease), background .35s, color .35s, border-color .35s;
}
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: var(--ember-deep); transform: translateY(-3px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--ember); color: var(--flame); transform: translateY(-3px); }

/* reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { height: 70px; background: rgba(16,12,10,.92); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.nav__logo img { height: 42px; width: auto; }
.nav__logo .wordmark { font-family: var(--ff-display); font-weight: 700; font-size: 1.6rem; letter-spacing: .14em; color: var(--text); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-family: var(--ff-display); font-weight: 500; font-size: .98rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-dim); position: relative; padding: .3rem 0;
  transition: color .3s var(--ease);
}
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--ember); transition: width .35s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: .7rem; }
.nav__social {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--text); font-size: .95rem;
  transition: all .35s var(--ease);
}
.nav__social:hover { background: var(--ember); border-color: transparent; color: #fff; transform: translateY(-3px); }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; color: var(--text); font-size: 1.1rem; cursor: pointer; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; background: rgba(13,10,8,.98); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer a { font-family: var(--ff-display); font-size: 1.6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.drawer a:hover { color: var(--flame); }
.drawer__close { position: absolute; top: 26px; right: 26px; font-size: 1.6rem; color: var(--text); background: none; border: none; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; padding: 0; display: flex; align-items: center;
  position: relative; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 20% 50%, rgba(214,69,43,.28), transparent 60%),
    linear-gradient(90deg, rgba(13,10,8,.92) 0%, rgba(13,10,8,.7) 45%, rgba(13,10,8,.35) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 30%);
}
.hero__inner { padding-top: var(--nav-h); }
.hero__eyebrow { margin-bottom: 1.4rem; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem); color: var(--text); max-width: 20ch;
  line-height: 1.12; text-shadow: 0 6px 30px rgba(0,0,0,.5);
}
.hero h1 em, .hero h1 .accent { color: var(--flame); font-style: normal; }
.hero__from { display: inline-flex; align-items: center; gap: .7rem; margin-top: 2rem;
  font-family: var(--ff-display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.hero__from img { height: 34px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 1.3rem; animation: bob 2s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- Menu ---------- */
.menu { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.6rem; }
.dish {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  cursor: pointer; transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
  display: flex; flex-direction: column;
}
.dish:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.dish__media { aspect-ratio: 16/11; overflow: hidden; background: var(--surface-2); }
.dish__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dish:hover .dish__media img { transform: scale(1.07); }
.dish__body { padding: 1.2rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.dish__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.dish__name { font-size: 1.25rem; color: var(--text); letter-spacing: .02em; }
.dish__price { font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem; color: #fff;
  background: var(--ember); padding: .25rem .6rem; border-radius: 6px; white-space: nowrap; }
.dish__desc { color: var(--text-dim); font-size: .92rem; line-height: 1.55; }
.dish__more { margin-top: auto; font-family: var(--ff-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--flame); display: inline-flex; align-items: center; gap: .4rem; }

/* dish modal */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.5rem;
  background: rgba(8,6,5,.8); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.modal.open { opacity: 1; pointer-events: auto; }
.modal__card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  max-width: 760px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; transform: scale(.96); transition: transform .35s var(--ease-out); }
.modal.open .modal__card { transform: scale(1); }
.modal__media { background: var(--surface-2); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.modal__body { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; position: relative; }
.modal__body h3 { font-size: 1.8rem; color: var(--text); }
.modal__price { font-family: var(--ff-display); font-size: 1.3rem; color: var(--flame); }
.modal__desc { color: var(--text-dim); font-size: .95rem; }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(0,0,0,.3); color: var(--text); cursor: pointer; font-size: 1rem; }
.modal__close:hover { background: var(--ember); border-color: transparent; }

/* ---------- Video ---------- */
.video { padding: 0; }
.video__band { position: relative; min-height: 70vh; display: grid; place-items: center; isolation: isolate; }
.video__band > .video__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.video__band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13,10,8,.85), rgba(13,10,8,.45)); }
.video__play { width: 92px; height: 92px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ember); color: #fff; font-size: 1.6rem; display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(214,69,43,.5); animation: pulse 2.4s infinite; transition: transform .35s var(--ease), background .35s; }
.video__play:hover { transform: scale(1.08); background: var(--ember-deep); }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(214,69,43,.5);} 70%{ box-shadow: 0 0 0 26px rgba(214,69,43,0);} 100%{ box-shadow: 0 0 0 0 rgba(214,69,43,0);} }
.video__modal video { max-width: min(960px, 92vw); width: 100%; border-radius: 12px; box-shadow: var(--shadow); }

/* ---------- About ---------- */
.about { background: var(--bg-2); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about__text h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--text); margin-bottom: 1.3rem; }
.about__text p { color: var(--text-dim); font-size: 1.02rem; margin-bottom: 1.8rem; max-width: 52ch; }
/* Partner logos are dark-on-transparent, so they sit on light chips to read on the dark bg. */
.about__brands { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.about__brands a { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: .5rem 1.1rem;
  background: #fff; border-radius: 10px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.about__brands a:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.about__brands img { height: 32px; width: auto; }
.about__media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.about__media img:first-child { grid-row: span 2; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: stretch; }
.contact__map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); min-height: 460px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; filter: grayscale(.3) contrast(1.05); }
.contact__form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2.2rem; box-shadow: var(--shadow-sm); }
.contact__form h2 { font-size: 1.9rem; color: var(--text); margin-bottom: 1.6rem; }
.field { position: relative; margin-bottom: 1.1rem; }
.field input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-family: var(--ff-body); font-size: 1rem; padding: 1.3rem 1rem .55rem;
  outline: none; transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.field input:focus { border-color: var(--ember); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(214,69,43,.14); }
.field label { position: absolute; left: 1rem; top: .95rem; color: var(--muted); font-size: 1rem; pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-.62rem) scale(.74); color: var(--flame); }
.contact__form .btn-ember { width: 100%; justify-content: center; margin-top: .4rem; }
.contact__alert { padding: .85rem 1.1rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .92rem; border: 1px solid var(--line-2); }
.contact__alert--ok { color: var(--text); border-color: rgba(232,145,58,.5); background: rgba(232,145,58,.1); }
.contact__alert--err { color: #f3c9bd; border-color: rgba(214,69,43,.5); background: rgba(214,69,43,.12); }

/* ---------- Footer ---------- */
.footer { background: var(--char); border-top: 1px solid var(--line); padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer__logo img { height: 52px; width: auto; margin-bottom: 1rem; }
.footer h4 { font-size: 1rem; letter-spacing: .12em; color: var(--flame); margin-bottom: 1.1rem; }
.footer p, .footer a { color: var(--text-dim); font-size: .92rem; }
.footer ul li { margin-bottom: .6rem; }
.footer ul a { transition: color .3s, padding-left .3s; }
.footer ul a:hover { color: var(--flame); padding-left: 5px; }
.footer__social { display: flex; gap: .7rem; margin-top: 1.1rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text); transition: all .35s var(--ease); }
.footer__social a:hover { background: var(--ember); border-color: transparent; color: #fff; transform: translateY(-3px); }
.footer__bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__bottom p, .footer__bottom a { color: var(--muted); font-size: .82rem; }
.footer__bottom a { display: inline-flex; align-items: center; gap: .5rem; }
.footer__bottom a img { height: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links, .nav__social { display: none; }
  .nav__burger { display: grid; place-items: center; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .modal__card { grid-template-columns: 1fr; max-width: 460px; }
  .modal__media img { min-height: 200px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .menu-grid { grid-template-columns: 1fr; }
  .about__media { grid-template-columns: 1fr; }
  .about__media img:first-child { grid-row: auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Menu category filter ---------- */
.cat-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-bottom: 2.8rem; }
.cat-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-dim); cursor: pointer;
  font-family: var(--ff-display); font-weight: 500; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.cat-pill i { color: var(--flame); font-size: .9rem; transition: color .35s var(--ease); }
.cat-pill:hover { border-color: var(--ember); color: var(--text); transform: translateY(-2px); }
.cat-pill.active { background: var(--ember); border-color: var(--ember); color: #fff; }
.cat-pill.active i { color: #fff; }
