/* Sohoj custom header + mobile menu overrides
   Loaded AFTER template style.css
*/

:root {
  --sohoj-radius-lg: 16px;
  --sohoj-radius-md: 12px;
  --sohoj-shadow-lg: 0 18px 60px rgba(16, 24, 40, 0.22);
  --sohoj-shadow-md: 0 10px 30px rgba(16, 24, 40, 0.16);
  --sohoj-border: rgba(255, 255, 255, 0.12);
  --sohoj-ink: #0b1220;
  --sohoj-muted: rgba(255, 255, 255, 0.72);
  --sohoj-surface: rgba(11, 18, 32, 0.92);
  --sohoj-surface-2: rgba(11, 18, 32, 0.75);
}

/* Make the dark header feel more premium */
.sohoj-header {
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

.sohoj-header .navbar-brand {
  letter-spacing: 0.2px;
}

/* Header action buttons */
.sohoj-call-pill,
.sohoj-wa-btn {
  border-radius: 999px !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.sohoj-call-pill {
  width: 40px;
  justify-content: center;
  padding-left: 0.9rem !important;
  padding-right: 0.9rem !important;
}

.sohoj-wa-btn {
  width: 40px;
  justify-content: center;
  padding-left: 0.9rem !important;
  padding-right: 0.9rem !important;
}

.sohoj-call-pill,
.sohoj-wa-btn {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}

/* Language toggle (segmented control) */
.sohoj-lang-toggle {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--sohoj-border);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.sohoj-lang-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.sohoj-lang-toggle__btn:last-child {
  border-right: 0;
}

.sohoj-lang-toggle__btn i {
  opacity: 0.95;
}

.sohoj-lang-toggle__code {
  font-size: 0.85rem;
  letter-spacing: 0.4px;
}

.sohoj-lang-toggle__label {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

.sohoj-lang-toggle__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sohoj-lang-toggle__btn.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #0b1220;
}

.sohoj-lang-toggle__btn.is-active i {
  opacity: 1;
}

/* Language dropdown (flags) */
.sohoj-flag {
  font-size: 18px;
  line-height: 1;
}
.sohoj-lang-dd-btn {
  border-radius: 999px !important;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.12);
}
.sohoj-lang-dd-btn--dark {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.sohoj-lang-dd-menu {
  border: 0;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 18px 60px rgba(16, 24, 40, 0.18);
}
.sohoj-lang-dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  padding: 10px 12px;
}
.sohoj-lang-dd-item:hover {
  background: rgba(15, 23, 42, 0.05);
}

/* Sticky CTA bar (mobile) */
.sohoj-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}
.sohoj-sticky-cta .btn {
  border-radius: 14px;
}

/* Add breathing room for fixed CTA on small screens */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 84px;
  }
}

/* Offcanvas: modern, dark, full screen on mobile */
.sohoj-offcanvas.offcanvas-start {
  border-right: 0 !important;
}

/* Ensure mobile offcanvas stays above everything */
.sohoj-offcanvas {
  z-index: 2000 !important;

}
.offcanvas-backdrop {
  z-index: 1999;
}
@media (max-width: 991.98px) {

  .sohoj-offcanvas {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 2000 !important;
  }

  .offcanvas-backdrop {
    position: fixed !important;
    z-index: 1999 !important;
  }

  body.offcanvas-open {
    overflow: hidden;
  }

}

@media (max-width: 991.98px) {
  .sohoj-offcanvas.offcanvas-start {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .sohoj-offcanvas .offcanvas-header {
    padding: 18px 18px 10px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
  }

  .sohoj-offcanvas .offcanvas-body {
    padding: 18px;
    background: #fff;
    color: var(--sohoj-ink);
  }

  .sohoj-offcanvas .btn-close {
    filter: none;
    opacity: 0.8;
  }

  .sohoj-mobile-menu__links {
    gap: 10px !important;
  }

  .sohoj-mobile-menu__link {
    border-radius: var(--sohoj-radius-lg) !important;
    padding: 14px 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    background: rgba(15, 23, 42, 0.03) !important;
    color: var(--sohoj-ink) !important;
    box-shadow: var(--sohoj-shadow-md);
    font-weight: 600;
  }

  .sohoj-mobile-menu__link:hover {
    background: rgba(15, 23, 42, 0.06) !important;
    transform: translateY(-1px);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  }

  .sohoj-mobile-menu__link.active,
  .sohoj-mobile-menu__link:active {
    background: rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
  }

  .sohoj-mobile-menu__link i {
    opacity: 0.95;
  }

  .sohoj-mobile-menu__actions {
    border-top: 1px solid rgba(15, 23, 42, 0.10) !important;
  }

  .sohoj-action-btn {
    border-radius: var(--sohoj-radius-lg) !important;
    padding: 14px 14px !important;
    font-weight: 700;
    box-shadow: var(--sohoj-shadow-md);
  }

  .sohoj-lang-toggle--mobile {
    width: 100%;
    border-radius: var(--sohoj-radius-lg);
    border-color: rgba(15, 23, 42, 0.10);
    background: rgba(15, 23, 42, 0.03);
    box-shadow: var(--sohoj-shadow-md);
  }

  .sohoj-lang-toggle--mobile .sohoj-lang-toggle__btn {
    flex: 1;
    justify-content: center;
    padding: 12px 12px;
    color: rgba(11, 18, 32, 0.85);
  }

  .sohoj-lang-toggle--mobile .sohoj-lang-toggle__label {
    display: inline-block;
  }
}

