/* ==============================
   RESET & LINK BASE
============================== */
.tz-main-menu a,
.tz-nav-links a {
    text-decoration: none !important;
}

/* ==============================
   MAIN MENU BASE
============================== */
.tz-main-menu > ul {
    padding-left: 0;
}

.tz-nav-links > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0;
}

.tz-main-menu > ul > li > a {
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    position: relative;
    padding: 8px 10px;
    transition: all 0.3s ease-in-out;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
}

@media (min-width: 1440px) {
    .tz-main-menu > ul > li > a {
        font-size: 15px;
    }
}

/* Hover text - Simplified to only change color */
.tz-main-menu > ul li a:hover {
    color: #85c815;
}

/* ==============================
   DROPDOWN ARROW
============================== */
/* Arrow adjustment for active dropdown items */
.tz-main-menu > ul li.has-dropdown > a.active ~ ::after {
    top: 19px; /* Adjusted for border */
}

.ph-caret-down {
    font-size: 14px;
    margin-left: 4px;
    color: #85c815;
    margin-top: 4px;
}

/* ==============================
   SUBMENU/DROPDOWN
============================== */
.tz-main-menu > ul li.has-dropdown .submenu {
    position: absolute;
    top: 100%;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    background: #000;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    box-shadow: rgb(17 12 46 / 0.15) 0 48px 100px -40px;
    transition: all 0.3s ease-in-out;
}

/* Desktop dropdown styles */
.has-dropdown .tz-submenu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
    min-width: 420px;
    content-visibility: auto;
    contain: layout paint style;
    contain-intrinsic-size: 500px;
    display: none;
    visibility: hidden;
    pointer-events: none;
}

@media (min-width: 1200px) {
    .tz-main-menu > ul li.has-dropdown .submenu {
        text-align: left;
        padding: 15px;
        width: 269px;
    }
    
    .tz-main-menu > ul li.has-dropdown .submenu.tz-mega-menu {
        width: 750px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .tz-main-menu > ul li:hover .submenu {
        visibility: visible;
        opacity: 1;
    }
    
    .has-dropdown:hover > .tz-submenu {
        display: grid;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 991px) {
    .has-dropdown .tz-submenu {
        grid-template-columns: 1fr;
        min-width: auto;
    }
}

.tz-main-menu > ul li.has-dropdown .submenu li a {
    line-height: 2.8rem;
    color: #fff;
    width: fit-content;
    border-left: 2px solid transparent;
}

.tz-main-menu > ul li.has-dropdown .submenu li a:hover {
    color: #85c815;
    padding-left: 15px;
}

/* ==============================
   HEADER
============================== */
.tz-header1 {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: #111;
    transition: all 0.3s ease-in-out;
}

.tz-header1.sticky {
    background: rgba(23, 23, 23, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: rgb(17 12 46 / 0.15) 0 48px 100px -40px;
}

.tz-header1__wrapper {
    padding: 1.25rem 0;
    background: transparent !important;
}

/* ==============================
   LOGO STYLES
============================== */
.tz-header1__logo img {
    max-width: 70px;
    height: auto;
}

@media (max-width: 767px) {
    .tz-header1__logo img {
        max-width: 70px;
    }
}

.tz-mobile-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    visibility: visible;
}

.tz-main-menu ul li a.active {
    border-top: 2px solid red;
    padding-top: 4px;
    padding-bottom: 4px;
    border-bottom: 2px solid red;
}

/* ==============================
   MOBILE MENU & SIDEBAR
============================== */
.tz-mobile-menu .tz-main-menu > ul {
    gap: 0;
}

.tz-mobile-menu .tz-main-menu > ul li {
    width: 100%;
}

.tz-mobile-menu .tz-main-menu > ul li a {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.tz-mobile-menu .tz-main-menu > ul li:not(:last-child) a {
    border-bottom: 1px solid #1d1d1d;
}

@media (max-width: 1196px) {
    .tz-header__desktop {
        display: none;
    }
}

.tz-mobile-menu .tz-main-menu > ul li.has-dropdown .submenu {
    position: static;
    visibility: visible;
    opacity: 1;
    display: none;
    background: #1d1d1d;
    padding: 10px;
    box-shadow: none;
}

/* Mobile Sidebar */
.tz-mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.tz-mobile-sidebar.open {
    right: 0;
}

@media (max-width: 480px) {
    .tz-mobile-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .tz-mobile-sidebar.open {
        right: 0;
    }
}

@media (min-width: 576px) {
    .tz-mobile-sidebar {
        padding: 50px;
    }
}

/* Sidebar Header */
.tz-mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tz-mobile-close:hover {
    background: rgba(133, 200, 21, 0.3);
}

/* Sidebar Content */
.tz-mobile-sidebar-content {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

/* Mobile Navigation */
.tz-mobile-nav {
    margin-bottom: 30px;
}

.tz-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul {
    list-style-type: none;
}

.tz-mobile-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(133, 200, 21, 0.1);
}

.tz-mobile-link {
    display: block;
    padding: 18px 25px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
}

.tz-mobile-link:hover,
.tz-mobile-link.active {
    background: linear-gradient(90deg, rgba(133, 200, 21, 0.1) 0%, transparent 100%);
    color: #85c815;
    padding-left: 30px;
}

.tz-mobile-link:hover::before,
.tz-mobile-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #85c815;
}

/* Dropdown Styles */
.tz-mobile-dropdown .tz-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}





.tz-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tz-mobile-dropdown.open .tz-dropdown-content {
    max-height: fit-content;
}

.tz-dropdown-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tz-dropdown-content li {
    border-bottom: 1px solid rgba(133, 200, 21, 0.03);
}

.tz-dropdown-content a {
    display: block;
    padding: 14px 25px 14px 40px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tz-dropdown-content a:hover {
    color: #85c815;
    background: rgba(133, 200, 21, 0.05);
    padding-left: 45px;
}

/* Contact Info */
.tz-mobile-contact {
    padding: 25px;
    border-top: 1px solid rgba(133, 200, 21, 0.1);
    margin-top: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item svg {
    color: #85c815;
    flex-shrink: 0;
}

/* ==============================
   HAMBURGER MENU TOGGLE
============================== */
.tz-mobile-toggle {
    background: none;
    border: 2px solid #85c815;
    border-radius: 24px;
    cursor: pointer;
    padding: 10px;
    width: 60px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    position: fixed;
    top: 33px;
    background: #85c815;
    right: 20px;
    color: white;
    transition: all 0.3s ease;
}

.tz-mobile-toggle:hover {
    background: rgba(133, 200, 21, 0.1);
    transform: scale(1.05);
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
    left: 3px;
    top: 3px;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #85c815;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
    background: white;
    width: 15px;
}

.hamburger span:nth-child(2) {
    top: 5px;
    background: white;
    width: 15px;
}

.hamburger span:nth-child(3) {
    top: 10px;
    background: white;
    width: 15px;
}

.mobile-menu-open .hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.mobile-menu-open .hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-open .hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* ==============================
   OVERLAYS
============================== */
.tz-body-overlay {
    position: fixed;
    inset: 0;
    background: rgb(24 24 24 / 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.45s;
}

.tz-body-overlay.opened {
    opacity: 1;
    visibility: visible;
}

.tz-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.tz-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==============================
   OFFCANVAS (Legacy)
============================== */
.tz-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #1d1d1d;
    backdrop-filter: blur(10px);
    transform: translateX(calc(100% + 80px));
    transition: all 0.3s ease-in-out;
}

.tz-offcanvas.opened {
    transform: translateX(0);
}

@media (min-width: 576px) {
    .tz-offcanvas {
        width: 450px;
    }
}

/* ==============================
   DOM OPTIMIZATION – MEGA MENU
============================== */
.has-dropdown .tz-submenu {
  content-visibility: auto;
  contain: layout paint style;
  contain-intrinsic-size: 500px;
  display: none;
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 992px) {
  .has-dropdown:hover > .tz-submenu {
    display: grid;
    visibility: visible;
    pointer-events: auto;
  }
}

/* ==============================
   BELOW-THE-FOLD OPTIMIZATION
============================== */
section,
footer,
.client-strip {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

/* ==============================
   HEADER MENU FIX (REAL WORKING VERSION)
============================== */
.tz-nav-links > ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tz-nav-links > ul > li > a {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 6px;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

.tz-nav-links a {
  text-decoration: none !important;
}


.tz-nav-links > ul > li > a:hover::after {
  width: 100%;
}

.tz-nav-links > ul > li.active > a,
.tz-nav-links > ul > li.current-menu-item > a {
  color: #ffffff;
}

.tz-nav-links > ul > li.active > a::before,
.tz-nav-links > ul > li.current-menu-item > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: -6px;
  width: 100%;
  height: 2px;
  background: #ff0000;
}

.tz-nav-links > ul > li.active > a::after,
.tz-nav-links > ul > li.current-menu-item > a::after {
  width: 100%;
}

/* ==============================
   MOBILE MENU LOGO FIX
============================== */
.tz-offcanvas img,
.mobile-menu img,
.offcanvas-header img {
  display: block !important;
  max-width: 120px;
  height: auto;
  margin: 10px auto;
}

/* ==============================
   CLOSE BUTTON BLACK BACKGROUND
============================== */
.tz-mobile-close {
  background: #000 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #85c815;
}

/* ==============================
   PREVENT HEADER MENU WRAPPING
============================== */
.tz-main-menu > ul {
  flex-wrap: nowrap !important;
}

.tz-main-menu > ul > li > a {
  white-space: nowrap !important;
}

.dropdown-arrow{
  display:inline-block;
  width:6px;
  height:6px;
  border-right:2px solid #84CC16;
  border-bottom:2px solid #84CC16;
  transform:rotate(45deg);
  margin-left:6px;
  margin-bottom: 4px;
}