/* CyberCoderz header — mobile-first, clean website chrome */

.cz-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 58px;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  background: rgba(10, 5, 14, 0.94);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(255, 140, 0, 0.14);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
  padding-top: env(safe-area-inset-top, 0);
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .cz-header {
    width: 100%;
    max-width: none;
    min-height: var(--cz-header-h, calc(72 * var(--u)));
    background: rgba(10, 5, 14, 0.42);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }
}

.cz-header--scrolled {
  background: rgba(8, 4, 12, 0.98);
  border-bottom-color: rgba(255, 140, 0, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.cz-header__inner {
  height: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  position: relative;
}

@media (min-width: 1024px) {
  .cz-header__inner {
    min-height: var(--cz-header-h);
    gap: calc(16 * var(--u));
  }
}

.cz-header__brand {
  flex: 0 1 auto;
  min-width: 0;
  z-index: 1;
}

@media (max-width: 1023px) {
  .cz-header__brand {
    flex: 1 1 auto;
    max-width: calc(100% - 148px);
    overflow: hidden;
  }
}

.cz-header__brand a {
  max-width: 100%;
}

/* Brand wordmark */
.cz-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.cz-logo__mark {
  flex: 0 0 auto;
  display: block;
  width: 28px;
  height: 28px;
}

@media (min-width: 640px) {
  .cz-logo__mark {
    width: 32px;
    height: 32px;
  }
}

.cz-logo__text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  min-width: 0;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 380px) {
  .cz-logo__text {
    font-size: 17px;
  }
}

@media (min-width: 640px) {
  .cz-logo__text {
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .cz-logo__text {
    font-size: calc(21 * var(--u));
  }
  .cz-logo__mark {
    width: calc(34 * var(--u));
    height: calc(34 * var(--u));
  }
}

.cz-logo--sm .cz-logo__text {
  font-size: 16px;
}

.cz-logo--sm .cz-logo__mark {
  width: 26px;
  height: 26px;
}

/* Hide .in on very small screens to reduce clutter */
.cz-logo__tld {
  color: #ff8c00;
}

@media (max-width: 359px) {
  .cz-logo__tld {
    display: none;
  }
}

.cz-logo__cyber {
  background: linear-gradient(135deg, #ff8c00 0%, #ff4a8e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cz-logo__coderz {
  color: #ffffff;
}

/* Desktop nav */
.cz-header__desktop {
  display: none;
  align-items: center;
  gap: calc(8 * var(--u, 0.56vw));
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

@media (min-width: 1024px) {
  .cz-header__desktop {
    display: flex;
  }
}

.cz-header__links {
  display: flex;
  align-items: center;
  gap: calc(2 * var(--u, 0.14vw));
  margin-right: calc(8 * var(--u, 0.56vw));
}

.cz-nav-link {
  display: inline-flex;
  align-items: center;
  gap: calc(5 * var(--u, 0.35vw));
  padding: calc(10 * var(--u, 0.69vw)) calc(14 * var(--u, 0.97vw));
  color: #e2e8f0;
  font-size: calc(15 * var(--u, 1.04vw));
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  background: transparent;
  border-radius: calc(10 * var(--u, 0.69vw));
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
  font-family: inherit;
  line-height: 1.25;
}

.cz-nav-link--btn {
  appearance: none;
  -webkit-appearance: none;
}

.cz-services__panel-label {
  margin: 0 0 12px;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8c00;
}

.cz-services__footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.cz-services__all {
  color: #ff8c00;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.cz-services__all:hover {
  text-decoration: underline;
}

.cz-nav-cta {
  display: none;
}

.cz-nav-link:hover,
.cz-nav-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.cz-nav-link--active {
  color: #ff8c00;
}

.cz-nav-link__chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  opacity: 0.85;
}

.cz-nav-link__chevron.is-open {
  transform: rotate(180deg);
}

/* Get Started removed from header — contact lives in footer / sticky */

/* Services dropdown — vertical list under Services button */
.cz-services {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1200;
}

.cz-services__panel {
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  width: min(280px, calc(100vw - 24px));
  max-width: min(280px, calc(100vw - 24px));
  max-height: min(80vh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
  margin-top: 0;
  border-radius: 14px;
  background: #120810 !important;
  border: 1px solid rgba(255, 140, 0, 0.28);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 1300;
  -webkit-overflow-scrolling: touch;
  animation: cz-services-in 0.16s ease-out;
}

/* Hover bridge so menu doesn’t close when moving cursor down */
.cz-services__panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

@keyframes cz-services-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1024px) {
  .cz-services {
    position: relative;
  }

  .cz-services__panel,
  .cz-services__panel--main-only {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    transform: none;
    width: 300px;
    max-width: 300px;
    max-height: min(78vh, 580px);
    padding: 12px;
    z-index: 1300;
  }

  .cz-services__panel::before {
    top: -14px;
    height: 14px;
  }
}

/* Always a single vertical column */
.cz-services__grid {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 4px;
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.cz-services__grid--only {
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.cz-services__panel--main-only {
  max-height: min(78vh, 580px);
}

/* Ensure header never clips the open mega menu */
.cz-header {
  overflow: visible;
}

.cz-header__inner {
  overflow: visible;
}

.cz-header__desktop,
.cz-header__links {
  overflow: visible;
}

.cz-services__grid a.cz-services__item,
a.cz-services__item,
.cz-services__item {
  display: block !important;
  width: 100%;
  padding: 11px 14px;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.35;
  min-height: 42px;
  box-sizing: border-box;
  white-space: nowrap;
}

.cz-services__grid a.cz-services__item:hover,
a.cz-services__item:hover,
.cz-services__item:hover {
  background: rgba(255, 140, 0, 0.16) !important;
  border-color: rgba(255, 140, 0, 0.4);
  color: #ff8c00 !important;
}

.cz-services__item.is-active {
  color: #ff8c00 !important;
  background: rgba(255, 140, 0, 0.14) !important;
  border-color: rgba(255, 140, 0, 0.35);
}

.cz-services__geo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .cz-services__geo {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

.cz-services__geo-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}

.cz-services__geo-title {
  color: #ff8c00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cz-services__geo a.cz-services__geo-link,
a.cz-services__geo-link,
.cz-services__geo-link {
  display: block;
  padding: 7px 8px;
  color: #94a3b8 !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cz-services__geo a.cz-services__geo-link:hover,
.cz-services__geo-link:hover {
  background: rgba(255, 140, 0, 0.12);
  color: #ff8c00 !important;
}

.cz-services__geo-link.is-active {
  color: #ff8c00 !important;
  background: rgba(255, 140, 0, 0.1);
}

/* ——— Mobile header actions ——— */
.cz-header__mobile-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.cz-header__mobile-actions .cz-lang__btn {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  gap: 0;
}

@media (min-width: 1024px) {
  .cz-header__mobile-actions {
    display: none;
  }
}

.cz-header__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.cz-header__call:active {
  background: rgba(52, 211, 153, 0.2);
}

.cz-header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 140, 0, 0.32);
  background: rgba(255, 140, 0, 0.1);
  color: #ff8c00;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.cz-header__burger:active {
  background: rgba(255, 140, 0, 0.18);
}

/* Mobile drawer */
.cz-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  animation: cz-fade-in 0.18s ease-out;
}

.cz-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  width: min(100vw - 28px, 360px);
  max-width: 100%;
  background: linear-gradient(180deg, #120810 0%, #0a050c 100%);
  border-left: 1px solid rgba(255, 140, 0, 0.2);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  animation: cz-drawer-in 0.22s ease-out;
}

@keyframes cz-drawer-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes cz-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cz-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex: 0 0 auto;
  background: rgba(255, 140, 0, 0.04);
}

.cz-mobile-drawer__head .cz-header__burger {
  display: inline-flex;
}

.cz-mobile-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px 28px;
  overscroll-behavior: contain;
}

.cz-mobile-label {
  margin: 4px 8px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5a62;
}

.cz-mobile-block {
  margin-bottom: 4px;
}

/* Single Services dropdown button (not split link + chevron) */
.cz-mobile-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  padding: 14px 16px;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #e8e0e4;
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.cz-mobile-dropdown-btn:active {
  background: rgba(255, 255, 255, 0.06);
}

.cz-mobile-dropdown-btn.is-active {
  color: #ff8c00;
  background: rgba(255, 140, 0, 0.12);
  border-color: rgba(255, 140, 0, 0.22);
}

.cz-mobile-dropdown-btn__chevron {
  flex-shrink: 0;
  transition: transform 0.28s ease;
  opacity: 0.9;
}

.cz-mobile-dropdown-btn__chevron.is-open {
  transform: rotate(180deg);
}

/* Animated accordion (CSS grid 0fr → 1fr) */
.cz-mobile-accordion {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0 0 4px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  transition:
    grid-template-rows 0.35s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.cz-mobile-accordion.is-open {
  grid-template-rows: 1fr;
  border-color: rgba(255, 140, 0, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.cz-mobile-accordion__clip {
  overflow: hidden;
  min-height: 0;
}

.cz-mobile-accordion__inner {
  padding: 6px 6px 10px;
}

.cz-mobile-accordion.is-open .cz-mobile-accordion__link {
  animation: cz-svc-item-in 0.32s ease both;
}

.cz-mobile-accordion.is-open .cz-mobile-accordion__link:nth-child(1) { animation-delay: 0.04s; }
.cz-mobile-accordion.is-open .cz-mobile-accordion__link:nth-child(2) { animation-delay: 0.07s; }
.cz-mobile-accordion.is-open .cz-mobile-accordion__link:nth-child(3) { animation-delay: 0.1s; }
.cz-mobile-accordion.is-open .cz-mobile-accordion__link:nth-child(4) { animation-delay: 0.13s; }
.cz-mobile-accordion.is-open .cz-mobile-accordion__link:nth-child(5) { animation-delay: 0.16s; }
.cz-mobile-accordion.is-open .cz-mobile-accordion__link:nth-child(6) { animation-delay: 0.19s; }
.cz-mobile-accordion.is-open .cz-mobile-accordion__link:nth-child(7) { animation-delay: 0.22s; }
.cz-mobile-accordion.is-open .cz-mobile-accordion__link:nth-child(8) { animation-delay: 0.25s; }
.cz-mobile-accordion.is-open .cz-mobile-accordion__link:nth-child(9) { animation-delay: 0.28s; }
.cz-mobile-accordion.is-open .cz-mobile-accordion__link:nth-child(10) { animation-delay: 0.31s; }
.cz-mobile-accordion.is-open .cz-mobile-accordion__link:nth-child(11) { animation-delay: 0.34s; }
.cz-mobile-accordion.is-open .cz-mobile-accordion__all { animation: cz-svc-item-in 0.32s ease 0.36s both; }

@keyframes cz-svc-item-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cz-mobile-accordion {
    transition: none;
  }
  .cz-mobile-accordion.is-open .cz-mobile-accordion__link,
  .cz-mobile-accordion.is-open .cz-mobile-accordion__all {
    animation: none;
  }
}

.cz-mobile-accordion__link {
  display: block;
  padding: 12px 14px;
  margin: 2px 0;
  color: #c4b0b6;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.cz-mobile-accordion__link:active,
.cz-mobile-accordion__link.is-active {
  color: #ff8c00;
  background: rgba(255, 140, 0, 0.1);
  padding-left: 18px;
}

.cz-mobile-accordion__all {
  display: block;
  margin: 8px 6px 2px;
  padding: 12px 14px;
  text-align: center;
  color: #ff8c00 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.cz-mobile-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  margin: 2px 0;
  color: #e8e0e4;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
  box-sizing: border-box;
}

.cz-mobile-link:active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.cz-mobile-link--active {
  color: #ff8c00;
  background: rgba(255, 140, 0, 0.12);
}

.cz-mobile-sub {
  margin: 2px 0 8px;
  padding: 8px 0 4px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cz-mobile-sub__heading {
  margin: 0;
  padding: 6px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff8c00;
}

.cz-mobile-sub > a {
  display: block;
  padding: 11px 14px;
  margin: 1px 6px;
  color: #b8a8ae;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
}

.cz-mobile-sub > a:active,
.cz-mobile-sub > a.is-active {
  color: #ff8c00;
  background: rgba(255, 140, 0, 0.1);
}

.cz-mobile-loc {
  margin: 4px 6px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.cz-mobile-loc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: #f2d6d0;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.cz-mobile-loc__btn.is-open {
  color: #ff8c00;
}

.cz-mobile-loc__btn svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  opacity: 0.8;
}

.cz-mobile-loc__btn.is-open svg {
  transform: rotate(180deg);
}

.cz-mobile-loc__list {
  padding: 0 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cz-mobile-loc__list a {
  display: block;
  padding: 10px 14px 10px 18px;
  margin: 0 4px;
  color: #8a7a80;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  line-height: 1.35;
}

.cz-mobile-loc__list a:active,
.cz-mobile-loc__list a.is-active {
  color: #ff8c00;
  background: rgba(255, 140, 0, 0.08);
}

.cz-mobile-footer-actions {
  margin-top: 18px;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cz-mobile-cta {
  display: block;
  padding: 14px 18px;
  text-align: center;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(135deg, #ff8c00, #ff4a8e);
  box-shadow: 0 4px 18px rgba(255, 140, 0, 0.28);
}

.cz-mobile-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  color: #34d399;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

html.cz-nav-lock,
html.cz-nav-lock body {
  overflow: hidden !important;
  height: 100%;
}

html.cz-nav-lock .cz-mobile-drawer__body {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Mobile header height token */
@media (max-width: 1023px) {
  :root {
    --cz-header-h: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cz-header,
  .cz-nav-link,
  .cz-nav-cta,
  .cz-nav-link__chevron,
  .cz-mobile-expand svg,
  .cz-mobile-loc__btn svg {
    transition: none !important;
  }

  .cz-mobile-drawer,
  .cz-mobile-backdrop {
    animation: none !important;
  }
}
