/* ==========================================================
   Header SOFIMAR (widget „SB: Header” / [sb_header]).
   Selectorii au prefixul .sbh + element: kit-ul Elementor stilizează global a / button / :hover.
   ========================================================== */
.sbh, .sbh-m {
  --sbh-navy: var(--e-global-color-ea25a53, #000d44);
  --sbh-green: var(--e-global-color-da630c0, #3aae2a);
  --sbh-green-hover: #319423;
  --sbh-green-ink: #2d8620;
  --sbh-sky: var(--e-global-color-7eb9c5f, #e6f5fd);
  --sbh-line: #e4e8f0;
  --sbh-muted: #5b6275;
  --sbh-head: "Outfit", system-ui, sans-serif;
  --sbh-ease: cubic-bezier(.22, 1, .36, 1);
  font-family: var(--sbh-head);
  color: var(--sbh-navy);
  -webkit-tap-highlight-color: transparent;
}
.sbh *, .sbh *::before, .sbh *::after, .sbh-m *, .sbh-m *::before, .sbh-m *::after { box-sizing: border-box; }
.sbh ul, .sbh-m ul { list-style: none; margin: 0; padding: 0; }
.sbh li, .sbh-m li { margin: 0; padding: 0; }
.sbh svg, .sbh-m svg { display: block; flex-shrink: 0; }

/* ---------- Bara ---------- */
.sbh { position: relative; width: 100%; }
.sbh-bar { position: relative; display: flex; align-items: center; gap: 24px; min-height: 80px; }
.sbh a.sbh-logo { display: block; flex-shrink: 0; width: var(--sbh-logo-w, 180px); line-height: 0; }
.sbh .sbh-logo img { width: 100%; height: auto; display: block; }
.sbh-nav { flex: 1; display: flex; justify-content: center; }
.sbh-menu { display: flex; align-items: center; gap: 4px; }
.sbh-item { position: relative; }
.sbh-item--mega { position: static; }
.sbh-notice { flex: 1; margin: 0; font-size: 14px; color: #b42318; }

/* Elementele de pe primul nivel (link sau buton de dropdown) */
.sbh a.sbh-top, .sbh button.sbh-top, .sbh a.sbh-top:hover, .sbh a.sbh-top:focus, .sbh button.sbh-top:hover, .sbh button.sbh-top:focus {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; padding: 10px 14px;
  border: 0; border-radius: 999px; background: transparent; box-shadow: none;
  font-family: var(--sbh-head); font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: normal; text-transform: none;
  color: var(--sbh-navy); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.sbh .sbh-top .sbh-chev, .sbh .sbh-caret .sbh-chev { width: 16px; height: 16px; transition: transform .25s var(--sbh-ease); }
/* Iconița din fața unui element de meniu (ex: Pediatrie); SVG-ul ia culoarea textului */
.sbh .sbh-menu-ico { width: 20px; height: 20px; flex-shrink: 0; margin-right: 2px; }

/* Element cu link + listă (ex: Specialități): textul e link, săgeata e buton; fundalul de hover cuprinde ambele */
.sbh .sbh-item--link { display: flex; align-items: center; border-radius: 999px; transition: background-color .2s; }
.sbh .sbh-item--link > a.sbh-top, .sbh .sbh-item--link > a.sbh-top:hover, .sbh .sbh-item--link > a.sbh-top:focus { padding-right: 2px; background: transparent; }
.sbh button.sbh-caret, .sbh button.sbh-caret:hover, .sbh button.sbh-caret:focus {
  display: grid; place-items: center; width: 30px; height: 44px; margin: 0; padding: 0 10px 0 2px;
  border: 0; border-radius: 0 999px 999px 0; background: transparent; box-shadow: none; color: var(--sbh-navy); cursor: pointer;
}
.sbh button.sbh-caret:focus-visible { outline: 2px solid var(--sbh-navy); outline-offset: 2px; }
.sbh .sbh-item--link.is-open { background: var(--sbh-sky); }
.sbh .sbh-item--link.is-open > .sbh-caret .sbh-chev { transform: rotate(180deg); }
.sbh .sbh-item--link.is-current > a.sbh-top { color: var(--sbh-green-ink); }
.sbh .sbh-item.is-current > .sbh-top { color: var(--sbh-green-ink); }
.sbh a.sbh-top:hover, .sbh button.sbh-top:hover, .sbh .sbh-item.is-open > button.sbh-top { background: var(--sbh-sky); }
.sbh .sbh-item.is-open > .sbh-top .sbh-chev { transform: rotate(180deg); }
.sbh .sbh-top:focus-visible { outline: 2px solid var(--sbh-navy); outline-offset: 2px; }

/* ---------- Dropdown ---------- */
.sbh-panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  background: #fff; border-radius: 20px; padding: 10px;
  box-shadow: 0 18px 40px -18px rgba(0, 13, 68, .32), 0 3px 10px -2px rgba(0, 13, 68, .08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--sbh-ease), transform .18s var(--sbh-ease), visibility 0s linear .18s;
}
/* Puntea invizibilă dintre buton și panou: mouse-ul nu „cade” în spațiul dintre ele. */
.sbh-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.sbh-item.is-open > .sbh-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (min-width: 1025px) {
  .sbh-item--sub:hover > .sbh-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .sbh-item--sub:hover > button.sbh-top, .sbh .sbh-item--link:hover { background: var(--sbh-sky); }
  .sbh .sbh-item--link:hover > .sbh-caret .sbh-chev { transform: rotate(180deg); }
  .sbh-item--sub:hover > .sbh-top .sbh-chev { transform: rotate(180deg); }
}

.sbh a.sbh-link, .sbh a.sbh-link:hover, .sbh a.sbh-link:focus {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px;
  font-family: var(--sbh-head); font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: normal; text-transform: none;
  color: var(--sbh-navy); text-decoration: none; transition: background-color .15s;
}
.sbh a.sbh-link:hover, .sbh a.sbh-link:focus-visible { background: var(--sbh-sky); outline: none; }
.sbh a.sbh-link.is-current { color: var(--sbh-green-ink); font-weight: 600; }
.sbh .sbh-link-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sbh .sbh-link-desc { font-size: 13px; font-weight: 400; color: var(--sbh-muted); }

.sbh a.sbh-panel-all, .sbh a.sbh-panel-all:hover {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px 14px 10px; font-size: 14px; font-weight: 600;
  color: var(--sbh-navy); text-decoration: underline; text-underline-offset: 3px;
}
.sbh .sbh-arrow { width: 16px; height: 16px; }

/* Listă simplă (Despre noi) */
.sbh-panel--list { min-width: 240px; }

/* Panou lat pe coloane (Specialități): citire de sus în jos, pe 4 coloane */
.sbh-panel--mega { left: 50%; width: min(960px, 100%); transform: translate(-50%, -6px); padding: 18px; }
.sbh-item.is-open > .sbh-panel--mega { transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1025px) { .sbh-item--sub:hover > .sbh-panel--mega { transform: translate(-50%, 0); } }
.sbh-panel--mega .sbh-sub { columns: 4 190px; column-gap: 6px; }
.sbh-panel--mega .sbh-sub li { break-inside: avoid; }

/* Listă cu iconițe (One Day): cerc colorat + titlu, ca meniul de pe site */
.sbh-panel--icons { min-width: 300px; padding: 12px; }
.sbh-panel--icons .sbh-sub { display: flex; flex-direction: column; gap: 4px; }
.sbh-panel--icons a.sbh-link, .sbh-panel--icons a.sbh-link:hover, .sbh-panel--icons a.sbh-link:focus { gap: 16px; padding: 8px 16px 8px 8px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.sbh-panel--icons a.sbh-link:hover, .sbh-panel--icons a.sbh-link:focus-visible { background: #f5f7fb; }
.sbh .sbh-ico, .sbh-m .sbh-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--sbh-ico-bg, var(--sbh-sky)); transition: transform .3s var(--sbh-ease);
}
.sbh .sbh-ico img, .sbh-m .sbh-ico img { width: 22px; height: 22px; object-fit: contain; display: block; }
.sbh-panel--icons a.sbh-link:hover .sbh-ico { transform: scale(1.08); }

/* ---------- Apel + Programare (stilurile header-ului de pe site) ---------- */
.sbh-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }
.sbh a.sbh-call, .sbh a.sbh-call:hover, .sbh a.sbh-call:focus {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--sbh-navy); background: transparent; text-decoration: none; transition: transform .3s ease, background-color .2s;
}
.sbh a.sbh-call svg { width: 24px; height: 24px; }
.sbh a.sbh-call:hover { transform: translateY(-2px); color: #001773; }
.sbh a.sbh-wa, .sbh a.sbh-wa:hover, .sbh a.sbh-wa:focus {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px;
  border-radius: 50px; background: var(--sbh-green); color: #fff; text-decoration: none;
  font-family: var(--sbh-head); font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: normal; text-transform: none;
  transition: all .3s ease;
}
.sbh a.sbh-wa svg { width: 24px; height: 24px; }
.sbh a.sbh-wa:hover { background: var(--sbh-green-hover); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(58, 174, 42, .2); }
.sbh a.sbh-call:focus-visible, .sbh a.sbh-wa:focus-visible, .sbh a.sbh-logo:focus-visible { outline: 2px solid var(--sbh-navy); outline-offset: 3px; }

/* Laptopuri mici (1025–1240px): meniul are 5 elemente + eticheta „Nou” și nu mai încape la dimensiunile mari */
@media (min-width: 1025px) and (max-width: 1240px) {
  .sbh-bar { gap: 14px; }
  .sbh a.sbh-logo { width: min(var(--sbh-logo-w, 180px), 150px); }
  .sbh-menu { gap: 0; }
  .sbh a.sbh-top, .sbh button.sbh-top, .sbh a.sbh-top:hover, .sbh a.sbh-top:focus, .sbh button.sbh-top:hover, .sbh button.sbh-top:focus { padding: 10px 9px; font-size: 15px; }
  .sbh button.sbh-caret, .sbh button.sbh-caret:hover, .sbh button.sbh-caret:focus { width: 26px; padding: 0 8px 0 0; }
  .sbh-actions { gap: 6px; }
  .sbh a.sbh-wa, .sbh a.sbh-wa:hover, .sbh a.sbh-wa:focus { padding: 10px 16px; }
}
/* Sub 1120px: „Programare” rămâne doar cu iconița (textul e în aria-label) */
@media (min-width: 1025px) and (max-width: 1120px) {
  .sbh a.sbh-wa, .sbh a.sbh-wa:hover, .sbh a.sbh-wa:focus { width: 44px; padding: 0; }
  .sbh .sbh-wa-text { display: none; }
}

/* Butonul de meniu (doar pe mobil / tabletă) */
.sbh button.sbh-burger, .sbh button.sbh-burger:hover, .sbh button.sbh-burger:focus {
  display: none; position: relative; width: 44px; height: 44px; margin: 0 -8px 0 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; box-shadow: none; cursor: pointer;
}
.sbh .sbh-burger span {
  position: absolute; right: 9px; height: 2.5px; border-radius: 2px; background: var(--sbh-navy);
  width: 26px; transform-origin: right center;
  transition: transform .3s var(--sbh-ease), opacity .2s, top .3s var(--sbh-ease);
}
.sbh .sbh-burger span:nth-child(1) { top: 14px; }
.sbh .sbh-burger span:nth-child(2) { top: 21px; }
.sbh .sbh-burger span:nth-child(3) { top: 28px; transform: scaleX(.7); }
.sbh .sbh-burger span { transform-origin: center; right: 9px; }
.sbh .sbh-burger span:nth-child(3) { transform-origin: right center; }
.sbh .sbh-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.sbh .sbh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.sbh .sbh-burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform-origin: center; transform: rotate(-45deg); }
.sbh button.sbh-burger:focus-visible { outline: 2px solid var(--sbh-navy); outline-offset: 2px; }

/* ---------- Mobil și tabletă ---------- */
@media (max-width: 1024px) {
  .sbh-bar { min-height: 64px; gap: 12px; }
  .sbh { --sbh-logo-w: 150px !important; }
  .sbh-nav, .sbh-notice { display: none; }
  .sbh-actions { gap: 2px; }
  .sbh a.sbh-wa, .sbh a.sbh-wa:hover, .sbh a.sbh-wa:focus { width: 44px; padding: 0; background: transparent; color: var(--sbh-green); box-shadow: none; transform: none; }
  .sbh a.sbh-wa svg, .sbh a.sbh-call svg { width: 26px; height: 26px; }
  .sbh .sbh-wa-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sbh button.sbh-burger, .sbh button.sbh-burger:hover, .sbh button.sbh-burger:focus { display: block; }
}

/* Meniul mobil: sertar din dreapta, peste pagina întunecată. Mutat în <body> de script,
   ca să nu depindă de containerul sticky al header-ului. */
.sbh-m-backdrop {
  position: fixed; inset: 0; z-index: 99998; background: rgba(0, 13, 68, .42);
  opacity: 0; transition: opacity .4s ease;
}
.sbh-m-backdrop.is-open { opacity: 1; }
.sbh-m-backdrop[hidden] { display: none; }
.sbh-m {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 99999; width: min(400px, 88vw);
  display: flex; flex-direction: column; background: #fff;
  box-shadow: -18px 0 40px -18px rgba(0, 13, 68, .35);
  transform: translateX(100%); transition: transform .46s cubic-bezier(.32, .72, 0, 1);
  will-change: transform;
}
.sbh-m[hidden] { display: none; }
.sbh-m.is-open { transform: translateX(0); }
.sbh-m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--sbh-line); }
.sbh-m a.sbh-m-logo { display: block; width: 140px; line-height: 0; }
.sbh-m .sbh-m-logo img { width: 100%; height: auto; }
.sbh-m button.sbh-m-close, .sbh-m button.sbh-m-close:hover, .sbh-m button.sbh-m-close:focus {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--sbh-navy); box-shadow: none; cursor: pointer;
}
.sbh-m button.sbh-m-close:hover { background: var(--sbh-sky); }
.sbh-m button.sbh-m-close svg { width: 24px; height: 24px; }
.sbh-m button.sbh-m-close:focus-visible { outline: 2px solid var(--sbh-navy); outline-offset: 2px; }
/* Conținutul intră după sertar, cu o mică întârziere. */
.sbh-m .sbh-m-nav, .sbh-m .sbh-m-foot { opacity: 0; transform: translateX(24px); transition: opacity .3s ease .12s, transform .45s cubic-bezier(.32, .72, 0, 1) .08s; }
.sbh-m.is-open .sbh-m-nav, .sbh-m.is-open .sbh-m-foot { opacity: 1; transform: none; }
.sbh-m-nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 24px; }
.sbh-m-list > li { border-bottom: 1px solid var(--sbh-line); }
.sbh-m a.sbh-m-top, .sbh-m .sbh-m-top, .sbh-m a.sbh-m-top:hover, .sbh-m a.sbh-m-top:focus {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 14px 20px;
  font-family: var(--sbh-head); font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: normal; text-transform: none;
  color: var(--sbh-navy); text-decoration: none; cursor: pointer; list-style: none;
}
.sbh-m .sbh-m-top::-webkit-details-marker { display: none; }
.sbh-m .sbh-m-label { display: inline-flex; align-items: center; gap: 10px; }
.sbh-m .sbh-menu-ico { width: 22px; height: 22px; flex-shrink: 0; color: var(--sbh-green-ink); }
.sbh-m a.sbh-m-link--all, .sbh-m a.sbh-m-link--all:hover { font-weight: 600; color: var(--sbh-navy); }
.sbh-m a.sbh-m-link--all .sbh-arrow { width: 18px; height: 18px; }
.sbh-m .sbh-m-top::marker { content: ""; }
.sbh-m a.sbh-m-top.is-current { color: var(--sbh-green-ink); }
.sbh-m .sbh-m-top .sbh-chev { width: 22px; height: 22px; transition: transform .25s var(--sbh-ease); }
.sbh-m details[open] > .sbh-m-top .sbh-chev { transform: rotate(180deg); }
.sbh-m .sbh-m-top:focus-visible { outline: 2px solid var(--sbh-navy); outline-offset: -2px; }
.sbh-m .sbh-m-sub { padding: 0 12px 16px; }
.sbh-m-group--mega .sbh-m-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
.sbh-m-group--icons .sbh-m-sub { display: flex; flex-direction: column; gap: 4px; }
.sbh-m-group--icons a.sbh-m-link, .sbh-m-group--icons a.sbh-m-link:hover { gap: 14px; padding: 6px 8px; font-weight: 600; }
.sbh-m a.sbh-m-link, .sbh-m a.sbh-m-link:hover, .sbh-m a.sbh-m-link:focus {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 8px; border-radius: 10px;
  font-family: var(--sbh-head); font-size: 16px; font-weight: 500; line-height: 1.25; letter-spacing: normal; text-transform: none;
  color: var(--sbh-navy); text-decoration: none;
}
.sbh-m a.sbh-m-link:active { background: var(--sbh-sky); }
.sbh-m a.sbh-m-link.is-current { color: var(--sbh-green-ink); font-weight: 600; }
.sbh-m .sbh-m-all { grid-column: 1 / -1; }

.sbh-m-foot {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--sbh-line); background: #fff;
}
.sbh-m a.sbh-m-call, .sbh-m a.sbh-m-wa, .sbh-m a.sbh-m-call:hover, .sbh-m a.sbh-m-wa:hover, .sbh-m a.sbh-m-call:focus, .sbh-m a.sbh-m-wa:focus {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 999px;
  font-family: var(--sbh-head); font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: normal; text-transform: none; text-decoration: none;
}
.sbh-m a.sbh-m-call, .sbh-m a.sbh-m-call:hover, .sbh-m a.sbh-m-call:focus { border: 2px solid var(--sbh-navy); color: var(--sbh-navy); background: #fff; }
.sbh-m a.sbh-m-wa, .sbh-m a.sbh-m-wa:hover, .sbh-m a.sbh-m-wa:focus { background: var(--sbh-green); color: #fff; }
.sbh-m a.sbh-m-call svg { width: 20px; height: 20px; }
.sbh-m a.sbh-m-wa svg { width: 20px; height: 20px; }
.sbh-m a.sbh-m-call:focus-visible, .sbh-m a.sbh-m-wa:focus-visible { outline: 2px solid var(--sbh-navy); outline-offset: 3px; }

html.sbh-lock, html.sbh-lock body { overflow: hidden; }

/* Eticheta „Nou” (câmpul „Etichetă” din Aspect → Meniuri): pastilă verde, ridicată ca un exponent lângă titlu */
.sbh .sbh-badge, .sbh-m .sbh-badge {
  position: relative; display: inline-flex; align-items: center; flex-shrink: 0;
  margin-left: 6px; padding: 3px 7px 3px; border-radius: 999px;
  background: linear-gradient(135deg, #3aae2a 0%, #2d8620 100%); color: #fff;
  font-family: var(--sbh-head, "Outfit", sans-serif); font-size: 10px; font-weight: 700; line-height: 1;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 4px 10px -4px rgba(45, 134, 32, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
  overflow: hidden;
}
.sbh .sbh-top .sbh-badge { transform: translateY(-8px); margin-left: -5px; }
/* O strălucire scurtă care trece peste etichetă la câteva secunde */
.sbh .sbh-badge::after, .sbh-m .sbh-badge::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); animation: sbh-badge-shine 5s ease-in-out 1.5s infinite;
}
@keyframes sbh-badge-shine {
  0% { left: -60%; }
  18%, 100% { left: 130%; }
}
.sbh-m .sbh-m-label .sbh-badge { margin-left: 8px; }
@media (prefers-reduced-motion: reduce) {
  .sbh .sbh-badge::after, .sbh-m .sbh-badge::after { animation: none; display: none; }
}

/* Containerul fix al header-ului. Umbra din Elementor (0 0 10px negru 50%) era grea și ieșea și în sus și în lateral.
   Sus în pagină: fără umbră; după derulare: o linie fină + o umbră moale doar în jos, în bleumarinul site-ului. */
[data-elementor-type="header"] > .e-con:has(.sbh),
.e-con.sbh-host {
  box-shadow: none !important;
}
.e-con.sbh-host { transition: box-shadow .25s ease; }
.e-con.sbh-host.sbh-host--scrolled {
  box-shadow: 0 1px 0 rgba(0, 13, 68, .06), 0 12px 28px -20px rgba(0, 13, 68, .35) !important;
}

@media (prefers-reduced-motion: reduce) {
  .sbh *, .sbh-m, .sbh-m *, .sbh-m-backdrop { transition: none !important; }
}
