/* Widget: Header */

.bbr-ew-header {
  position: relative;
}

.bbr-ew-header .bbr-header-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1199;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-in-out;
  pointer-events: none;
}

.bbr-ew-header .bbr-header-overlay.opened {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Menu Styles */
.bbr-ew-header .hamburger-area {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: #2563a8;
  z-index: 1200;
  transition: right 0.4s ease-in-out;
  overflow-y: auto;
  overflow-x: hidden;
}

.bbr-ew-header .hamburger-area.opened {
  right: -75px;
}

.bbr-ew-header .hamburger_wrapper {
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
  max-width: 285px;
}

.bbr-ew-header .hamburger_top {
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
}

.bbr-ew-header .hamburger_logo .mobile_logo img {
  max-height: 40px;
  width: auto;
}

.bbr-ew-header .hamburger_close_btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.bbr-ew-header .hamburger_close_btn:hover {
  transform: rotate(90deg);
}

.bbr-ew-header .hamburger_menu {
  flex: 1;
  margin-bottom: 40px;
}

.bbr-ew-header .mobile_menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bbr-ew-header .mobile_menu ul li {
  margin: 0;
  padding: 0;
}

.bbr-ew-header .mobile_menu ul li a {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 0;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.bbr-ew-header .mobile_menu ul li a:hover,
.bbr-ew-header .mobile_menu ul li a:focus {
  opacity: 1;
  padding-left: 10px;
}

.bbr-ew-header .hamburger-infos {
  margin-top: auto;
}

.bbr-ew-header .hamburger-infos .tj-primary-btn {
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
  margin-bottom: 16px;
  background-color: var(--tj-color-theme-primary);
  border: none;
  padding: 5px 5px 5px 25px;
  border-radius: 0px;
  gap: 10px;
  font-size: 16px;
  font-weight: var(--tj-fw-sbold);
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.bbr-ew-header .hamburger-infos .tj-primary-btn .btn-text {
  color: var(--tj-color-common-white);
  overflow: hidden;
}

.bbr-ew-header .hamburger-infos .tj-primary-btn .btn-text span {
  display: flex;
  line-height: 1;
  text-shadow: 0 30px 0;
  backface-visibility: hidden;
  transform: translateY(0);
  transition: 0.4s ease-in-out;
}

.bbr-ew-header .hamburger-infos .tj-primary-btn .btn-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  line-height: 1;
  width: 42px;
  height: 42px;
  background-color: var(--tj-color-theme-dark);
  border-radius: 0px;
  overflow: hidden;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.bbr-ew-header .hamburger-infos .tj-primary-btn .btn-icon i {
  color: var(--tj-color-common-white);
  transform: rotate(-45deg);
  transition: all 0.3s ease-in-out;
}

.bbr-ew-header .hamburger-infos .tj-primary-btn:hover .btn-text span {
  transform: translateY(-30px);
}

.bbr-ew-header .hamburger-infos .tj-primary-btn:hover .btn-icon {
  background-color: var(--tj-color-accent-critical);
  border-color: var(--tj-color-accent-critical);
}

.bbr-ew-header .hamburger-infos .tj-primary-btn:hover .btn-icon i {
  transform: rotate(0);
  color: var(--tj-color-theme-dark);
}

.bbr-ew-header .mobile-header-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.bbr-ew-header .mobile-header-social .header-contact {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--tj-color-common-white);
  background-color: transparent;
  font-size: 20px;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

.bbr-ew-header .mobile-header-social .header-contact:hover,
.bbr-ew-header .mobile-header-social .header-contact:focus {
  background-color: var(--tj-color-accent-critical);
  border-color: var(--tj-color-accent-critical);
  color: var(--tj-color-theme-dark);
}

.bbr-ew-header .header-contact .call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  line-height: 1;
}

.bbr-ew-header .header-contact .call-icon svg {
  width: 1em;
  height: 1em;
  display: block;
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
}

.bbr-ew-header .header-contact .call-icon svg [fill]:not([fill="none"]) {
  fill: currentColor;
}

.bbr-ew-header .header-contact .call-icon svg [stroke]:not([stroke="none"]) {
  stroke: currentColor;
}

.bbr-ew-header .header-contact:hover .call-icon,
.bbr-ew-header .header-contact:focus-visible .call-icon {
  color: inherit;
}

/* Responsive adjustments */
@media (max-width: 575px) {
  .bbr-ew-header .hamburger-area {
    max-width: 100%;
  }
  
  .bbr-ew-header .hamburger_wrapper {
    padding: 20px;
    max-width: calc(100% - 75px);
  }
}
