/* ================================================================
   POPAS BISTRO — stylesheet public
   Direcție: bistro de munte, fum de grătar, lemn, jar & aur.
   Display: Fraunces (serif caracter) · Etichete: Bebas Neue · Corp: Nunito Sans
   ================================================================ */

:root {
  --ink:        #1c1614;   /* aproape negru, cald */
  --ink-soft:   #2a201c;
  --cream:      #f6efe2;   /* hârtie caldă */
  --cream-2:    #ece1cd;
  --ember:      #c0341d;   /* roșu jar */
  --ember-deep: #8c2113;
  --gold:       #e8a435;   /* aur ars */
  --gold-soft:  #f2c66b;
  --pine:       #2f4a36;   /* verde brad închis */
  --pine-soft:  #486b50;
  --line:       rgba(28,22,20,.14);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .18em;
  font-size: clamp(.85rem, 2.5vw, 1.05rem);
  color: var(--ember);
  text-transform: uppercase;
  display: inline-block;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.section-lead {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 40ch;
}

/* ===== NAV ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(28,22,20,0); backdrop-filter: blur(0);
  transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
}
.nav.scrolled {
  background: rgba(28,22,20,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.nav-logo img { height: 46px; width: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  color: var(--cream); text-decoration: none; font-weight: 700;
  font-size: .92rem; letter-spacing: .01em; opacity: .92;
  transition: color .2s, opacity .2s;
}
.nav-links a:hover { color: var(--gold-soft); opacity: 1; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--cream); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 1.5rem 4rem; overflow: hidden;
  color: var(--cream);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(232,164,53,.18), transparent 55%),
    radial-gradient(90% 60% at 80% 110%, rgba(192,52,29,.22), transparent 60%),
    linear-gradient(180deg, #20342a 0%, #1c2620 40%, #161210 100%);
}
.hero-bg::after { /* fum subtil */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 30% 80%, rgba(246,239,226,.06), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-logo { height: clamp(96px, 22vw, 150px); width: auto; margin: 0 auto 1.4rem; filter: drop-shadow(0 6px 18px rgba(0,0,0,.55)); }
.hero-kicker {
  font-family: 'Bebas Neue', sans-serif; letter-spacing: .22em;
  font-size: clamp(.95rem, 3vw, 1.2rem); color: var(--gold-soft); text-transform: uppercase;
}
.hero-title {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 5rem); line-height: .98; letter-spacing: -.02em;
  margin: .3rem 0 .7rem;
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-sub { font-size: clamp(1rem, 2.6vw, 1.2rem); color: rgba(246,239,226,.85); max-width: 36ch; margin: 0 auto 1.8rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-hours { margin-top: 1.6rem; font-weight: 700; letter-spacing: .02em; color: rgba(246,239,226,.7); }
.hero-scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  font-size: .85rem; letter-spacing: .12em; color: rgba(246,239,226,.6);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 800; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s; border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 22px rgba(232,164,53,.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232,164,53,.45); }
.btn-ghost { border-color: rgba(246,239,226,.5); color: var(--cream); }
.btn-ghost:hover { background: rgba(246,239,226,.1); transform: translateY(-2px); }

/* ===== SECTION SHELLS ===== */
.spec, .menu, .facil, .events { padding: clamp(3.5rem, 9vw, 6rem) clamp(1.2rem, 5vw, 4rem); max-width: 1180px; margin: 0 auto; }
.spec-head, .menu-head { text-align: center; margin-bottom: 2.8rem; }
.spec-head .section-lead { margin: .8rem auto 0; }

/* ===== SPECIALITĂȚI (PĂSTRĂV) ===== */
.spec { background: var(--ink); color: var(--cream); max-width: none; }
.spec-head .section-title { color: var(--cream); }
.spec-head .section-lead { color: rgba(246,239,226,.8); }
/* ===== Carousel specialități ===== */
.spec-carousel { position: relative; max-width: 920px; margin: 0 auto; padding: 0 clamp(0px, 4vw, 56px); }
.spec-viewport { overflow: hidden; border-radius: 20px; }
.spec-track { display: flex; transition: transform .5s cubic-bezier(.4,.0,.2,1); will-change: transform; }
.spec-card {
  flex: 0 0 100%; box-sizing: border-box;
  background: linear-gradient(180deg, #241c18, #1a1411);
  border: 1px solid rgba(232,164,53,.18); border-radius: 20px; overflow: hidden;
}
.spec-media { aspect-ratio: 16/10; background: #0f0c0a; overflow: hidden; }

/* card orizontal pe ecrane mari */
@media (min-width: 760px) {
  .spec-card { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .spec-media { aspect-ratio: auto; min-height: 320px; }
}

/* săgeți */
.spec-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 1.9rem; line-height: 1;
  font-family: 'Fraunces', serif; padding-bottom: 4px;
  background: var(--gold); color: var(--ink); border: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: background .2s ease, transform .2s ease;
}
.spec-arrow:hover { background: #f2b753; transform: translateY(-50%) scale(1.06); }
.spec-arrow:disabled { opacity: .35; cursor: default; }
.spec-prev { left: 0; }
.spec-next { right: 0; }

/* buline */
.spec-dots { display: flex; justify-content: center; gap: .55rem; margin-top: 1.5rem; }
.spec-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: rgba(246,239,226,.28); transition: background .2s ease, transform .2s ease;
}
.spec-dots button:hover { background: rgba(246,239,226,.55); }
.spec-dots button.is-active { background: var(--gold); transform: scale(1.25); }
.spec-media img { width: 100%; height: 100%; object-fit: cover; }
.spec-media-empty { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.5rem; opacity: .55; }
.spec-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; justify-content: center; }
.spec-body h3 { font-family: 'Fraunces', serif; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .55rem; }
.spec-body p { color: rgba(246,239,226,.74); font-size: 1rem; line-height: 1.55; }
.spec-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; gap: .6rem; }
.gram { font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-soft); background: rgba(232,164,53,.12); padding: .2rem .6rem; border-radius: 6px; }
.spec-foot .price { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: .03em; color: var(--gold); }
.price-ask { font-size: .95rem !important; font-family: 'Nunito Sans', sans-serif !important; color: rgba(246,239,226,.7) !important; font-weight: 700; }

/* ===== MENIU ===== */
.menu { background: var(--cream); }
.menu-cat { margin-bottom: 2.8rem; }
.menu-cat-head { border-bottom: 2px solid var(--line); padding-bottom: .6rem; margin-bottom: 1.2rem; }
.menu-cat-head h3 { font-family: 'Fraunces', serif; font-weight: 900; font-size: clamp(1.4rem, 4vw, 2rem); color: var(--pine); }
.menu-cat-desc { color: var(--ink-soft); font-size: .95rem; margin-top: .2rem; }
.menu-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 2rem; }
.menu-item { padding: .55rem 0; display: flex; align-items: center; gap: .65rem; }
.menu-item.is-featured { background: rgba(232,164,53,.1); border-radius: 10px; padding: .55rem .8rem; }
.menu-item-content { flex: 1; min-width: 0; }
.menu-item-main { display: flex; align-items: baseline; gap: .4rem; }
.menu-item-name { font-weight: 800; font-size: 1rem; white-space: normal; }
.menu-item-dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: .8rem; }
.menu-item-price { font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; letter-spacing: .03em; color: var(--ember); white-space: nowrap; }
.menu-item-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .15rem; font-size: .85rem; color: var(--ink-soft); }
.menu-item-meta .gram { color: var(--pine); background: rgba(47,74,54,.1); }

.combo {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--ink); color: var(--cream); border-radius: 16px;
  padding: 1.1rem 1.5rem; margin-top: 1.5rem;
}
.combo-tag { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: .08em; color: var(--gold); background: var(--ember-deep); padding: .15rem .9rem; border-radius: 8px; }
.combo-text { flex: 1; min-width: 200px; font-weight: 600; }
.combo-price { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--gold); }
.alergeni { margin-top: 1.4rem; font-size: .82rem; color: var(--ink-soft); opacity: .8; }

/* ===== FACILITĂȚI ===== */
.facil { background: var(--pine); color: var(--cream); max-width: none; }
.facil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1180px; margin: 0 auto; }
.facil-card { background: rgba(246,239,226,.07); border: 1px solid rgba(246,239,226,.15); border-radius: 16px; padding: 2rem 1.6rem; text-align: center; }
.facil-ev { background: linear-gradient(180deg, rgba(232,164,53,.16), rgba(246,239,226,.05)); border-color: rgba(232,164,53,.4); }
.facil-icon { font-size: 2.6rem; margin-bottom: .6rem; }
.facil-card h3 { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.3rem; margin-bottom: .5rem; }
.facil-card p { color: rgba(246,239,226,.82); font-size: .95rem; }

/* ===== EVENIMENTE ===== */
.events { background: var(--cream); }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.event-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(28,22,20,.06); }
.event-img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.event-body { padding: 1.3rem 1.4rem 1.5rem; }
.event-date { display: flex; gap: .6rem; align-items: center; font-family: 'Bebas Neue', sans-serif; letter-spacing: .04em; color: var(--ember); font-size: 1.05rem; margin-bottom: .4rem; }
.event-time { background: var(--ember); color: var(--cream); padding: .05rem .5rem; border-radius: 6px; font-size: .9rem; }
.event-body h3 { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.3rem; margin-bottom: .4rem; }
.event-body p { color: var(--ink-soft); font-size: .95rem; }

/* ===== FOOTER ===== */
.footer { background: var(--ink); color: var(--cream); padding: 3rem clamp(1.2rem, 5vw, 4rem) 1.5rem; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; }
.footer-logo { height: 70px; width: auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 2.5rem; flex: 1; min-width: 260px; }
.footer-cols h4 { font-family: 'Bebas Neue', sans-serif; letter-spacing: .1em; color: var(--gold); font-size: 1.1rem; margin-bottom: .5rem; }
.footer-cols p { font-size: .95rem; color: rgba(246,239,226,.82); margin-bottom: .25rem; }
.footer-cols a { color: rgba(246,239,226,.82); text-decoration: none; }
.footer-cols a:hover { color: var(--gold-soft); }
.footer-bottom { max-width: 1180px; margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(246,239,226,.15); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .85rem; color: rgba(246,239,226,.55); }
.footer-admin { color: rgba(246,239,226,.55); text-decoration: none; }
.footer-admin:hover { color: var(--gold-soft); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .facil-grid { grid-template-columns: 1fr; }
  .menu-items { grid-template-columns: 1fr; gap: .2rem; }
  .menu-item-img { width: 80px; height: 80px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; gap: 1.2rem; padding: 5.5rem 2rem;
    background: rgba(28,22,20,.98); backdrop-filter: blur(10px);
    transform: translateX(100%); transition: transform .3s ease; box-shadow: -10px 0 40px rgba(0,0,0,.4);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }

  /* carousel mobil pentru evenimente */
  .events-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 1rem; padding-bottom: 1rem; -webkit-overflow-scrolling: touch;
    grid-template-columns: none;
  }
  .events-grid::-webkit-scrollbar { display: none; }
  .event-card { scroll-snap-align: center; flex: 0 0 82%; }
  .reveal { opacity: 1; transform: none; } /* fără flash pe mobil */

  /* carousel specialități — săgeți mai mici pe mobil */
  .spec-carousel { padding: 0; }
  .spec-arrow { width: 40px; height: 40px; font-size: 1.6rem; }
  .spec-prev { left: 6px; } .spec-next { right: 6px; }
}

/* ── Imagine produs meniu ── */
.menu-item-img {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.menu-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
