/**
 * Nitehost Child Theme - header styles
 * Ported from deneme/header design (standalone copy, no link to deneme/).
 * Scoped under .nh-theme to avoid clashing with Twenty-One / Bootstrap.
 */

:root {
  --nh-primary: #2563eb;
  --nh-primary-hover: #1d4fd7;
  --nh-primary-soft: #eaf1ff;
  --nh-primary-softer: #f3f7ff;
  --nh-navy: #0b1b3a;
  --nh-text: #0f1f3d;
  --nh-text-2: #33456a;
  --nh-muted: #5f6f8c;
  --nh-border: #e3e9f3;
  --nh-border-2: #d3dcea;
  --nh-bg: #f6f8fc;
  --nh-bg-alt: #f6f8fc;
  --nh-radius-sm: 8px;
  --nh-shadow-lg: 0 16px 40px rgba(15, 31, 61, .10);
  --nh-container: 1200px;
  --nh-gutter: 24px;
  --nh-util-h: 38px;
  --nh-nav-h: 70px;
  --nh-header-h: 70px;
  --nh-nav-max: 1200px;
  --nh-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --nh-ease: cubic-bezier(.4, 0, .2, 1);
}

.nh-theme {
  font-family: var(--nh-font);
  color: var(--nh-text);
  -webkit-font-smoothing: antialiased;
  background: transparent;
  overflow: visible;
}

body.primary-bg-color,
body {
  background-color: #f6f8fc !important;
}

#main-body {
  background-color: #f6f8fc;
}

.nh-theme *,
.nh-theme *::before,
.nh-theme *::after {
  box-sizing: border-box;
}

.nh-theme a {
  color: inherit;
  text-decoration: none;
}

.nh-theme ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nh-theme button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.nh-theme img {
  display: block;
  max-width: 100%;
}

/* Sprite must stay invisible; do not let max-width expand it */
.nh-theme .nh-sprite {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.nh-theme svg.icon {
  display: block;
  overflow: visible;
  flex: none;
}

.nh-theme .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nh-theme .skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--nh-navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--nh-radius-sm);
  font-weight: 600;
  transition: top .2s var(--nh-ease);
}

.nh-theme .skip-link:focus {
  top: 12px;
  color: #fff;
}

.nh-theme .icon {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.nh-theme .icon-sm {
  width: 16px;
  height: 16px;
}

.nh-theme .nh-container {
  width: 100%;
  max-width: var(--nh-container);
  margin: 0 auto;
  padding: 0 var(--nh-gutter);
}

.nh-theme .nh-utilbar-inner,
.nh-theme .nh-navcard {
  max-width: var(--nh-container);
}

.nh-theme .nh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--nh-radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .18s var(--nh-ease), color .18s var(--nh-ease), border-color .18s var(--nh-ease), transform .18s var(--nh-ease), box-shadow .18s var(--nh-ease);
}

.nh-theme .nh-btn .icon {
  width: 16px;
  height: 16px;
}

.nh-theme .nh-btn-primary {
  background: var(--nh-primary);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .22);
}

.nh-theme .nh-btn-primary:hover {
  background: var(--nh-primary-hover);
  transform: translateY(-1px);
  color: #fff !important;
}

.nh-theme .nh-btn-outline {
  background: #fff;
  color: var(--nh-text) !important;
  border-color: var(--nh-border-2);
}

.nh-theme .nh-btn-outline:hover {
  border-color: var(--nh-primary);
  color: var(--nh-primary) !important;
}

.nh-theme .nh-btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.nh-theme .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--nh-primary) !important;
  font-size: 13.5px;
}

.nh-theme .link-arrow .icon {
  width: 14px;
  height: 14px;
  transition: transform .18s var(--nh-ease);
}

.nh-theme .link-arrow:hover .icon {
  transform: translateX(3px);
}

.nh-theme .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--nh-primary-soft);
  color: var(--nh-primary);
  flex: none;
}

.nh-theme .icon-box .icon {
  width: 22px;
  height: 22px;
}

/* Header — floating at top; fixed + full-bleed when scrolled */
.nh-theme .nh-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background .22s var(--nh-ease);
}

.nh-theme .nh-header-spacer {
  display: none;
  width: 100%;
  pointer-events: none;
}

.nh-theme .nh-header.is-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
}

.nh-theme .nh-utilbar {
  height: var(--nh-util-h);
  width: 100%;
  background: #f6f8fc;
  border-bottom: 1px solid #e5eaf2;
  overflow: hidden;
  transition: height .22s var(--nh-ease), opacity .2s var(--nh-ease), border-color .2s;
}

.nh-theme .nh-header.is-scrolled .nh-utilbar {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
  pointer-events: none;
}

.nh-theme .nh-utilbar-inner {
  height: var(--nh-util-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--nh-muted);
  width: 100%;
  max-width: var(--nh-container);
  margin: 0 auto;
  padding: 0 var(--nh-gutter);
}

.nh-theme .nh-util-left,
.nh-theme .nh-util-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.nh-theme .nh-util-left a,
.nh-theme .nh-util-right a,
.nh-theme .nh-util-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nh-text-2);
  font-weight: 500;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 1;
}

.nh-theme .nh-util-left a:hover,
.nh-theme .nh-util-right a:hover,
.nh-theme .nh-util-chip:hover {
  color: var(--nh-primary);
  text-decoration: none;
}

.nh-theme .nh-util-phone {
  font-weight: 600;
  color: var(--nh-text) !important;
}

.nh-theme .nh-util-phone .icon,
.nh-theme .nh-util-chip .icon {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  color: var(--nh-primary);
}

.nh-theme .nh-util-sep {
  width: 1px;
  height: 14px;
  background: var(--nh-border-2);
  flex: none;
}

.nh-theme .nh-util-chip.is-static {
  cursor: default;
}

.nh-theme .nh-util-chip.is-static:hover {
  color: var(--nh-text-2);
}

.nh-theme .nh-navshell {
  padding: 10px var(--nh-gutter) 14px;
  width: 100%;
  background: transparent;
  border-bottom: 0;
  transition: padding .22s var(--nh-ease), background .22s var(--nh-ease), box-shadow .22s var(--nh-ease);
}

.nh-theme .nh-header.is-scrolled .nh-navshell {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #e5eaf2;
  box-shadow: 0 6px 20px rgba(15, 31, 61, .08);
}

.nh-theme .nh-navcard {
  width: 100%;
  max-width: var(--nh-container);
  margin: 0 auto;
  height: var(--nh-nav-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--nh-gutter);
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(15, 31, 61, .05);
  overflow: visible;
  position: relative;
  transition:
    border-radius .28s var(--nh-ease),
    border-color .22s var(--nh-ease),
    box-shadow .22s var(--nh-ease),
    padding .28s var(--nh-ease);
}

.nh-theme .nh-header.is-scrolled .nh-navcard {
  /* content stays centered; only shell bg goes full-bleed */
  max-width: var(--nh-container);
  width: 100%;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0 var(--nh-gutter);
}

.nh-theme .nh-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  max-width: 22%;
}

.nh-theme .nh-logo:hover {
  text-decoration: none;
}

.nh-theme .nh-logo-mark {
  display: flex;
  align-items: center;
  flex: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.nh-theme .nh-logo-mark .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.nh-theme .nh-logo-mark img {
  width: auto;
  height: 40px;
  display: block;
  object-fit: contain;
}

.nh-theme .nh-logo-text {
  line-height: 1.1;
  display: block;
  min-width: 0;
}

.nh-theme .nh-logo-name {
  display: block;
  font-weight: 800;
  font-size: 17px;
  color: var(--nh-text);
  letter-spacing: -0.02em;
}

.nh-theme .nh-logo-tag {
  display: block;
  font-size: 10.5px;
  color: var(--nh-muted);
  font-weight: 500;
  margin-top: 2px;
}

.nh-theme .nh-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
  flex: 1 1 auto;
  justify-content: center;
}

.nh-theme .nh-nav-item {
  position: relative;
}

.nh-theme .nh-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--nh-text);
  transition: color .15s, background .15s;
}

.nh-theme .nh-nav-btn .icon {
  width: 14px;
  height: 14px;
  color: var(--nh-muted);
  transition: transform .2s var(--nh-ease), color .15s;
}

.nh-theme .nh-nav-btn:hover,
.nh-theme .nh-nav-item.is-open .nh-nav-btn {
  color: var(--nh-primary);
  background: var(--nh-primary-softer);
}

.nh-theme .nh-nav-item.is-open .nh-nav-btn .icon {
  transform: rotate(180deg);
  color: var(--nh-primary);
}

.nh-theme .nh-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 300px;
  z-index: 30;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 31, 61, .12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s var(--nh-ease), transform .18s var(--nh-ease), visibility .18s;
}

.nh-theme .nh-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.nh-theme .nh-nav-item.is-open .nh-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nh-theme .nh-dropdown-list {
  display: grid;
  gap: 2px;
}

.nh-theme .nh-dropdown-list a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  transition: background .15s;
  color: inherit;
}

.nh-theme .nh-dropdown-list a:hover,
.nh-theme .nh-dropdown-list a:focus-visible {
  background: var(--nh-bg-alt);
  outline-offset: -2px;
  text-decoration: none;
}

.nh-theme .nh-dropdown-list .icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nh-theme .nh-dropdown-list .icon-box .icon {
  width: 19px;
  height: 19px;
}

.nh-theme .nh-dropdown-list a:hover .icon-box {
  background: var(--nh-primary);
  color: #fff;
}

.nh-theme .nh-dropdown-list strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nh-text);
  line-height: 1.25;
}

.nh-theme .nh-dropdown-list strong + span {
  display: block;
  font-size: 12px;
  color: var(--nh-muted);
  line-height: 1.35;
  margin-top: 2px;
  white-space: nowrap;
}

.nh-theme .nh-dropdown-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 4px 0;
  padding: 10px 6px 4px;
  border-top: 1px solid var(--nh-border);
}

.nh-theme .nh-dropdown-footer .link-arrow {
  font-size: 12.5px;
}

.nh-theme .nh-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

.nh-theme .nh-lang {
  position: relative;
}

.nh-theme .nh-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
}

.nh-theme .nh-lang-btn .icon {
  width: 14px;
  height: 14px;
  color: var(--nh-muted);
}

.nh-theme .nh-flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: none;
}

.nh-theme .nh-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 140px;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  box-shadow: var(--nh-shadow-lg);
  padding: 6px;
  display: none;
  z-index: 10;
}

.nh-theme .nh-lang.is-open .nh-lang-menu {
  display: block;
}

.nh-theme .nh-lang-menu a,
.nh-theme .nh-lang-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  color: inherit;
}

.nh-theme .nh-lang-menu a:hover,
.nh-theme .nh-lang-menu button:hover {
  background: var(--nh-bg-alt);
  text-decoration: none;
}

.nh-theme .nh-lang-menu .is-current {
  color: var(--nh-primary);
  font-weight: 600;
}

.nh-theme .nh-login-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nh-text);
  padding: 0 4px;
  white-space: nowrap;
}

.nh-theme .nh-login-link:hover {
  color: var(--nh-primary);
  text-decoration: none;
}

.nh-theme .nh-cta {
  border-radius: 11px;
  height: 38px;
  padding: 0 16px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.nh-theme .nh-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e5eaf2;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.nh-theme .nh-nav-toggle .icon-x {
  display: none;
}

.nh-theme .nh-nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nh-theme .nh-nav-toggle[aria-expanded="true"] .icon-x {
  display: block;
}

.nh-theme .nh-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e5eaf2;
  border-radius: 50%;
  background: #fff;
  color: var(--nh-text-2);
}

.nh-theme .nh-cart-btn:hover {
  color: var(--nh-primary);
  border-color: var(--nh-primary);
  text-decoration: none;
}

.nh-theme .nh-cart-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--nh-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu */
.nh-theme .nh-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #fff;
  overflow-y: auto;
  padding: calc(var(--nh-util-h) + var(--nh-nav-h) + 36px) var(--nh-gutter) 32px;
  font-family: var(--nh-font);
}

.nh-theme .nh-header.is-scrolled ~ .nh-mobile-menu {
  padding-top: calc(var(--nh-nav-h) + 36px);
}

.nh-theme .nh-mobile-menu.is-open {
  display: block;
}

.nh-theme .nh-m-groups > li {
  border-bottom: 1px solid var(--nh-border);
}

.nh-theme .nh-m-group-btn,
.nh-theme .nh-m-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-weight: 600;
  font-size: 15px;
  color: var(--nh-text);
  text-align: left;
}

.nh-theme .nh-m-group-btn .icon {
  color: var(--nh-muted);
  transition: transform .2s var(--nh-ease);
}

.nh-theme .nh-m-group-btn[aria-expanded="true"] {
  color: var(--nh-primary);
}

.nh-theme .nh-m-group-btn[aria-expanded="true"] .icon {
  transform: rotate(180deg);
  color: var(--nh-primary);
}

.nh-theme .nh-m-sub {
  padding: 2px 0 10px;
}

.nh-theme .nh-m-sub li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nh-text-2);
}

.nh-theme .nh-m-sub li a:hover {
  background: var(--nh-bg-alt);
  text-decoration: none;
}

.nh-theme .nh-m-sub .icon {
  width: 18px;
  height: 18px;
  color: var(--nh-primary);
}

.nh-theme .nh-mobile-menu .nh-mobile-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.nh-theme .nh-mobile-menu .nh-mobile-lang {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.nh-theme .nh-mobile-menu .nh-mobile-lang button {
  flex: 1;
  height: 40px;
  border: 1px solid var(--nh-border);
  border-radius: var(--nh-radius-sm);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nh-theme .nh-mobile-menu .nh-mobile-lang .is-current {
  border-color: var(--nh-primary);
  color: var(--nh-primary);
  background: var(--nh-primary-softer);
}

body.nh-menu-open {
  overflow: hidden;
}

/* Logged-in slim bar */
.nh-theme .nh-topbar {
  background: var(--nh-navy);
  color: #fff;
  font-size: 12.5px;
}

.nh-theme .nh-topbar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nh-theme .nh-topbar a {
  color: rgba(255, 255, 255, .9);
}

.nh-theme .nh-topbar a:hover {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .nh-theme .nh-util-left > a:not(.nh-util-phone) {
    display: none;
  }

  .nh-theme .nh-util-sep {
    display: none;
  }
}

@media (max-width: 1024px) {
  .nh-theme .nh-nav,
  .nh-theme .nh-header-actions .nh-lang,
  .nh-theme .nh-header-actions .nh-login-link {
    display: none;
  }

  .nh-theme .nh-nav-toggle {
    display: inline-flex;
  }

  .nh-theme .nh-navshell {
    padding: 8px 14px 12px;
  }

  .nh-theme .nh-header.is-scrolled .nh-navshell {
    padding: 0;
  }

  .nh-theme .nh-navcard {
    height: 62px;
    border-radius: 16px;
    padding: 0 12px;
    gap: 10px;
  }

  .nh-theme .nh-header.is-scrolled .nh-navcard {
    border-radius: 0;
    max-width: var(--nh-container);
    margin: 0 auto;
    background: transparent;
    padding: 0 var(--nh-gutter);
  }

  .nh-theme .nh-logo {
    max-width: none;
    gap: 6px;
  }

  .nh-theme .nh-logo-mark img {
    height: 34px;
  }

  .nh-theme .nh-logo-name {
    font-size: 15px;
  }

  .nh-theme .nh-logo-tag {
    display: none;
  }

  .nh-theme .nh-cta {
    height: 34px;
    padding: 0 12px;
    font-size: 12.5px;
  }

  .nh-theme .nh-util-left a:not(.nh-util-phone),
  .nh-theme .nh-util-sep {
    display: none;
  }

  .nh-theme .nh-util-right .nh-util-chip[href*="about"] {
    display: none;
  }
}

@media (max-width: 640px) {
  .nh-theme .nh-utilbar {
    display: none;
  }

  .nh-theme .nh-navshell {
    padding: 8px 12px 10px;
  }

  .nh-theme .nh-header.is-scrolled .nh-navshell {
    padding: 0;
  }

  .nh-theme .nh-header-actions .nh-cta {
    display: none;
  }

  .nh-theme .nh-mobile-menu {
    padding-top: calc(var(--nh-nav-h) + 28px);
  }
}
