/* Events-style Navbar + NavSidebar (DivniQ Finance) */
:root {
  --dq-header-h: 5rem;
  --dq-header-h-scrolled: 3.5rem;
}

@media (min-width: 640px) {
  :root {
    --dq-header-h: 6rem;
    --dq-header-h-scrolled: 4rem;
  }
}

@media (min-width: 768px) {
  :root {
    --dq-header-h: 7.5rem;
    --dq-header-h-scrolled: 4.5rem;
  }
}

.dq-navbar {
  --dq-nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  width: 100%;
  height: var(--dq-header-h);
  color: #fff;
  background: #062016;
  border: 0;
  box-shadow: none;
  transition:
    height 0.7s var(--dq-nav-ease),
    background 0.7s var(--dq-nav-ease),
    backdrop-filter 0.7s var(--dq-nav-ease),
    -webkit-backdrop-filter 0.7s var(--dq-nav-ease);
  font-family: "Gill Sans", "Gill Sans MT", "Open Sans", Calibri, sans-serif;
  box-sizing: border-box;
}

/* Inner pages: keep header compact so sticky bars / heroes align */
body:has(.page-inner) {
  --dq-header-h: var(--dq-header-h-scrolled, 3.5rem);
}

body:has(.page-inner) .dq-navbar,
body:has(.page-inner) .dq-navbar.is-top {
  height: var(--dq-header-h-scrolled, 3.5rem);
  background: #062016;
}

body:has(.page-inner) .dq-navbar.is-top .dq-nav-logo__word {
  opacity: 0;
  pointer-events: none;
}

body:has(.page-inner) .dq-navbar.is-top .dq-nav-logo__mark {
  opacity: 1;
  pointer-events: auto;
}

/* Phone: tighter right actions */
@media (max-width: 767px) {
  .dq-navbar__inner {
    padding: 0 0.75rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .dq-navbar__slot--end {
    gap: 0.35rem;
  }

  .dq-nav-icon-btn,
  .dq-nav-contact {
    width: 2.75rem;
    height: 2.75rem;
  }

  .dq-nav-logo {
    width: 100px;
  }

  .dq-nav-logo__mark {
    height: 1.85rem;
  }

  .dq-nav-sidebar__nav {
    padding: 5.5rem 1.25rem 2rem 1.25rem;
    text-align: left;
  }

  .dq-nav-sidebar__list {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.35rem;
    padding-top: 0.5rem;
  }

  .dq-nav-sidebar__link {
    justify-content: flex-start;
  }

  .dq-nav-sidebar__text {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }
}


.dq-navbar.is-scrolled,
.dq-navbar.is-open {
  height: var(--dq-header-h-scrolled);
  background: #062016;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dq-navbar__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .dq-navbar__inner {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .dq-navbar__inner {
    padding: 0 5.5rem;
  }
}

.dq-navbar__slot {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
}

.dq-navbar__slot--start {
  justify-self: start;
}

.dq-navbar__slot--center {
  justify-self: center;
  justify-content: center;
}

.dq-navbar__slot--end {
  justify-self: end;
  justify-content: flex-end;
}

.dq-nav-icon-btn {
  position: relative;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

@media (min-width: 768px) {
  .dq-nav-icon-btn {
    margin-left: 0;
  }
}

.dq-nav-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

@media (min-width: 768px) {
  .dq-nav-icon {
    width: 2rem;
    height: 2rem;
  }
}

.dq-nav-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  max-width: 100%;
  height: 100%;
  text-decoration: none;
}

@media (min-width: 640px) {
  .dq-nav-logo {
    width: 160px;
  }
}

@media (min-width: 768px) {
  .dq-nav-logo {
    width: 200px;
  }
}

.dq-nav-logo img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 0.7s var(--dq-nav-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.dq-nav-logo__word {
  height: 1.75rem;
  opacity: 1;
}

@media (min-width: 640px) {
  .dq-nav-logo__word {
    height: 2.25rem;
  }
}

@media (min-width: 768px) {
  .dq-nav-logo__word {
    height: 3rem;
  }
}

.dq-nav-logo__mark {
  height: 2rem;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 640px) {
  .dq-nav-logo__mark {
    height: 2.5rem;
  }
}

@media (min-width: 768px) {
  .dq-nav-logo__mark {
    height: 2.25rem;
  }
}

.dq-nav-logo--mark .dq-nav-logo__word,
.dq-navbar.is-scrolled .dq-nav-logo__word,
.dq-navbar.is-open .dq-nav-logo__word {
  opacity: 0;
  pointer-events: none;
}

.dq-nav-logo--mark .dq-nav-logo__mark,
.dq-navbar.is-scrolled .dq-nav-logo__mark,
.dq-navbar.is-open .dq-nav-logo__mark {
  opacity: 1;
  pointer-events: auto;
}

.dq-nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.dq-nav-contact:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

@media (min-width: 768px) {
  .dq-nav-contact {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.dq-nav-contact__img {
  height: 1.5rem;
  width: 2.25rem;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .dq-nav-contact__img {
    height: 1.75rem;
    width: 2.75rem;
  }
}

/* --- Brand niches dropdown (DivniQ Media Header pattern) --- */
.dq-navbar__slot--end {
  gap: 0.15rem;
}

.dq-niche {
  position: relative;
  display: flex;
  align-items: center;
}

.dq-niche-toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.dq-niche-toggle.is-open {
  transform: rotate(180deg);
}

.dq-niche-catcher {
  position: fixed;
  inset: 0;
  z-index: 98;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: default;
}

.dq-niche-panel {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  z-index: 110;
  display: flex;
  min-width: 168px;
  flex-direction: column;
  overflow: hidden;
  padding: 0.45rem 0;
  border-radius: 1rem;
  background: rgba(12, 16, 26, 0.55);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  animation: dqNicheIn 0.28s ease;
}

.dq-niche-link {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease;
  box-sizing: border-box;
}

.dq-niche-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

/* --- Desktop left sidebar --- */
.dq-nav-sidebar__catcher {
  position: fixed;
  inset: 0;
  z-index: 90;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: default;
  animation: dqNavFadeIn 0.2s ease;
}

.dq-nav-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: dqNavSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .dq-nav-sidebar {
    width: 40vw;
  }
}

.dq-nav-sidebar__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 0 3rem 2.5rem 1.5rem;
  text-align: right;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dq-nav-sidebar__nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .dq-nav-sidebar__nav {
    padding-right: 6rem;
  }
}

.dq-nav-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
}

.dq-nav-sidebar__item {
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  animation: dqNavItemIn 0.45s ease forwards;
}

.dq-nav-sidebar__link {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
}

.dq-nav-sidebar__text {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.95em;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.dq-nav-sidebar__word {
  display: inline-block;
  white-space: nowrap;
}

.dq-nav-sidebar__link:hover .dq-nav-sidebar__text {
  color: #fff;
}

.dq-nav-sidebar__text::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: #fff;
  transition: width 0.3s ease;
}

.dq-nav-sidebar__link:hover .dq-nav-sidebar__text::after {
  width: 100%;
}

.dq-nav-sidebar__foot {
  margin-top: auto;
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: right;
  opacity: 0;
  animation: dqNavItemIn 0.45s ease 0.45s forwards;
}

.dq-nav-foot-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.dq-nav-foot-email {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dq-nav-foot-email:hover {
  color: #fff;
}

/* --- Mobile full-screen overlay --- */
.dq-nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  padding: 0 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-sizing: border-box;
  animation: dqNavMobileIn 0.4s ease;
}

.dq-nav-mobile__head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  height: 5rem;
}

.dq-nav-mobile__head.is-compact {
  height: 3.5rem;
}

@media (min-width: 640px) {
  .dq-nav-mobile__head {
    height: 6rem;
  }
  .dq-nav-mobile__head.is-compact {
    height: 4rem;
  }
}

.dq-nav-mobile__slot {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
}

.dq-nav-mobile__slot--start {
  justify-self: start;
}

.dq-nav-mobile__slot--center {
  justify-self: center;
  justify-content: center;
}

.dq-nav-mobile__slot--end {
  justify-self: end;
  justify-content: flex-end;
}

.dq-nav-mobile__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 2rem 0;
  scrollbar-width: none;
}

.dq-nav-mobile__list {
  margin: auto 0;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.dq-nav-mobile__link {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  animation: dqNavItemIn 0.4s ease forwards;
  transition: color 0.25s ease;
}

.dq-nav-mobile__link:hover {
  color: #8fd6b0;
}

@media (min-width: 640px) {
  .dq-nav-mobile__link {
    font-size: 2.25rem;
  }
}

.dq-nav-mobile__foot {
  flex-shrink: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  opacity: 0;
  animation: dqNavItemIn 0.4s ease 0.4s forwards;
}

.dq-nav-mobile__foot .dq-nav-foot-email {
  margin-top: 0.5rem;
}

@keyframes dqNavFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes dqNavMobileIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dqNavItemIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide legacy home chrome when DivniQ nav is active on home */
body.divniq-nav-ready #imob0j-3-3-2,
body.divniq-nav-ready #ihkww7 > #int5ct,
body.divniq-nav-ready #int5ct,
body.divniq-nav-ready #i1lwz-3,
body.divniq-nav-ready #i1lwz-2-3,
body.divniq-nav-ready #i1lwz-2-3-3-2,
body.divniq-nav-ready #i1lwz-2-3-4,
body.divniq-nav-ready #i1lwz-3-2,
body.divniq-nav-ready #iy2h61 {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
}
