/* ---------- Helpers ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.header-wrap{
  position: relative;
  top: 0;
  z-index: 9999;
}

.top-bar {
  background: #282828;
}

.top-bar-inner {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 5px 30px;
}

.top-social {
  display: flex;
    gap: 5px;
    height: 100%;
}

.social-link {
  display: grid;
    place-items: center;
    text-decoration: none;
    height: 100%;
}

.social-link img{
     width: 25px;
     height: 25px;
}

/* ---------- Header ---------- */
.site-header {
  background: #00253c;
  padding: 14px 0;
}

.site-header .container {
  padding: 5px 30px;
  padding-right: 60px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}



.logo img {
  height: auto;
  width: 275px;
  display: block;
}

/* Right side controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-search .search-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 3px;
  overflow: hidden;
  height: 30px;
  width: 240px;
}

.header-search .search-field {
  border: 0;
  outline: none;
  padding: 0 10px;
  height: 30px;
  width: 100%;
  font-size: 13px;
}

.header-search .search-submit {
  border: 0;
  background: transparent;
  padding: 0 10px;
  cursor: pointer;
  height: 30px;
  line-height: 30px;
}

/* Hamburger */
.menu-toggle {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  padding: 4px 6px;
}

/* Desktop nav (optional) */
.main-nav { display: none; }

/* ---------- Offcanvas ---------- */
.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 9998;
}

.offcanvas {
  position: fixed;
  top: 0;
  right: 0;                 /* ✅ move to right */
  height: 94vh;
  width: min(420px, 88vw);
  background: #ee7c46;
  transform: translateX(100%); /* ✅ hidden to the right */
  transition: transform 260ms ease;
  z-index: 9999;
  padding: 28px 22px;
  overflow-y: auto;
}



.offcanvas-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

.offcanvas-menu {
  list-style: none;
  margin: 50px 0 0;
  padding: 0;
}



.offcanvas-menu li {
  margin: 10px 0;
  font-weight: 700;
}

.offcanvas-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 19px;
  line-height: 1.4;
  display: inline-block;
}

.offcanvas-menu .sub-menu {
  list-style: none;
  margin: 10px 0 0 14px;
  padding: 0;
  padding-left: 12px;
}

.offcanvas-menu li .sub-menu li {
  margin: 5px 0;
  font-weight: 400;
}

.offcanvas-menu .sub-menu li a{
   color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  display: inline-block;
}

.offcanvas-menu .sub-menu li a:hover{
     color: #000;
}

.offcanvas-menu a:hover {
  color: #000;
}

/* Open state */
body.menu-open .offcanvas {
  transform: translateX(0);
}

body.menu-open .offcanvas-overlay {
  opacity: 1;
  pointer-events: auto;
}


/* ---------------------------------
   SECTION TITLES (WITH SUBMENUS)
---------------------------------- */
.offcanvas-menu > li.menu-item-has-children{
  margin-top: 26px;
}

/* Section title text */
.offcanvas-menu > li.menu-item-has-children > a{
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;

  padding-bottom: 12px;
  margin-bottom: 12px;

  /* underline exactly like UI */
  border-bottom: 1px solid rgba(255,255,255,0.6);
}

/* Remove underline hover jump */
.offcanvas-menu > li.menu-item-has-children > a:hover{
  color: #ffffff;
}

/* ---------------------------------
   SUB MENU ITEMS
---------------------------------- */
.offcanvas-menu > li.menu-item-has-children > .sub-menu{
  list-style: none;
  margin: 0;
  padding: 0;
}

.offcanvas-menu > li.menu-item-has-children > .sub-menu li{
  margin: 8px 0;
}

.offcanvas-menu > li.menu-item-has-children > .sub-menu li a{
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.95;
}

/* Hover like your UI */
.offcanvas-menu > li.menu-item-has-children > .sub-menu li a:hover{
  color: #000000;
}

/* ---------------------------------
   SINGLE MENU ITEMS (NO SUBMENU)
---------------------------------- */
.offcanvas-menu > li:not(.menu-item-has-children){
  margin-top: 26px;
}

.offcanvas-menu > li:not(.menu-item-has-children) > a{
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

/* Hover */
.offcanvas-menu > li:not(.menu-item-has-children) > a:hover{
  color: #000000;
}

/* ---------------------------------
   FIRST ITEM FIX (NO EXTRA GAP)
---------------------------------- */
.offcanvas-menu > li:first-child{
  margin-top: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
.logo img {
    height: auto;
    width: 160px;
}

.header-search .search-form{
     width: 200px;
}

}

@media (max-width: 768px) {
.logo img {
    height: auto;
    width: 150px;
}

.header-search .search-form{
     width: 130px;
}


.menu-toggle{
     padding-right: 0;
}

.offcanvas-menu{
     margin: 0;
      height: 100%;
    display: grid;
    place-content: baseline;
    align-items: center;
}

.offcanvas-menu a{
     font-size: 16px;
     line-height: 1;
}

.offcanvas-menu .sub-menu li a {
    font-size: 14px;
    line-height: 1;
}

.offcanvas-menu li .sub-menu li{
     margin: 0;
}

.offcanvas {
    height: 85vh;
}

.offcanvas-menu > li.menu-item-has-children {
    margin-top: 12px;
}

}



@media (max-width: 480px) {
  .site-header .container{
     padding: 5px 10px;
  }

  .top-bar-inner {
    padding: 5px 10px;
}

.logo img {
    height: auto;
    width: 140px;
}

.top-bar-inner {
    height: 20px;
}

.social-link img
 {
    width: 18px;
    height: 18px;
}

.site-header {
    background: #00253c;
    padding: 6px 0;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: right;
    gap: 0px;
}


}