/* Nebil Proje 3.2.0 — shared, responsive corporate shell.
 * Single source of truth for header, logo, navigation and layering.
 * Keep all page-specific editorial layouts untouched.
 */
#nbh-home.nbh-root {
  --nbh-header-height:122px;
  --nbh-logo-width:315px;
  --nbh-logo-half:157.5px;
  --nbh-logo-height:105px;
  --nbh-header-half:61px;
  --nbh-horizontal-pad:clamp(18px,4vw,54px);
  --nbh-admin-offset:0px;
  font-family:Arial,Helvetica,sans-serif!important;
  position:relative;
  z-index:10000;
  overflow:visible;
}
body.admin-bar #nbh-home.nbh-root { --nbh-admin-offset:32px; }
#nbh-home.nbh-root :is(h1,h2,h3,h4,p,a,button,span,li,small,strong,em,label,input,textarea) {
  font-family:Arial,Helvetica,sans-serif!important;
}
body.nbh-corporate-page :is(#nebil-about,#nebil-career,#np-project-page,#nbh-about-content),
body.nbh-corporate-page :is(#nebil-about,#nebil-career,#np-project-page,#nbh-about-content) :is(h1,h2,h3,h4,p,a,button,span,li,small,strong,em,label,input,textarea) {
  font-family:Arial,Helvetica,sans-serif!important;
}
/* Bring WP archive listings and independent theme content onto the same font. */
body.nbh-corporate-page,
body.nbh-corporate-page :is(h1,h2,h3,h4,h5,h6,p,a,button,span,li,small,strong,em,label,input,textarea,select) {
  font-family:Arial,Helvetica,sans-serif!important;
}
/* Every page uses the same fixed header height and horizontal spacing. */
body #nbh-home.nbh-root .nbh-header,
body #nbh-home.nbh-root.is-scrolled .nbh-header {
  top:var(--nbh-admin-offset)!important;
  height:var(--nbh-header-height)!important;
  padding-inline:var(--nbh-horizontal-pad)!important;
  z-index:29000!important;
  box-sizing:border-box!important;
}
#nbh-home.nbh-root .nbh-header nav {
  display:flex!important;
  flex-direction:row!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:24px!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
#nbh-home.nbh-root .nbh-header nav > .nbh-header__text {order:1;font-size:11px!important;letter-spacing:.16em!important;font-weight:800!important;white-space:nowrap;}
#nbh-home.nbh-root .nbh-header nav > .nbh-header__divider {order:2;}
#nbh-home.nbh-root .nbh-header nav > .nbh-top-menu {order:3;}
#nbh-home.nbh-root .nbh-header nav > .nbh-language {order:4;}
#nbh-home.nbh-root .nbh-top-menu {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:13px!important;padding:12px 16px!important;min-height:44px!important;
  font-size:11px!important;font-weight:750!important;letter-spacing:.13em!important;line-height:1.5!important;
  text-decoration:none!important;white-space:nowrap;
}
#nbh-home.nbh-root .nbh-top-menu__label {font-size:11px!important;font-weight:750!important;letter-spacing:.13em!important;}
#nbh-home.nbh-root .nbh-language {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:44px!important;min-height:44px!important;padding:0 10px!important;
  font-size:11px!important;font-weight:800!important;letter-spacing:.09em!important;
  line-height:1.5!important;text-decoration:none!important;
}
/* Both the homepage (once settled) and subpages use precisely the same logo pixel size.
 * The native 2172/724 image ratio is respected: 315 × 105 on desktop.
 */
body #nbh-home.nbh-root.nbh-static-page.nbh-about-root .nbh-wordmark.is-settled,
body.nebil-about-page #nbh-home.nbh-root.nbh-static-page.nbh-about-shell .nbh-wordmark.is-settled,
body #nbh-home.nbh-root .nbh-wordmark.is-settled,
body #nbh-home.nbh-root.is-scrolled .nbh-wordmark.is-settled {
  position:fixed!important;
  left:calc(var(--nbh-horizontal-pad) + var(--nbh-logo-half))!important;
  top:calc(var(--nbh-admin-offset) + var(--nbh-header-half))!important;
  width:var(--nbh-logo-width)!important;
  height:var(--nbh-logo-height)!important;
  max-width:none!important;
  aspect-ratio:2172 / 724!important;
  transform:translate(-50%,-50%)!important;
  transform-origin:center center!important;
  z-index:34000!important;
  pointer-events:auto!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
}
#nbh-home.nbh-root .nbh-wordmark img {
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  object-fit:contain!important;transform:none!important;filter:none!important;
}
/* Never animate logo positioning on secondary pages. The home opening transition remains. */
body #nbh-home.nbh-root.nbh-static-page .nbh-wordmark,
body #nbh-home.nbh-root.nbh-static-page .nbh-wordmark.is-settled {
  animation:none!important;transition:none!important;
}
/* Secondary page header is a clean white strip and the navy brand is permanent. */
body #nbh-home.nbh-root.nbh-static-page .nbh-header,
body #nbh-home.nbh-root.nbh-static-page.is-scrolled .nbh-header {
  background:rgba(255,255,255,.97)!important;
  color:#071c49!important;
  box-shadow:0 5px 22px rgba(7,25,60,.07)!important;
  backdrop-filter:blur(10px)!important;
}
#nbh-home.nbh-root.nbh-static-page .nbh-header::before {display:none!important;content:none!important;}
#nbh-home.nbh-root.nbh-static-page .nbh-header__text {color:#071c49!important;text-shadow:none!important;}
#nbh-home.nbh-root.nbh-static-page .nbh-top-menu {
  color:#071c49!important;background:#fff!important;border-color:rgba(8,27,72,.32)!important;
}
#nbh-home.nbh-root.nbh-static-page .nbh-language {color:#071c49!important;}
#nbh-home.nbh-root.nbh-static-page .nbh-hamburger i {background:#071c49!important;}
#nbh-home.nbh-root.nbh-static-page .nbh-wordmark .nbh-logo-blue {opacity:1!important;visibility:visible!important;}
#nbh-home.nbh-root.nbh-static-page .nbh-wordmark .nbh-logo-white {opacity:0!important;visibility:hidden!important;}
#nbh-home.nbh-root.nbh-static-page .nbh-intro {
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
}
/* Exactly one opening intro on the homepage. Menu toggling cannot re-trigger it. */
#nbh-home.nbh-root.nbh-homepage .nbh-wordmark.is-settled {
  transition:left 1.5s cubic-bezier(.2,.72,.18,1),top 1.5s cubic-bezier(.2,.72,.18,1)!important;
}
#nbh-home.nbh-root.nbh-homepage .nbh-wordmark.no-transition,
#nbh-home.nbh-root.nbh-homepage.nbh-menu-open .nbh-wordmark {
  transition:none!important;
}
html.nbh-opening-seen #nbh-home.nbh-homepage .nbh-intro {display:none!important;}
html.nbh-opening-seen #nbh-home.nbh-homepage .nbh-wordmark:not(.is-settled) {
  width:var(--nbh-logo-width)!important;
  height:var(--nbh-logo-height)!important;
  left:calc(var(--nbh-horizontal-pad) + var(--nbh-logo-half))!important;
  top:calc(var(--nbh-admin-offset) + var(--nbh-header-half))!important;
  transform:translate(-50%,-50%)!important;transition:none!important;
}
/* The menu panel goes under the logo, never over it. Its own backdrop remains opaque. */
body #nbh-home.nbh-root .nbh-menu-dismiss {top:var(--nbh-admin-offset)!important;z-index:29500!important;}
body #nbh-home.nbh-root .nbh-gear-panel {
  top:var(--nbh-admin-offset)!important;
  z-index:30000!important;
  background:#fafcff!important;
  max-width:100vw!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
#nbh-home.nbh-root .nbh-gear-panel nav a {
  font-size:clamp(21px,2vw,27px)!important;
  font-weight:650!important;letter-spacing:-.045em!important;
  color:#071c49!important;
}
#nbh-home.nbh-root .nbh-gear-panel nav a:hover,
#nbh-home.nbh-root .nbh-gear-panel nav a[aria-current="page"] {color:#3466ac!important;}
#nbh-home.nbh-root .nbh-gear-panel nav a em {font-size:10px!important;font-weight:500!important;letter-spacing:.07em!important;}
body #nbh-home.nbh-root .nbh-gear {z-index:33000!important;margin-top:calc(var(--nbh-admin-offset) / 2)!important;}
#nbh-home.nbh-root .nbh-gear__text {font-size:10px!important;font-weight:850!important;}
/* Immediate :has() state plus JS class fallback for browsers without :has().
 * Switch to the blue logo over the white panel while preserving dimensions.
 */
#nbh-home.nbh-root.nbh-homepage:is(.nbh-menu-open,:has(.nbh-gear-panel.is-open)) .nbh-wordmark .nbh-logo-blue {opacity:1!important;visibility:visible!important;}
#nbh-home.nbh-root.nbh-homepage:is(.nbh-menu-open,:has(.nbh-gear-panel.is-open)) .nbh-wordmark .nbh-logo-white {opacity:0!important;visibility:hidden!important;}
#nbh-home.nbh-root.nbh-homepage:is(.nbh-menu-open,:has(.nbh-gear-panel.is-open)) .nbh-header::before {display:none!important;}
#nbh-home.nbh-root .nbh-wordmark {will-change:auto!important;}
/* Align existing custom templates' reserved top spaces with the shared header. */
body.nbh-about-v3 {--nbh-about-header:122px!important;}
body.nebil-about-page {--about-top:122px!important;}
body.nebil-career-page {--career-top:122px!important;}
body.nebil-single-project-with-menu {--nebil-projects-header-height:122px!important;}
#nbh-home.nbh-root.nbh-shell-fallback {height:0!important;min-height:0!important;}
body.nbh-has-fallback-shell {padding-top:var(--nbh-fallback-height,122px)!important;}
body.nbh-has-fallback-shell :is(#masthead,#site-header,#header,.site-header,.site-header-sticky,.header-placeholder,header[role="banner"]):not(.nbh-header) {
  display:none!important;
}
@media(max-width:900px) {
  #nbh-home.nbh-root {--nbh-header-height:105px;--nbh-logo-width:260px;--nbh-logo-half:130px;--nbh-logo-height:86.667px;--nbh-header-half:52.5px;--nbh-horizontal-pad:21px;}
  #nbh-home.nbh-root .nbh-header nav {gap:16px!important;}
  body.nbh-about-v3 {--nbh-about-header:105px!important;}
  body.nebil-about-page {--about-top:105px!important;}
  body.nebil-career-page {--career-top:105px!important;}
  body.nebil-single-project-with-menu {--nebil-projects-header-height:105px!important;}
  body.nbh-has-fallback-shell {--nbh-fallback-height:105px;}
}
@media(max-width:780px) {
  #nbh-home.nbh-root {--nbh-header-height:88px;--nbh-logo-width:210px;--nbh-logo-half:105px;--nbh-logo-height:70px;--nbh-header-half:44px;--nbh-horizontal-pad:15px;}
  #nbh-home.nbh-root .nbh-header nav {gap:8px!important;}
  #nbh-home.nbh-root .nbh-header nav > .nbh-header__text,
  #nbh-home.nbh-root .nbh-header nav > .nbh-header__divider {display:none!important;}
  #nbh-home.nbh-root .nbh-gear-panel {padding:105px 30px 30px 125px!important;}
  #nbh-home.nbh-root .nbh-gear-panel nav a {font-size:22px!important;}
  #nbh-home.nbh-root .nbh-gear__text {font-size:8px!important;}
  body.nbh-about-v3 {--nbh-about-header:88px!important;}
  body.nebil-about-page {--about-top:88px!important;}
  body.nebil-career-page {--career-top:88px!important;}
  body.nebil-single-project-with-menu {--nebil-projects-header-height:88px!important;}
  body.nbh-has-fallback-shell {--nbh-fallback-height:88px;}
}
@media(max-width:782px) {
  body.admin-bar #nbh-home.nbh-root {--nbh-admin-offset:46px;}
}
@media(max-width:520px) {
  #nbh-home.nbh-root {--nbh-header-height:84px;--nbh-logo-width:185px;--nbh-logo-half:92.5px;--nbh-logo-height:61.667px;--nbh-header-half:42px;--nbh-horizontal-pad:12px;}
  #nbh-home.nbh-root .nbh-header nav {gap:7px!important;}
  #nbh-home.nbh-root .nbh-top-menu {min-width:44px!important;padding:9px!important;gap:7px!important;}
  #nbh-home.nbh-root .nbh-top-menu__label {display:none!important;}
  #nbh-home.nbh-root .nbh-language {min-width:44px!important;padding:0 7px!important;}
  #nbh-home.nbh-root .nbh-gear-panel {padding:95px 20px 35px 100px!important;}
  #nbh-home.nbh-root .nbh-gear-panel nav a {font-size:20px!important;padding:12px 0!important;}
  body.nbh-about-v3 {--nbh-about-header:84px!important;}
  body.nebil-about-page {--about-top:84px!important;}
  body.nebil-career-page {--career-top:84px!important;}
  body.nebil-single-project-with-menu {--nebil-projects-header-height:84px!important;}
  body.nbh-has-fallback-shell {--nbh-fallback-height:84px;}
}
@media(max-width:360px) {
  #nbh-home.nbh-root {--nbh-logo-width:165px;--nbh-logo-half:82.5px;--nbh-logo-height:55px;}
}
