/* ============================================================
   SP Global Styles — Steel Pallet Racks B2B Theme
   ============================================================ */

/* --- CSS Variables & Design Tokens --- */
:root:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  --blue:    #1a202c;
  --blue2:   #1f2937;
  --accent:  #f0a500;
  --accent2: #e8920a;
  --text:    #1e2937;
  --muted:   #5a6a80;
  --white:   #ffffff;
  --soft:    #f4f6f9;
  --border:  #dce3ec;
  --radius:  16px;
  --radius-sm: 10px;
  --shadow:  0 12px 32px rgba(0,48,135,.08);
  --shadow-card: 0 6px 20px rgba(0,48,135,.07);
  --tr: .25s ease;
}

/* --- Reset & Base --- */
*:where(:not(.spc,.spc *),.spc-functional,.spc-functional *), *:where(:not(.spc,.spc *),.spc-functional,.spc-functional *)::before, *:where(:not(.spc,.spc *),.spc-functional,.spc-functional *)::after { box-sizing: border-box; margin: 0; padding: 0; }

body:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size-adjust: from-font;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){ max-width: 100%; height: auto; display: block; }
a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){ text-decoration: none; transition: color .2s; }

.container:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Divider ---------- */
.divider:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    border: none;
    border-top: 2px solid #e4e8ef;
    margin-block: 48px;
}

/* ---------- Typography Helpers ---------- */
.lead:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    font-size: 1.125rem;
    line-height: 1.75;
    color: #4a5568;
    max-width: 680px;
}

.section-tag:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #e8920a;
    margin-bottom: 10px;
}

.section-title:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    color: #1b3d6e;
    margin-bottom: 12px;
}

.section-sub:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    font-size: 1rem;
    color: #5a6a82;
    max-width: 620px;
    line-height: 1.7;
}

/* --- Header --- */
.sp-header:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue);          /* Slate Dark */
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(26,32,44,0.18);
}

.sp-header__inner:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.sp-header__logo:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  max-width: 320px;
}

.sp-header__logo-container:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-header__logo-svg:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
  transition: transform var(--tr);
}

.sp-header__logo:hover .sp-header__logo-svg:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  transform: scale(1.05) rotate(1deg);
}

.sp-header__logo-text-group:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sp-header__logo-title:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  font-size: 1.05rem;
  font-weight: 850;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
}

.sp-header__logo-subtitle:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  font-size: 0.62rem;
  font-weight: 700;
  color: #f0a500;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
  font-family: "Inter", sans-serif;
}

/* Nav */
.sp-nav:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: flex;
  align-items: center;
}

.sp-nav__list:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-nav__item:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  position: relative;
}

.sp-nav__item a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.sp-nav__item a:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-nav__item.is-active > a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Multi-level Dropdown Menu Styling */
.menu-item-has-children > a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  padding-right: 28px !important;
  position: relative;
}

.menu-item-has-children > a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *)::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(255,255,255,0.7);
  transition: transform 0.2s;
}

.menu-item-has-children:hover > a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *)::after {
  transform: translateY(-50%) rotate(180deg);
  border-top-color: #fff;
}

/* Floating Sub-Menu Card */
.sp-nav__list .sub-menu:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1100;
  min-width: 240px;
  background: var(--blue); /* Slate */
  border: 2px solid var(--accent); /* Gold */
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  
  /* Smooth opacity & transform transition */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
}

/* Show Sub-Menu on Hover */
.sp-nav__item:hover > .sub-menu:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-nav__item.sfHover > .sub-menu:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

/* Sub-Menu Items */
.sp-nav__list .sub-menu li:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  width: 100%;
  position: relative;
}

.sp-nav__list .sub-menu a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: block;
  padding: 10px 20px !important;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0;
  background: transparent !important;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.sp-nav__list .sub-menu a:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-nav__list .sub-menu li.is-active > a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: rgba(255,255,255,0.08) !important;
  color: #fff;
  padding-left: 24px !important; /* Premium indent micro-animation */
}

/* Second-level nested sub-menus (3rd tier) */
.sp-nav__list .sub-menu .sub-menu:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  top: 0;
  left: 100%;
  transform: translateX(12px);
}

.sp-nav__list .sub-menu li:hover > .sub-menu:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  transform: translateX(0);
}

/* CTA Button */
.sp-nav__item--cta a.btn.btn-primary:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: #f0a500;
  color: var(--blue);
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

.sp-nav__item--cta a.btn.btn-primary:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: #ffc107;
  transform: translateY(-1px);
}

/* --- Hamburger Toggle (mobile) --- */
.sp-nav__toggle:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sp-nav__toggle span:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger → X when open */
.sp-nav__toggle[aria-expanded="true"] span:nth-child(1):where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  transform: translateY(8.5px) rotate(45deg);
}
.sp-nav__toggle[aria-expanded="true"] span:nth-child(2):where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  opacity: 0;
}
.sp-nav__toggle[aria-expanded="true"] span:nth-child(3):where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --- Mobile breakpoint --- */
@media  (max-width: 768px) {
  .sp-nav__toggle:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){ display: flex; }

  .sp-nav:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--blue);
    border-top: 2px solid var(--accent);
    padding: 16px 24px 20px;
    display: none;                /* JS toggles to flex */
    flex-direction: column;
    align-items: flex-start;
  }

  .sp-nav.is-open:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){ display: flex; }

  .sp-nav__list:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
  }

  .sp-nav__item:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){ width: 100%; }

  .sp-nav__item a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    width: 100%;
    padding: 12px 8px;
    font-size: 1rem;
  }

  .sp-nav__item--cta a.btn.btn-primary:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    width: 100%;
    text-align: center;
  }

  /* Mobile Dropdown Rules */
  .sp-nav__list .sub-menu:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none !important;
    min-width: 100%;
    background: rgba(0,0,0,0.15);
    border: none;
    border-left: 2px solid rgba(255,255,255,0.2);
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 4px 12px;
    margin-top: 4px;
    margin-bottom: 4px;
  }

  .sp-nav__item.menu-item-has-children:hover > .sub-menu:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
  .sp-nav__item.is-open-mobile > .sub-menu:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    display: block;
  }

  .menu-item-has-children > a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *)::after {
    right: 16px;
  }
}

/* --- Shared Button Styles --- */
.btn:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
}

.btn-primary:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: #f0a500;
  color: var(--blue);
  border: 2px solid transparent;
  padding: 12px 28px;
}

.btn-primary:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: #ffc107;
  transform: translateY(-2px);
}

.btn-outline-w:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 12px 28px;
}

.btn-outline-w:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* --- Footer (basic industrial) --- */
.sp-footer:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: #0d1117;          /* Slate Dark Footer */
  color: rgba(255,255,255,0.75);
  padding: 80px 0 30px;
  font-size: 0.9rem;
  border-top: 4px solid var(--accent);
}

.sp-footer a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s ease;
}

.sp-footer a:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  color: #f0a500;
}

.sp-footer__grid:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
}

.sp-footer__col:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-footer__col--brand .sp-footer__logo:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: flex;
  margin-bottom: 8px;
}

.sp-footer__tagline:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.sp-footer__heading:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 8px;
}

.sp-footer__heading:where(:not(.spc,.spc *),.spc-functional,.spc-functional *)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: #f0a500;
}

.sp-footer__links:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-footer__contact:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-footer__links a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: inline-block;
}
.sp-footer__links a:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  transform: translateX(4px);
}

.sp-footer__contact li:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.sp-footer__contact svg:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  color: #f0a500;
  flex-shrink: 0;
  margin-top: 3px;
}

.sp-footer__col--cta p:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}

.sp-footer__social:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.sp-footer__social-link:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sp-footer__social-link:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-footer__social-link:focus-visible:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  transform: translateY(-2px);
  background: #f0a500;
  border-color: #f0a500;
  color: #ffffff !important;
}

.sp-footer__social-link svg:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  width: 18px;
  height: 18px;
}

.sp-footer__col--cta .btn.btn-primary:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  align-self: flex-start;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(240, 165, 0, 0.2);
}

.sp-footer__bottom:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 56px;
  padding-top: 24px;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}

.sp-footer__bottom-inner:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.sp-footer__copy a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}
.sp-footer__copy a:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  color: #f0a500;
}

.sp-footer__legal:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.sp-footer__legal a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  color: rgba(255,255,255,0.45);
}
.sp-footer__legal a:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  color: #f0a500;
}

@media  (max-width: 992px) {
  .sp-footer__grid:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media  (max-width: 576px) {
  .sp-footer:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    padding: 60px 0 30px;
  }
  .sp-footer__grid:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sp-footer__bottom-inner:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .sp-footer__legal:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    justify-content: center;
  }
}

/* ============================================================
   SHARED COMPONENTS — Categories & Products Grid System
   ============================================================ */

/* --- Button Extensions --- */
.btn-white:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: var(--white);
  color: var(--blue);
  border: 2px solid transparent;
  padding: 12px 28px;
}
.btn-white:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: var(--soft);
  color: var(--blue2);
  transform: translateY(-2px);
}
.btn-outline:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 12px 28px;
}
.btn-outline:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Category Sections & Headers --- */
.cat-section:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--white);
}
.cat-section.alt:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: var(--soft);
}
.cat-header:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
}
.cat-label-pill:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 48, 135, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* --- Categories Grid & Cards --- */
.cat-grid:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cat-card:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr);
}
.cat-card:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0,48,135,.14);
}
.cat-bg:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .55s ease;
}
.cat-card:hover .cat-bg:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  transform: scale(1.06);
}
.cat-overlay:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,24,70,.92) 0%,
    rgba(0,24,70,.52) 50%,
    rgba(0,24,70,.12) 100%
  );
  transition: opacity var(--tr);
}
.cat-card:hover .cat-overlay:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  opacity: .88;
}
.cat-body:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 24px 22px;
  color: var(--white);
}
.cat-icon:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.cat-body h3:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.25;
}
.cat-body p:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.cat-link:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--tr), transform var(--tr);
}
.cat-link:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: #d99200;
  color: #fff;
  transform: translateX(2px);
}

/* --- Products Grid & Cards --- */
.products-grid:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  display: flex;
  flex-direction: column;
}
.product-card:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  transform: translateY(-5px);
  border-color: rgba(0,48,135,.18);
  box-shadow: 0 16px 36px rgba(0,48,135,.11);
}
.prod-img:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--soft);
}
.prod-img a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: block;
  width: 100%;
  height: 100%;
}
.prod-img img:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.product-card:hover .prod-img img:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  transform: scale(1.06);
}
.prod-badge:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  z-index: 2;
}
.prod-body:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.prod-body h4:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  margin: 0 0 8px;
  color: var(--blue);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.3;
}
.prod-body h4 a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  color: inherit;
  text-decoration: none;
  transition: color var(--tr);
}
.prod-body h4 a:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  color: var(--accent);
}
.prod-body p:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  flex: 1;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}
.prod-link:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  display: inline-flex;
  align-items: center;
  color: var(--accent2);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  transition: color var(--tr), letter-spacing var(--tr);
}
.prod-link:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  color: var(--blue);
  letter-spacing: .02em;
}

/* --- Responsive Media Queries for Grids --- */
@media  (max-width: 1024px) {
  .cat-grid:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
  .products-grid:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media  (max-width: 768px) {
  .cat-header:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cat-header .btn:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    align-self: flex-start;
  }
}

@media  (max-width: 576px) {
  .cat-grid:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
  .products-grid:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ============================================================
   B2B SYSTEM FORM STYLES (GLOBAL CONTACT FORM 7 RESETS)
   ============================================================ */
.wpcf7-form:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Form Grid */
.sp-b2b-form-grid:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.sp-b2b-form-field:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    width: 100%;
}

.sp-b2b-form-field.full-width:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    grid-column: span 2;
}

/* Resilient to CF7 autop wrap */
.sp-b2b-form-field p:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.sp-b2b-form-field p br:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    display: none !important;
}

/* Global Labels styling */
.wpcf7-form label:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569; /* Soft slate dark */
    margin-bottom: 0px;
    width: 100%;
    text-transform: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.sp-b2b-form-field:focus-within label:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    color: #f0a500 !important;
}

/* Global Inputs reset */
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.wpcf7-form select:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.wpcf7-form textarea:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.wpcf7-form textarea:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    min-height: 120px;
    resize: vertical;
}

/* Hover & Focus states (Light theme default) */
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.wpcf7-form select:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.wpcf7-form textarea:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    border-color: #94a3b8;
    background-color: #f1f5f9;
}

.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.wpcf7-form select:focus:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.wpcf7-form textarea:focus:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    border-color: #f0a500;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.15);
}

/* Global Submit wrap */
.sp-b2b-form-submit-wrap:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.sp-b2b-form-submit-wrap p:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    margin: 0 !important;
    width: 100%;
}

/* Submit button styling */
.wpcf7-form input[type="submit"]:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.wpcf7-form .wpcf7-submit:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #f0a500 0%, #e8920a 100%);
    color: #000000 !important;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(240, 165, 0, 0.2);
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wpcf7-form input[type="submit"]:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.wpcf7-form .wpcf7-submit:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    background: linear-gradient(135deg, #ffc107 0%, #f0a500 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(240, 165, 0, 0.3);
}

.wpcf7-form input[type="submit"]:active:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.wpcf7-form .wpcf7-submit:active:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(240, 165, 0, 0.2);
}

.wpcf7-form.sp-is-submitting input[type="submit"]:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.wpcf7-form.sp-is-submitting .wpcf7-submit:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.wpcf7-form input[type="submit"][disabled]:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.wpcf7-form .wpcf7-submit[disabled]:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    cursor: progress;
    opacity: 0.78;
    transform: none !important;
    box-shadow: 0 6px 15px rgba(240, 165, 0, 0.2);
}

.wpcf7 .wpcf7-spinner:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    display: inline-block;
    vertical-align: middle;
    margin: 12px auto 0;
}

.wpcf7 form.submitting .wpcf7-spinner:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.wpcf7-form.sp-is-submitting .wpcf7-spinner:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    visibility: visible;
}

/* ── Light B2B background container overrides (PDP & Solutions) ── */
.spr-quote-form:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-pdp-inquiry__box:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-solution-inquiry__box:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    background: #ffffff !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 16px !important;
    padding: 3rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    position: relative;
    overflow: hidden;
}

.spr-quote-form:where(:not(.spc,.spc *),.spc-functional,.spc-functional *)::before,
.sp-pdp-inquiry__box:where(:not(.spc,.spc *),.spc-functional,.spc-functional *)::before,
.sp-solution-inquiry__box:where(:not(.spc,.spc *),.spc-functional,.spc-functional *)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f0a500 !important;
}

.spr-quote-form h3:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-pdp-inquiry__box h3:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-solution-inquiry__box h3:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    text-align: center !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0 !important;
    margin-bottom: 2.2rem !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* Labels under light theme */
.spr-quote-form .wpcf7-form label:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-pdp-inquiry .wpcf7-form label:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-solution-inquiry__box .wpcf7-form label:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    color: #475569 !important;
}

/* Inputs under light theme */
.spr-quote-form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.spr-quote-form .wpcf7-form textarea:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-pdp-inquiry .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-pdp-inquiry .wpcf7-form textarea:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-solution-inquiry__box .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-solution-inquiry__box .wpcf7-form textarea:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.spr-quote-form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.spr-quote-form .wpcf7-form textarea:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-pdp-inquiry .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-pdp-inquiry .wpcf7-form textarea:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-solution-inquiry__box .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-solution-inquiry__box .wpcf7-form textarea:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    border-color: #94a3b8 !important;
    background-color: #f1f5f9 !important;
}

.spr-quote-form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.spr-quote-form .wpcf7-form textarea:focus:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-pdp-inquiry .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-pdp-inquiry .wpcf7-form textarea:focus:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-solution-inquiry__box .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-solution-inquiry__box .wpcf7-form textarea:focus:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    border-color: #f0a500 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.15) !important;
}

.spr-quote-form:where(:not(.spc,.spc *),.spc-functional,.spc-functional *)::placeholder,
.sp-pdp-inquiry:where(:not(.spc,.spc *),.spc-functional,.spc-functional *)::placeholder,
.sp-solution-inquiry__box:where(:not(.spc,.spc *),.spc-functional,.spc-functional *)::placeholder {
    color: #94a3b8 !important;
}

/* Submit under light theme */
.spr-quote-form .wpcf7-submit:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-pdp-inquiry .wpcf7-submit:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
.sp-solution-inquiry__box .wpcf7-submit:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    box-shadow: 0 8px 20px rgba(240, 165, 0, 0.2) !important;
}

/* Response messaging */
.wpcf7-response-output:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    font-size: 14px;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 15px;
    box-sizing: border-box;
    text-align: center;
}

.wpcf7-not-valid-tip:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

@media  (max-width: 768px) {
    .sp-b2b-form-grid:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sp-b2b-form-field.full-width:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
        grid-column: span 1;
    }
    
    .spr-quote-form:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
    .sp-pdp-inquiry__box:where(:not(.spc,.spc *),.spc-functional,.spc-functional *),
    .sp-solution-inquiry__box:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
        padding: 2rem !important;
    }
}

/* --- Visual Fixes: Page Hero Gap & Logo Image styles --- */
.page-hero:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  margin-top: 0 !important;
}

.sp-header__logo-img:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  max-height: 24px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1); /* Renders the black logo in clean white */
  transition: opacity var(--tr);
}

.sp-header__logo:hover .sp-header__logo-img:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  opacity: 0.85;
}

/* Contact Us nav item styled as CTA button */
.sp-nav__list > li:last-child > a:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: #f0a500;
  color: var(--blue);
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.sp-nav__list > li:last-child > a:hover:where(:not(.spc,.spc *),.spc-functional,.spc-functional *){
  background: #ffc107;
  transform: translateY(-1px);
}
