/* =========================================================
   Filip Pizza — Feleacu
   Culori: alb, cărbune (charcoal) și verde salvie (sage)
   ========================================================= */

:root {
  --white: #FFFFFF;
  --bg: #E30613;          /* fundalul paginii: rosu aprins */
  --paper: #B8000F;       /* subsol: rosu mai inchis */
  --on-bg: #FFFFFF;       /* text direct pe rosu */
  --on-bg-muted: rgba(255, 255, 255, .86);
  --sage-50: #EEF2EC;
  --sage-100: #E2E9E0;
  --sage: #8FA58E;
  --sage-600: #5E7761;
  --charcoal: #2A2D2C;
  --ink-2: #4B504E;
  --muted: #6E7471;
  --line: #E2E6E0;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --shadow: 0 1px 2px rgba(42, 45, 44, .04), 0 18px 40px -18px rgba(42, 45, 44, .22);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul { list-style: none; padding: 0; }

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-optical-sizing: auto;
}

h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
  max-width: 52ch;
}

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 34px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 1.5px solid var(--charcoal);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn:hover { background: var(--sage-600); border-color: var(--sage-600); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost { background: transparent; color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

.btn-light { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn-light:hover { background: var(--sage-100); border-color: var(--sage-100); color: var(--charcoal); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--charcoal); }

.btn-wa { background: #25D366; border-color: #25D366; color: var(--charcoal); }
.btn-wa:hover { background: #1EBE5A; border-color: #1EBE5A; color: var(--charcoal); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(227, 6, 19, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.brand img { width: 36px; height: 36px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  font-size: .98rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--sage-50); color: var(--charcoal); }
.nav .lang { border: 1px solid var(--line); margin-left: 6px; }

/* ---------- Hero (partea de sus a fiecărei pagini) ---------- */
.hero {
  min-height: min(880px, calc(100svh - var(--header-h)));
  display: flex;
  align-items: center;
  padding: 56px 0 72px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero h1 {
  font-size: clamp(2.9rem, 7vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 650;
}
.hero p {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-2);
  max-width: 36ch;
  margin: 26px 0 38px;
}

.hero-art {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  display: grid;
  place-items: center;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sage-100);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1.5px dashed var(--sage);
  opacity: .7;
}
/* Decupaj rotund pe marginea pizzei din pizza-hero.jpg.
   Dacă schimbi poza cu una a voastră, ajustează cercul (mărime și centru). */
.hero-art img {
  position: relative;
  width: 94%;
  aspect-ratio: 1;
  object-fit: cover;
  clip-path: circle(45.8% at 50.5% 54.4%);
  transform: translateY(-4.4%);
}

/* Hero pentru pagina de meniu: centrat */
.hero--page { min-height: auto; padding: clamp(72px, 11vw, 140px) 0 clamp(48px, 7vw, 88px); text-align: center; }
.hero--page .hero-inner { display: block; }
.hero--page p { margin-inline: auto; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tranziție (val + bandă cu pizza) ---------- */
.wave { display: block; width: 100%; height: clamp(48px, 8vw, 110px); margin-bottom: -1px; }
.wave path { fill: var(--sage-50); }
/* val de ieșire: fundal salvie sus, culoarea secțiunii următoare jos */
.wave--out { background: var(--sage-50); margin-top: -1px; }
.wave--out path { fill: var(--bg); }
.wave--dark path { fill: var(--charcoal); }

.showcase { background: var(--sage-50); padding: 24px 0 clamp(72px, 10vw, 120px); }

.marquee {
  overflow: hidden;
  padding: 8px 0 clamp(56px, 8vw, 96px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  padding-right: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.marquee-track img {
  width: clamp(120px, 14vw, 170px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 14px 28px -12px rgba(42, 45, 44, .35);
  transition: transform .6s ease;
}
.marquee-track li:hover img { transform: scale(1.06); }
.marquee-track span { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Titluri de secțiune ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head .lead { margin-top: 16px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Carduri pizza ---------- */
.pizza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.pizza-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 24px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.pizza-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pizza-card .art {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: var(--sage-50);
  overflow: hidden;
}
.pizza-card .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.pizza-card:hover .art img { transform: scale(1.06); }
.pizza-card h3 { font-size: 1.5rem; margin: 20px 0 6px; }
.pizza-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.pizza-card .price {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: 1.1rem;
}

.menu-group { margin-top: clamp(80px, 10vw, 120px); }

.center-cta { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- De ce noi ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.value .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage-50);
  color: var(--sage-600);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.value .icon svg { width: 30px; height: 30px; }
.value h3 { font-size: 1.6rem; margin-bottom: 10px; }
.value p { color: var(--muted); max-width: 34ch; }

/* ---------- Recenzii (fundal închis) ---------- */
.reviews { background: var(--charcoal); color: var(--white); }
.reviews .lead { color: #C3C8C5; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.stars { color: var(--sage); letter-spacing: 4px; font-size: 1.1rem; }
.review blockquote {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 400;
  flex: 1;
}
.review cite { font-style: normal; color: #C3C8C5; font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}
.contact-card {
  background: var(--sage-50);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-list { display: grid; gap: 22px; }
.contact-list dt { font-weight: 600; margin-bottom: 4px; }
.contact-list dd { color: var(--ink-2); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--sage); }
.contact-list a:hover { color: var(--sage-600); }
.hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 24px; }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  background: var(--sage-100);
}
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.45) contrast(.95); }

/* ---------- Bandă finală de îndemn ---------- */
.cta-band { background: var(--charcoal); color: var(--white); text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: #C3C8C5; margin: 0 auto 36px; }
.cta-band .btn-row { justify-content: center; }

.note { color: var(--muted); font-size: .95rem; text-align: center; margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid rgba(255, 255, 255, .15); padding: 64px 0 36px; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-grid p { color: var(--muted); margin-top: 12px; max-width: 32ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.footer-nav a:hover { color: var(--sage-600); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

/* ---------- Buton flotant „Sună” (doar pe telefon) ---------- */
.call-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--sage-600);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(42, 45, 44, .45);
}
.call-fab svg { width: 18px; height: 18px; }

/* ---------- Buton flotant WhatsApp (toate ecranele) ---------- */
.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(42, 45, 44, .45);
  transition: transform .25s ease;
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 32px; height: 32px; }

/* ---------- Apariție la scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tema rosie: text alb direct pe fundalul rosu ---------- */
body { color: var(--on-bg); }
.site-header .nav a { color: var(--on-bg-muted); }
.site-header .nav a:hover,
.site-header .nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); color: var(--on-bg); }
.site-header .nav .lang { border-color: rgba(255, 255, 255, .45); }
.site-header.scrolled { border-bottom-color: rgba(255, 255, 255, .18); }
.hero p, .lead, .value p { color: var(--on-bg-muted); }
.hero-art::after { border-color: rgba(255, 255, 255, .7); }
.site-footer, .footer-nav a { color: var(--on-bg); }
.footer-grid p, .footer-bottom { color: var(--on-bg-muted); }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .18); }

/* zonele deschise raman cu text inchis, ca sa se citeasca usor */
.showcase, .contact-card, .pizza-card { color: var(--charcoal); }
.showcase .lead { color: var(--ink-2); }
.reviews .lead, .cta-band .lead { color: #C3C8C5; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .values, .review-grid { grid-template-columns: 1fr; }
  .review-grid { max-width: 620px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .hero { min-height: auto; padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; justify-self: center; margin-top: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .nav a { padding: 8px 12px; }
  .btn { padding: 16px 28px; }
  .call-fab { display: inline-flex; right: auto; left: 16px; }
  .wa-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-fab svg { width: 29px; height: 29px; }
  .site-footer { padding-bottom: 96px; }
  .map, .map iframe { min-height: 320px; }
}

@media (max-width: 560px) {
  .pizza-grid { gap: 14px; }
  .pizza-card {
    display: grid;
    grid-template-columns: 108px 1fr;
    grid-template-rows: auto 1fr auto;
    column-gap: 16px;
    padding: 14px;
  }
  .pizza-card .art { grid-row: 1 / 4; border-radius: 12px; align-self: start; aspect-ratio: 1; }
  .pizza-card h3 { font-size: 1.25rem; margin: 2px 0 4px; }
  .pizza-card p { font-size: .9rem; }
  .pizza-card .price { margin-top: 8px; padding-top: 0; border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
