/* === GENERAL HEADER STYLING === */
#site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: #fff;
    padding: 2px 0;
    transition: all 0.3s ease;
    

  }

  #site-header,
#site-header .site-logo img,
.primary-menu li a,
.header-search-toggle button,
.social-menu-icons li a img {
  transition: all 0.3s ease;
}

  
  #site-header.shrink {
    padding: 0px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  #site-header .site-logo img {
    max-height: 80px;
    width: auto;
  }

  #site-header.shrink .site-logo img {
  max-height: 44px; /* ~30% smaller */
}
  
.header-search-toggle button .dashicons-search{
    font-size: 28px;
  }
  #site-header.shrink .header-search-toggle button .dashicons-search {
    font-size: 22px;
  }

  
  

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 6px 40px;
  }

  #site-header.shrink .header-inner {
    padding: 0px 40px;
    margin: 0px;
  }
  
  .primary-menu-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
    
  }
  
  .primary-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
  }
  .primary-menu li {
    position: relative;
  }
  .primary-menu li a {
    display: inline-block;
    padding: 12px 10px;
    transition: color 0.3s ease;
  }

  #site-header.shrink .primary-menu li a {
    font-size: 13px;
    padding: 8px 8px;
  }

  .primary-menu li a:hover {
    color: #0077cc;
  }
  
  /* === DROPDOWN (DESKTOP) === */
  .primary-menu .sub-menu {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0;
    margin: 0;
  }
  .primary-menu li:hover > .sub-menu {
    display: block;
  }
  .primary-menu .sub-menu li a {
    display: block;
    padding: 10px 15px;
    white-space: nowrap;
  }
  .primary-menu .sub-menu li a:hover {
    background: #f6f6f6;
    color: #0077cc;
  }
  
  /* === REMOVE MARKERS & TOGGLE (desktop only) === */
  .primary-menu li::marker,
  .primary-menu .sub-menu li::marker,
  .modal-menu li::marker {
    content: none;
  }
  .submenu-toggle {
    display: none;
  }
  @media (max-width: 767px) {
    .submenu-toggle {
      display: inline-block;
      background: none;
      border: none;
      margin-left: 8px;
      cursor: pointer;
      font-size: 18px;
    }
  }
  
  /* === SEARCH BUTTON === */
  .header-search-toggle button,
  .mobile-search-toggle {
    background: none;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
  }
  
  /* === SEARCH MODAL === */
  .search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
  }
  body.showing-search-modal .search-modal {
    display: flex;
  }
  .search-modal-inner {
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
  }
  .search-modal .close-search-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
  }
  
  /* === MOBILE HEADER === */
  .header-mobile-nav {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    gap: 10px;
  }
  .header-mobile-nav .mobile-search-toggle,
  .header-mobile-nav .mobile-nav-toggle {
    font-size: 20px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
  }
  
  
  /* === MOBILE MENU === */
  .menu-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
    overflow: hidden;
  }
  
  body.showing-menu-modal .menu-modal {
    display: flex;
  }
  
  .menu-modal-inner {
    background: white;
    width: 100%;
    max-width: 400px;
    max-height: 90vh; /* restricts modal height */
    overflow-y: auto; /* enables internal scroll */
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
  
  .menu-modal-header {
    padding: 10px 10px;
    text-align: right;
    border-bottom: 1px solid #eee;
    width: 100%;
  }
  .menu-modal-header button {
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .modal-menu {
    padding: 20px;
    list-style: none;
  }
  .modal-menu li a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
  }


  .modal-menu li.menu-item-has-children {
    display: block; /* not flex, so submenu stays below */
  }
  
  .modal-menu li.menu-item-has-children > .menu-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
   /* border-bottom: 1px solid #eee;  */
    width: 100%; /* ensures full width line */
  }
  
  
  .modal-menu li.menu-item-has-children > .menu-label a {
    font-weight: bold;
    flex: 1;
    text-decoration: none;
  }
  
  .modal-menu li.menu-item-has-children > .menu-label .submenu-toggle {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0 0 0 10px;
  }
  
  /* Rotate when open */
  .modal-menu li.submenu-open > .menu-label .submenu-toggle span {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
  }
  

  .modal-menu li.menu-item-has-children > a {
    font-weight: bold;
  }
  
  /* === MOBILE SUBMENU COLLAPSE === */
  .modal-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 15px;
  }
  .modal-menu li.submenu-open > .sub-menu {
    max-height: 500px;
  }
  
  /* === SOCIAL ICONS === */
  .social-menu-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
  }
  .social-menu-icons li a svg {
    width: 22px;
    height: 22px;
  }

  #site-header.shrink .social-menu-icons li a svg {
    width: 18px;
    height: 18px;
  }
  
  /* === RESPONSIVE BREAKPOINTS === */
  @media (max-width: 1024px) {
    .primary-menu {
      gap: 16px;
    }
  }
  @media (max-width: 767px) {
    .desktop-nav { display: none !important; }
    .header-mobile-nav { display: flex !important; }
  }
  
  .mobile-menu { 
    width: 100%;
  }

  


  .social-menu-icons li a {
    display: inline-flex;
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  .social-menu-icons li a img {
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  /* Hover animation */
  .social-menu-icons li:hover a img {
    transform: scale(1.2);
    filter: brightness(0) saturate(100%);
  }
  
  .social-menu-icons svg {
    width: 24px;
    height: 24px;
    fill: #444;
    transition: fill 0.3s ease, transform 0.3s ease;
  }
  
  .social-menu-icons li:hover svg {
    transform: scale(1.2);
  }
  
  .social-menu-icons li.facebook:hover svg     { fill: #1877f2; }
  .social-menu-icons li.instagram:hover svg    { fill: #e1306c; }
  .social-menu-icons li.twitter:hover svg      { fill: #1da1f2; }
  .social-menu-icons li.tiktok:hover svg       { fill: #000000; }
  .social-menu-icons li.youtube:hover svg      { fill: #ff0000; }
  .social-menu-icons li.telegram:hover svg     { fill: #0088cc; }
  .social-menu-icons li.whatsapp:hover svg     { fill: #25d366; }
  .social-menu-icons li.viber:hover svg        { fill: #665cac; }
  .social-menu-icons li.messenger:hover svg    { fill: #00b2ff; }
  .social-menu-icons li.call:hover svg         { fill: #34af23; }
  .social-menu-icons li.email:hover svg        { fill: #555555; }
  .social-menu-icons li.website:hover svg      { fill: #333333; }
  

  /* === MOBILE HEADER FIXES === */

  
@media (max-width: 767px) {
    #site-header {
      padding: 2px 0;
    }
  
    .section-inner {
      padding: 6px 11px;
    }
  
    /* Mobile logo size (the_custom_logo() uses .custom-logo) */
    @media (max-width: 767px) {
        #site-header .mobile-site-logo .custom-logo {
          height: 50px !important;
          max-height: 80px !important;
          width: auto !important;
          max-width: none !important;
          
        }
      
        #site-header.shrink .mobile-site-logo .custom-logo {
          height: 35px !important;
        }
      }
      
      .header-mobile-nav .mobile-nav-toggle .dashicons, .dashicons-before:before{
        width: 40px !important;
        height: 40px !important;
        font-size: 40px !important;
        
        
    }

    #site-header.shrink .header-mobile-nav .mobile-nav-toggle .dashicons, .dashicons-before:before{
        width: 30px !important;
        height: 30px !important;
        font-size: 30px !important;
        
        
    }
  
    body.has-fixed-header {
      padding-top: 35px; /* Match estimated mobile header height */
    }
  }
  
  /* === DEFAULT (desktop and fallback) === */
  .mobile-site-logo {
    flex: 1;
    display: flex;
    justify-content: left;
  }
  
  @media (min-width: 768px) {
    .mobile-site-logo .custom-logo {
      max-height: 55px;
      width: auto;
      height: auto;
    }
  }
  