/* ================================================
   STICKY HEADER - Activates after 100vh scroll
   ================================================ */

/* Initial state - header is part of page flow */
body {
  padding-top: 20px; /* Always reserve space for header */
  transition: padding-top 0.3s ease-in-out;
}


/* Base header styles - not sticky initially */
.et_pb_menu_0_tb_header {
  position: relative;
  background: var(--base-0);
  transition: padding 0.3s ease-in-out;
  box-shadow: none;
}

/* Constrain header contents to 1140px centered container */
.et_pb_menu_0_tb_header .et_pb_menu_inner_container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}


/* Logo scaling - normal state */
.et_pb_menu_0_tb_header .et_pb_menu__logo img {
  max-height: 120px;
  width: auto;
  transition: max-height 0.3s ease-in-out;
}

/* Sticky state */
.et_pb_menu_0_tb_header.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease-in-out 0.1s;
}

.et_pb_menu_0_tb_header.header-sticky .et_pb_menu__logo img {
  max-height: 50px;
}

.et_pb_menu_0_tb_header.header-sticky .et_pb_menu__wrap {
  padding-top: 32px;
  margin-right:24px;
}

.et_pb_menu_0_tb_header.header-sticky .et_menu_nav {
  padding-top: 0;
}


.et_pb_menu_0_tb_header.header-sticky .et_pb_menu__menu nav ul li a {
  padding-top: 10px;
  padding-bottom: 10px;
}

.et_pb_menu_0_tb_header.header-sticky .et_pb_menu__logo img {
  max-width: 80%;
  width: auto;
}

/* Mobile adjustments */

  @media screen and (min-width: 980px) {
  .et_pb_menu_0_tb_header.header-sticky .et_pb_menu_inner_container {
    max-width: 1140px;
    width: 80%;
  }
  }


@media screen and (max-width: 979px) {
  body.has-sticky-header {
    padding-top: 80px;
  }

  .et_pb_menu_0_tb_header .et_pb_menu__logo {
    margin-left: 0px;
  }
  .et_pb_menu_0_tb_header.header-sticky .et_pb_menu__logo {
    margin-left: 34px;
  }

  .et_pb_menu_0_tb_header.header-sticky {
    padding: 14px 0;
  }

  .et_pb_menu_0_tb_header.header-sticky .et_mobile_menu {
    margin-top: 14px;
  }

  .mobile-contact-trigger img {
    width: 30px;
    height: 28px;
    display: block;
  }
}





@media screen and (max-width: 399px) {
  .et_pb_menu_0_tb_header.header-sticky .et_pb_menu__logo {
    margin-left: 24px;
  }
  
  .et_pb_menu_0_tb_header.header-sticky .et_pb_menu__wrap {
    margin-right: 10px;
  }
  }




@media screen and (min-width: 768px) and (max-width: 980px) {
  .et_pb_menu_0_tb_header.header-sticky .et_pb_menu__logo {
    margin-left: clamp(34px, calc(34px + (10 * ((100vw - 768px) / 212))), 44px);
  }
  
  .et_pb_menu_0_tb_header.header-sticky .et_pb_menu__wrap {
    margin-right: clamp(12px, calc(12px + (32 * ((100vw - 768px) / 212))), 44px);
  }
}



@media screen and (min-width: 680px) and (max-width: 767px) {
  .et_pb_menu_0_tb_header.header-sticky .et_pb_menu__logo {
    margin-left: clamp(44px, calc(44px + (4 * ((100vw - 680px) / 87))), 48px);
  }
  
  .et_pb_menu_0_tb_header.header-sticky .et_pb_menu__wrap {
    margin-right: clamp(12px, calc(12px + (2 * ((100vw - 680px) / 87))), 14px);
  }
}




@media screen and (min-width: 400px) and (max-width: 679px) {
  .et_pb_menu_0_tb_header.header-sticky .et_pb_menu__logo {
    margin-left: clamp(24px, calc(24px + (20 * ((100vw - 400px) / 279))), 44px);
  }
  
  .et_pb_menu_0_tb_header.header-sticky .et_pb_menu__wrap {
    margin-right: clamp(12px, calc(12px + (8 * ((100vw - 400px) / 279))), 20px);
  }
}



/* Dropdown animation (optional) */
.et_pb_menu_0_tb_header .nav ul {
  animation: fadeInDown 0.2s ease-in-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}