html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Header Base */
.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-container {
  max-width: 1400px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo a {
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo img {
  height: 80px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: "poppins", Helvetica, sans-serif;
}

/* LINKS */
.navbar a,
.dropbtn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #1f2a44;
  cursor: pointer;
  padding: 8px 0;
  font-family: "poppins", Helvetica, sans-serif;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.navbar a:hover,
.dropbtn:hover,
.dropdown:hover .dropbtn,
.dropdown.active .dropbtn {
  color: #EF9920;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 10px 0;
  display: none;
  z-index: 1000;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content a {
  display: block;
  padding: 10px 18px;
  color: #1f2a44;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-content a:hover {
  /* background: #f5f7fa; */
  color: #EF9920;
}

/* SHOW DROPDOWN */
.dropdown.active > .dropdown-content {
  display: block;
}

/* SUB MENU */
.has-sub {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 10px 0;
  display: none;
}

.has-sub.active > .sub-menu {
  display: block;
}

/* CARET SPACING */
.dropbtn i,
.has-sub i {
  margin-left: 6px;
  font-size: 12px;
}

/* CTA */
.cssbuttons-io-button {
  background: #ef9920;
  color: white;
  font-family: "poppins", Helvetica, sans-serif;
  padding: 0.35em;
  padding-left: 1.2em;
  font-size: 16px;
  font-weight: 500;
  border-radius: 0.9em;
  border: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 1.6em -0.6em #ef9920;
  overflow: hidden;
  position: relative;
  height: 2.8em;
  padding-right: 3.3em;
  cursor: pointer;
  text-decoration: none;
}

.cssbuttons-io-button .icon {
  background: white;
  margin-left: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2em;
  width: 2.2em;
  border-radius: 0.7em;
  box-shadow: 0.1em 0.1em 0.6em 0.2em #ef9920;
  right: 0.3em;
  transition: all 0.3s;
}

.cssbuttons-io-button:hover .icon {
  width: calc(100% - 0.6em);
}

.cssbuttons-io-button .icon svg {
  width: 1.1em;
  transition: transform 0.3s;
  color: #ef9920;
}

.cssbuttons-io-button:hover .icon svg {
  transform: translateX(0.1em);
}

.cssbuttons-io-button:active .icon {
  transform: scale(0.95);
}

/* MEGA MENU */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 600px;
  max-width: 95vw;


  background: #fff;
  display: none;
  grid-template-columns: 1fr auto 1fr;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  z-index: 1000;
}

.dropdown.active .mega-menu {
  display: grid;
}

.menu-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111;
}

.menu-column a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: #444;
  text-decoration: none;
}

.menu-divider {
  width: 1px;
  background: #e6e6e6;
  margin: 0 20px;
}

.menu-footer {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 18px;
}

.view-all-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 25px;
  background: #ef9920;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

/* RESPONSIVE STYLES */
.mobile-contact-btn {
  display: none;
}

.ta-btn--icon {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  padding: 8px;
  color: #1f2a44;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.ta-icon--24 {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.ta-btn--toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

.ta-btn--toggle-line {
  display: block;
  height: 2px;
  border-radius: 8px;
  background-color: #1f2a44;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 8px;
  right: 8px;
  transition: all 0.4s ease-in-out;
}

.ta-btn--toggle .ta-btn--toggle-line:nth-child(2) {
  left: 12px;
}

.ta-btn--toggle .ta-btn--toggle-line:nth-child(3) {
  margin-top: -6px;
}

.ta-btn--toggle .ta-btn--toggle-line:nth-child(4) {
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .ta-btn--toggle {
    display: flex;
  }

  .cssbuttons-io-button.desktop-contact-btn {
    display: none;
  }

  .mobile-contact-btn {
    display: flex;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px;
    gap: 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.4s ease;
    overflow-y: auto;
  }

  .navbar.active {
    right: 0;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    width: 100%;
    min-width: auto;
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .mega-menu {
    grid-template-columns: 1fr;
    width: 100%;
    transform: none;
    padding: 15px 0;
  }

  .menu-divider {
    display: none;
  }

  .header-container {
    padding: 12px 20px;
  }

  .logo img {
    height: 60px;
  }
}

/* Hamburger active transformation */
.ta-btn--toggle.active .ta-btn--toggle-line:nth-child(2),
.ta-btn--toggle.open .ta-btn--toggle-line:nth-child(2),
.ta-btn--toggle[data-active="true"] .ta-btn--toggle-line:nth-child(2) {
  opacity: 0 !important;
}

.ta-btn--toggle.active .ta-btn--toggle-line:nth-child(3),
.ta-btn--toggle.open .ta-btn--toggle-line:nth-child(3),
.ta-btn--toggle[data-active="true"] .ta-btn--toggle-line:nth-child(3) {
  margin-top: 0 !important;
  transform: translateY(-50%) rotate(45deg) !important;
}

.ta-btn--toggle.active .ta-btn--toggle-line:nth-child(4),
.ta-btn--toggle.open .ta-btn--toggle-line:nth-child(4),
.ta-btn--toggle[data-active="true"] .ta-btn--toggle-line:nth-child(4) {
  margin-top: 0 !important;
  transform: translateY(-50%) rotate(-45deg) !important;
}

/* Home Page Header (White) */
.home-header {
  background: #ffffff !important;
  border-bottom: 1px solid #eee !important;
  height: 95px; /* Match design height */
}

.home-header .logo a {
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  margin-top: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.home-header .navbar > a,
.home-header .navbar .dropdown > .dropbtn,
.home-header .ta-btn--icon {
  color: #1f2a44 !important;
}

.home-header .navbar a:hover,
.home-header .dropbtn:hover,
.home-header .dropdown:hover .dropbtn,
.home-header .dropdown.active .dropbtn {
  color: #EF9920 !important;
}

.home-header .ta-btn--toggle-line {
  background-color: #1c2539 !important;
}

/* Menu Icons */
.menu-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  vertical-align: middle;
}

.menu-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: 0.3s;
}

/* Specific fix for filled icons if any */
.menu-icon svg circle,
.menu-icon svg path[fill] {
  /* Some icons might need fill, but the design mostly uses strokes */
}


/* Ensure dropdown items still look good if they have icons */
.dropdown-content a {
  display: flex;
  align-items: center;
}

.menu-column a {
  display: flex;
  align-items: center;
}

/* Mega menu footer icon */
.view-all-btn .menu-icon {
  margin-right: 0;
  margin-left: 8px;
}

/* Dropdown Arrow Styling */
.dropdown-arrow {
  width: 14px;
  height: 14px;
  margin-left: 6px;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown:hover .dropdown-arrow,
.dropdown.active .dropdown-arrow {
  color: #EF9920;
}

.home-header .dropdown-arrow {
  color: #1f2a44 !important;
}

.home-header .dropdown:hover .dropdown-arrow,
.home-header .dropdown.active .dropdown-arrow {
  color: #EF9920 !important;
}

@media (min-width: 1025px) {
  .site-header {
    height: 95px;
  }
  .header-container {
    height: 100%;
    padding: 0 24px;
  }
  .logo img {
    height: 60px;
    width: auto;
  }

  /* Scrolled / Shrunk Header Styles */
  .site-header.header-scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .site-header.header-scrolled .logo img {
    height: 45px;
  }

  /* Home Page Scrolled Header Styles */
  .home-header.header-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
  .home-header.header-scrolled .logo a {
    width: auto !important;
    height: auto !important;
    margin-top: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}

/* Mobile overrides for Home Header Drawer */
@media (max-width: 1024px) {
  .home-header .navbar {
    background: #ffffff !important;
  }
  .home-header .navbar a,
  .home-header .navbar .dropdown > .dropbtn,
  .home-header .navbar .dropdown-content a,
  .home-header .navbar .mega-menu a,
  .home-header .navbar .mega-menu h4,
  .home-header .navbar .standard-dropdown-list a,
  .home-header .navbar .ta-inner-subnav a {
    color: #1f2a44 !important;
  }
  .home-header .navbar a:hover,
  .home-header .navbar .dropdown:hover > .dropbtn,
  .home-header .navbar .dropdown.active > .dropbtn,
  .home-header .navbar .dropdown-content a:hover,
  .home-header .navbar .mega-menu a:hover,
  .home-header .navbar .standard-dropdown-list a:hover,
  .home-header .navbar .ta-inner-subnav a:hover {
    color: #ef9920 !important;
  }
  .home-header .navbar .dropdown-arrow {
    color: #1f2a44 !important;
  }
  .home-header .navbar .dropdown.active > .dropbtn .dropdown-arrow {
    color: #ef9920 !important;
  }
}

@media (max-width: 480px) {
  .navbar {
    width: 100% !important;
  }
}


