/* ============================================================
   Amore per la Vita — Stiluri (mobile-first, responsive)
   Tema: tricolor italian (verde/alb/rosu) pe negru, accent auriu
   ============================================================ */

:root {
  --bg:        #0d0d0d;
  --bg-2:      #151515;
  --card:      #1b1b1b;
  --line:      #2a2a2a;
  --text:      #f3f3f3;
  --muted:     #a8a8a8;
  --green:     #1ea14a;
  --green-2:   #28c45e;
  --red:       #e8262f;
  --red-2:     #ff3b43;
  --gold:      #c9a25a;
  --white:     #ffffff;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 12px 30px rgba(0,0,0,.45);
  --maxw:      1140px;
  --ease:      cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; letter-spacing: .2px;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; box-shadow: 0 8px 22px rgba(232,38,47,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232,38,47,.5); }
.btn--call { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; box-shadow: 0 8px 22px rgba(30,161,74,.3); }
.btn--call:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,13,13,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__logo { height: 40px; width: auto; }
.brand__text { font-family: "Dancing Script", cursive; font-size: 1.5rem; font-weight: 700; color: var(--green-2); }
.brand__text em { color: var(--white); font-style: italic; font-size: .9em; }
.brand__text--lg { font-size: 2rem; }

.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a { font-weight: 600; font-size: .95rem; color: var(--text); opacity: .85; transition: opacity .2s, color .2s; }
.nav__links a:hover { opacity: 1; color: var(--gold); }
.nav__cta { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff !important; padding: .55rem 1rem; border-radius: 999px; opacity: 1 !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; min-height: 88svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(30,161,74,.18), transparent 60%),
    radial-gradient(1000px 600px at 80% 120%, rgba(232,38,47,.18), transparent 60%),
    var(--bg);
  padding: 80px 0 60px; overflow: hidden;
}
.hero__content { position: relative; z-index: 2; }
.hero__logo { max-width: min(560px, 88vw); margin: 0 auto 1.2rem; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.hero__title { font-family: "Dancing Script", cursive; font-size: clamp(2.6rem, 11vw, 5rem); color: var(--green-2); }
.hero__title span { color: #fff; }
.hero__sub { font-size: clamp(1rem, 3.6vw, 1.3rem); color: var(--text); margin-bottom: .35rem; }
.hero__tag { font-family: "Dancing Script", cursive; font-size: clamp(1.2rem, 4.6vw, 1.7rem); color: var(--gold); margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

.hero__flag { position: absolute; left: 0; right: 0; bottom: 0; display: flex; height: 6px; z-index: 2; }
.hero__flag span { flex: 1; }
.hero__flag span:nth-child(1) { background: var(--green); }
.hero__flag span:nth-child(2) { background: #fff; }
.hero__flag span:nth-child(3) { background: var(--red); }

/* ---------- Sectiuni ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 2.6rem; }
.section__kicker { display: inline-block; font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .6rem; }
.section__title { font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 800; line-height: 1.15; }
.section__lead { color: var(--muted); margin-top: .7rem; }
.section__center { text-align: center; margin-top: 1.8rem; }

/* ---------- Meniu ---------- */
.menu__tabs { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.8rem; }
.menu__tab { padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; transition: .2s var(--ease); font-size: .9rem; }
.menu__tab:hover { color: var(--text); border-color: var(--gold); }
.menu__tab.is-active { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; border-color: transparent; }

.menu__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem;
  transition: transform .2s var(--ease), border-color .2s; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--green), #fff, var(--red)); }
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card__name { font-weight: 700; font-size: 1.08rem; }
.card__price { font-weight: 800; color: var(--gold); white-space: nowrap; }
.card__desc { color: var(--muted); font-size: .9rem; }
.card__tag { align-self: flex-start; margin-top: .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; background: rgba(30,161,74,.15); color: var(--green-2); }
.card__qty { font-size: .72rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.card__price { display: inline-flex; gap: .5rem; align-items: baseline; }
.card__promo { color: var(--green-2); text-decoration: none; }
.card__promo + * { color: var(--muted); text-decoration: line-through; font-weight: 600; }
.menu__sub { grid-column: 1 / -1; font-family: "Dancing Script", cursive; font-size: 1.7rem; color: var(--gold); margin: 1.4rem 0 .4rem; text-align: center; }
.menu__grid--inner { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.menu__empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2rem 0; }
.menu__note { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 1.6rem; }
.menu__note strong { color: var(--gold); }

/* ---------- Despre ---------- */
.despre { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.despre__text p { color: var(--muted); margin: .8rem 0; }
.despre__text .btn { margin-top: .8rem; }
.despre__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; transition: .2s var(--ease); }
.feat:hover { transform: translateY(-4px); border-color: var(--gold); }
.feat__ico { font-size: 1.8rem; }
.feat h3 { font-size: 1rem; margin: .5rem 0 .3rem; }
.feat p { color: var(--muted); font-size: .85rem; }

/* ---------- Harta ---------- */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.15) contrast(1.05); }

/* ---------- Program & Contact ---------- */
.program { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.hours { list-style: none; margin-top: 1rem; }
.hours li { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.hours li.is-today { color: var(--green-2); font-weight: 700; }
.hours li.is-today::after { content: " · azi"; color: var(--gold); font-weight: 600; font-size: .8rem; }
.hours .day { font-weight: 600; }
.contact { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .9rem; }
.contact li { display: flex; align-items: center; gap: .8rem; font-size: 1.05rem; }
.contact span { font-size: 1.3rem; }
.contact a:hover { color: var(--gold); }

/* ---------- Cont ---------- */
.account { max-width: 480px; margin: 0 auto; }
.account__panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.tabs { display: flex; background: var(--bg); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 1.4rem; }
.tabs__btn { flex: 1; padding: .7rem; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; border-radius: 8px; transition: .2s; }
.tabs__btn.is-active { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; }

.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text); }
.field small { color: var(--muted); font-weight: 400; }
.field input {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem 1rem; color: var(--text); font-size: 1rem; font-family: inherit; transition: border-color .2s;
}
.field input:focus { outline: none; border-color: var(--green-2); }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: .2rem; accent-color: var(--green); }
.form__msg { text-align: center; font-size: .9rem; min-height: 1.2rem; margin-top: .4rem; }
.form__msg.ok { color: var(--green-2); }
.form__msg.err { color: var(--red-2); }

.account__panel--user { text-align: center; }
.user__hi { font-size: 1.3rem; margin-bottom: .5rem; }
.account__panel--user p { color: var(--muted); margin-bottom: 1.2rem; }
.user__row { display: flex; align-items: center; justify-content: space-between; padding: 1rem; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 1.2rem; }
.switch { position: relative; display: inline-block; width: 52px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .3s; cursor: pointer; }
.slider::before { content: ""; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .3s; }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(24px); }

/* ---------- Footer ---------- */
.footer { background: #080808; border-top: 1px solid var(--line); padding: 3rem 0 1.2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.footer__tag { color: var(--gold); font-family: "Dancing Script", cursive; font-size: 1.1rem; margin-top: .3rem; }
.footer__nav { display: flex; flex-direction: column; gap: .6rem; }
.footer__nav a { color: var(--muted); }
.footer__nav a:hover { color: var(--gold); }
.footer__social { display: flex; flex-direction: column; gap: .6rem; color: var(--muted); font-size: .9rem; }
.footer__social a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.2rem; color: var(--muted); font-size: .8rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120%);
  background: var(--card); border: 1px solid var(--gold); color: var(--text);
  padding: .9rem 1.4rem; border-radius: 999px; box-shadow: var(--shadow); z-index: 100;
  font-weight: 600; font-size: .9rem; transition: transform .35s var(--ease); max-width: 90vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- FAB (buton flotant mobil) ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: none; align-items: center; justify-content: center; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 10px 26px rgba(30,161,74,.5); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 10px 26px rgba(30,161,74,.5); } 50% { box-shadow: 0 10px 36px rgba(30,161,74,.85); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .despre, .program, .footer__grid { grid-template-columns: 1fr; }
  .map iframe { height: 320px; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(13,13,13,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: .5rem 0;
    transform: translateY(-120%); transition: transform .35s var(--ease); align-items: stretch;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 1rem 22px; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav__cta { margin: .6rem 18px; text-align: center; border-radius: 999px; }

  .fab { display: flex; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .despre__cards { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
}

@media (min-width: 481px) { .hero__actions .btn { width: auto; } }

/* Respecta prefer-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
