/* ==========================================================================
   Pasta & Basta — meniu QR
   Mobile-first. Paletă: olive #726927, gold #E9A901, cream #FDFAF0
   ========================================================================== */

:root {
  --olive: #726927;
  --gold: #E9A901;
  --cream: #FDFAF0;

  /* variante translucide pentru cardurile de categorii (20% opacitate) */
  --olive-20: rgba(114, 105, 39, 0.20);
  --gold-20: rgba(233, 169, 1, 0.20);
  --olive-35: rgba(114, 105, 39, 0.35);
  --gold-45: rgba(233, 169, 1, 0.45);

  --ink: #2E2B18;
  --ink-soft: #6B6552;

  --radius-card: 20px;
  --radius-pill: 999px;
  --radius-btn: 14px;           /* butoane livrare + cardul AFI Mall */

  --header-bg: #1c1911;

  --font-display: "PT Serif", Georgia, "Times New Roman", serif;
  --font-script: "Dancing Script", "Segoe Script", cursive;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* înălțimea barei sticky, folosită ca padding pentru conținut */
  --actionbar-h: 148px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* --------------------------------------------------------------------------
   Header — secțiune întunecată: comutator RO/EN, logo cu ramuri de măslin
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--header-bg);
  color: var(--cream);
  text-align: center;
  padding: 18px 20px 24px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;   /* rotunjit doar sus */
}

/* Comutator limbă */
.lang {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 18px;
}

.lang__btn {
  appearance: none;
  min-width: 52px;
  height: 30px;
  padding: 0 16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang__btn.is-active {
  background: var(--gold);
  color: var(--header-bg);
}

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

/* Logo + ramuri */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 12px;
  line-height: 0;
}

.logo__img {
  display: block;
  height: 50px;
  width: auto;
  max-width: 70vw;
}

.branch {
  flex: 0 0 auto;
  display: block;
}

.branch--right {
  transform: scaleX(-1);    /* oglindită față de cea din stânga */
}

.eyebrow {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Conținut
   -------------------------------------------------------------------------- */

.content {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 16px 0;
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Grid de categorii
   -------------------------------------------------------------------------- */

.categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 116px;            /* touch target generos */
  padding: 18px 12px;
  border-radius: var(--radius-card);
  border: 1px solid transparent;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.cat--olive {
  background-color: var(--olive-20);
  border-color: var(--olive-35);
}

.cat--gold {
  background-color: var(--gold-20);
  border-color: var(--gold-45);
}

.cat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  font-size: 2rem;
  line-height: 1;
}

.cat__icon svg {
  display: block;
  flex: 0 0 auto;
}

.cat__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--olive);
}

.cat--gold .cat__name { color: #7A5A02; }

.cat:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .cat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 105, 39, 0.16);
  }
}

.cat:focus-visible,
.delivery__btn:focus-visible,
.actionbar__location:focus-visible,
.social a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 28px;
  padding: 22px 0 10px;
  border-top: 1px solid var(--olive-20);
  text-align: center;
}

.footer__label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.social a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--olive-35);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--olive);
}

.footer__note {
  margin: 0;
  font-size: 11px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Bară sticky de acțiune
   Ierarhie: 1) dine-in (AFI Mall) — 2) livrare (Glovo, Wolt, Bolt Food)
   -------------------------------------------------------------------------- */

.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--cream);
  border-top: 1px solid var(--olive-20);
  box-shadow: 0 -6px 24px rgba(46, 43, 24, 0.10);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
}

/* Rândul 1 — cel mai vizibil */
.actionbar__location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  background: var(--olive);
  color: var(--cream);
  text-align: left;
}

.actionbar__location .pin { font-size: 1.15rem; line-height: 1; }

.actionbar__location-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.actionbar__location-text strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
}

.actionbar__location-text span {
  font-size: 12px;
  opacity: 0.85;
}

.actionbar__location:active { filter: brightness(1.1); }

/* Rândul 2 — livrare, subordonat vizual */
.delivery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.delivery__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 6px;
  border: 1px solid var(--olive-35);
  border-radius: var(--radius-btn);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.delivery__btn:active { background: var(--gold-20); }

@media (hover: hover) {
  .delivery__btn:hover { background: var(--gold-20); color: var(--ink); }
}

.delivery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.delivery__dot--glovo { background: #FFC244; }
.delivery__dot--wolt  { background: #00C2E8; }
.delivery__dot--bolt  { background: #34D186; }

/* --------------------------------------------------------------------------
   Ecrane mai late — grid pe 3 coloane
   -------------------------------------------------------------------------- */

@media (min-width: 600px) {
  :root { --actionbar-h: 140px; }

  .content { max-width: 760px; padding-inline: 24px; }

  .categories { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .cat { min-height: 140px; }

  .actionbar { padding-inline: 24px; }

  .actionbar__location,
  .delivery { max-width: 760px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
