/*
Theme Name: Hammer International
Theme URI: https://hammerinternational.com
Author: Hammer International
Author URI: https://hammerinternational.com
Description: Premium industrial B2B WordPress theme for Hammer International - Global supplier of pipes, tubes, steel plates, fittings and flanges. Features custom product catalog, RFQ system, and enterprise-grade design.
Version: 2.2.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: hammer
Tags: industrial, b2b, manufacturing, steel, pipes, tubes, product-catalog, rfq
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* Brand Colors */
  --hm-navy:        #0B1B2E;
  --hm-navy-deep:   #060F1A;
  --hm-blue:        #1A3F6F;
  --hm-accent:      #2B7CE9;
  --hm-accent-dark: #1A5FBD;
  --hm-orange:      #E07B2A;

  /* Neutrals */
  --hm-steel:       #8A9BB0;
  --hm-silver:      #C8D4E0;
  --hm-light:       #F2F5F8;
  --hm-border:      #DDE3EC;
  --hm-white:       #FFFFFF;
  --hm-text:        #1A2535;
  --hm-muted:       #556070;

  /* Typography */
  --font-heading:   'Barlow Condensed', sans-serif;
  --font-body:      'Source Sans 3', sans-serif;

  /* Spacing */
  --section-pad:    80px 0;
  --container:      1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--hm-text);
  background: var(--hm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--hm-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--hm-accent-dark); }

ul, ol { list-style: none; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--hm-navy);
  line-height: 1.1;
  letter-spacing: .5px;
}

h1 { font-size: clamp(40px, 5vw, 64px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(22px, 2.5vw, 30px); }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-white { color: var(--hm-white) !important; }
.text-accent { color: var(--hm-accent) !important; }
.text-muted  { color: var(--hm-muted) !important; }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: var(--section-pad); }
.section-dark { background: var(--hm-navy); }
.section-navy { background: var(--hm-navy-deep); }
.section-light { background: var(--hm-light); }

.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .sec-sub { margin: 12px auto 0; }

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--hm-accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.sec-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--hm-accent);
  flex-shrink: 0;
}

.sec-title { margin-bottom: 12px; }
.sec-title.white { color: var(--hm-white); }

.sec-sub {
  font-size: 15px;
  color: var(--hm-muted);
  line-height: 1.8;
  max-width: 580px;
}
.sec-sub.white { color: var(--hm-silver); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.btn-primary {
  background: var(--hm-accent);
  color: var(--hm-white);
}
.btn-primary:hover {
  background: var(--hm-accent-dark);
  color: var(--hm-white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--hm-white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: var(--hm-white);
  color: var(--hm-navy);
  border-color: var(--hm-white);
}

.btn-outline-accent {
  background: transparent;
  color: var(--hm-accent);
  border: 2px solid var(--hm-accent);
}
.btn-outline-accent:hover {
  background: var(--hm-accent);
  color: var(--hm-white);
}

.btn-navy {
  background: var(--hm-navy);
  color: var(--hm-white);
}
.btn-navy:hover {
  background: var(--hm-blue);
  color: var(--hm-white);
}

.btn-white {
  background: var(--hm-white);
  color: var(--hm-accent);
}
.btn-white:hover {
  background: var(--hm-light);
  color: var(--hm-accent-dark);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--hm-white);
}
.btn-whatsapp:hover {
  background: #1da851;
  color: var(--hm-white);
}

.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 12px; }

/* ============================================================
   TOP BAR
   ============================================================ */
#topbar {
  background: var(--hm-navy-deep);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-left span,
.topbar-left a {
  font-size: 14px;
  color: var(--hm-steel);
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-left a:hover { color: var(--hm-silver); }

.topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.12);
}

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

.topbar-right a {
  font-size: 14px;
  color: var(--hm-steel);
}

.topbar-flag {
  font-size: 16px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 9998;
  background: var(--hm-white);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  border-bottom: 3px solid var(--hm-accent);
  transition: all .3s;
}

#site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 70px;
  width: auto;
}

.logo-text-wrap { display: flex; flex-direction: column; }
.logo-brand {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: var(--hm-navy);
  letter-spacing: 1px;
  line-height: 1;
}
.logo-sub {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hm-steel);
  line-height: 1;
  margin-top: 3px;
}
.logo-tagline {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--hm-accent);
  line-height: 1;
  margin-top: 2px;
}

/* Primary Nav */
#primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

#primary-nav > li {
  position: relative;
}

#primary-nav > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 20px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .2px;
  text-transform: none;
  color: var(--hm-navy);
  transition: color .2s, background .2s;
  border-radius: 4px;
  white-space: nowrap;
}

#primary-nav > li > a:hover {
  color: var(--hm-accent);
  background: rgba(43,124,233,.06);
}

#primary-nav > li.current-menu-item > a,
#primary-nav > li.current-menu-parent > a {
  color: #fff;
  background: var(--hm-accent);
  border-radius: 4px;
}

#primary-nav > li > a .nav-arrow {
  font-size: 10px;
  transition: transform .2s;
}

#primary-nav > li:hover > a .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--hm-white);
  min-width: 220px;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  border-top: 3px solid var(--hm-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s;
  z-index: 100;
}

#primary-nav > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hm-text);
  border-bottom: 1px solid var(--hm-border);
  transition: all .2s;
}

.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover {
  background: var(--hm-light);
  color: var(--hm-accent);
  padding-left: 24px;
}

/* Mega Menu for Products */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 640px;
  background: #ffffff;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  border-top: 3px solid var(--hm-accent);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s;
  z-index: 99999;
}

/* Every child of mega-menu must be white */
.mega-menu > *,
.mega-menu > div,
.mega-menu li,
.mega-menu li a {
  background: #ffffff;
}

#primary-nav > li:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-col-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hm-accent);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hm-border);
  margin-bottom: 12px;
}

.mega-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--hm-text);
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: all .2s;
}

.mega-menu li a:hover { color: var(--hm-accent); padding-left: 6px; }

.mega-menu li a::before {
  content: '→';
  font-size: 11px;
  color: var(--hm-accent);
  flex-shrink: 0;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.header-phone span {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hm-steel);
}

.header-phone a {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--hm-navy);
  letter-spacing: .5px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--hm-navy);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--hm-navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6,15,26,.97) 0%, rgba(11,27,46,.85) 55%, rgba(26,63,111,.4) 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image:
    repeating-linear-gradient(0deg, var(--hm-silver) 0, var(--hm-silver) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, var(--hm-silver) 0, var(--hm-silver) 1px, transparent 1px, transparent 48px);
}

.hero-accent-shape {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  background: var(--hm-accent);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .05;
}

.hero-left-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, var(--hm-accent), var(--hm-blue));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 80px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-eyebrow span {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--hm-accent);
  font-weight: 700;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--hm-accent);
}

#hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 900;
  color: var(--hm-white);
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: .95;
}

#hero h1 em {
  color: var(--hm-accent);
  font-style: normal;
  display: block;
}

.hero-desc {
  font-size: 15px;
  color: var(--hm-silver);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  gap: 0;
  background: rgba(6,15,26,.8);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 2px solid var(--hm-accent);
  width: fit-content;
}

.hero-stat {
  padding: 18px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}

.hero-stat:last-child { border-right: none; }

.hero-stat .num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--hm-accent);
  line-height: 1;
  display: block;
}

.hero-stat .lbl {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hm-steel);
  margin-top: 4px;
  display: block;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--hm-accent);
  padding: 20px 24px;
  text-align: center;
  min-width: 130px;
}

.about-image-badge .badge-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  color: var(--hm-white);
  line-height: 1;
  display: block;
}

.about-image-badge .badge-text {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-top: 4px;
  display: block;
}

.about-content .sec-sub { max-width: 100%; margin-bottom: 28px; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--hm-light);
  border-left: 3px solid var(--hm-accent);
}

.about-feature-icon {
  width: 36px;
  height: 36px;
  background: var(--hm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--hm-white);
  font-size: 16px;
}

.about-feature-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--hm-navy);
  margin-bottom: 3px;
}

.about-feature-text span {
  font-size: 12px;
  color: var(--hm-muted);
}

.about-certs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-badge {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--hm-accent);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   PRODUCT CATEGORIES
   ============================================================ */
#products .products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--hm-border);
}

.product-cat-card {
  background: var(--hm-white);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.product-cat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hm-accent);
  transform: scaleX(0);
  transition: transform .3s;
}

.product-cat-card:hover { background: var(--hm-navy); }
.product-cat-card:hover::before { transform: scaleX(1); }

.product-cat-card:hover .pc-title { color: var(--hm-white); }
.product-cat-card:hover .pc-sub   { color: var(--hm-silver); }
.product-cat-card:hover .pc-cta   { color: var(--hm-accent); }

.pc-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 900;
  color: rgba(42,124,233,.08);
  line-height: 1;
}

.product-cat-card:hover .pc-num { color: rgba(255,255,255,.04); }

.pc-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--hm-light);
}

.pc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.product-cat-card:hover .pc-img-wrap img { transform: scale(1.05); }

.pc-icon {
  width: 48px;
  height: 48px;
  background: var(--hm-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background .3s;
}

.product-cat-card:hover .pc-icon { background: var(--hm-accent); }

.pc-icon svg { width: 24px; height: 24px; stroke: var(--hm-accent); fill: none; stroke-width: 2; }
.product-cat-card:hover .pc-icon svg { stroke: var(--hm-white); }

.pc-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--hm-navy);
  letter-spacing: .5px;
  margin-bottom: 8px;
  transition: color .3s;
}

.pc-sub {
  font-size: 13px;
  color: var(--hm-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  transition: color .3s;
}

.pc-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hm-steel);
  transition: color .3s;
}

.products-cta-row {
  text-align: center;
  padding: 32px;
  background: var(--hm-light);
  border-top: 1px solid var(--hm-border);
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
#why-us .why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.08);
}

#why-us .why-card {
  padding: 36px 24px;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
  transition: background .3s;
  background: transparent;
}

#why-us .why-card:last-child { border-right: none; }
#why-us .why-card:hover { background: rgba(255,255,255,.06); }

.why-icon {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(43,124,233,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--hm-accent);
  transition: all .3s;
}

#why-us .why-card:hover .why-icon {
  background: var(--hm-accent);
  color: var(--hm-white);
  border-color: var(--hm-accent);
}

.why-icon svg { width: 26px; height: 26px; }

.why-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--hm-white);
  margin-bottom: 10px;
}

.why-desc {
  font-size: 14px;
  color: #fff;
  line-height: 1.7;
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
#industries .ind-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ind-card {
  background: var(--hm-white);
  border: 1px solid var(--hm-border);
  padding: 28px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
}

.ind-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hm-accent);
}

.ind-card:hover {
  background: var(--hm-navy);
  border-color: var(--hm-navy);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(11,27,46,.2);
}

.ind-card:hover .ind-title { color: var(--hm-white); }

.ind-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ind-icon svg { width: 36px; height: 36px; stroke: var(--hm-accent); fill: none; stroke-width: 1.5; }

.ind-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--hm-navy);
  letter-spacing: .3px;
  line-height: 1.3;
  transition: color .3s;
}

/* ============================================================
   CLIENT LOGOS
   ============================================================ */
#clients {
  padding: 32px 0;
  background: var(--hm-white);
  border-top: 1px solid var(--hm-border);
  border-bottom: 1px solid var(--hm-border);
}

.clients-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.clients-label {
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hm-navy);
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.clients-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  flex: 1;
}

.clients-logos img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(.5);
  transition: filter .3s;
}

.clients-logos img:hover { filter: grayscale(0%) opacity(1); }

/* ============================================================
   CERTIFICATIONS STRIP
   ============================================================ */
#certs-strip {
  background: var(--hm-navy-deep);
  padding: 28px 0;
  border-top: 3px solid var(--hm-accent);
}

.certs-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.certs-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--hm-steel);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cert-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

.certs-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  flex: 1;
}

.cert-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  transition: all .3s;
}

.cert-logo-item:hover {
  background: rgba(43,124,233,.1);
  border-color: var(--hm-accent);
}

.cert-logo-item img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(.7);
}

.cert-logo-item span {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--hm-silver);
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ============================================================
   GLOBAL OFFICES
   ============================================================ */
#offices .offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--hm-border);
  margin-top: 48px;
}

.office-card {
  background: var(--hm-white);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.office-card.primary { background: var(--hm-navy); }

.office-flag {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.office-country {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--hm-navy);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.office-card.primary .office-country { color: var(--hm-white); }

.office-type {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hm-accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.office-addr {
  font-size: 14px;
  color: var(--hm-muted);
  line-height: 1.8;
}

.office-card.primary .office-addr { color: var(--hm-silver); }

.office-contacts { margin-top: 20px; }

.office-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--hm-text);
}

.office-card.primary .office-contact-item { color: var(--hm-silver); }

.office-contact-item a { color: var(--hm-accent); font-weight: 600; }

/* ============================================================
   RFQ CTA SECTION
   ============================================================ */
#rfq-cta {
  background: var(--hm-accent);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

#rfq-cta::before {
  content: 'RFQ';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 200px;
  font-weight: 900;
  color: rgba(255,255,255,.05);
  line-height: 1;
}

.rfq-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.rfq-cta-text h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--hm-white);
  margin-bottom: 10px;
}

.rfq-cta-text p {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin: 0;
}

.rfq-cta-btns {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--hm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--hm-white);
}

.contact-detail strong {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--hm-muted);
  margin-bottom: 4px;
}

.contact-detail a,
.contact-detail span {
  font-size: 14px;
  color: var(--hm-text);
  font-weight: 600;
}

/* ============================================================
   FORMS
   ============================================================ */
.hm-form { }

.hm-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.hm-form .form-group { margin-bottom: 16px; }

.hm-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--hm-muted);
  margin-bottom: 6px;
}

.hm-form input,
.hm-form select,
.hm-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--hm-light);
  border: 1px solid var(--hm-border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--hm-text);
  outline: none;
  transition: border-color .2s, background .2s;
  appearance: none;
}

.hm-form input:focus,
.hm-form select:focus,
.hm-form textarea:focus {
  border-color: var(--hm-accent);
  background: var(--hm-white);
  box-shadow: 0 0 0 3px rgba(43,124,233,.1);
}

.hm-form textarea { min-height: 120px; resize: vertical; }

.hm-form .btn { width: 100%; justify-content: center; }

/* ============================================================
   PRODUCT SINGLE PAGE
   ============================================================ */
.product-single-hero {
  background: var(--hm-light);
  padding: 40px 0;
  border-bottom: 1px solid var(--hm-border);
}

.product-breadcrumbs {
  font-size: 12px;
  color: var(--hm-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-breadcrumbs a { color: var(--hm-accent); }
.product-breadcrumbs span { color: var(--hm-steel); }

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 60px 0;
}

.product-gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.product-gallery-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
  border-color: var(--hm-accent);
}

.product-info h1 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 10px;
}

.product-standard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--hm-accent);
  color: var(--hm-white);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.product-short-specs {
  background: var(--hm-light);
  padding: 20px;
  margin-bottom: 24px;
  border-left: 3px solid var(--hm-accent);
}

.product-short-specs table {
  width: 100%;
  font-size: 13px;
}

.product-short-specs td {
  padding: 6px 0;
  border-bottom: 1px solid var(--hm-border);
  vertical-align: top;
}

.product-short-specs td:first-child {
  color: var(--hm-muted);
  font-weight: 600;
  width: 45%;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.product-actions .btn { justify-content: center; }

.product-tabs {
  border-bottom: 2px solid var(--hm-border);
  display: flex;
  gap: 0;
  margin-bottom: 32px;
}

.product-tab {
  padding: 13px 24px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--hm-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.product-tab.active {
  color: var(--hm-accent);
  border-bottom-color: var(--hm-accent);
}

.product-tab-content { display: none; }
.product-tab-content.active { display: block; }

/* Tables */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.specs-table th {
  background: var(--hm-navy);
  color: var(--hm-white);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  letter-spacing: .5px;
  font-size: 12px;
}

.specs-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--hm-border);
  color: var(--hm-text);
}

.specs-table tr:nth-child(even) td { background: var(--hm-light); }
.specs-table tr:hover td { background: rgba(43,124,233,.04); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--hm-navy-deep);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand img { height: 65px; width: auto; max-width: 180px; object-fit: contain; display: block; }

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--hm-white);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--hm-steel);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hm-steel);
  font-size: 14px;
  transition: all .2s;
}

.footer-social a:hover {
  background: var(--hm-accent);
  border-color: var(--hm-accent);
  color: var(--hm-white);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hm-accent);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 13px;
  color: var(--hm-steel);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}

.footer-col ul li a::before {
  content: '›';
  color: var(--hm-accent);
  font-size: 16px;
  line-height: 1;
}

.footer-col ul li a:hover {
  color: var(--hm-silver);
  padding-left: 4px;
}

.footer-bottom {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom span {
  font-size: 12px;
  color: rgba(255,255,255,.2);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,.2);
}

.footer-bottom-links a:hover { color: var(--hm-steel); }

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */
#float-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  cursor: pointer;
  z-index: 9999;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
}

#float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,.6);
}

/* float-rfq old rule removed — see v5 fix below */

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  #primary-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  #why-us .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { display: none; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px 0; }
  #about .about-grid { grid-template-columns: 1fr; gap: 40px; }
  #products .products-grid { grid-template-columns: 1fr 1fr; }
  #industries .ind-grid { grid-template-columns: repeat(2, 1fr); }
  #offices .offices-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .rfq-cta-inner { flex-direction: column; text-align: center; }
  .product-layout { grid-template-columns: 1fr; gap: 40px; }
  .hm-form .form-row { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .mega-menu { display: none; }
}

@media (max-width: 480px) {
  #products .products-grid { grid-template-columns: 1fr; }
  #industries .ind-grid { grid-template-columns: 1fr 1fr; }
  #why-us .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-0  { margin-top: 0 !important; }
.mb-0  { margin-bottom: 0 !important; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* WP Alignment */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ====================================================
   PAGE TEMPLATES — INNER PAGES CSS
   ==================================================== */

/* Page Hero Bar */
.page-hero-bar {
  background: var(--hm-navy);
  padding: 80px 0 70px;
  position: relative;
  border-left: 0px;
  overflow: hidden;
}
.page-hero-bar::after {
  content: '';
  position: absolute;
  right: -150px; top: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(43,124,233,.06);
  pointer-events: none;
}
.page-hero-bar::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--hm-accent);
  z-index: 1;
}
.page-hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--hm-accent);
  margin-bottom: 16px;
}
.page-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 900;
  color: var(--hm-white);
  margin: 0 0 16px;
  line-height: 1.0;
  letter-spacing: -1px;
}
.page-hero-sub {
  font-size: 18px;
  color: var(--hm-silver);
  max-width: 600px;
  line-height: 1.7;
}
.page-hero-breadcrumb {
  font-size: 13px;
  color: var(--hm-silver);
}
.page-hero-breadcrumb a { color: var(--hm-accent); text-decoration: none; }
.page-hero-breadcrumb span { margin: 0 6px; }

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image-col { position: relative; }
.about-stat-box {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--hm-accent);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.about-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-stat-num { font-family: 'Barlow Condensed',sans-serif; font-size: 32px; font-weight: 800; color: #fff; }
.about-stat-label { font-size: 11px; color: rgba(255,255,255,.8); margin-top: 2px; }
.about-values { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.about-value-item { display: flex; align-items: flex-start; gap: 14px; }
.about-value-icon { font-size: 22px; min-width: 30px; }
.about-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Why Grid on inner pages */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* Inner-page why-cards get white background */
.why-grid .why-card {
  background: var(--hm-white);
  border: 1px solid #e8edf2;
  border-radius: 10px;
  padding: 28px 24px;
  transition: all .2s;
}
.why-grid .why-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.15); border-color: var(--hm-accent); }

/* ── HOMEPAGE WHY-US (dark navy section) — highest specificity overrides ── */
section#why-us.section-dark .why-grid { gap: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 0; }
section#why-us.section-dark .why-grid .why-card {
  background: transparent !important;
  border: none !important;
  border-right: 1px solid rgba(255,255,255,.1) !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 0 !important;
  transform: none !important;
  box-shadow: none !important;
}
section#why-us.section-dark .why-grid .why-card:hover {
  background: rgba(255,255,255,.05) !important;
  transform: none !important;
  box-shadow: none !important;
}
section#why-us.section-dark .why-card .why-title {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  margin-bottom: 10px !important;
  display: block !important;
  visibility: visible !important;
}
section#why-us.section-dark .why-card .why-desc {
  color: #b8cee8 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  display: block !important;
  visibility: visible !important;
}
section#why-us.section-dark .why-card .why-icon {
  border-color: rgba(43,124,233,.5);
  color: var(--hm-accent);
}
section#why-us.section-dark .why-card:hover .why-icon {
  background: var(--hm-accent) !important;
  color: #fff !important;
  border-color: var(--hm-accent) !important;
}

/* Offices grid on About/Global */
.offices-grid, .global-offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.office-card, .global-office-card {
  background: var(--hm-white);
  border: 2px solid #e8edf2;
  border-radius: 12px;
  padding: 36px;
  transition: all .2s;
}
.global-office-card.usa { border-color: #1a3a6b; }
.global-office-card.china { border-color: var(--hm-accent); }
.office-flag, .contact-flag { font-size: 36px; margin-bottom: 12px; display: block; }
.global-office-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.global-flag-wrap { font-size: 48px; }
.global-detail { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--hm-steel); margin-bottom: 10px; }
.global-detail a { color: var(--hm-accent); text-decoration: none; }
.global-office-role, .global-office-serves { font-size: 13px; margin-top: 12px; color: var(--hm-steel); }
.global-office-role strong, .global-office-serves strong { color: var(--hm-navy); }

/* Industries page */
.industry-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid #e8edf2;
}
.industry-detail-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.industry-detail-img img { width: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.industry-big-icon { font-size: 48px; margin-bottom: 12px; }
.industry-title { font-family: 'Barlow Condensed',sans-serif; font-size: 36px; font-weight: 800; color: var(--hm-navy); margin: 8px 0 16px; }
.industry-products-list ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.industry-products-list li { font-size: 13px; color: var(--hm-steel); }

/* Certifications */
.cert-detail-card {
  background: var(--hm-white);
  border: 1px solid #e8edf2;
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  transition: all .2s;
}
.cert-detail-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.1); border-color: var(--hm-accent); }
.cert-logo-box { height: 70px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cert-logo-box img { max-height: 60px; max-width: 140px; object-fit: contain; filter: grayscale(20%); }
.cert-text-logo { font-family: 'Barlow Condensed',sans-serif; font-size: 32px; font-weight: 900; color: var(--hm-navy); }
.cert-name { font-family: 'Barlow Condensed',sans-serif; font-size: 22px; font-weight: 700; color: var(--hm-navy); margin-bottom: 4px; }
.cert-org { font-size: 12px; color: var(--hm-accent); font-weight: 600; margin-bottom: 10px; }
.cert-desc { font-size: 13px; color: var(--hm-steel); line-height: 1.7; }
.cert-table-section { margin-top: 48px; }

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-office-block { display: flex; align-items: flex-start; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--hm-navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #d1dbe8;
  border-radius: 6px;
  font-size: 14px;
  color: var(--hm-navy);
  font-family: 'Source Sans 3', sans-serif;
  transition: border-color .2s;
  background: #fafbfc;
  box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--hm-accent);
  background: #fff;
}

/* Products catalog page */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-tab {
  padding: 9px 20px;
  border: 2px solid #d1dbe8;
  border-radius: 6px;
  background: var(--hm-white);
  color: var(--hm-steel);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .04em;
}
.cat-tab:hover, .cat-tab.active {
  background: var(--hm-accent);
  border-color: var(--hm-accent);
  color: #fff;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--hm-white);
  border: 1px solid #e8edf2;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,0,0,.12); border-color: var(--hm-accent); }
.product-img-wrap { position: relative; overflow: hidden; height: 200px; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-cat-badge { position: absolute; top: 12px; left: 12px; background: var(--hm-navy); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em; }
.product-cat-badge.cat-blue { background: var(--hm-accent); }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-title { font-family: 'Barlow Condensed',sans-serif; font-size: 18px; font-weight: 700; color: var(--hm-navy); margin-bottom: 6px; line-height: 1.2; }
.product-specs-line { font-size: 11px; color: var(--hm-accent); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.product-excerpt { font-size: 13px; color: var(--hm-steel); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.product-card-actions { display: flex; gap: 8px; }
.btn-product-view {
  flex: 1; text-align: center; padding: 9px 14px;
  background: var(--hm-navy); color: #fff;
  border-radius: 5px; text-decoration: none;
  font-size: 13px; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .04em;
  transition: background .2s;
}
.btn-product-view:hover { background: var(--hm-accent); }
.btn-product-rfq {
  flex: 1; text-align: center; padding: 9px 14px;
  background: transparent; color: var(--hm-accent);
  border: 2px solid var(--hm-accent);
  border-radius: 5px; text-decoration: none;
  font-size: 13px; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .04em;
  transition: all .2s;
}
.btn-product-rfq:hover { background: var(--hm-accent); color: #fff; }

/* Spec table (Certifications) */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table thead th { background: var(--hm-navy); color: #fff; padding: 12px 16px; text-align: left; font-family: 'Barlow Condensed',sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.spec-table tbody tr:nth-child(even) { background: #f4f7fb; }
.spec-table tbody td { padding: 11px 16px; color: var(--hm-text); border-bottom: 1px solid #e8edf2; }
.spec-table tbody td:first-child { font-weight: 600; color: var(--hm-navy); }

/* Logo fix */
.header-logo-img { height: 100px; width: auto; max-width: 260px; object-fit: contain; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .offices-grid,
  .global-offices-grid,
  .industry-detail-row { grid-template-columns: 1fr; gap: 32px; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .about-stat-box { position: static; margin-top: 24px; }
  .industry-detail-row { direction: ltr !important; }
  .industry-products-list ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v3.1 FIXES — Mobile + Float RFQ + Layout
   ============================================================ */

/* float-rfq v3.1 hide removed — see v5 fix */

/* FIX 2: Topbar — wrap properly on tablet, hide cleanly on mobile */
@media (max-width: 900px) {
  .topbar-inner {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .topbar-left {
    flex-wrap: wrap;
    gap: 8px;
  }
  .topbar-right { display: none; }
}
@media (max-width: 768px) {
  #topbar { display: none; }
}

/* FIX 3: Certifications strip — horizontal scroll on mobile, no vertical stack */
@media (max-width: 768px) {
  #certs-strip { padding: 20px 0; overflow: hidden; }
  .certs-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cert-divider { display: none; }
  .certs-logos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .cert-logo-item {
    padding: 6px 10px;
    flex: 0 0 auto;
  }
  .cert-logo-item span { font-size: 11px; }
  .cert-logo-item img { height: 20px; }
}

/* FIX 4: Client logos — single row horizontal scroll, no duplicates visible */
@media (max-width: 768px) {
  .clients-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .clients-logos {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 8px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .clients-logos::-webkit-scrollbar { display: none; }
  .clients-logos img {
    height: 28px;
    flex-shrink: 0;
    filter: grayscale(100%) opacity(.5);
  }
}

/* FIX 5: Header on mobile — prevent overflow */
@media (max-width: 768px) {
  .header-inner { padding: 10px 0; gap: 10px; }
  .header-phone { display: none; }
  /* Circular logo on mobile */
  .site-logo > div {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    border-radius: 50% !important;
  }
  .logo-brand { font-size: 18px; }
  #primary-nav > li > a { font-size: 16px; padding: 10px 14px; font-weight: 600; text-transform: none; }
}

/* FIX 6: Hero buttons stack neatly on mobile */
@media (max-width: 600px) {
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; text-align: center; }
  #hero { min-height: 520px; }
  #hero h1 { font-size: 42px; }
}

/* FIX 7: Footer mobile fixes */
@media (max-width: 600px) {
  #site-footer { padding-top: 48px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .footer-bottom-links { justify-content: center; }
}

/* FIX 8: Why-us grid on mobile */
@media (max-width: 600px) {
  #why-us .why-grid { grid-template-columns: 1fr; border: none; }
  #why-us .why-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* FIX 9: Industries grid 2-col on small screens */
@media (max-width: 600px) {
  #industries .ind-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ind-card { padding: 18px 10px; }
  .ind-title { font-size: 13px; }
}

/* FIX 10: About section image badge — prevent overflow on mobile */
@media (max-width: 768px) {
  .about-image-badge { right: 0; bottom: 0; }
  .about-image-wrap img { height: 280px; }
}

/* FIX 11: RFQ CTA section on mobile */
@media (max-width: 600px) {
  #rfq-cta { padding: 40px 0; }
  .rfq-cta-btns { flex-direction: column; width: 100%; }
  .rfq-cta-btns .btn { width: 100%; justify-content: center; }
}

/* FIX 12: WhatsApp float — move up slightly on mobile so it doesn't overlap content */
@media (max-width: 768px) {
  #float-whatsapp { bottom: 16px; right: 16px; width: 48px; height: 48px; font-size: 22px; }
}


/* ============================================================
   v5 FINAL FIXES — Mobile Overflow + Float RFQ Button
   ============================================================ */

/* === GLOBAL: Prevent ANY horizontal scroll on mobile === */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* === TOPBAR: Completely hidden on mobile, clean on tablet === */
@media (max-width: 900px) {
  #topbar { display: none !important; }
}

/* === HEADER: Full mobile fix === */
@media (max-width: 1024px) {

  /* Header inner: logo left, CTA+burger right, no overflow */
  .header-inner {
    padding: 10px 0;
    gap: 0;
    flex-wrap: nowrap;
    overflow: visible;
    width: 100%;
  }

  /* Logo shrinks but stays visible */
  .site-logo {
    flex-shrink: 0;
    max-width: 55%;
  }
  .site-logo img {
    height: 50px !important;
    width: auto;
  }
  .logo-text-wrap {
    display: none; /* hide text beside logo on mobile, keep image only */
  }

  /* Push CTA group to the right */
  .header-cta-group {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  /* Hide phone in header on mobile */
  .header-phone { display: none !important; }

  /* REQUEST RFQ button — smaller on mobile */
  .btn-rfq-header {
    padding: 8px 12px !important;
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap;
  }

  /* Container must not overflow */
  .container, .container-wide {
    padding: 0 16px;
    max-width: 100%;
    overflow: visible;
  }

  /* Primary nav hidden on mobile (hamburger takes over) */
  #primary-nav { display: none !important; }
  .mobile-menu-toggle { display: flex !important; }
}

@media (max-width: 600px) {
  /* Even smaller header on very small screens */
  .site-logo img { height: 44px !important; }
  .btn-rfq-header {
    padding: 7px 10px !important;
    font-size: 10px !important;
  }
  .header-inner { padding: 8px 0; }

  /* Hero section */
  #hero { min-height: 480px; }
  #hero h1 { font-size: 36px !important; line-height: 1.05; }
  .hero-eyebrow { font-size: 11px; }
  .hero-desc { font-size: 14px; }
  .hero-btns {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .hero-btns .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 20px;
  }
}

/* ============================================================
   FLOATING RFQ SIDE BUTTON — FULLY FIXED
   Replace broken rotated tab with proper fixed side button
   ============================================================ */

/* Remove the broken version entirely */
#float-rfq {
  /* Reset all old broken positioning */
  position: fixed !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  transform-origin: unset !important;
  
  /* Proper vertical tab design */
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  background: var(--hm-accent) !important;
  color: #fff !important;
  
  width: 36px;
  height: 120px;
  padding: 12px 8px;
  border-radius: 8px 0 0 8px; /* rounds on left side only */
  
  font-family: var(--font-heading), sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  
  writing-mode: vertical-rl;
  text-orientation: mixed;
  
  z-index: 998;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  
  transition: width 0.25s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
  outline: none;
}

#float-rfq:hover {
  width: 42px !important;
  right: 0 !important;
  background: var(--hm-accent-dark, #1565C0) !important;
  box-shadow: -6px 0 24px rgba(0,0,0,0.25);
}

/* Hide side RFQ tab on mobile — WhatsApp button is enough */
@media (max-width: 768px) {
  #float-rfq { display: none !important; }
}

/* ============================================================
   MOBILE NAV MENU — ensure it works cleanly
   ============================================================ */
#mobile-nav {
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
#mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--hm-white);
  font-family: var(--font-heading), sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  letter-spacing: 0.04em;
}
#mobile-nav a:hover { color: var(--hm-accent); }
#mobile-nav .mobile-nav-sub {
  padding-left: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hm-silver);
}

/* ============================================================
   PRODUCT GRID — mobile
   ============================================================ */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px;
  }
  .product-title { font-size: 14px; }
  .product-specs-line { font-size: 10px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   SECTION PADDING — tighter on mobile
   ============================================================ */
@media (max-width: 768px) {
  .section, [class*="section"] {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .sec-title, .section-title {
    font-size: clamp(26px, 6vw, 38px) !important;
  }
}

/* ============================================================
   FOOTER — mobile clean
   ============================================================ */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-cert-strip { display: none; }
}

/* ============================================================
   PREVENT IMAGE OVERFLOW GLOBALLY
   ============================================================ */
img, video, iframe, svg {
  max-width: 100%;
}

/* All sections must not overflow */
section, header, footer, div {
  max-width: 100%;
}

/* Tables on mobile — horizontal scroll */
table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}



/* ============================================================
   v6 MEGA MENU — FINAL FIX (overrides everything)
   ============================================================ */
#site-header { z-index: 9998 !important; overflow: visible !important; }
#main-nav    { overflow: visible !important; position: static; }
#primary-nav { overflow: visible !important; position: relative; }
#primary-nav > li { position: relative !important; }

.mega-menu {
  background: #ffffff !important;
  z-index: 99999 !important;
  left: 0 !important;
  top: 100% !important;
}
.mega-menu > div { background: #ffffff !important; }
.mega-menu li   { background: #ffffff !important; list-style: none; }
.mega-menu li a { background: #ffffff !important; }

#primary-nav > li:hover > .mega-menu,
#primary-nav > li:focus-within > .mega-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* ============================================================
   v7 — MEGA MENU FIX (3-col + CTA col, no bleed, solid bg)
   ============================================================ */
#primary-nav { display:flex; align-items:center; gap:0; list-style:none; }
#primary-nav > li { position:relative; }
#primary-nav > li > a {
  display:flex; align-items:center; gap:4px;
  padding:10px 13px; font-size:12px; font-weight:700;
  letter-spacing:.5px; text-transform:uppercase;
  color:var(--hm-muted); text-decoration:none; transition:color .2s;
}
#primary-nav > li > a:hover { color:var(--hm-accent); }
#primary-nav > li.has-mega { position:static; }
.nav-arrow { font-size:9px; transition:transform .2s; }
#primary-nav > li.has-mega:hover .nav-arrow { transform:rotate(180deg); }

/* MEGA MENU — solid, contained, no bleed */
.mega-menu {
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  width:860px;
  background:var(--hm-white);
  box-shadow:0 12px 48px rgba(0,0,0,.15);
  border-top:3px solid var(--hm-accent);
  border-bottom:1px solid var(--hm-border);
  display:grid;
  grid-template-columns:1fr 1fr 1fr 180px;
  gap:0;
  opacity:0; visibility:hidden;
  transform:translateX(-50%) translateY(8px);
  transition:all .25s;
  z-index:9999;
}
#primary-nav > li.has-mega:hover .mega-menu {
  opacity:1; visibility:visible;
  transform:translateX(-50%) translateY(0);
}
.mega-col { padding:24px 20px; border-right:1px solid var(--hm-border); }
.mega-col:last-of-type { border-right:none; }
.mega-col-title {
  font-size:10px; font-weight:700; letter-spacing:2px;
  text-transform:uppercase; color:var(--hm-accent);
  padding-bottom:8px; border-bottom:1px solid var(--hm-border);
  margin-bottom:10px;
}
.mega-col ul { list-style:none; padding:0; margin:0; }
.mega-col ul li a {
  display:flex; align-items:center; gap:7px;
  padding:6px 0; font-size:12px; font-weight:600;
  color:var(--hm-text); text-decoration:none;
  border-bottom:1px solid rgba(0,0,0,.04);
  transition:all .2s;
}
.mega-col ul li a::before { content:'›'; color:var(--hm-accent); font-size:14px; line-height:1; flex-shrink:0; }
.mega-col ul li a:hover { color:var(--hm-accent); padding-left:5px; }
.mega-cta {
  padding:24px 16px;
  background:var(--hm-light);
}

/* Regular dropdown (non-mega) */
.sub-menu {
  position:absolute; top:calc(100% + 0px); left:0;
  background:var(--hm-white); min-width:210px;
  box-shadow:0 8px 32px rgba(0,0,0,.12);
  border-top:3px solid var(--hm-accent);
  opacity:0; visibility:hidden;
  transform:translateY(8px); transition:all .25s; z-index:9999;
}
#primary-nav > li:hover .sub-menu { opacity:1; visibility:visible; transform:translateY(0); }
.sub-menu li a { display:block; padding:10px 18px; font-size:12px; font-weight:600; color:var(--hm-text); border-bottom:1px solid var(--hm-border); transition:all .2s; }
.sub-menu li:last-child a { border-bottom:none; }
.sub-menu li a:hover { background:var(--hm-light); color:var(--hm-accent); padding-left:24px; }

/* ============================================================
   v7 — MOBILE MEGA MENU hidden, float RFQ removed
   ============================================================ */
#float-rfq { display:none !important; }

@media (max-width:1100px) {
  .mega-menu { width:700px; grid-template-columns:1fr 1fr 180px; }
  .mega-col:nth-child(3) { display:none; }
}
@media (max-width:1024px) {
  #main-nav { display:none; }
  .mobile-menu-toggle { display:block; }
}
@media (max-width:768px) {
  #topbar { display:none; }
  .header-phone { display:none; }
}
@media (max-width:600px) {
  .hero-btns { flex-direction:column; gap:10px; }
  .hero-btns .btn { width:100%; justify-content:center; }
}

/* ============================================================
   v7 — CONTACT PAGE single-source styling
   ============================================================ */
.contact-grid { display:grid; grid-template-columns:1fr 1.5fr; gap:60px; align-items:start; }
@media(max-width:768px) { .contact-grid { grid-template-columns:1fr; } }
.contact-info-box {
  background:var(--hm-navy); padding:36px; margin-bottom:20px;
}
.contact-detail-row {
  display:flex; gap:14px; margin-bottom:20px; align-items:flex-start;
}
.contact-detail-icon {
  width:42px; height:42px; background:var(--hm-accent);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; font-size:18px; color:#fff;
}
.contact-detail-text strong {
  display:block; font-size:10px; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--hm-steel); margin-bottom:4px;
}
.contact-detail-text a, .contact-detail-text span {
  font-size:17px; color:#fff !important; font-weight:700; line-height:1.6;
}
.contact-detail-text a { color:#fff !important; }
.contact-info-box a { color:#fff !important; }

/* ============================================================
   v7 — PRODUCTS GRID auto from CPT
   ============================================================ */
.products-cpt-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:2px; background:var(--hm-border);
}
@media(max-width:900px) { .products-cpt-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:480px) { .products-cpt-grid { grid-template-columns:1fr; } }

/* ============================================================
   v8 — PRODUCT DETAIL PAGE ADDITIONS
   ============================================================ */
.product-features-box {
  background: var(--hm-section-gray, #f4f7fb);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}
.product-features-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--hm-navy);
  margin-bottom: 12px;
}
.product-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--hm-text);
}
.feat-check {
  color: var(--hm-accent);
  font-weight: 700;
  font-size: 15px;
  min-width: 16px;
}
.product-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.product-app-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--hm-section-gray, #f4f7fb);
  border: 1px solid #e8edf2;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hm-navy);
}
.app-icon { color: var(--hm-accent); font-size: 16px; }

.product-why-block {
  background: var(--hm-navy);
  padding: 28px !important;
  border-radius: 10px;
  border: none !important;
}
.product-why-block .product-section-title { color: #fff !important; border-color: var(--hm-accent) !important; }
.product-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}
.product-why-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  line-height: 1.6;
}
.product-why-item span { font-size: 22px; min-width: 28px; }
.product-why-item strong { color: #fff; display: block; margin-bottom: 2px; }
.product-rfq-block {
  background: var(--hm-section-gray, #f4f7fb);
  padding: 28px;
  border-radius: 10px;
  margin-top: 28px;
}

/* ── PRODUCT CATALOG — bigger category tabs ── */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.cat-tab {
  padding: 9px 18px;
  border: 2px solid #d1dbe8;
  border-radius: 6px;
  background: #fff;
  color: var(--hm-steel);
  font-weight: 700;
  font-size: 13px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}
.cat-tab:hover, .cat-tab.active {
  background: var(--hm-accent);
  border-color: var(--hm-accent);
  color: #fff;
}

@media (max-width: 900px) {
  .product-why-grid { grid-template-columns: 1fr; }
  .product-apps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .product-apps-grid { grid-template-columns: 1fr; }
  .cat-tabs { gap: 6px; }
  .cat-tab { font-size: 11px; padding: 7px 12px; }
}
