/* ============================================================
   DELICII CRAIOVA — Eclair Nav (partajat de toate paginile)
   Inclus prin <link rel="stylesheet" href="nav.css"> +
   <script src="nav.js"></script> care injecteaza markup-ul.
   ============================================================ */
:root {
  --nav-cocoa: #6b3410;
  --nav-rasp: #c41f47;
}

/* ===== BUTON WHATSAPP PLUTITOR ===== */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1ebe5a); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,0.65);
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  animation: wa-pop .5s cubic-bezier(.34,1.6,.64,1) 1.2s both;
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.5); animation: wa-pulse 2.4s ease-out infinite;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 16px 34px -8px rgba(37,211,102,0.8); }
.wa-fab .wa-fab-tip {
  position: absolute; right: 70px; background: #fff; color: #2a1206;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.3); opacity: 0; pointer-events: none;
  transform: translateX(8px); transition: opacity .2s, transform .2s;
}
.wa-fab:hover .wa-fab-tip { opacity: 1; transform: translateX(0); }
@keyframes wa-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); } 70%,100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
@media (max-width: 600px) {
  .wa-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .wa-fab svg { width: 26px; height: 26px; }
  .wa-fab .wa-fab-tip { display: none; }
}

/* ===== FOOTER comun (frumos, pe toate paginile) ===== */
/* blocheaza scroll orizontal + footer lipit mereu de baza paginii */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100%; min-height: 100vh; display: flex; flex-direction: column; }
.site-footer > * , .eclair-nav, header, main, section, footer { min-width: 0; }
.site-footer {
  margin-top: auto;
  padding: 0;
  text-align: left;
  color: #f3ddc9;
  background: #2a1206;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, #e23a5e, #ff7a18, #ffb43d) 1;
  font-family: 'Nunito', sans-serif;
}
.site-footer .sf-logo svg { width: 30px; height: 30px; color: var(--honey, #ffb43d); }
.site-footer .sf-wrap { max-width: 1140px; margin: 0 auto; padding: 50px 28px 26px; }
.site-footer .sf-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.site-footer .sf-logo {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 24px; color: #fff;
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.site-footer .sf-brand p { font-size: 14px; line-height: 1.65; color: #d9bda6; max-width: 320px; font-weight: 500; }
.site-footer .sf-social { display: flex; gap: 10px; margin-top: 16px; }
.site-footer .sf-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; color: #ffe9d6;
  transition: transform .2s, background .2s;
}
.site-footer .sf-social a:hover { transform: translateY(-3px); background: rgba(226,58,94,0.85); color: #fff; }
.site-footer .sf-social svg { width: 18px; height: 18px; }
.site-footer h4 { font-family: 'Baloo 2', cursive; font-size: 14px; letter-spacing: .04em; color: var(--honey, #ffb43d); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer .sf-col a { color: #e8c9b3; text-decoration: none; font-size: 14.5px; font-weight: 600; transition: color .2s, padding-left .2s; }
.site-footer .sf-col a:hover { color: #fff; padding-left: 4px; }
.site-footer .sf-muted { color: #a98a72; font-size: 13.5px; font-weight: 600; }
.site-footer .sf-bottom {
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #b89c84;
}
.site-footer .sf-credit a { color: var(--honey, #ffb43d); text-decoration: none; font-weight: 700; }
.site-footer .sf-credit a:hover { color: #fff; text-decoration: underline; }
.site-footer .sf-heart { color: #ff5d6c; }
@media (max-width: 760px) {
  .site-footer .sf-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer .sf-brand { grid-column: 1 / -1; }
  .site-footer .sf-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 460px) {
  .site-footer .sf-grid { grid-template-columns: 1fr; }
}

/* ===== ANIMATIE DE INTRARE (ecran simplu cu numele, fade) ===== */
html.intro-lock { overflow: hidden; }

#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 24px;
  /* fundal cald, in culorile site-ului */
  background:
    radial-gradient(900px 500px at 22% 14%, #ffe1c4 0%, transparent 55%),
    radial-gradient(800px 600px at 82% 88%, #ffd9e2 0%, transparent 55%),
    linear-gradient(160deg, #fff6ec, #ffe7d4);
  opacity: 1;
  transition: opacity .6s ease;
}
/* la final se estompeaza lin si dezvaluie pagina */
#intro-screen.lift { opacity: 0; }

#intro-screen .intro-treat {
  width: 86px; height: 86px;
  opacity: 0;
  animation: intro-pop .6s cubic-bezier(.34,1.6,.64,1) .1s both, intro-bob 2.4s ease-in-out 1s infinite;
  filter: drop-shadow(0 14px 16px rgba(120,40,30,0.3));
}
#intro-screen .intro-name {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: clamp(38px, 9vw, 72px);
  line-height: 1;
  color: var(--nav-cocoa);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: intro-rise .6s ease .35s both;
}
#intro-screen .intro-name .accent2 {
  background: linear-gradient(120deg, #e23a5e, #ff7a18 60%, #ffb43d);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
#intro-screen .intro-sub {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 3.5vw, 19px);
  color: #9a5f33;
  opacity: 0;
  animation: intro-rise .6s ease .55s both;
}

@keyframes intro-pop  { from { opacity: 0; transform: scale(.5) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes intro-bob  { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes intro-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  #intro-screen .intro-treat,
  #intro-screen .intro-name,
  #intro-screen .intro-sub { animation: none; opacity: 1; }
}

/* ===== FONTURI =====
   Titluri: Baloo 2 (rotund, dulce, dar clar)
   Text: Nunito (foarte lizibil) — implicit pe pagini.
   Regula de mai jos forteaza titlurile pe Baloo 2 peste tot. */
h1, h2, h3, h4,
.logo, .price, .brand-txt,
.hero h1, .menu h2, .about-text h2, .ph h1,
.p-info h1, .detail-card h2, .blog-head h1,
.cta-box h3, .f-logo, .modal-body h3, article h1, article h2 {
  font-family: 'Baloo 2', cursive !important;
}

/* Fix: cuvintele colorate in italic se taiau la final (litera inclinata
   iesea din zona de decupare a gradientului). Le dam putin spatiu. */
.accent {
  display: inline-block;
  padding: 0 0.14em 0.05em 0.02em;
  margin: 0 -0.06em;
}

.eclair-nav {
  position: relative;
  z-index: 30;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px 8px;
  display: flex;
  justify-content: center;
}
.eclair {
  position: relative;
  display: flex;
  align-items: stretch;
  width: min(100%, 1080px);
  height: 112px;
  background: linear-gradient(177deg, #ffe9c9 0%, #f6cd92 55%, #eaba74 100%);
  border-radius: 60px;
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,0.6),
    inset 0 -8px 18px rgba(160,95,40,0.25),
    0 26px 50px -22px rgba(150,80,40,0.55);
  padding: 0 26px 0 22px;
}
.eclair::before {
  content: "";
  position: absolute;
  top: 4px; left: 38px; right: 104px;
  height: 17px;
  border-radius: 12px;
  background: linear-gradient(180deg, #7a4322 0%, #5a3015 55%, #4a260f 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.22), inset 0 -2px 5px rgba(0,0,0,0.25);
}

.eclair-cap {
  position: absolute;
  right: -16px; top: 50%; transform: translateY(-50%);
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  z-index: 4;
  pointer-events: none;
}
.eclair-cap img { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(150,40,40,0.4)); }

.nav-brand {
  display: flex; align-items: center; gap: 11px;
  padding-right: 18px;
  border-right: 2px dashed rgba(120,70,30,0.28);
  text-decoration: none;
  position: relative; z-index: 3;
  align-self: flex-end;
  margin-bottom: 12px;
}
.nav-brand .chef { width: 48px; height: 48px; flex: 0 0 48px; color: var(--nav-cocoa); }
.nav-brand .chef svg { width: 100%; height: 100%; }
.nav-brand .brand-txt {
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 23px; line-height: 1;
  color: var(--nav-cocoa); letter-spacing: -0.01em;
}
.nav-brand .brand-txt small { display: block; font-size: 11.5px; font-weight: 600; color: #9a5f33; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; }

.eclair .nav-links {
  display: flex; align-items: flex-end;
  list-style: none;
  flex: 1;
  justify-content: space-around;
  gap: 6px;
  padding: 0 74px 18px 26px;
  margin: 0;
  z-index: 3;
}
.eclair .nav-links a {
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--nav-cocoa);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 9px 4px;
  border-radius: 14px;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), color 0.2s;
  position: relative;
}
.eclair .nav-links a .ni { width: 31px; height: 31px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.eclair .nav-links a.nav-admin { color: #1ea86b; }
.eclair .nav-links a.nav-admin:hover { color: #157a4d; }
.eclair .nav-links a:hover { transform: translateY(-4px); color: var(--nav-rasp); }
.eclair .nav-links a.active { color: var(--nav-rasp); }
.eclair .nav-links a.active::after {
  content: ""; position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 3px; background: #e23a5e;
}

@media (max-width: 820px) {
  .eclair { height: auto; flex-wrap: wrap; border-radius: 34px; padding: 14px 18px; }
  .eclair::before { display: none; }
  .eclair-cap { display: none; }
  .nav-brand { border-right: none; width: 100%; justify-content: center; padding-right: 0; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px dashed rgba(120,70,30,0.25); }
  .eclair .nav-links { padding: 0; flex-wrap: wrap; gap: 4px; }
  .eclair .nav-links a { font-size: 10px; }
}
