/* Header overlay style */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.header-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}
.header-link:hover {
  color: #ffffff !important;
}

/* Burger Icon */
.burger-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
}
.burger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

/* Full-screen offcanvas */
.site-menu.offcanvas {
  width: 100vw !important;
  border: 0;
  background: transparent;
}
.site-menu .offcanvas-body,
.site-menu .offcanvas-header {
  padding: 0;
}

/* Split layout */
.site-menu-inner {
  height: 100vh;
  width: 100vw;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* LEFT side */
.site-menu-left {
  background: #3e4349;
  color: #fff;
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
}

.site-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.icon-close {
  width: 26px;
  height: 26px;
  position: relative;
  display: inline-block;
}
.icon-close::before,
.icon-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 2px;
  background: #fff;
  transform-origin: center;
}
.icon-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.icon-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-menu-content {
  margin-top: 56px;
}

.site-menu-brand {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.site-menu-brand:hover {
  color: #fff;
}

.site-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-menu-link {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.site-menu-link:hover {
  color: #fff;
  text-decoration: underline;
}

.site-menu-divider {
  height: 1px;
  margin: 18px 0;
  background: rgba(255, 255, 255, 0.18);
}

/* Secondary */
.site-menu-secondary-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-bottom: 14px;
}
.site-menu-secondary-link {
  display: block;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
}
.site-menu-secondary-link:hover {
  color: #fff;
  text-decoration: underline;
}

.site-menu-secondary-empty {
  display: block;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

/* RIGHT image */
.site-menu-right {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.site-menu-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}
.site-menu-right-content {
  position: absolute;
  left: 32px;
  bottom: 26px;
  right: 32px;
  color: #fff;
  z-index: 2;
}

/* ==========================================
   Responsive header/menu
   ========================================== */

/* Tablet and below */
@media (max-width: 991.98px) {
  /* Header spacing */
  .site-header .navbar {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .site-header .container-fluid {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* Hide normal navbar links on tablet/mobile.
     The burger/offcanvas becomes the main navigation. */
  .site-header .navbar-collapse {
    display: none !important;
  }

  /* Burger size */
  .burger-icon {
    width: 28px;
    height: 22px;
    gap: 6px;
  }

  .burger-icon span {
    height: 2px;
  }

  /* Offcanvas becomes single-column */
  .site-menu-inner {
    grid-template-columns: 1fr;
    height: 100dvh;
    min-height: 100vh;
  }

  /* Hide right image panel on smaller screens */
  .site-menu-right {
    display: none;
  }

  /* Make menu scrollable */
  .site-menu-left {
    min-height: 100dvh;
    padding: 22px 20px;
    overflow-y: auto;
  }

  .site-menu-content {
    margin-top: 38px;
  }

  .site-menu-content .row {
    --bs-gutter-y: 2rem;
  }

  .site-menu-link {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .site-menu-secondary {
    padding-top: 6px;
  }

  .site-menu-secondary-link {
    font-size: 1rem;
    padding: 7px 0;
  }
}


/* Mobile */
@media (max-width: 575.98px) {
  /* Header */
  .site-header .navbar {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .site-header .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .burger-icon {
    width: 26px;
    height: 20px;
    gap: 5px;
  }

  /* Offcanvas */
  .site-menu-left {
    padding: 20px 18px 28px;
  }

  .site-menu-top {
    min-height: 34px;
  }

  .icon-close {
    width: 24px;
    height: 24px;
  }

  .icon-close::before,
  .icon-close::after {
    width: 24px;
  }

  .site-menu-content {
    margin-top: 32px;
  }

  .site-menu-nav {
    gap: 12px;
  }

  .site-menu-link {
    font-size: 1.35rem;
  }

  .site-menu-divider {
    margin: 16px 0;
  }

  .site-menu-secondary-title {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }

  .site-menu-secondary-link {
    font-size: 0.95rem;
    padding: 6px 0;
  }
}


/* Very small phones */
@media (max-width: 380px) {
  .site-menu-left {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-menu-link {
    font-size: 1.2rem;
  }

  .site-menu-secondary-link {
    font-size: 0.9rem;
  }
}


/* Desktop refinements */
@media (min-width: 992px) {
  .site-header .navbar-collapse {
    display: flex !important;
  }

  .site-menu-inner {
    grid-template-columns: 1.05fr 1fr;
  }

  .site-menu-left {
    overflow-y: auto;
  }
}


/* Large desktop */
@media (min-width: 1400px) {
  .site-menu-left {
    padding: 36px 48px;
  }

  .site-menu-content {
    margin-top: 72px;
  }

  .site-menu-link {
    font-size: 1.35rem;
  }

  .site-menu-right-content {
    left: 48px;
    right: 48px;
    bottom: 42px;
  }
}