/*
 Theme Name:   Surecycle
 Author:       Fenix Media
 Template:     Divi
 Version:      1.0.2
*/

#header-menu ul.sub-menu {
    border-radius: 20px;
    border-top-left-radius: 0;
}
#header-menu ul.sub-menu a{
	padding: 0;
}

/* #header-menu li.menu-item.menu-item-has-children:hover{
    background: rgba(0, 73, 180, 0.8);
} */

#header-menu  .et-menu-nav .et-menu>li {
    padding-top: 18px!important;
    padding-bottom: 10px!important;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

/* #header-menu .et-menu-nav .et-menu>li:hover>a, li.current-page-parent.current_page_parent.menu-item-has-children>a{
	opacity:1!important;
  	color:#ffd006!important;
} */


header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9;
	transition:0.3s;
}
body.admin-bar header {
    top: 32px;
}
body.single-post header {
	position: fixed;
    top: 0;
}
header .et_pb_section{
	transition:0.3s;
}
header.scroll-up .et_pb_section {
    background-color:#00000060!important;
    width: 100%;
    box-shadow:1px 1px 8px 0px #00000047;
	padding: 0;
}
header.scroll-up .et_pb_column_1_3  .et_pb_image_wrap img{
	height:80px;
}

@media (min-width:981px){
	.hide-desktop{
		display:none!important;
	}
}

.et-menu .menu-item-has-children.et-hover > a:first-child {
    color: #111 !important;
}

@media (min-width: 981px){
  #header-menu .et-menu > li.sc-products-root{
    position: relative;
  }

  #header-menu .et-menu > li.sc-products-root:hover,
  #header-menu .et-menu > li.sc-products-root:focus-within {
    background: rgba(255,255,255,.72) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    opacity: 1 !important;
  }

  #header-menu .et-menu > li.sc-products-root:hover > a,
  #header-menu .et-menu > li.sc-products-root:focus-within > a{
    color: #111111 !important;
    opacity: 1 !important;
  }

  #header-menu .et-menu > li.sc-products-root > ul.sub-menu{
    left: 0 !important;
    top: calc(100% - 1px) !important;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    background: rgba(255,255,255,.72) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 0;
    border-radius: 0 18px 18px 18px;
    padding: 12px 16px 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
  }

  #header-menu .et-menu > li.sc-products-root > ul.sub-menu > li{
    background: transparent !important;
  }

  #header-menu .et-menu > li.sc-products-root > ul.sub-menu > li > a{
    background: transparent !important;
  }

  #header-menu .et-menu li.sc-products-root ul.sub-menu li{
    padding: 0;
  }

  #header-menu .et-menu li.sc-products-root ul.sub-menu a{
    display: block;
    padding: 6px 4px;
    line-height: 1.35;
    font-size: 16px;
    font-weight: 700;
    color: #111 !important;
    text-transform: none;
  }

  #header-menu .et-menu li.sc-products-root li.sc-sangla-root > a{
    font-size: 16px;
    font-weight: 800;
    color: #FF0800 !important;
    margin-bottom: 2px;
    padding-top: 2px;
  }

  #header-menu .et-menu li.sc-products-root li.sc-sangla-root > ul.sub-menu{
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    background: transparent !important;
    min-width: 0 !important;
    width: 100%;
    margin: 2px 0 6px;
    padding: 0 0 0 14px;
    border: 0;
  }

  #header-menu .et-menu li.sc-products-root li.sc-sangla-root > ul.sub-menu a{
    font-size: 16px;
    margin: 0;
    padding: 5px 0;
  }

  #header-menu .et-menu li.sc-products-root > ul.sub-menu > li:not(.sc-sangla-root) > a{
    font-size: 16px;
    font-weight: 700;
    margin-top: 2px;
  }

  #header-menu .et-menu li.sc-products-root ul.sub-menu li > a:hover{
    color: #FF0800 !important;
  }
}

/* Responsive header: logo left, all nav items inside #header-menu */
header .et_pb_image .et_pb_image_wrap img{
  width: auto;
  max-width: 220px;
  max-height: 72px;
}

#header-menu.et_pb_menu{
  margin-bottom: 0 !important;
}

#header-menu .et_pb_menu__wrap{
  width: 100%;
}

#header-menu .et_pb_menu__menu > nav > ul.et-menu{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

#header-menu .et_pb_menu__menu > nav > ul.et-menu > li{
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* CTA menu items (add classes in WP menu: menu-cta menu-cta-agent / menu-cta menu-cta-apply) */
#header-menu .et-menu > li.menu-cta > a{
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 18px !important;
  line-height: 1;
  font-weight: 700;
}

#header-menu .et-menu > li.menu-cta-agent > a{
  border: 1px solid #ffffff;
  color: #ffffff !important;
  background: transparent;
}

#header-menu .et-menu > li.menu-cta-apply > a{
  border: 1px solid #ffffff;
  color: #111111 !important;
  background: #ffffff;
}

@media (max-width: 980px){
  body.admin-bar header{
    top: 46px;
  }

  header .et_pb_image .et_pb_image_wrap img{
    max-width: 170px;
    max-height: 56px;
  }

  /* Hide standalone button modules on mobile; CTAs should come from menu items */
  header .et_pb_button_module_wrapper{
    display: none !important;
  }

  #header-menu .et_pb_menu__wrap{
    justify-content: flex-end !important;
  }

  #header-menu .et_mobile_nav_menu{
    display: block;
  }

  #header-menu .mobile_nav{
    float: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  #header-menu .mobile_menu_bar:before{
    font-size: 34px;
  }

  #header-menu .et_mobile_menu,
  #header-menu .mobile_nav.opened .et_mobile_menu,
  #header-menu .et_pb_menu__wrap .et_mobile_menu{
    position: fixed !important;
    top: 84px !important;
    left: 50% !important;
    right: auto !important;
    margin-left: 0 !important;
    transform: translateX(-50%) !important;
    width: min(92vw, 340px);
    max-width: calc(100vw - 24px);
    z-index: 99999;
    border-top: 0;
    border-radius: 14px;
    margin-top: 0;
    padding: 8px 0;
    background: rgba(255,255,255,.64) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    max-height: calc(100vh - 110px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.admin-bar #header-menu .et_mobile_menu,
  body.admin-bar #header-menu .mobile_nav.opened .et_mobile_menu,
  body.admin-bar #header-menu .et_pb_menu__wrap .et_mobile_menu{
    top: 116px !important;
  }

  #header-menu .et_mobile_menu li{
    padding: 0 !important;
  }

  #header-menu .et_mobile_menu li a{
    display: block;
    width: 100%;
    padding: 10px 14px !important;
    font-size: clamp(15px, 3.8vw, 18px) !important;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #header-menu .et_mobile_menu ul.sub-menu{
    padding-left: 0 !important;
    background: rgba(255,255,255,.5) !important;
  }

  #header-menu .et_mobile_menu ul.sub-menu li a{
    font-size: clamp(14px, 3.6vw, 16px) !important;
  }

  #header-menu .et_mobile_menu li.menu-cta{
    padding: 6px 12px !important;
  }

  #header-menu .et_mobile_menu li.menu-cta > a{
    border-radius: 999px;
    text-align: center;
    border: 1px solid #ffffff;
    padding: 11px 14px !important;
  }

  #header-menu .et_mobile_menu li.menu-cta-apply > a{
    color: #111111 !important;
    background: #ffffff;
  }
}

@media (max-width: 767px){
  header .et_pb_image .et_pb_image_wrap img{
    max-width: 150px;
    max-height: 50px;
  }
}

/* Branches interactive map shortcode */
.sc-branches-map-root {
  display: grid;
  grid-template-columns: minmax(320px, 42%) 1fr;
  align-items: stretch;
  background: #f1f1f1;
  margin: 0;
  /* Fits 13" laptops: map + list stay in view without long page scroll */
  min-height: clamp(560px, calc(100dvh - 70px), 780px);
  height: auto;
}

.sc-branches-map-list-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 40px 44px 48px;
  overflow: visible;
}

.sc-branches-map-title {
  flex-shrink: 0;
  margin: 0 0 22px;
  color: #ff0800;
  font-family: "Montserrat", sans-serif;
  font-size: 32px !important;
  font-weight: 800;
  line-height: 1.08;
}

.sc-branches-list-scroll {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding-right: 0;
  margin-right: 0;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 8, 0, 0.45) rgba(0, 0, 0, 0.06);
}

.sc-branches-list-scroll::-webkit-scrollbar {
  width: 8px;
}

.sc-branches-list-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
}

.sc-branches-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 8, 0, 0.35);
  border-radius: 999px;
}

.sc-branches-list-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 8, 0, 0.55);
}

.sc-branches-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  padding-bottom: 8px;
}

.sc-branches-pagination {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sc-branches-pagination[hidden] {
  display: none !important;
}

.sc-branches-page-btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #080808;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sc-branches-page-btn:hover:not(:disabled) {
  border-color: #ff0800;
  color: #ff0800;
}

.sc-branches-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sc-branches-page-label {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #080808;
  min-width: 10em;
  text-align: center;
}

.sc-branch-item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #3f3f3f;
  font-family: "Barlow", sans-serif;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sc-branch-item[hidden] {
  display: none !important;
}

.sc-branch-item[aria-hidden="true"] {
  display: none !important;
}

.sc-branch-item:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.sc-branch-item-name {
  color: #ff0800;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.sc-branch-item-line {
  color: #080808;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.sc-branch-item-landmark {
  margin-top: 2px;
  color: #080808;
}

.sc-branch-item.is-active .sc-branch-item-name {
  text-decoration: underline;
}

.sc-branches-map-pane {
  min-height: 0;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.sc-branches-map-canvas {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.sc-branches-map-empty {
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: "Barlow", sans-serif;
}

@media (max-width: 1200px) {
  .sc-branches-map-root {
    grid-template-columns: minmax(310px, 48%) 1fr;
    min-height: clamp(520px, calc(100dvh - 74px), 720px);
    height: auto;
  }

  .sc-branch-item-name {
    font-size: 20px;
  }
}

/* Short viewports (13" laptop with browser UI) */
@media (min-width: 981px) and (max-height: 900px) {
  .sc-branches-map-root {
    min-height: clamp(500px, calc(100dvh - 68px), 660px);
    height: auto;
  }

  .sc-branches-map-list-wrap {
    padding: 28px 32px 32px;
  }

  .sc-branches-map-title {
    font-size: 26px !important;
    margin-bottom: 14px;
  }
}

@media (max-width: 980px) {
  .sc-branches-map-root {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .sc-branches-map-list-wrap {
    padding: 36px 26px 28px;
    max-height: none;
  }

  .sc-branches-map-pane {
    height: auto;
    min-height: min(42vh, 400px);
  }

  .sc-branches-map-canvas {
    flex: none;
    height: min(42vh, 400px);
    min-height: 320px;
  }
}

@media (max-width: 620px) {
  .sc-branches-list-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sc-branch-item-name {
    font-size: 20px;
  }
}