/* =========================================================
   Neuromed Custom – header builder (rânduri × coloane, calculator / telefon) și footer configurabil
   ========================================================= */

/* ---------- Rânduri ---------- */
.nm-hb-row{position:relative;background:var(--nm-hb-bg)}
.nm-hb-light{--nm-hb-bg:#fff;color:var(--nm-ink)}
.nm-hb-dark{--nm-hb-bg:var(--nm-navy);color:#DCE6F5;font-size:13px;line-height:1.3}
.nm-hb-in{display:flex;align-items:center;gap:20px;min-height:var(--nm-hb-h,76px)}
/* Header mai lat decât conținutul (Setări → General → Lățimea header-ului) */
.nm-hb-row > .nm-wrap{max-width:calc(var(--nm-header-w,var(--nm-content)) + 2 * var(--nm-gutter))}
.nm-hb-m{display:none}
.nm-hb-static{position:relative;top:auto}
.admin-bar .nm-hb-static{top:auto}
.nm-header-elementor{position:sticky;top:0;z-index:999;background:#fff}
.admin-bar .nm-header-elementor{top:32px}
.nm-header-elementor.nm-hb-static{position:relative;top:auto}

/* Rândul de jos e mai discret decât cel principal */
.nm-hb-row-bottom.nm-hb-light{border-top:1px solid var(--nm-line)}

/* ---------- Coloane ---------- */
.nm-hb-col{display:flex;align-items:center;gap:20px;min-width:0}
.nm-hb-left{flex:0 1 auto}
.nm-hb-center{flex:0 1 auto;justify-content:center}
.nm-hb-right{flex:1 1 auto;justify-content:flex-end}
.nm-hb-has-center .nm-hb-left,.nm-hb-has-center .nm-hb-right{flex:1 1 0}
.nm-hb-dark .nm-hb-col{gap:24px}
.nm-hb-col:empty{display:none}
.nm-hb-has-center .nm-hb-col:empty{display:flex}
.nm-hb-col > .nm-nav{flex:0 1 auto;margin-left:0}
.nm-hb-center > .nm-nav{flex:1 1 auto}
/* Așezarea meniului (Header → Meniu → Așezare): centrat în spațiul liber dintre logo și buton, lângă butoane sau lângă logo */
.nm-hb-col > .nm-nav:is(.nm-nav-center,.nm-nav-left){flex:1 1 auto}
.nm-nav-center > .nm-nav-list{justify-content:center}
.nm-nav-left > .nm-nav-list{justify-content:flex-start}
.nm-hb-center .nm-nav-list{justify-content:center}
.nm-hb-row-bottom .nm-nav-list > li > a,.nm-hb-row-bottom .nm-nav-list .nm-menu-btn{min-height:var(--nm-hb-h,52px)}

/* ---------- Elemente ---------- */
.nm-hb-link,.nm-hb-text{display:inline-flex;align-items:center;gap:8px;min-width:0;white-space:nowrap}
.nm-theme .nm-hb-link{color:inherit;min-height:40px}
.nm-theme .nm-hb-light .nm-hb-link:hover{color:var(--nm-blue)}
.nm-theme .nm-hb-dark .nm-hb-link:hover{color:#fff}
.nm-theme .nm-hb-dark .nm-strong{color:#fff;font-weight:600}
.nm-theme .nm-hb-light .nm-strong{font-weight:600}
.nm-hb-link .nm-icon,.nm-hb-text .nm-icon{width:16px;height:16px}
.nm-hb-dark .nm-hb-link .nm-icon,.nm-hb-dark .nm-hb-text .nm-icon{width:14px;height:14px;stroke-width:2.4}
.nm-hb-address span,.nm-hb-text span{overflow:hidden;text-overflow:ellipsis}
.nm-hb-label{font-weight:400;opacity:.8}
.nm-hb-btn{--nm-btn-h:46px;--nm-btn-px:24px;white-space:nowrap}
.nm-hb-dark .nm-hb-btn{--nm-btn-h:34px;--nm-btn-px:20px;font-size:14px}
.nm-hb-divider{align-self:stretch;width:1px;margin-block:10px;background:currentColor;opacity:.2}
.nm-hb-space{flex-shrink:0}
.nm-hb-grow{flex:1 1 auto}
.nm-logo-sized img{height:var(--nm-logo-h)!important}
.nm-hb-links ul,.nm-hb-col > ul{display:flex;align-items:center;gap:20px;margin:0;padding:0;list-style:none}
.nm-theme .nm-hb-col ul a{color:inherit}

.nm-hb-social{display:inline-flex;align-items:center;gap:6px}
.nm-theme .nm-hb-social a{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;color:inherit;transition:background-color .15s,color .15s}
.nm-theme .nm-hb-light .nm-hb-social a:hover{background:var(--nm-tint);color:var(--nm-blue)}
.nm-theme .nm-hb-dark .nm-hb-social a:hover{background:rgba(255,255,255,.1);color:#fff}
.nm-hb-social .nm-icon{width:18px;height:18px}

/* Căutare */
.nm-hb-search{position:relative}
.nm-theme .nm-hb-search-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:none;color:inherit;cursor:pointer}
.nm-theme .nm-hb-light .nm-hb-search-btn:hover,.nm-theme .nm-hb-search-btn[aria-expanded="true"]{background:var(--nm-tint);color:var(--nm-blue)}
.nm-hb-search-btn .nm-icon{width:20px;height:20px;stroke-width:2}
.nm-hb-search-form{position:absolute;top:calc(100% + 10px);right:-8px;z-index:20;display:flex;gap:8px;width:min(420px,calc(100vw - 32px));padding:10px;border:1px solid var(--nm-line);border-radius:18px;background:#fff;box-shadow:0 24px 48px -24px rgba(20,24,31,.3)}
.nm-hb-search-form[hidden]{display:none}
.nm-theme .nm-hb-search-form input{flex:1;min-width:0;min-height:46px;padding:0 14px;border:1px solid #C4CEDB;border-radius:12px;font:400 16px var(--nm-font);color:var(--nm-ink)}
.nm-hb-search-form .nm-btn{--nm-btn-h:46px;--nm-btn-px:18px}
.nm-hb-left .nm-hb-search-form{left:-8px;right:auto}

/* Rând de telefon în care nu încape tot (clasa vine din neuromed.js): butoanele se ascund, logo-ul rămâne întreg */
.nm-hb-tight .nm-hb-btn{display:none!important}
.nm-hb-m .nm-logo{flex-shrink:0}

/* Hamburger: pe calculator apare doar când meniul nu încape (nm-burger-auto) sau dacă e pus în header */
.nm-hb-d .nm-burger:not(.nm-burger-auto),.nm-hb-m .nm-burger{display:inline-flex}
.nm-burger-label{margin-left:8px;font-weight:600;font-size:14px}
.nm-theme .nm-burger:has(.nm-burger-label){width:auto;padding:0 16px;border-radius:999px}
.nm-hb-dark .nm-burger{background:rgba(255,255,255,.1);color:#fff}
.nm-theme .nm-hb-dark .nm-burger:hover{background:rgba(255,255,255,.2);color:#fff}

/* ---------- Calculator / telefon (sub 1025 px se folosește așezarea pentru telefon) ---------- */
@media (min-width:1025px){
  .nm-hb-off-d{display:none}
}
@media (max-width:1024px){
  .nm-hb-d{display:none}
  .nm-hb-m{display:flex}
  .nm-hb-off-m{display:none}
  .nm-hb-in{gap:12px;min-height:var(--nm-hb-hm,var(--nm-hb-h,64px))}
  .nm-hb-col{gap:12px}
  .nm-hb-row-main .nm-hb-m{min-height:var(--nm-hb-hm,64px)}
}
@media (max-width:767px){
  .nm-hb-dark .nm-hb-in{min-height:36px}
  .nm-hb-email,.nm-hb-address{display:none}
  .nm-hb-m .nm-hb-btn{--nm-btn-h:42px;--nm-btn-px:16px;font-size:14px}
}

/* ---------- Footer ---------- */
.nm-footer{--nm-foot-bg:var(--nm-navy);background:var(--nm-foot-bg)}
.nm-foot-grid{grid-template-columns:var(--nm-foot-cols,1.3fr .7fr 1.2fr 1fr)}
.nm-foot-text{margin:0}
.nm-foot-elementor{padding-block:0}
.nm-footer-light{--nm-foot-bg:var(--nm-tint);color:var(--nm-text)}
.nm-theme .nm-footer-light a{color:var(--nm-text)}
.nm-theme .nm-footer-light a:hover{color:var(--nm-blue)}
.nm-theme .nm-footer-light :is(.nm-foot-h,.nm-strong,.nm-foot-phone){color:var(--nm-ink)}
.nm-footer-light .nm-foot-bottom{border-top-color:var(--nm-line)}
.nm-footer .nm-hb-social{margin-left:-8px}
.nm-theme .nm-footer .nm-hb-social a:hover{background:rgba(255,255,255,.1);color:#fff}
.nm-theme .nm-footer-light .nm-hb-social a:hover{background:#fff;color:var(--nm-blue)}
@media (max-width:1024px){
  .nm-foot-grid{grid-template-columns:repeat(min(2,var(--nm-foot-n,2)),minmax(0,1fr))}
}
@media (max-width:767px){
  .nm-foot-grid{grid-template-columns:minmax(0,1fr)}
}

/* Widget-ul „Meniu Neuromed” (header-e făcute în Elementor) */
.nmw-nav-menu{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.nmw-nav-menu .nm-nav{flex:0 1 auto;margin-left:0}
.nm-theme .nmw-nav-menu .nmw-nav-burger{display:none}
@media (max-width:1024px){.nm-theme .nmw-nav-menu .nmw-nav-burger{display:inline-flex}}
.nm-theme.nm-nav-collapsed .nmw-nav-menu .nmw-nav-burger{display:inline-flex}
