/* TOP BAR */
.topbar {
  background: var(--primary);
  color: var(--white);
  font-size: 12.5px;
  padding: 7px 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  position: relative;
  z-index: 1000;
}
.topbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Left */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.topbar-item:hover { color: var(--secondary); }
.topbar-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke-width: 2px;
}

/* Right */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Location dropdown */
.location-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}
.location-switch {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  font-family: var(--font-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 14px;
  outline: none;
}
.location-switch option { background: var(--primary); color: var(--white); }
.select-arrow {
  width: 11px;
  height: 11px;
  color: rgba(255,255,255,0.7);
  pointer-events: none;
  margin-left: -12px;
}
.location-wrapper .topbar-icon { color: rgba(255,255,255,0.7); }

/* Divider */
.topbar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
}

/* Social icons */
.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.social-link svg { width: 13px; height: 13px; stroke-width: 2px; }
.social-link:hover {
  color: var(--white);
  background: rgba(0,194,168,0.25);
  transform: translateY(-1px);
}


/* ============================================================
   MAIN HEADER
============================================================ */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 999;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 4px 24px rgba(11,31,58,0.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  transition: padding 0.3s ease;
}
.header.scrolled .header-inner { padding: 7px 0; }


/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}
.header.scrolled .logo img { height: 36px; }


/* ============================================================
   NAV
============================================================ */
.nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--secondary);
  background: rgba(0,194,168,0.06);
}
.nav-arrow {
  width: 13px;
  height: 13px;
  stroke-width: 2.5px;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.nav-item:hover > .nav-link .nav-arrow { transform: rotate(180deg); }


/* ============================================================
   MEGA MENU — DESKTOP
============================================================ */
.mega-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--mega-top, 60px);
  background: var(--white);
  border-top: 2px solid var(--secondary);
  box-shadow: 0 20px 60px rgba(11,31,58,0.12);
  padding: 32px 0 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 998;
}
.has-mega:hover > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner { display: flex; flex-direction: column; gap: 20px; }

.mega-header { border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 14px; }
.mega-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
}
.mega-subtitle { font-size: 12.5px; color: var(--text-light); }

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mega-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border: 1px solid transparent;
}
.mega-card:hover {
  background: rgba(0,194,168,0.06);
  border-color: rgba(0,194,168,0.2);
  transform: translateY(-2px);
}
.mega-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(0,194,168,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--secondary);
  transition: background 0.2s;
}
.mega-card-icon--alt {
  background: rgba(11,31,58,0.07);
  color: var(--primary);
}
.mega-card:hover .mega-card-icon { background: rgba(0,194,168,0.22); }
.mega-card:hover .mega-card-icon--alt { background: rgba(11,31,58,0.13); }
.mega-card-icon svg { width: 17px; height: 17px; stroke-width: 2px; }

.mega-card-body { display: flex; flex-direction: column; gap: 2px; }
.mega-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.mega-card-desc {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.4;
}
.mega-card:hover .mega-card-title { color: var(--secondary); }

.mega-footer { padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.05); }
.mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  transition: gap 0.2s;
}
.mega-cta svg { width: 14px; height: 14px; }
.mega-cta:hover { gap: 10px; }


/* ============================================================
   PRODUCTS MEGA MENU — 5-column layout (DESKTOP)
============================================================ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.prod-col {
  padding: 4px 20px 4px 0;
  border-right: 1px solid rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prod-col:first-child { padding-left: 0; }
.prod-col:last-child { border-right: none; padding-right: 0; }

.prod-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0 0 10px 0;
  border-bottom: 2px solid var(--secondary);
  margin-bottom: 8px;
  display: block;
}
.prod-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.prod-link:hover {
  background: rgba(0,194,168,0.07);
  color: var(--secondary);
  transform: translateX(3px);
}
.prod-link-icon {
  width: 26px;
  height: 26px;
  background: rgba(0,194,168,0.09);
  border: 1px solid rgba(0,194,168,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  flex-shrink: 0;
  transition: background 0.18s;
}
.prod-link:hover .prod-link-icon { background: rgba(0,194,168,0.18); }


/* ============================================================
   DROPDOWN MENU (More) — DESKTOP
============================================================ */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(11,31,58,0.12);
  border: 1px solid rgba(0,0,0,0.07);
  min-width: 192px;
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  z-index: 998;
}
.has-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.dropdown-item svg { width: 14px; height: 14px; color: var(--text-light); flex-shrink: 0; }
.dropdown-item:hover { background: rgba(0,194,168,0.07); color: var(--secondary); }
.dropdown-item:hover svg { color: var(--secondary); }

/* Mobile submenu lists — hidden on desktop */
.mobile-submenu { display: none; }
.nav-close { display: none; }
.nav-mobile-cta { display: none; }


/* ============================================================
   HEADER ACTIONS
============================================================ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--secondary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,194,168,0.30);
}
.btn-primary:hover {
  background: #00a891;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,194,168,0.38);
}


/* ============================================================
   HAMBURGER
============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger:hover { border-color: transparent; }


/* ============================================================
   MOBILE OVERLAY
============================================================ */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.45);
  z-index: 990;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.mobile-overlay.active { opacity: 1; pointer-events: auto; }


/* ============================================================
   ACCORDION TOGGLE (shared utility)
============================================================ */
.acc-toggle { display: none; }

label.nav-link {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}


/* ============================================================
   RESPONSIVE — TABLET / MOBILE  (≤ 1024px)
   DESKTOP IS COMPLETELY UNTOUCHED ABOVE THIS BREAKPOINT
============================================================ */
@media (max-width: 1024px) {

  /* ── Topbar ── */
  .topbar-left .topbar-item span { display: none; }

  /* ── Show hamburger ── */
  .hamburger { display: flex; }
  .mobile-overlay { display: block; }
 .hamburger-icon {
    width: 28px;
    height: 28px;
    display: block;
  }
  /* ── Hide desktop Contact Us in header-actions; show only hamburger ── */
  .header-actions .btn-primary { display: none; }

  /* ── Close button inside drawer ── */
 .nav-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  color: var(--text-dark);
  transition: color 0.2s;
  box-sizing: border-box;
  margin-top: 54px;
}
.nav-close:hover { color: var(--secondary); }

  /* ── Nav drawer ── */
  .nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100dvh;
    background: var(--white);
    box-shadow: -6px 0 30px rgba(11,31,58,0.12);
    overflow-y: auto;
    z-index: 995;
    transition: right 0.35s cubic-bezier(.4,0,.2,1);
    padding: 0 0 32px;
    display: flex;
    flex-direction: column;
  }
  .nav.nav--open { right: 0; }

  /* ── Nav list ── */
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    flex: 1;
  }

  /* ── Nav links — clean, no icons ── */
  .nav-link,
  label.nav-link {
    display: flex;
    padding: 14px 20px;
    border-radius: 0;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    width: 100%;
    box-sizing: border-box;
    color: var(--text-dark);
  }
  .nav-link:hover,
  label.nav-link:hover {
    background: rgba(0,194,168,0.05);
    color: var(--secondary);
  }

  /* Arrow rotation on open */
  .nav-item:hover > .nav-link .nav-arrow,
  .nav-item:hover > label.nav-link .nav-arrow { transform: none; }
  .acc-toggle:checked + label.nav-link .nav-arrow,
  .acc-toggle:checked ~ label.nav-link .nav-arrow { transform: rotate(180deg); }

  /* ── Hide desktop mega/dropdown completely on mobile ── */
  .mega-menu > .container,
  .dropdown-menu {
    display: none !important;
  }

  /* ── Hide the desktop mega wrapper positioning ── */
  .mega-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .has-mega > .mega-menu { max-height: 0; }
  .acc-toggle:checked ~ .mega-menu { max-height: 1200px; }

  /* ── Mobile submenu — flat clean list ── */
  .mobile-submenu {
    display: block;
    list-style: none;
    margin: 0;
    padding: 4px 0 8px 0;
    background: #f8fffe;
  }

  .mobile-submenu li a {
    display: block;
    padding: 10px 20px 10px 32px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: color 0.2s, background 0.2s;
  }
  .mobile-submenu li a:hover {
    color: var(--secondary);
    background: rgba(0,194,168,0.06);
  }
  .mobile-submenu li:last-child a { border-bottom: none; }

  /* ── Category headings inside mobile submenu ── */
  .mobile-submenu-heading {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary);
    padding: 10px 20px 4px 20px;
    margin-top: 4px;
  }

  /* ── More dropdown on mobile ── */
  .has-dropdown > .dropdown-menu { display: none !important; }

  .mobile-submenu--dropdown {
    display: block;
    list-style: none;
    margin: 0;
    padding: 4px 0 8px 0;
    background: #f8fffe;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .acc-toggle:checked ~ .mobile-submenu--dropdown { max-height: 400px; }

  /* ── Mobile CTA button at bottom of drawer ── */
  .nav-mobile-cta {
    display: flex;
    padding: 20px;
    margin-top: auto;
  }
  .nav-mobile-cta .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 13px 20px;
  }
}


/* SMALL MOBILE (≤ 640px) */
@media (max-width: 640px) {
  .topbar-left { gap: 12px; }
  .topbar-item { gap: 4px; }
  .social-icons { gap: 6px; }
  .social-link { width: 22px; height: 22px; }
}

@media (max-width: 380px) {
  .social-icons { display: none; }
  .topbar-divider { display: none; }
}