/* =========================================================
   MODERN HEADER & FOOTER
   Brand palette: deep green, fresh green, warm yellow, white
   ========================================================= */

:root {
  --brand-green: #176b3a;
  --brand-green-dark: #104b2b;
  --brand-green-soft: #edf7ef;
  --brand-yellow: #f4c542;
  --header-text: #183126;
  --header-muted: #64756b;
  --header-border: #e4ebe5;
  --header-surface: #ffffff;
  --header-shadow: 0 12px 36px rgba(18, 55, 34, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 3px 18px rgba(16, 50, 29, 0.035);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 30px);
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(170px, 19vw, 238px);
  max-height: 62px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

/* Desktop navigation */
.nav {
  display: none;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.nav > a,
.nav-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--header-text);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav > a:hover,
.nav-item > a:hover,
.nav a.is-active {
  color: var(--brand-green);
  background: var(--brand-green-soft);
}

.nav > a:focus-visible,
.nav-item > a:focus-visible,
.mobile-menu a:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(244, 197, 66, 0.75);
  outline-offset: 3px;
}

.nav-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.has-dropdown:hover .nav-chevron,
.has-dropdown:focus-within .nav-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(560px, 80vw);
  padding: 10px;
  border: 1px solid var(--header-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--header-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -13px;
  height: 14px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-heading {
  margin: 0 0 13px;
  color: var(--brand-green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
}

.dropdown-grid a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  color: #405348;
  font-size: 0.87rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.dropdown-grid a:hover {
  color: var(--brand-green-dark);
  background: var(--brand-green-soft);
}

.dropdown-link-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 3px rgba(244, 197, 66, 0.16);
}

/* Header actions and search */
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid var(--header-border);
  border-radius: 12px;
  background: #fff;
  color: var(--brand-green-dark);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.icon-btn:hover {
  border-color: #c8ddcd;
  background: var(--brand-green-soft);
}

.icon-btn:active {
  transform: scale(0.97);
}

.icon-btn:focus-visible,
.search-submit:focus-visible {
  outline: 3px solid rgba(244, 197, 66, 0.8);
  outline-offset: 3px;
}

.icon-btn svg {
  display: block;
  width: 21px;
  height: 21px;
}

.search-toggle-btn {
  display: none;
}

.unified-search-container {
  width: clamp(190px, 21vw, 280px);
  min-width: 0;
}

.unified-search {
  width: 100%;
  margin: 0;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 5px 0 39px;
  border: 1px solid #e2eae3;
  border-radius: 12px;
  background: #f8faf8;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.search-input-wrapper:focus-within {
  border-color: #8ab99a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 107, 58, 0.08);
}

.search-field-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: #74877a;
  transform: translateY(-50%);
  pointer-events: none;
}

.unified-search input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--header-text);
  font: inherit;
  font-size: 0.86rem;
}

.unified-search input::placeholder {
  color: #829087;
  opacity: 1;
}

.unified-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  border: 0;
  border-radius: 9px;
  background: var(--brand-green);
  color: #fff;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.search-submit:hover {
  background: var(--brand-green-dark);
  transform: translateX(1px);
}

.search-submit svg {
  width: 17px;
  height: 17px;
}

/* Animated mobile menu icon */
.menu-btn {
  display: inline-flex;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 19px;
}

.menu-icon span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-btn[aria-expanded="true"] .menu-icon span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-btn[aria-expanded="true"] .menu-icon span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}


/* Mobile menu */

.mobile-menu {
    display: none;
    border-top: 1px solid var(--header-border);
    background: #fff;
    box-shadow: 0 14px 22px rgba(16, 50, 29, .06);
}

.mobile-menu.open {
    display: block;
    animation: menuReveal 180ms ease both;
}

.mobile-menu-inner {
    padding: 6px 20px 20px;
}

.mobile-menu-inner > a,
.mobile-industries-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 14px 4px;
    border-bottom: 1px solid #f0f3f0;
    color: var(--header-text);
    font-size: .97rem;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
}

.mobile-menu-inner > a:hover,
.mobile-industries-link:hover {
    color: var(--brand-green);
}

.mobile-industries-dropdown {
    display: none;
    padding: 8px 0 12px;
    border-bottom: 1px solid #f0f3f0;
}

.mobile-industries-dropdown.open {
    display: block;
}

.mobile-industries-dropdown a {
    padding: 9px 8px;
    border-radius: 7px;
    color: var(--header-muted);
    font-size: .86rem;
    line-height: 1.4;
    text-decoration: none;
}

.mobile-industries-dropdown a:hover {
    background: var(--brand-green-soft);
    color: var(--brand-green-dark);
}

.mobile-industries-link[aria-expanded="true"] .nav-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

@keyframes menuReveal {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Footer */

.site-footer {
    margin-top: 0;
    border-top: 1px solid var(--header-border);
    background: linear-gradient(180deg, #fff 0%, #f6faf6 100%);
}

.footer-top {
    padding: clamp(36px, 5vw, 60px) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.footer-col {
    min-width: 0;
}

.footer-logo-link {
    display: inline-flex;
    margin-bottom: 16px;
}

.footer-logo-link .brand-logo {
    width: clamp(175px, 21vw, 225px);
    max-height: 58px;
}

.footer-text {
    max-width: 340px;
    margin: 0;
    color: #68796e;
    font-size: .93rem;
    line-height: 1.8;
}

.footer-col h4 {
    position: relative;
    margin: 0 0 17px;
    padding-bottom: 11px;
    color: var(--header-text);
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.footer-col:not(.footer-brand-col) h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 3px;
    border-radius: 4px;
    background: var(--brand-yellow);
}

.footer-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    color: #607166;
    font-size: .9rem;
    line-height: 1.55;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.footer-links a:hover {
    color: var(--brand-green);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid var(--header-border);
    background: rgba(238, 246, 239, .72);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 22px;
    padding-top: 17px;
    padding-bottom: 17px;
    color: #718075;
    font-size: .83rem;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 650;
}

.footer-bottom a:hover {
    text-decoration: underline;
}


/* Responsive layout */

@media (min-width: 980px) {
    .nav {
        display: flex;
    }

    .menu-btn {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    .unified-search-container {
        width: clamp(185px, 20vw, 265px);
    }

    .footer-grid {
        grid-template-columns: minmax(230px, 1.55fr) repeat(3, minmax(120px, 1fr));
        gap: clamp(24px, 3vw, 46px);
    }

    .footer-col:not(.footer-brand-col) {
        padding-left: 22px;
        border-left: 1px solid var(--header-border);
    }
}

@media (max-width: 979px) {
    .header-inner {
        min-height: 74px;
    }

    .search-toggle-btn {
        display: inline-flex;
    }

    .unified-search-container {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        z-index: 1001;
        display: none;
        width: 100%;
        padding: 14px 20px 16px;
        border-bottom: 1px solid var(--header-border);
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 12px 20px rgba(16, 50, 29, .07);
    }

    .unified-search-container.active {
        display: block;
        animation: menuReveal 180ms ease both;
    }

    .search-input-wrapper {
        min-height: 48px;
    }

    .unified-search input {
        height: 46px;
        font-size: .95rem;
    }

    .search-submit {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
    }
}

@media (max-width: 640px) {
    .header-inner {
        gap: 10px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-logo {
        width: clamp(145px, 42vw, 190px);
        max-height: 54px;
    }

    .header-actions {
        gap: 7px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .footer-top {
        padding: 34px 0;
    }

    .footer-grid {
        gap: 0;
    }

    .footer-col {
        padding: 20px 0;
        border-top: 1px solid var(--header-border);
    }

    .footer-col:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .footer-col h4 {
        margin-bottom: 12px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* Homepage header: transparent over video, solid after scrolling */

.site-header.site-header-home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(12, 42, 23, .18);
    border-bottom-color: rgba(255, 255, 255, .18);
    box-shadow: none;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: background 200ms ease, box-shadow 200ms ease;
}

.site-header.site-header-home:not(.is-scrolled) .nav > a,
.site-header.site-header-home:not(.is-scrolled) .nav-item > a {
    color: #fff;
}

.site-header.site-header-home:not(.is-scrolled) .nav > a:hover,
.site-header.site-header-home:not(.is-scrolled) .nav-item > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.site-header.site-header-home:not(.is-scrolled) .icon-btn {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}


/* Header becomes the original solid style after scrolling */

.site-header.site-header-home.is-scrolled {
    position: fixed;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 3px 18px rgba(16, 50, 29, .08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.site-header.site-header-home.is-scrolled .nav > a,
.site-header.site-header-home.is-scrolled .nav-item > a {
    color: var(--header-text);
}

.site-header.site-header-home.is-scrolled .nav > a:hover,
.site-header.site-header-home.is-scrolled .nav-item > a:hover {
    color: var(--brand-green);
    background: var(--brand-green-soft);
}

.site-header.site-header-home.is-scrolled .icon-btn {
    background: #fff;
    border-color: var(--header-border);
    color: var(--brand-green-dark);
}


/* Keep the mobile menu readable */

.site-header.site-header-home .mobile-menu {
    background: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .site-header.site-header-home {
        transition: none;
    }
}

.brand-logo-white {
    display: none;
}

.brand-logo-original {
    display: block;
}


/* Transparent homepage header refinements */

.site-header.site-header-home:not(.is-scrolled) .brand-logo-white {
    display: block;
}

.site-header.site-header-home:not(.is-scrolled) .brand-logo-original {
    display: none;
}


/* Homepage after scrolling */

.site-header.site-header-home.is-scrolled .brand-logo-white {
    display: none;
}

.site-header.site-header-home.is-scrolled .brand-logo-original {
    display: block;
}

@media (min-width: 980px) {
    .site-header.site-header-home:not(.is-scrolled) .mobile-menu {
        background: rgba(12, 42, 23, .92);
        border-top-color: rgba(255, 255, 255, .2);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .site-header.site-header-home:not(.is-scrolled) .mobile-menu-inner > a,
    .site-header.site-header-home:not(.is-scrolled) .mobile-industries-link,
    .site-header.site-header-home:not(.is-scrolled) .mobile-industries-dropdown a {
        color: #fff;
    }

    .site-header.site-header-home:not(.is-scrolled) .mobile-menu-inner > a,
    .site-header.site-header-home:not(.is-scrolled) .mobile-industries-link,
    .site-header.site-header-home:not(.is-scrolled) .mobile-industries-dropdown {
        border-color: rgba(255, 255, 255, .18);
    }

    .site-header.site-header-home:not(.is-scrolled) .mobile-industries-dropdown a:hover {
        background: rgba(255, 255, 255, .12);
        color: #fff;
    }
}


.footer-social {
    display: flex;
    gap: 9px;
    margin-top: 18px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--header-border);
    border-radius: 10px;
    color: var(--brand-green);
    background: #fff;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.footer-social a:hover {
    background: var(--brand-green);
    color: #fff;
    transform: translateY(-2px);
}


/* =========================================================
   Two-panel Industries mega menu (desktop)
   ========================================================= */

.mega-dropdown {
  display: grid;
  grid-template-columns: 300px minmax(300px, 1fr);
  width: 720px;
  min-height: 300px;
  max-height: 75vh;
  padding: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  border: 1px solid var(--header-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(16, 50, 29, 0.14);
  overflow: hidden;
}

.has-dropdown:hover .mega-dropdown,
.has-dropdown:focus-within .mega-dropdown {
  transform: translateX(-50%) translateY(0);
}

.mega-sidebar {
  padding: 12px;
  border-right: 1px solid var(--header-border);
  background: #f8faf8;
  border-radius: 10px;
  max-height: calc(75vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

.mega-sidebar::-webkit-scrollbar {
  width: 6px;
}

.mega-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.mega-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.32);
}

.mega-sidebar .dropdown-heading {
  margin: 0 0 12px;
  padding: 4px 8px 10px;
  color: var(--header-muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mega-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 1.5px 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--header-text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mega-category span {
  font-size: 1.2rem;
  color: var(--header-muted);
}

.mega-category:hover,
.mega-category.active {
  background: var(--brand-green-soft);
  color: var(--brand-green-dark);
}

.mega-products {
  padding: 18px 22px;
  min-width: 0;
  max-height: calc(75vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

.mega-products::-webkit-scrollbar {
  width: 6px;
}

.mega-products::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.mega-products::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.32);
}

.mega-product-panel {
  display: none;
}

.mega-product-panel.active {
  display: block;
  animation: megaFadeIn 160ms ease;
}

.mega-product-panel h3 {
  margin: 2px 0 14px;
  color: var(--brand-green-dark);
  font-size: 1.05rem;
}

.mega-product-panel a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid #edf1ed;
  color: var(--header-muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 160ms ease, padding-left 160ms ease;
}

.mega-product-panel a:hover {
  padding-left: 5px;
  color: var(--brand-green);
}

@keyframes megaFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) and (min-width: 980px) {
  .mega-dropdown {
    width: 570px;
    grid-template-columns: 210px minmax(240px, 1fr);
  }
}


/* =========================================================
   Mobile two-panel category menu
   ========================================================= */

.mobile-mega-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 14px;
  padding: 6px 0 4px;
  max-height: 60vh;
}

.mobile-mega-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  padding-right: 8px;
  border-right: 1px solid var(--header-border);
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

.mobile-mega-categories::-webkit-scrollbar {
  width: 5px;
}

.mobile-mega-categories::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.mobile-mega-category {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--header-text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.mobile-mega-category.active,
.mobile-mega-category:hover {
  background: var(--brand-green-soft);
  color: var(--brand-green-dark);
}

.mobile-mega-products {
  min-width: 0;
  min-height: 0;
  padding-left: 8px;
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

.mobile-mega-products::-webkit-scrollbar {
  width: 5px;
}

.mobile-mega-products::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.mobile-mega-panel {
  display: none;
}

.mobile-mega-panel.active {
  display: block;
}

.mobile-mega-panel h4 {
  margin: 4px 0 10px;
  color: var(--brand-green-dark);
  font-size: 0.92rem;
  line-height: 1.35;
}

.mobile-mega-panel a {
  display: block;
  padding: 10px 2px;
  border-bottom: 1px solid #edf1ed;
  color: var(--header-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mobile-mega-panel a:hover {
  color: var(--brand-green);
}

.mega-view-all {
  display: inline-block;
  margin: 0 0 10px;
  padding: 8px 0;
  color: var(--brand-green);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(23, 107, 58, 0.35);
}

.mega-view-all:hover {
  color: var(--brand-green-dark);
  border-bottom-color: var(--brand-green-dark);
}

@media (max-width: 380px) {
  .mobile-mega-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: 10px;
    padding: 4px 0 2px;
  }

  .mobile-menu-inner {
    padding: 4px 14px 16px;
  }

  .mobile-menu-inner > a,
  .mobile-industries-link {
    min-height: 46px;
    padding: 12px 2px;
    font-size: 0.93rem;
  }

  .mobile-mega-category {
    padding: 8px;
    font-size: 0.8rem;
  }

  .mobile-mega-panel a {
    padding: 9px 2px;
    font-size: 0.8rem;
  }
}


/* =========================================================================
   FLOATING WHATSAPP CHAT WIDGET
   Sits above page content but below modals (z-index 9999)
   ========================================================================= */
.wa-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 12px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.12);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.wa-chat:hover,
.wa-chat:focus-visible {
  background: #1ebe5b;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(37, 211, 102, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.14);
}

.wa-chat:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.wa-chat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  flex: 0 0 auto;
}

.wa-chat__label {
  display: inline-block;
  white-space: nowrap;
}

/* Compact circular version on small screens */
@media (max-width: 540px) {
  .wa-chat {
    padding: 12px;
    border-radius: 50%;
    right: 16px;
    bottom: 16px;
  }
  .wa-chat__label {
    display: none;
  }
  .wa-chat__icon {
    width: 34px;
    height: 34px;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .wa-chat {
    transition: none;
  }
  .wa-chat:hover,
  .wa-chat:focus-visible {
    transform: none;
  }
}


/* Visual refinement: keep header controls comfortably spaced without changing behavior. */
@media (max-width: 768px) {
  .header-inner { column-gap: 14px; }
}