/*Main Header*/
.main-header{ width: 100%; height: 70px; position: fixed; top: 0; left: 0; z-index: 9999; background: transparent; padding-top: 50px; transition: padding-top .3s var(--ease-out), box-shadow .3s var(--ease-out); box-shadow: 0 0 10px rgba(0,0,0,.15); }
.main-header .content{ height: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.main-header::before{ content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--white); opacity: 0; transition: var(--transition); z-index: 1; }

/*Fixed Header*/
body.fixed-header .main-header{ padding-top: 0; box-shadow: 0 4px 20px rgba(0,0,0,.12); }
body.fixed-header .main-header::before{ opacity: 1; backdrop-filter: blur(6px); }
body.fixed-header .main-header .logo{ width: 80px; color: var(--green); }
body.fixed-header .main-header .main-menu .menu li a{ color: var(--grey-111); font-weight: 600; }
body.fixed-header .main-header .main-menu .menu li a:hover,
body.fixed-header .main-header .main-menu .menu > li:hover > a{ color: var(--green); }
body.fixed-header .main-header .main-menu .menu li ul{ top: calc(100% + 16px); }
body.fixed-header .main-header .main-menu .menu > li > a:before{ background: var(--green); }
body.fixed-header .main-header .header-cta{ border-color: var(--green); color: var(--green); }
body.fixed-header .main-header .header-cta:hover{ background: var(--green); color: var(--white); }
body.fixed-header .main-header .hamburger span{ background: var(--green); }

/*Logo*/
.main-header .logo{ width: 90px; display: block; color: var(--white); }
.main-header .logo figure{ }
.main-header .logo figure svg{ width: 100%; display: block; }

/*Main Menu*/
.main-header .main-menu{ }
.main-header .main-menu .menu{ display: flex; align-items: center; gap: 4px; }
.main-header .main-menu .menu li{ position: relative; }
.main-header .main-menu .menu li.menu-contact{ display: none; }
.main-header .main-menu .menu li a{ color: rgba(255,255,255,.88); display: flex; align-items: center; gap: 6px; padding: 11px 14px; position: relative; font-family: var(--poppins); font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: 0; text-decoration: none; transition: var(--transition); }
.main-header .main-menu .menu li a:hover{ color: var(--white); }
.main-header .main-menu .menu > li > a:before{ content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left center; transition: transform .2s var(--ease-out); }
.main-header .main-menu .menu > li:hover > a:before,
.main-header .main-menu .menu > li:focus-within > a:before{ transform: scaleX(1); }
.main-header .main-menu .menu > li:hover > a{ color: var(--white); }
.main-header .main-menu .menu li:has(> ul) > a{ padding-right: 30px; }
.main-header .main-menu .menu li:has(> ul) > a:after{ width: 13px; height: 13px; display: flex; align-items: center; justify-content: center; position: absolute; top: 12px; right: 12px; font-family: var(--ti); font-size: 13px; line-height: 1; transition: var(--transition); content: '\ea5f'; }
.main-header .main-menu .menu li:hover > a:after{ transform: rotate(180deg); }
.main-header .main-menu .menu li ul{ display: grid; grid-template-columns: repeat(2,1fr); gap: 0 16px; width: 640px; position: absolute; top: calc(100% + 30px); left: 50%; margin-left: -320px; z-index: 10; visibility: hidden; padding: 4px 8px; background: var(--white); box-shadow: 0 20px 40px rgba(0,0,0,.24); opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s var(--ease-out), visibility .18s; }
.main-header .main-menu .menu li ul:before{ content: ''; position: absolute; top: -40px; left: 50%; width: 220px; margin-left: -110px; height: 40px; }
.main-header .main-menu .menu li:hover ul,
.main-header .main-menu .menu li:focus-within ul{ visibility: visible; opacity: 1; transform: translateY(0); }
.main-header .main-menu .menu li ul li{ }
.main-header .main-menu .menu li ul li a{ flex-direction: row; align-items: center; gap: 10px; padding: 6px 8px; border-bottom: 1px solid var(--white-ddd); transition: var(--transition); color: var(--grey-111); font-size: 14px; font-weight: 600; line-height: 1.3; }
.main-header .main-menu .menu li ul li:nth-last-child(-n+2) > a{ border-bottom-color: transparent; }
.main-header .main-menu .menu li ul li a:before{ display: none; }
.main-header .main-menu .menu li ul li a:after{ content: '\ea61'; flex-shrink: 0; margin-left: auto; font-family: var(--ti); font-size: 16px; line-height: 1; color: var(--green); transition: transform .2s var(--ease-out); }
.main-header .main-menu .menu li ul li:hover > a:after{ transform: translateX(5px); }
.main-header .main-menu .menu li ul li a:hover{ color: var(--green); background: var(--green-50); }
.main-header .main-menu .menu li ul li a span{ flex: 1; }
.main-header .main-menu .menu li ul li a .thumb{ width: 52px; aspect-ratio: 1 / 1; flex-shrink: 0; overflow: hidden; }
.main-header .main-menu .menu li ul li a .thumb img{ width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s var(--ease-out); }
.main-header .main-menu .menu li ul li a:hover .thumb img{ transform: scale(1.08); }

/*Header CTA*/
.main-header .header-cta{ flex-shrink: 0; }

/*Skip Link*/
.skip-link{ position: fixed; top: -100px; left: 16px; z-index: 10000; padding: 12px 18px; background: var(--green); color: var(--white); font-family: var(--poppins); font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; transition: top .2s ease; }
.skip-link:focus{ top: 16px; outline: 2px solid var(--white); outline-offset: 2px; }
main:focus{ outline: none; }

/*Mobile Menu*/
.main-header .hamburger{ width: 44px; height: 44px; display: none; padding: 10px 7px; border: 0; background: transparent; cursor: pointer; }
.main-header .hamburger span{ width: 100%; height: 2px; display: block; margin: 5px 0; background: var(--white); }
.main-header .close-menu{ width: 100%; height: 100%; position: fixed; inset: 0; visibility: hidden; background: rgba(0,0,0,.42); opacity: 0; transition: var(--transition); }

@media(max-width: 1279px){

   /*Main Menu*/
   .main-header .main-menu .menu{ gap: 0; }
   .main-header .main-menu .menu li a{ padding: 11px 9px; font-size: 14px; }
   .main-header .main-menu .menu > li > a:before{ left: 9px; right: 9px; }
   .main-header .main-menu .menu li:has(> ul) > a{ padding-right: 26px; }
   .main-header .main-menu .menu li:has(> ul) > a:after{ right: 9px; }
   .main-header .main-menu .menu li ul li a{ padding: 6px 8px; font-size: 14px; }

}

@media(max-width: 1023px){

   /*Main Header*/
   .main-header{ height: 58px; padding-top: 32px; }
   .main-header .content{ padding: 0 20px; }

   /*Logo*/
   .main-header .logo{ width: 62px; }
   body.fixed-header .main-header .logo{ width: 62px; }

   /*Header CTA*/
   .main-header .header-cta{ display: none; }

   /*Main Menu*/
   .main-header .main-menu{ width: min(82vw,320px); height: 100%; position: fixed; top: 0; left: 0; z-index: 2; overflow-y: auto; background: var(--white); visibility: hidden; transform: translateX(-100%); transition: transform .3s var(--ease-drawer), visibility .3s; }
   .main-header .main-menu{ box-shadow: 0 0 40px rgba(0,0,0,.25); }
   .main-header .main-menu .menu{ height: auto; min-height: 100%; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 24px 24px 32px; }
   .main-header .main-menu .menu li{ }
   .main-header .main-menu .menu li a{ padding: 15px 0; border-bottom: 0; color: var(--grey-111); font-size: 16px; }
   .main-header .main-menu .menu li a:before{ display: none; }
   .main-header .main-menu .menu li a:hover,
   .main-header .main-menu .menu > li:hover > a,
   body.fixed-header .main-header .main-menu .menu li a:hover,
   body.fixed-header .main-header .main-menu .menu > li:hover > a{ color: var(--grey-111); }
   .main-header .main-menu .menu li:has(> ul) > a{ padding-right: 20px; }
   .main-header .main-menu .menu li:has(> ul) > a:after{ top: 50%; right: 0; margin-top: -6px; }
   .main-header .main-menu .menu li:hover > a:after{ transform: none; }
   .main-header .main-menu .menu li ul{ display: block; width: auto; margin: 4px 0 8px 2px; position: static; visibility: visible; padding: 0 0 0 14px; box-shadow: none; opacity: 1; transform: none; background: transparent; }
   .main-header .main-menu .menu li ul:before{ display: none; }
   .main-header .main-menu .menu li ul li a{ flex-direction: row; align-items: center; padding: 11px 0; border-bottom-color: transparent; color: var(--grey-111); font-size: 14px; font-weight: 500; white-space: normal; }
   .main-header .main-menu .menu li ul li a:hover,
   body.fixed-header .main-header .main-menu .menu li ul li a:hover{ background: transparent; color: var(--grey-111); }
   .main-header .main-menu .menu li ul li a .thumb{ display: none; }
   .main-header .main-menu .menu li ul li a:after{ display: none; }
   .main-header .main-menu .menu li.menu-contact{ display: block; margin-top: 24px; }
   .main-header .main-menu .menu li.menu-contact a,
   body.fixed-header .main-header .main-menu .menu li.menu-contact a{ justify-content: center; padding: 15px 20px; border-bottom: 0; background: var(--green); color: var(--white); font-size: 15px; }
   .main-header .main-menu .menu li.menu-contact a:hover,
   .main-header .main-menu .menu > li.menu-contact:hover > a,
   body.fixed-header .main-header .main-menu .menu li.menu-contact a:hover,
   body.fixed-header .main-header .main-menu .menu > li.menu-contact:hover > a{ background: var(--green); color: var(--white); }

   /*Mobile Menu*/
   .main-header .hamburger{ display: block; position: relative; z-index: 3; }
   .main-header .hamburger span{ }
   .main-header .close-menu{ z-index: 1; }
   .main-header .hamburger:focus-visible{ outline: 2px solid var(--white); outline-offset: 2px; }
   body.fixed-header .main-header .hamburger:focus-visible{ outline-color: var(--green); }
   .main-header.menu-open .hamburger:focus-visible{ outline-color: var(--white); }
   .main-header.menu-open .main-menu{ visibility: visible; transform: translateX(0); }
   .main-header.menu-open .close-menu{ visibility: visible; opacity: 1; }

}
