/* ====================== [ Gera Off-Canvas Navigation ] ====================== #e72c1b  */

/* --- Topbar --- */
.gera-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 20px 0;
  transition: background 0.4s ease, padding 0.4s ease;
}

.gera-topbar.scrolled {
  padding: 14px 0;
}

.gera-topbar .gera-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gera-topbar .logo {
  position: relative;
  z-index: 10001;
}

.gera-topbar .logo img {
  height: 80px;
  width: auto;
}

/* --- Burger Button --- */
.gera-burger {
  position: relative;
  z-index: 10001;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gera-burger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.gera-burger__line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #fff;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.gera-burger__line:nth-child(2) {
  width: 14px;
}

/* Burger → X transform */
.gera-burger.is-active .gera-burger__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.gera-burger.is-active .gera-burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.gera-burger.is-active .gera-burger__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Overlay --- */
.gera-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 9999;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gera-overlay.is-visible {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
}

/* --- Off-Canvas Panel --- */
.gera-offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  height: 100dvh;
  background: #111;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.gera-offcanvas.is-open {
  transform: translateX(0);
}

/* Panel header */
.gera-offcanvas__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 32px;
  min-height: 88px;
}

/* Panel body (scrollable nav) */
.gera-offcanvas__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 32px 30px;
  -webkit-overflow-scrolling: touch;
}

.gera-offcanvas__body::-webkit-scrollbar {
  width: 3px;
}

.gera-offcanvas__body::-webkit-scrollbar-track {
  background: transparent;
}

.gera-offcanvas__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

/* Nav list */
.gera-offcanvas__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gera-offcanvas__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gera-offcanvas.is-open .gera-offcanvas__item {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animation delays */
.gera-offcanvas.is-open .gera-offcanvas__item:nth-child(1) { transition-delay: 0.15s; }
.gera-offcanvas.is-open .gera-offcanvas__item:nth-child(2) { transition-delay: 0.2s; }
.gera-offcanvas.is-open .gera-offcanvas__item:nth-child(3) { transition-delay: 0.25s; }
.gera-offcanvas.is-open .gera-offcanvas__item:nth-child(4) { transition-delay: 0.3s; }
.gera-offcanvas.is-open .gera-offcanvas__item:nth-child(5) { transition-delay: 0.35s; }
.gera-offcanvas.is-open .gera-offcanvas__item:nth-child(6) { transition-delay: 0.4s; }
.gera-offcanvas.is-open .gera-offcanvas__item:nth-child(7) { transition-delay: 0.45s; }

.gera-offcanvas__item > .gera-offcanvas__link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gera-offcanvas__item > .gera-offcanvas__link-row > a {
  display: block;
  flex: 1;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.gera-offcanvas__item > .gera-offcanvas__link-row > a:hover {
  color: #fff;
  padding-left: 8px;
}

/* Active state */
.gera-offcanvas__item.is-active > .gera-offcanvas__link-row > a {
  color: #fff;
}

.gera-offcanvas__item.is-active > .gera-offcanvas__link-row > a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.5px;
  background: #fff;
  margin-right: 10px;
  vertical-align: middle;
}

/* Sub-menu toggle button */
.gera-offcanvas__toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.gera-offcanvas__toggle:hover {
  color: #fff;
}

.gera-offcanvas__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gera-offcanvas__toggle.is-expanded svg {
  transform: rotate(180deg);
}

/* Sub-menu */
.gera-offcanvas__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 10px 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gera-offcanvas__sub.is-expanded {
  max-height: 400px;
}

.gera-offcanvas__sub li a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.gera-offcanvas__sub li a:hover {
  color: #fff;
  padding-left: 8px;
}

.gera-offcanvas__sub li a.is-active {
  color: rgba(255, 255, 255, 0.9);
}

/* Panel footer */
.gera-offcanvas__footer {
  padding: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gera-offcanvas__footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gera-offcanvas__footer-row:last-child {
  margin-bottom: 0;
}

/* CTA Button */
.gera-offcanvas__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.35s ease;
  width: 100%;
  justify-content: center;
}

.gera-offcanvas__cta:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  transform: translateY(-1px);
}

.gera-offcanvas__cta svg {
  width: 18px;
  height: 18px;
}

/* Language & Dark Mode row */
.gera-offcanvas__utils {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language selector in offcanvas */
.gera-offcanvas .language-dropdown {
  position: relative;
}

.gera-offcanvas .language-dropdown .lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gera-offcanvas .language-dropdown .lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.gera-offcanvas .language-dropdown .lang-btn i {
  font-size: 14px;
}

.gera-offcanvas .language-dropdown .dropdown-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  display: block;
}

.gera-offcanvas .language-dropdown .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gera-offcanvas .language-dropdown .dropdown-menu .dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.25s ease;
}

.gera-offcanvas .language-dropdown .dropdown-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.gera-offcanvas .language-dropdown .dropdown-menu .dropdown-item.active {
  color: #fff;
  font-weight: 600;
}

/* Dark mode icon in offcanvas */
.gera-offcanvas .dark-mode-icon .theme-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gera-offcanvas .dark-mode-icon .theme-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Brand text */
.gera-offcanvas__brand {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 16px;
}

/* Body scroll lock */
body.offcanvas-open {
  overflow: hidden;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .gera-topbar {
    padding: 16px 0;
  }

  .gera-topbar .logo img {
    height: 32px;
  }

  .gera-burger {
    width: 42px;
    height: 42px;
  }

  .gera-burger__line {
    width: 18px;
  }

  .gera-burger__line:nth-child(2) {
    width: 12px;
  }

  .gera-offcanvas {
    width: 100vw;
    max-width: 100vw;
  }

  .gera-offcanvas__body {
    padding: 10px 24px 30px;
  }

  .gera-offcanvas__header {
    padding: 16px 24px;
    min-height: 74px;
  }

  .gera-offcanvas__footer {
    padding: 20px 24px;
  }

  .gera-offcanvas__item > .gera-offcanvas__link-row > a {
    font-size: 16px;
    padding: 16px 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gera-offcanvas {
    width: 380px;
  }
}

/* Hide old navbar */
body .navbar.navbar-expand-lg {
  display: none !important;
}
