/* ==========================================================================
   Pizzeria Locală Sadu — stylesheet
   Paleta: rosu tomata + verde masliniu + crem/lemn, accente motive traditionale
   ========================================================================== */

:root {
  --tomato: #c1272d;
  --tomato-dark: #8f1d22;
  --tomato-light: #e35d52;
  --olive: #5b6e3d;
  --olive-dark: #414f2c;
  --cream: #fbf3e7;
  --cream-dark: #f1e4cf;
  --wood: #3a2318;
  --wood-light: #6d4c41;
  --gold: #d9a441;
  --white: #ffffff;

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(58, 35, 24, 0.12);
  --shadow-strong: 0 18px 45px rgba(58, 35, 24, 0.22);
  --transition-smooth: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body.page-enter {
  opacity: 0;
}

body.page-enter-active {
  opacity: 1;
  transition: opacity 0.4s ease;
}

body.page-leave {
  opacity: 0 !important;
  transition: opacity 0.2s ease;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--cream);
  background-image: radial-gradient(circle at 1px 1px, rgba(58, 35, 24, 0.05) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--wood);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 0.5em;
  color: var(--wood);
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section--tight {
  padding: 64px 0;
}

.section--cream-dark {
  background-color: var(--cream-dark);
  background-image:
    radial-gradient(circle at 90% 10%, rgba(193, 39, 45, 0.07), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(91, 110, 61, 0.09), transparent 45%),
    repeating-linear-gradient(135deg, rgba(58, 35, 24, 0.025) 0 2px, transparent 2px 24px);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--tomato);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.section-subtitle {
  color: var(--wood-light);
  font-size: 1.05rem;
}

/* ==========================================================================
   Motif traditional romanesc — banda decorativa geometrica
   ========================================================================== */

.motif-strip {
  position: relative;
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    var(--tomato) 0px,
    var(--tomato) 7px,
    var(--wood) 7px,
    var(--wood) 14px,
    var(--cream) 14px,
    var(--cream) 21px,
    var(--olive) 21px,
    var(--olive) 28px
  );
  background-size: 40px 14px;
}

.motif-strip::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #009246 33.3%, #f4ede0 33.3% 66.6%, #ce2b37 66.6%);
}

.motif-diamonds {
  --d: 26px;
  height: var(--d);
  width: 100%;
  background:
    linear-gradient(45deg, var(--tomato) 25%, transparent 25.5%, transparent 75%, var(--tomato) 75.5%),
    linear-gradient(45deg, var(--tomato) 25%, transparent 25.5%, transparent 75%, var(--tomato) 75.5%);
  background-size: var(--d) var(--d);
  background-position: 0 0, calc(var(--d) / 2) calc(var(--d) / 2);
  opacity: 0.9;
}

/* ==========================================================================
   Header / navigatie
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 243, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 35, 24, 0.08);
  transition: padding var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: var(--shadow-soft);
  background: rgba(251, 243, 231, 0.98);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  transition: padding var(--transition-smooth);
}

.site-header.scrolled .nav-inner {
  padding: 12px 24px;
}

.logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
  transition: transform var(--transition-smooth);
}

.logo:hover .logo-img {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--wood);
  border-radius: 999px;
  transition: color var(--transition-smooth), background var(--transition-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--tomato);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--tomato-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--tomato-dark);
}

.nav-cta {
  background: var(--tomato);
  color: var(--white) !important;
  padding: 10px 22px !important;
  box-shadow: 0 6px 18px rgba(193, 39, 45, 0.35);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--tomato-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(193, 39, 45, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1100;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--wood);
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Butoane
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth), color var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--tomato);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(193, 39, 45, 0.35);
}

.btn-primary:hover {
  background: var(--tomato-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(193, 39, 45, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--wood);
  border-color: var(--wood);
}

.btn-outline:hover {
  background: var(--wood);
  color: var(--cream);
  transform: translateY(-3px);
}

.btn-olive {
  background: var(--olive);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(91, 110, 61, 0.35);
}

.btn-olive:hover {
  background: var(--olive-dark);
  transform: translateY(-3px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 10% 15%, rgba(193, 39, 45, 0.14), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(91, 110, 61, 0.14), transparent 38%),
    radial-gradient(circle at 75% 85%, rgba(217, 164, 65, 0.22), transparent 45%),
    linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 55%, #ecd9b8 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(217, 164, 65, 0.28), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(193, 39, 45, 0.2), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(91, 110, 61, 0.18), transparent 30%);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4%, -4%) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(193, 39, 45, 0.1);
  color: var(--tomato-dark);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 22px;
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title .accent {
  color: var(--tomato);
  position: relative;
  white-space: nowrap;
}

.hero-slogan {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--olive-dark);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--wood-light);
  max-width: 480px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-logo-img {
  width: min(600px, 96%);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(58, 35, 24, 0.25));
  animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--wood-light);
  animation: fadeIn 1s ease 1s both;
}

.scroll-cue .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--wood-light);
  border-radius: 12px;
  position: relative;
}

.scroll-cue .mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--tomato);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-dot 1.6s ease infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   Grids & Cards
   ========================================================================== */

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(160deg, #ffffff 0%, #fffaf1 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.dish-card {
  background: linear-gradient(160deg, #ffffff 0%, #fffaf1 100%);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  border: 1px solid rgba(58, 35, 24, 0.06);
}

.dish-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(193, 39, 45, 0.25);
}

.dish-card .dish-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
  background: var(--cream-dark);
  transition: transform var(--transition-smooth);
}

.dish-card-img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--cream-dark);
  transition: transform var(--transition-smooth);
}

.dish-card:hover .dish-card-img {
  transform: scale(1.04);
}

.dish-card:hover .dish-icon {
  transform: rotate(-8deg) scale(1.08);
}

.dish-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.dish-card .dish-desc {
  color: var(--wood-light);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.dish-card .dish-prices {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(58, 35, 24, 0.15);
  padding-top: 12px;
  font-weight: 700;
  color: var(--tomato-dark);
  flex-wrap: wrap;
  gap: 8px;
}

.dish-prices span.size {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--wood-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--wood);
  color: var(--cream);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  margin-top: 40px;
}

.footer-grid h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-grid p, .footer-grid li {
  color: rgba(251, 243, 231, 0.75);
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-logo {
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  padding: 10px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.footer-logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(251, 243, 231, 0.08);
  display: grid;
  place-items: center;
  transition: transform var(--transition-smooth), background var(--transition-smooth);
}

.footer-social a:hover {
  background: var(--tomato);
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(251, 243, 231, 0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(251, 243, 231, 0.6);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--wood);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(58, 35, 24, 0.18);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--wood);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), transform 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--tomato);
  box-shadow: 0 0 0 4px rgba(193, 39, 45, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group input[type='radio'],
.form-group input[type='checkbox'] {
  padding: 0;
  border: none;
  width: 17px;
  height: 17px;
  accent-color: var(--tomato);
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.form-note {
  font-size: 0.85rem;
  color: var(--wood-light);
  margin-top: 8px;
}

#delivery-option-livrare.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#delivery-option-livrare.is-disabled input {
  pointer-events: none;
}

#delivery-unavailable-note.bump {
  animation: bump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.active {
  display: block;
  animation: fadeInUp 0.6s ease both;
}

.order-code-box {
  display: inline-block;
  background: rgba(193, 39, 45, 0.08);
  border: 1px dashed var(--tomato);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin: 6px 0 20px;
  font-size: 0.92rem;
  color: var(--wood);
}

.order-code-box strong {
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--tomato-dark);
}

.success-check {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--white);
  font-size: 2.4rem;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Stats counters (Despre noi)
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--tomato);
  display: block;
}

.stat-label {
  color: var(--wood-light);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   Meniu page — tabs
   ========================================================================== */

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 50px;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--wood);
  background: transparent;
  color: var(--wood);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-smooth);
}

.tab-btn:hover {
  background: rgba(58, 35, 24, 0.06);
}

.tab-btn.active {
  background: var(--tomato);
  border-color: var(--tomato);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(193, 39, 45, 0.3);
}

.menu-category {
  display: none;
}

.menu-category.active {
  display: block;
  animation: fadeInUp 0.5s ease both;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(58, 35, 24, 0.15);
}

.menu-row-img {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  background: var(--cream-dark);
}

.menu-category[data-category="fel-principal"] .menu-row-img {
  border-radius: 50%;
}

.menu-row-info {
  flex: 1;
  min-width: 0;
}

.menu-row .menu-row-title {
  font-weight: 700;
  color: var(--wood);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-row .menu-row-desc {
  font-size: 0.86rem;
  color: var(--wood-light);
}

.menu-row .menu-row-price {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: var(--tomato-dark);
  font-size: 0.95rem;
}

.menu-row .menu-row-price small {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--wood-light);
}

.badge {
  font-size: 0.62rem;
  background: var(--olive);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Comanda online — cart
   ========================================================================== */

.order-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.cart-panel {
  position: sticky;
  top: 110px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px;
}

.cart-panel h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-count {
  background: var(--tomato);
  color: var(--white);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-count.bump {
  animation: bump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.cart-items {
  max-height: 320px;
  overflow-y: auto;
  margin: 16px 0;
}

.cart-empty {
  text-align: center;
  color: var(--wood-light);
  padding: 30px 0;
  font-style: italic;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(58, 35, 24, 0.08);
  animation: fadeInUp 0.35s ease both;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.cart-item-meta {
  font-size: 0.76rem;
  color: var(--wood-light);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--wood);
  background: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: var(--wood);
  color: var(--cream);
}

.remove-btn {
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 16px 0;
  border-top: 2px solid var(--wood);
}

.menu-item-order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-smooth);
}

.menu-item-order:hover {
  transform: translateX(4px);
}

.size-select {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.size-option {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(58, 35, 24, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.size-option.selected {
  background: var(--tomato);
  border-color: var(--tomato);
  color: var(--white);
}

.add-btn {
  background: var(--olive);
  color: var(--white);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: all var(--transition-smooth);
}

.add-btn:hover {
  background: var(--olive-dark);
  transform: scale(1.05);
}

.add-btn.added {
  background: var(--tomato);
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
  transition: transform var(--transition-smooth);
}

.info-card:hover {
  transform: translateX(6px);
}

.info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 4px solid var(--white);
}

.map-frame iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

/* ==========================================================================
   Page hero (subpages)
   ========================================================================== */

.page-hero {
  padding: 160px 0 70px;
  text-align: center;
  background-color: var(--cream-dark);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(193, 39, 45, 0.12), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(91, 110, 61, 0.14), transparent 42%),
    radial-gradient(circle at 50% 105%, rgba(217, 164, 65, 0.2), transparent 50%),
    repeating-linear-gradient(45deg, rgba(58, 35, 24, 0.035) 0 2px, transparent 2px 22px),
    linear-gradient(160deg, var(--cream-dark), var(--cream));
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 25% 25%, rgba(217, 164, 65, 0.22), transparent 32%),
    radial-gradient(circle at 75% 75%, rgba(193, 39, 45, 0.16), transparent 32%);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  animation: fadeInUp 0.7s ease both;
}

.page-hero p {
  color: var(--wood-light);
  animation: fadeInUp 0.7s ease 0.1s both;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--wood-light);
  margin-bottom: 10px;
  animation: fadeInUp 0.7s ease both;
}

.breadcrumb a:hover { color: var(--tomato); }

/* ==========================================================================
   Story / About sections
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--olive) 0%, var(--olive-dark) 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-strong);
}

.split-visual.alt {
  background: linear-gradient(145deg, var(--tomato) 0%, var(--tomato-dark) 100%);
}

.split-visual .emoji-mark {
  font-size: 5rem;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}

.split-visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

.split-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.split-visual:hover img {
  transform: scale(1.05);
}

.placeholder-note {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(58, 35, 24, 0.55);
  color: var(--cream);
  font-size: 0.7rem;
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.value-card {
  text-align: center;
  padding: 30px 20px;
}

.value-card .dish-icon {
  margin: 0 auto 16px;
}

/* ==========================================================================
   Testimonial / CTA band
   ========================================================================== */

.cta-band {
  background: var(--wood);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: var(--cream);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(193,39,45,0.25), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(91,110,61,0.25), transparent 60%);
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Google rating badge
   ========================================================================== */

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  color: var(--wood);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.google-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.google-badge-stars {
  color: #f4b400;
  letter-spacing: 1px;
  font-size: 1.05rem;
}

.google-badge-score {
  color: var(--tomato-dark);
}

.google-badge-text {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--wood-light);
}

/* ==========================================================================
   Call FAB (mobil)
   ========================================================================== */

.call-fab {
  display: none;
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tomato);
  color: var(--white);
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(193, 39, 45, 0.45);
  z-index: 900;
  animation: fab-pulse 2.4s ease-in-out infinite;
}

.call-fab:active {
  transform: scale(0.94);
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(193, 39, 45, 0.45); }
  50% { box-shadow: 0 10px 26px rgba(193, 39, 45, 0.45), 0 0 0 10px rgba(193, 39, 45, 0.15); }
}

@media (max-width: 780px) {
  .call-fab {
    display: flex;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-12 { gap: 12px; }
.gap-20 { gap: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: -1; }
  .order-layout { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .menu-list { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .cart-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 82vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    transform: translateY(100vh);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 960;
    box-shadow: 0 -10px 40px rgba(58, 35, 24, 0.35);
  }

  .cart-panel.open {
    transform: translateY(0);
  }

  .cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(58, 35, 24, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 955;
  }

  .cart-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .cart-close {
    display: grid;
    place-items: center;
    position: sticky;
    top: 0;
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cream-dark);
    border: none;
    font-size: 1.3rem;
    color: var(--wood);
    line-height: 1;
  }

  .cart-fab {
    display: flex;
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--tomato);
    color: var(--white);
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(91, 110, 61, 0.45);
    z-index: 900;
    border: none;
  }

  .cart-fab:active {
    transform: scale(0.94);
  }

  .cart-fab .cart-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gold);
    color: var(--wood);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    border: 2px solid var(--cream);
  }
}

@media (min-width: 781px) {
  .cart-close,
  .cart-fab,
  .cart-backdrop {
    display: none;
  }
}

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(320px, 80%);
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 22px;
    box-shadow: var(--shadow-strong);
    transition: right var(--transition-smooth);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li:not(:last-child) {
    border-bottom: 1px solid rgba(58, 35, 24, 0.1);
  }

  .nav-links a {
    width: 100%;
    padding: 14px 10px;
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: flex;
  }

  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-social { justify-content: center; }
  .cta-band { padding: 36px 20px; }
  .form-card { padding: 24px; }

  .menu-row {
    flex-wrap: wrap;
  }
  .menu-row .menu-row-price {
    text-align: left;
  }

  .menu-item-order {
    flex-direction: column;
    align-items: stretch;
  }
  .menu-item-order .add-btn {
    width: 100%;
    justify-content: center;
    display: flex;
    margin-top: 10px;
  }

  .info-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   Legal content (Politica de Confidențialitate etc.)
   ========================================================================== */

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.7;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--tomato-dark);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--wood-light);
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--wood-light);
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--wood);
}

.legal-content a {
  color: var(--tomato-dark);
  text-decoration: underline;
}

/* ==========================================================================
   GDPR consent checkbox (formular comandă)
   ========================================================================== */

.consent-group {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

.consent-group input[type='checkbox'] {
  margin-top: 3px;
  flex-shrink: 0;
}

.consent-group label {
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--wood-light);
}

.consent-group label a {
  color: var(--tomato-dark);
  font-weight: 700;
}

/* Camp honeypot anti-spam: invizibil pentru oameni, dar prezent in DOM
   pentru ca boti automati care completeaza orbeste toate campurile sa il
   umple — vezi js/comanda.js si js/rezervare.js. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-bottom a {
  color: rgba(251, 243, 231, 0.75);
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--gold);
}
