/* =========================================================
   Panini da Arthuro — CSS Complet
   ========================================================= */

:root {
  --verde: #254b23;
  --verde-deschis: #3f6e3d;
  --auriu: #c8973a;
  --hartie: #f7f3e8;
  --hartie-card: rgba(255, 253, 248, 0.92);
  --text: #201d16;
  --text-muted: #6b6355;
  --border: #e6dfcb;

  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.25);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ===== FUNDAL DESKTOP (O singură imagine fixă) ===== */
body {
  font-family: var(--font-body);
  margin: 0;
  background: 
    linear-gradient(rgba(37, 75, 35, 0.308), rgba(37, 75, 35, 0.315)), 
    url('images/bgpizzapc.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 70px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--verde);
  color: white;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 10000;
}
.skip-link:focus { left: 0; }

/* ===== HEADER ===== */

header {
  background: rgba(37, 75, 35, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  border-bottom: 4px solid var(--auriu);
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 0 20px;
  text-align: left;
}

.brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--auriu);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.3px;
}

.brand p.lead {
  margin: 6px 0 0;
  color: #d1ebd0;
  font-size: 14px;
  font-style: italic;
  font-family: var(--font-display);
}

#status-program {
  margin-top: 10px;
  font-weight: 500;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
}

.header-tools {
  padding: 10px 0 20px;
}

/* ===== CĂUTARE ===== */

.search-wrapper {
  display: block;
  position: relative;
  width: 100%;
  max-width: 360px;
}

.search-pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 14px;
  border-radius: 30px;
  width: 100%;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.search-pill:focus-within {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--auriu);
}

.search-pill input {
  background: none;
  border: none;
  color: white;
  outline: none;
  width: 100%;
  font-size: 13px;
  font-family: inherit;
}

.search-pill input::placeholder { color: rgba(255, 255, 255, 0.75); }

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  z-index: 999;
  margin-top: 8px;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  text-align: left;
}

.search-results.open { display: block; }

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--hartie); }
.search-result-item .sr-price { color: var(--auriu); font-weight: 700; white-space: nowrap; }
.search-result-empty { padding: 14px; color: var(--text-muted); font-size: 13px; text-align: center; }

/* ===== NAVIGARE PE CATEGORII ===== */

.category-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(37, 75, 35, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.category-nav-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 14px 24px;
  scrollbar-width: none;
  max-width: 1100px;
  margin: 0 auto;
}
.category-nav-scroller::-webkit-scrollbar { display: none; }

.category-nav a {
  flex-shrink: 0;
  text-decoration: none;
  color: #d1ebd0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  background: transparent;
  transition: all 0.25s ease;
}

.category-nav a:hover { color: white; background: rgba(255, 255, 255, 0.1); }

.category-nav a.active {
  color: var(--verde);
  background: #fffdf8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== SECȚIUNI MENIU ===== */

main { padding: 24px 0 12px; }

.menu-section {
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  scroll-margin-top: 64px;
  text-align: center;
}

.menu-section:last-child { border-bottom: none; }

.menu-section h2 {
  color: #fffdf8;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 16px;
  display: inline-block;
  position: relative;
  padding: 8px 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  text-align: center;
}

.menu-section h3.group-heading {
  color: #d1ebd0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  margin: 32px 0 12px;
  grid-column: 1 / -1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.menu-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.menu-row {
  background: var(--hartie-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  text-align: left;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: #ffffff;
}

.menu-row:first-child { padding-top: 16px; }

.menu-row .thumb {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

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

.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.row-head .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.row-head .fill { display: none; }

.row-head .price {
  font-weight: 700;
  font-size: 15px;
  color: #b3822b;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-row .detail {
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 0;
  line-height: 1.4;
}

.btn {
  display: inline-block;
  background: var(--verde);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  font-size: 13px;
  font-weight: 600;
  margin: 8px 8px 0 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn:hover { background: var(--verde-deschis); transform: translateY(-1px); }

/* Secțiuni statice (Contact, Feedback, Locație) */
.static-section {
  text-align: center;
  background: var(--hartie-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  margin: 20px 0;
  box-shadow: var(--shadow-subtle);
}

.static-section p { 
  text-align: center; 
  max-width: 65ch; 
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
}

.static-section a:not(.btn) { color: var(--verde); text-decoration: underline; font-weight: 600; }

/* ===== SCROLL TOP ===== */

#scrollTopBtn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: var(--verde);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, transform 0.2s;
}

#scrollTopBtn:hover { background: var(--verde-deschis); transform: scale(1.05); }

/* ===== BARA MOBILĂ ===== */

.mobile-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(37, 75, 35, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.action-item {
  text-decoration: none;
  color: #d1ebd0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  font-family: var(--font-body);
  transition: color 0.2s;
}

.action-item:hover, .action-item.active { color: white; }
.action-item .icon { font-size: 20px; margin-bottom: 3px; }
.action-item.whatsapp .icon { color: #25D366; }

/* ===== RECENZII ===== */

.reviews-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 16px 0 12px;
}

.reviews-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.review-slide { min-width: 100%; padding: 0 8px; box-sizing: border-box; }

.review-card-inner {
  background: var(--hartie-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  box-shadow: var(--shadow-subtle);
}

.review-quote-icon {
  font-size: 36px;
  color: var(--auriu);
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.review-text {
  font-size: 14px;
  color: var(--text);
  font-style: italic;
  font-family: var(--font-display);
  line-height: 1.7;
  margin: 0 0 16px;
}

.review-author { display: flex; align-items: center; gap: 12px; }

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
  font-family: var(--font-body);
}

.review-author-name { font-weight: 700; font-size: 13px; color: var(--verde); font-family: var(--font-body); }
.review-stars { color: var(--auriu); font-size: 13px; letter-spacing: 0.5px; }
.review-source { font-size: 11px; color: var(--text-muted); }

.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.slider-dot.active { background: var(--auriu); transform: scale(1.4); }

.slider-progress-bar { height: 3px; background: rgba(255, 255, 255, 0.3); border-radius: 2px; margin: 12px 24px 0; overflow: hidden; }
.slider-progress-fill { height: 100%; background: var(--auriu); border-radius: 2px; width: 0%; transition: width linear; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--hartie-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 15px;
  cursor: pointer;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--verde);
  box-shadow: var(--shadow-subtle);
  transition: background 0.2s;
}

.slider-btn:hover { background: #ffffff; }
.slider-btn.prev { left: 4px; }
.slider-btn.next { right: 4px; }

/* ===== FOOTER ===== */

footer {
  background: rgba(26, 53, 24, 0.95);
  backdrop-filter: blur(12px);
  color: #d1ebd0;
  padding: 24px 18px;
  text-align: center;
  margin-top: 20px;
  font-size: 12.5px;
  border-top: 4px solid var(--auriu);
}

footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

footer strong { color: white; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =========================================================
   MEDIA QUERIES
   ========================================================= */

/* ===== FUNDAL TELEFON (Imaginea se repetă ca un model / tapet) ===== */
@media only screen and (max-width: 599px) {
  body {
    background: 
      linear-gradient(rgba(37, 75, 35, 0.281), rgba(37, 75, 35, 0.24)), 
      url('images/bgpizzatel.jpg') repeat center top;
    background-size: 320px auto; /* Lățimea la care se repetă imaginea pe orizontală pe ecran îngust */
    background-attachment: scroll;
  }
}

@media only screen and (min-width: 600px) {
  body { padding-bottom: 0; }
  .brand { padding: 36px 0 24px; }
  .brand img { width: 84px; height: 84px; }
  .brand h1 { font-size: 34px; }
  .header-tools { display: flex; justify-content: flex-end; padding-bottom: 20px; }
  .slider-btn { display: flex; }
  .mobile-actions { display: none; }
  #scrollTopBtn { bottom: 24px; }
  
  .menu-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media only screen and (min-width: 768px) {
  .brand h1 { font-size: 38px; }
  .menu-section h2 { font-size: 30px; }
}