/* ================================================================
   PAGODA WMS — STATIC FRONTEND DESIGN SYSTEM
   Ported from the sibling DMS Pagoda Labs theme (same brand/tokens,
   wms- prefix instead of pagoda-). Single light theme — no dark/light
   toggle. A handful of sections (Stats, Solutions/Key-Capabilities,
   closing CTA) are intentionally dark (#121212) as a fixed design
   choice, not a user-togglable mode.
================================================================ */

:root {
  --bg-white: #FFFFFF;
  --bg-tint: #F0F2F7;
  --bg-card: #F1F2F5;
  --bg-dark: #121212;
  --text-primary: #1D1D1D;
  --text-secondary: #495A69;
  --text-muted: #8A97A3;
  --text-on-dark: #FAFAFA;
  --text-on-dark-muted: #B1BAC2;
  --border-light: #E0E7EB;
  --border-light-2: #BFCDD9;
  --border-dark: rgba(255, 255, 255, 0.12);
  --brand: #1CB440;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-white);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.wms-locked { overflow: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }

/* ── Layout ── */
.wms-wrap { max-width: 1440px; margin: 0 auto; padding: 0 80px; }
.wms-sec { padding: 100px 0; }
@media(max-width: 1199px) { .wms-wrap { padding: 0 40px; } }
@media(max-width: 767px) { .wms-wrap { padding: 0 24px; } .wms-sec { padding: 60px 0; } }

/* Section background helpers */
.sec-white { background: var(--bg-white); }
.sec-tint  { background: var(--bg-tint); }
.sec-dark  { background: var(--bg-dark); }
.sec-dark, .sec-dark .wms-h1, .sec-dark .wms-h2, .sec-dark .wms-h3, .sec-dark .wms-h4 { color: var(--text-on-dark); }
.sec-dark .wms-body { color: var(--text-on-dark-muted); }
.sec-dark .wms-eyebrow { color: var(--brand); }

/* Decorative dark-section background — the recurring green "circuit/
   constellation" motif (dotted nodes + connecting lines + 1-2 small icon
   badges) seen at the bottom of every dark section across the WMS Figma
   design (Stats, Solutions/Key-Capabilities, closing CTA). Rendered as an
   inline SVG by template-parts/decor-circuit-bg.php rather than a Figma-
   exported raster (no such asset exists in this project's extracted
   images), so it's one shared, recolorable, resolution-independent asset
   instead of per-section bespoke art. */
.sec-dark-fx { position: relative; overflow: hidden; }
.sec-dark-fx-bg {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%;
  opacity: .5; pointer-events: none; overflow: hidden;
}
.sec-dark-fx-bg svg, .sec-dark-fx-bg img { display: block; width: 100%; height: auto; }
.sec-dark-fx > *:not(.sec-dark-fx-bg) { position: relative; z-index: 1; }

/* ── Type ── */
.wms-eyebrow { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 600; color: var(--brand); letter-spacing: 1.4px; text-transform: uppercase; line-height: 1.6; }
.wms-h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.15; color: var(--text-primary); }
.wms-h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; color: var(--text-primary); }
.wms-h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: clamp(18px, 2.2vw, 28px); line-height: 1.3; color: var(--text-primary); }
.wms-h4 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--text-primary); }
.wms-body { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 400; line-height: 1.65; color: var(--text-secondary); }
.wms-sm { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ── Buttons ── */
.wms-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand) !important; color: #FAFAFA;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: 0; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s; white-space: nowrap;
}
.wms-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(28,180,64,.35); color: #FAFAFA; }

.wms-btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: #121212 !important; color: #FAFAFA;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: 0; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s; white-space: nowrap;
}
.wms-btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.35); color: #FAFAFA; }

.wms-learn-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 15px;
  transition: gap .2s;
}
.wms-learn-more:hover { gap: 11px; color: var(--brand); }

/* ── Progress bar ── */
#wms-pgbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--brand); z-index: 9999; box-shadow: 0 0 10px rgba(28,180,64,.7); }

/* ── Custom cursor ── */
#wms-cursor, #wms-cursor-ring { position: fixed; pointer-events: none; border-radius: 50%; z-index: 99999; transform: translate(-50%,-50%); opacity: 0; left: -500px; top: -500px; }
#wms-cursor { width: 8px; height: 8px; background: var(--brand); transition: width .2s, height .2s, opacity .3s; }
#wms-cursor-ring { width: 34px; height: 34px; border: 1.5px solid rgba(28,180,64,.5); transition: width .25s, height .25s, opacity .3s; }
@media(max-width: 1023px) { #wms-cursor, #wms-cursor-ring { display: none !important; } }

/* ================================================================
   NAVBAR
================================================================ */
#wms-nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-white); border-bottom: 1px solid var(--border-light);
}
.wms-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 82px; max-width: 1440px; margin: 0 auto; padding: 0 80px;
}
@media(max-width: 1199px) { .wms-nav-inner { padding: 0 40px; } }
@media(max-width: 767px) { .wms-nav-inner { padding: 0 24px; } }

.wms-nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.wms-nav-logo img { height: 32px; width: auto; object-fit: contain; }

/* Centered nav links: flex:1 on both logo/links-wrapper and right side keeps
   the link group visually centered in the bar regardless of side-content width. */
.wms-nav-links { position: relative; display: flex; align-items: center; justify-content: center; list-style: none; gap: 0; flex: 1; }
/* Sliding underline indicator (assets/js/animations.js), positioned via GSAP x/width */
.wms-nav-indicator { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brand); border-radius: 2px; pointer-events: none; opacity: 0; }
.wms-nav-links li { position: static; height: 100%; display: flex; align-items: center; }
.wms-nav-links > li > a,
.wms-nav-links > li > button {
  display: flex; align-items: center; gap: 6px;
  padding: 28px 18px; height: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: 15px;
  color: var(--text-primary); background: none; border: none; cursor: pointer;
  transition: color .2s; white-space: nowrap;
}
.wms-nav-links > li > a:hover,
.wms-nav-links > li > button:hover,
.wms-nav-links > li > a.active,
.wms-nav-links > li > button.active { color: var(--brand); }
@media(max-width: 1023px) { .wms-nav-links { display: none; } }

.wms-nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
@media(max-width: 1023px) { .wms-nav-right .wms-btn-primary { display: none; } }

.wms-ham { display: none; align-items: center; justify-content: center; background: none; border: none; padding: 6px; cursor: pointer; color: var(--text-primary); }
@media(max-width: 1023px) { .wms-ham { display: flex; } }

/* Full-width dropdown, flush against the nav's bottom edge (no gap, no radius).
   max-height + overflow-y guards against narrow desktop widths where the
   auto-fit columns below wrap to extra rows taller than the viewport. */
.wms-drop {
  position: fixed; top: 82px; left: 0; width: 100vw;
  max-height: calc(100vh - 82px); overflow-y: auto;
  background: var(--bg-white); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
  padding: 32px 0; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,.1); z-index: 999;
}
.wms-nav-links li:hover .wms-drop { opacity: 1; pointer-events: auto; transform: translateY(0); }
.wms-drop-inner { max-width: 1440px; margin: 0 auto; padding: 0 80px; }
@media(max-width: 1199px) { .wms-drop-inner { padding: 0 40px; } .wms-drop { padding: 24px 0; } }

/* Solutions mega-menu: auto-fit columns of (label + stacked links), plus a
   bottom enquiry bar spanning the full width. auto-fit + a minimum column
   width means columns drop to 2-then-1-per-row on narrower desktop widths
   (1024–1280px) instead of squeezing 3 fixed columns until content collides. */
.wms-drop-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 32px; }
.wms-drop-cols > * { min-width: 0; }
.wms-drop-group { margin-bottom: 28px; }
.wms-drop-group:last-child { margin-bottom: 0; }
.wms-drop-label { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.wms-drop-link { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px; color: var(--text-primary); padding: 7px 0; transition: color .2s; }
.wms-drop-link:hover { color: var(--brand); }
.wms-drop-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--border-light); margin-top: 28px; padding-top: 24px; }
.wms-drop-bottom-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 17px; color: var(--text-primary); }
.wms-drop-bottom-desc { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* Industries menu: compact content-width popover anchored under the nav
   item (per Figma), unlike Solutions' full-viewport mega-menu above. Needs
   its own position:relative on the <li> since .wms-nav-links li is
   static by default. Declared after the base .wms-drop rule (and its
   narrower-viewport media query) so these overrides win the cascade at
   every width without needing extra specificity. */
.wms-nav-links li.wms-nav-drop-anchor { position: relative; }
.wms-drop-compact {
  position: absolute; top: calc(100% + 1px); left: 0; width: max-content; max-width: 320px;
  border: 1px solid var(--border-light); border-radius: 12px;
  padding: 24px 28px;
}
.wms-drop-compact .wms-drop-inner { max-width: none; margin: 0; padding: 0; }

@media (min-width: 1024px) {
  .wms-nav-links > li > a > svg,
  .wms-nav-links > li > button > svg { transition: transform 0.25s ease; }
  .wms-nav-links > li:hover > a > svg,
  .wms-nav-links > li:hover > button > svg { transform: rotate(180deg); }
}

/* ── Mobile nav ── */
#wms-mob {
  position: fixed; inset: 0; background: var(--bg-white); z-index: 1100;
  padding: 96px 32px 48px; transform: translateX(100%);
  transition: transform .42s cubic-bezier(.22,1,.36,1); overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
#wms-mob.wms-mob-open { transform: translateX(0); }
.wms-mob-link { display: flex !important; justify-content: space-between; align-items: center; width: 100%; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 20px; color: var(--text-primary); padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.wms-mob-link:hover { color: var(--brand); }
.wms-mob-x { position: absolute; top: 20px; right: 20px; z-index: 1101; background: none; border: none; padding: 8px; cursor: pointer; color: var(--text-primary); }
.wms-mob-item-wrapper { width: 100%; display: block; }
.mob-arrow-icon { transition: transform 0.3s ease; }
.wms-mob-drop-trigger.open .mob-arrow-icon { transform: rotate(180deg); }
.wms-mob-drop { height: 0; overflow: hidden; transition: height 0.3s ease-out; display: flex; flex-direction: column; padding-left: 16px; }
.wms-mob-sublink { display: block; padding: 10px 0; font-size: 15px; color: var(--text-secondary); }
.wms-mob-sublink:hover { color: var(--brand); }

/* ================================================================
   HERO
================================================================ */
.wms-hero { padding: 60px 0 90px; }
/* Pages with a breadcrumb (About/Solutions/Industry/Integration/Case
   Studies/single templates) sit right under the sticky nav — 60px on top
   of the breadcrumb's own 32px margin-bottom read as a big dead gap before
   any content. Home's centered hero has no breadcrumb, so it keeps 60px. */
.wms-hero:has(.wms-breadcrumb) { padding-top: 32px; }
/* align-items left at its default (stretch) so both grid items share the
   row's natural height — needed for .wms-hero-media's height:100% image
   to actually have something to fill; align-items:center left it collapsed
   to the image's own intrinsic (often short) aspect ratio. */
.wms-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media(max-width: 1023px) { .wms-hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.wms-hero-grid > * { display: flex; flex-direction: column; justify-content: center; }
.wms-hero-center { max-width: 720px; width: 100%; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
/* Flex column items default to min-width:auto (their unwrapped content
   width) as a size floor — on narrow viewports this stops long headline
   text from wrapping at all and pushes it past the viewport edge instead.
   min-width:0 removes that floor so text wraps to the item's actual
   available width like a normal block element would. */
.wms-hero-center > * { min-width: 0; max-width: 100%; }
.wms-hero-center .wms-hero-btns { justify-content: center; }
.wms-hero-visual { margin-top: 56px; overflow: hidden; }
.wms-hero-visual img { width: 100%; height: auto; display: block; }
.wms-hero-media { overflow: hidden; background: var(--bg-tint); width: 100%; max-width: 600px; aspect-ratio: 1 / 1; align-self: center; }
.wms-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.wms-hero-btns { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
.wms-breadcrumb { display: flex; align-items: center; gap: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; }
.wms-breadcrumb a { font-weight: 600; color: var(--text-primary); }
.wms-breadcrumb a:hover { color: var(--brand); }
.wms-breadcrumb svg { flex-shrink: 0; }

/* ================================================================
   MARQUEE (static row on light bg, no scroll needed at 4 logos but
   kept scrollable/loop-capable for consistency)
================================================================ */
.wms-marquee-sec { border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); overflow: hidden; }
.wms-marquee-wrap { position: relative; overflow: hidden; }
.wms-marquee-track { display: flex; align-items: center; width: max-content; animation: wms-mq 40s linear infinite; }
@keyframes wms-mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wms-plogo { width: 360px; height: 96px; object-fit: contain; padding: 0 40px; flex-shrink: 0; border-right: 1px solid var(--border-light); filter: grayscale(1); opacity: .6; transition: opacity .3s; }
.wms-plogo:hover { opacity: 1; }
@media(max-width: 767px) { .wms-plogo { width: 220px; height: 70px; padding: 0 24px; } }

/* ================================================================
   CARD GRIDS (Why Choose Us / Benefits — light gray box cards)
================================================================ */
.wms-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media(max-width: 1023px) { .wms-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 639px) { .wms-card-grid { grid-template-columns: 1fr; } }
/* Fixed-column-count modifier (e.g. a 2-card section) that still collapses on mobile */
.wms-card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media(max-width: 639px) { .wms-card-grid.cols-2 { grid-template-columns: 1fr; } }
.wms-box-card { background: var(--bg-tint); border-bottom: 3px solid var(--border-light-2); border-radius: 4px; padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s; }
.wms-box-card:hover { border-bottom-color: var(--brand); }
.wms-box-card-ico { width: 32px; height: 32px; color: var(--brand); }
.wms-box-card-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 18px; color: var(--text-primary); }

/* ================================================================
   TABS — desktop tab list + panel, mobile accordion
================================================================ */
.wms-tabs-grid { display: flex; gap: 80px; margin-top: 56px; align-items: flex-start; }
/* Below 1023px the whole desktop tabs+panel layout is replaced by the
   .wms-svc-acc accordion — otherwise the (always-rendered) active
   panel's full content shows dumped below the hidden tab list. */
@media(max-width: 1023px) { .wms-tabs-grid { display: none; } }
.wms-tabs-list { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; }
.wms-tab { display: flex; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border-dark); cursor: pointer; }
.sec-white .wms-tab, .sec-tint .wms-tab { border-bottom-color: var(--border-light); }
.wms-tab-arr { display: flex; align-items: center; flex-shrink: 0; width: 0; overflow: hidden; margin-right: 0; opacity: 0; transition: width 0.25s ease, margin-right 0.25s ease, opacity 0.25s ease; }
.wms-tab:hover .wms-tab-arr, .wms-tab.wms-tab-on .wms-tab-arr { width: 22px; margin-right: 12px; opacity: 1; }
.wms-tab-txt { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: 17px; color: inherit; opacity: .6; transition: opacity .25s, color .25s; }
.wms-tab:hover .wms-tab-txt, .wms-tab.wms-tab-on .wms-tab-txt { opacity: 1; color: var(--brand); }
.wms-panel { display: none; flex: 1; flex-direction: column; gap: 20px; }
.wms-panel.wms-panel-on { display: flex !important; }
.wms-panel-ico { width: 32px; height: 32px; color: var(--brand); }
.wms-panel-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.wms-panel-list li { position: relative; padding-left: 18px; }
.wms-panel-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* Bullet/numbered lists coming from WYSIWYG "Description" fields (theme.css
   resets all ul/ol to list-style:none, so these need their own markers). */
.wms-body ul, .wms-body ol { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding: 0; list-style: none; }
.wms-body ul li { position: relative; padding-left: 18px; }
.wms-body ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.wms-body ol { counter-reset: wms-ol; }
.wms-body ol li { position: relative; padding-left: 22px; counter-increment: wms-ol; }
.wms-body ol li::before { content: counter(wms-ol) "."; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--brand); }

.wms-svc-acc { display: none; }
@media (max-width: 1023px) {
  .wms-svc-acc { display: block; }
  .wms-acc-item { border-bottom: 1px solid var(--border-light); }
  .sec-dark .wms-acc-item { border-bottom-color: var(--border-dark); }
  .wms-acc-item:first-child { border-top: 1px solid var(--border-light); }
  .sec-dark .wms-acc-item:first-child { border-top-color: var(--border-dark); }
  .wms-acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: transparent; border: none; cursor: pointer; padding: 18px 0; text-align: left; }
  .wms-acc-txt { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 16px; color: inherit; }
  .wms-acc-open .wms-acc-txt { color: var(--brand); }
  .wms-acc-chev { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; opacity: .5; transition: transform .3s ease; }
  .wms-acc-open .wms-acc-chev { transform: rotate(180deg); opacity: 1; color: var(--brand); border-color: var(--brand); }
  .wms-acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .wms-acc-inner { padding: 4px 0 24px; }
}

/* ================================================================
   STATS
================================================================ */
.wms-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; margin-top: 48px; }
@media(max-width: 639px) { .wms-stats-row { grid-template-columns: repeat(2, 1fr); } }
.wms-stat { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--brand); }
.wms-stat-n { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 42px; color: var(--text-on-dark); line-height: 1; }
.wms-stat-l { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: var(--text-on-dark-muted); max-width: 280px; }

/* Numbered result stats (case study detail) */
.wms-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
@media(max-width: 639px) { .wms-result-grid { grid-template-columns: 1fr; } }
.wms-result-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media(max-width: 639px) { .wms-result-grid.cols-2 { grid-template-columns: 1fr; } }
.wms-result-n { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(28px, 3.5vw, 40px); color: var(--brand); line-height: 1; }
.wms-result-l { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 16px; color: var(--text-primary); margin-top: 10px; }
.wms-result-d { font-size: 14px !important; margin-top: 6px; }

/* ================================================================
   TEAM GRID
================================================================ */
.wms-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
@media(max-width: 1023px) { .wms-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 479px) { .wms-team-grid { grid-template-columns: 1fr; } }
.wms-team-card { display: flex; flex-direction: column; }
.wms-team-photo { aspect-ratio: 3/4; overflow: hidden; background: var(--bg-tint); }
.wms-team-photo img { width: 100%; height: 100%; object-fit: cover; }
.wms-team-meta { background: var(--bg-tint); padding: 16px 18px; }
.wms-team-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 16px; color: var(--text-primary); }
.wms-team-role { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--text-secondary); }

/* ================================================================
   CASE STUDIES / BLOG-STYLE CARDS
================================================================ */
.wms-cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
@media(max-width: 767px) { .wms-cases-grid { grid-template-columns: 1fr; } }
.wms-cases-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media(max-width: 1023px) { .wms-cases-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 767px) { .wms-cases-grid.cols-3 { grid-template-columns: 1fr; } }
.wms-case-card { display: block; overflow: hidden; background: var(--bg-tint); transition: transform .3s ease; }
.wms-case-card:hover { transform: translateY(-4px); }
.wms-case-img { aspect-ratio: 620/350; overflow: hidden; background: var(--bg-tint); }
.wms-case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.wms-case-card:hover .wms-case-img img { transform: scale(1.05); }
.wms-case-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.wms-case-date { font-size: 13px; color: var(--text-muted); }
.wms-case-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 19px; color: var(--text-primary); line-height: 1.35; }

/* ================================================================
   TESTIMONIALS (Swiper) — photo left, quote card right
================================================================ */
/* Client-quote block embedded in case-study "Client Overview" section */
.wms-quote-block { display: grid; grid-template-columns: 220px 1fr; background: var(--bg-tint); overflow: hidden; }
.wms-quote-block--no-photo { grid-template-columns: 1fr; }
@media(max-width: 767px) { .wms-quote-block { grid-template-columns: 1fr; } }

.wms-testi-swiper { position: relative; }
.wms-testi-swiper .swiper-slide { display: grid; grid-template-columns: 380px 1fr; background: var(--bg-tint); overflow: hidden; min-height: 380px; }
@media(max-width: 767px) { .wms-testi-swiper .swiper-slide { grid-template-columns: 1fr; } }
.wms-testi-photo { overflow: hidden; width: 100%; aspect-ratio: 1 / 1; align-self: start; }
.wms-testi-photo img { width: 100%; height: 100%; object-fit: cover; }
.wms-testi-content { 
   padding: 48px; 
   /* padding-right: 130px;  */
   display: flex; 
   flex-direction: column; 
   justify-content: center; 
   gap: 24px; 
}
@media(max-width: 767px) { .wms-testi-content { padding-right: 48px; padding-bottom: 96px; } }
@media(max-width: 639px) { .wms-testi-content { padding: 28px; padding-bottom: 88px; } }
.wms-testi-quote { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--text-primary); }
.wms-testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--border-light-2); flex-shrink: 0; }
.wms-testi-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; color: var(--text-primary); }
.wms-testi-role { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--text-secondary); }
.wms-testi-nav { display: flex; align-items: center; gap: 16px; position: absolute; right: 48px; bottom: 48px; z-index: 5; }
@media(max-width: 639px) { .wms-testi-nav { right: 28px; bottom: 28px; } }
.wms-testi-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-white); border: 1px solid var(--border-light-2); cursor: pointer; transition: background .2s; }
.wms-testi-btn:hover { background: var(--border-light); }
.wms-testi-cnt { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--text-secondary); }

/* ================================================================
   FAQ ACCORDION
================================================================ */
.wms-faq-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; margin-top: 48px; align-items: start; }
@media(max-width: 1023px) { .wms-faq-grid { grid-template-columns: 1fr; gap: 24px; } }
.wms-faq-list { display: flex; flex-direction: column; gap: 12px; }
.wms-faq-item { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 6px; overflow: hidden; }
.wms-faq-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; background: none; border: none; cursor: pointer; text-align: left; }
.wms-faq-q { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 16px; color: var(--text-primary); }
.wms-faq-icon { flex-shrink: 0; width: 18px; height: 18px; position: relative; }
.wms-faq-icon::before, .wms-faq-icon::after { content:""; position:absolute; background: var(--text-primary); transition: transform .2s; }
.wms-faq-icon::before { left:0; top:50%; width:100%; height:2px; transform: translateY(-50%); }
.wms-faq-icon::after { top:0; left:50%; width:2px; height:100%; transform: translateX(-50%); }
.wms-faq-item.open .wms-faq-icon::after { transform: translateX(-50%) scaleY(0); }
/* height (not max-height) so core.js's GSAP tween isn't capped by a stale
   max-height:0 rule fighting its animated inline height value */
.wms-faq-body { height: 0; overflow: hidden; }
.wms-faq-body-inner { padding: 0 24px 22px; }

/* ================================================================
   CTA — big centered headline on dark bg
================================================================ */
.wms-cta-sec { padding: 120px 0; text-align: center; }
@media(max-width: 767px) { .wms-cta-sec { padding: 70px 0; } }
.wms-cta-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(30px, 4.5vw, 52px); color: var(--text-on-dark); line-height: 1.2; max-width: 780px; margin: 0 auto; }
.wms-cta-body { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; color: var(--text-on-dark-muted); margin: 24px auto 0; max-width: 560px; }
.wms-cta-btnwrap { margin-top: 36px; display: flex; justify-content: center; }

/* ================================================================
   FOOTER
================================================================ */
.wms-footer { background: var(--bg-white); padding: 72px 0 32px; border-top: 1px solid var(--border-light); }
.wms-ft-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; flex-wrap: wrap; margin-bottom: 48px; }
.wms-ft-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 300px; flex-shrink: 0; }
.wms-ft-logo { height: 40px; width: auto; object-fit: contain; margin: 0; align-self: flex-start; }
.wms-ft-brand p, .wms-ft-brand a { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: var(--text-secondary); }
.wms-ft-navs { display: flex; gap: 64px; flex-wrap: wrap; }
.wms-ft-col { display: flex; flex-direction: column; gap: 14px; min-width: 140px; }
.wms-ft-heading { font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; font-weight: 700; color: var(--brand); margin-bottom: 2px; }
.wms-ft-col a { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: var(--text-primary); transition: color .2s; }
.wms-ft-col a:hover { color: var(--brand); }
.wms-ft-divider { border: none; border-top: 1px solid var(--border-light); margin: 0 0 24px; }
.wms-ft-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.wms-ft-copy { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wms-ft-copy img { height: 16px; width: auto; display: inline-block; vertical-align: middle; }
.wms-ft-legal { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.wms-ft-legal a { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--text-secondary); transition: color .2s; }
.wms-ft-legal a:hover { color: var(--brand); }
@media(max-width: 767px) {
  .wms-footer { padding: 48px 0 28px; }
  .wms-ft-top { flex-direction: column; gap: 36px; }
  .wms-ft-navs { gap: 36px; }
  .wms-ft-bottom { justify-content: center; text-align: center; }
}

/* ================================================================
   LEGAL PAGE CONTENT (Terms & Conditions / Privacy Policy) and BLOG
   ARTICLE BODY (single-blog_post.php) — both style the page/post's own
   standard editor body (the_content()), not ACF fields, so this targets
   bare tags rather than the wms-h2/wms-body utility classes used
   everywhere else in the theme. Same rich-text treatment fits both.
================================================================ */
.wms-legal, .wms-article { max-width: 860px; margin: 0 auto; }
.wms-legal h2, .wms-article h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; color: var(--text-primary); margin: 48px 0 16px; }
.wms-legal h3, .wms-article h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: clamp(18px, 2vw, 22px); line-height: 1.3; color: var(--text-primary); margin: 32px 0 12px; }
.wms-legal h2:first-child, .wms-legal h3:first-child,
.wms-article h2:first-child, .wms-article h3:first-child { margin-top: 0; }
.wms-legal p, .wms-article p { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 16px; }
/* Same green-dot/numbered treatment as .wms-body ul/ol below — the
   theme's base stylesheet resets all ul/ol to list-style:none, so these
   need their own ::before markers rather than relying on browser defaults. */
.wms-legal ul, .wms-legal ol, .wms-article ul, .wms-article ol { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; line-height: 1.65; color: var(--text-secondary); display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.wms-legal ul li, .wms-article ul li { position: relative; padding-left: 18px; }
.wms-legal ul li::before, .wms-article ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.wms-legal ol, .wms-article ol { counter-reset: wms-ol; }
.wms-legal ol li, .wms-article ol li { position: relative; padding-left: 22px; counter-increment: wms-ol; }
.wms-legal ol li::before, .wms-article ol li::before { content: counter(wms-ol) "."; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--brand); }
.wms-legal a, .wms-article a { color: var(--brand); text-decoration: underline; }
.wms-legal strong, .wms-article strong { color: var(--text-primary); font-weight: 600; }

/* ================================================================
   CONTACT FORM
================================================================ */
.wms-form-field { margin-bottom: 22px; }
.wms-form-label { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--text-primary); margin-bottom: 8px; }
.wms-form-req { color: #E5484D; }
.wms-input, .wms-textarea {
  width: 100%; background: var(--bg-white); border: none; border-bottom: 1px solid var(--border-light-2);
  padding: 10px 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: var(--text-primary);
  outline: none; transition: border-color .2s;
}
.wms-input::placeholder, .wms-textarea::placeholder { color: var(--text-muted); }
.wms-input:focus, .wms-textarea:focus { border-bottom-color: var(--brand); }
.wms-textarea { min-height: 100px; resize: vertical; }
.wms-input.wms-error, .wms-textarea.wms-error { border-bottom-color: #E5484D; }
.wms-field-msg { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; color: #E5484D; margin-top: 6px; display: none; }
.wms-form-field.invalid .wms-field-msg { display: block; }

/* The form is a flex column (.wms-hero-grid > *), which stretches direct
   flex children to full width by default — the submit button needs to size
   to its own content instead, matching the compact button in the design. */
#wms-contact-form button.wms-btn-primary { align-self: flex-start; }

/* Contact info card (Human Resources / Product Inquiry / etc.) */
.wms-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media(max-width: 1023px) { .wms-info-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 639px) { .wms-info-grid { grid-template-columns: 1fr; } }
.wms-info-card { background: var(--bg-tint); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 4px; transition: transform .25s; }
.wms-info-card:hover { transform: translateY(-3px); }
.wms-info-ico { width: 32px; height: 32px; margin-bottom: 14px; }
.wms-info-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.wms-info-value { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 16px; color: var(--text-primary); }
.wms-info-value:hover { color: var(--brand); }

.wms-map-frame { width: 100%; height: 420px; border-radius: 8px; overflow: hidden; }
@media(max-width: 639px) { .wms-map-frame { height: 300px; } }

/* Video placeholder block (present as literally "Video" text in Figma).
   When an ACF oEmbed value is set, .wms-has-video switches it to a
   responsive 16:9 frame so the provider's embedded player (with its native
   play/mute/fullscreen controls) fills the same block instead. */
.wms-video-block {
  background: var(--border-light); border-radius: 4px;
  min-height: 420px; display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 32px; color: var(--text-secondary);
  overflow: hidden; position: relative;
}
.wms-video-block.wms-has-video {
  min-height: 0; height: 0; padding-top: 56.25%; display: block;
}
.wms-video-block.wms-has-video iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ================================================================
   MOBILE AOS / OVERFLOW GUARD
================================================================ */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  [data-aos="fade-left"], [data-aos="fade-right"], [data-aos="fade-down-left"], [data-aos="fade-down-right"],
  [data-aos="fade-up-left"], [data-aos="fade-up-right"], [data-aos="slide-left"], [data-aos="slide-right"],
  [data-aos="zoom-in-left"], [data-aos="zoom-in-right"], [data-aos="zoom-out-left"], [data-aos="zoom-out-right"],
  [data-aos^="flip"] { transform: translate3d(0,0,0) !important; }
  [data-aos] { transform: translate3d(0, 20px, 0) !important; transition-property: opacity, transform !important; }
  [data-aos].aos-animate { transform: translate3d(0, 0, 0) !important; }
}

/* ================================================================
   SWIPER OVERRIDES
================================================================ */
.wms-swiper .swiper-pagination-bullet { background: var(--text-secondary); opacity: .3; }
.wms-swiper .swiper-pagination-bullet-active { background: var(--brand); opacity: 1; }

/* ================================================================
   HERO "REAL-TIME OVERVIEW" STAT CARD — floating card overlaid on the
   bottom edge of the Home hero illustration (WMS-specific, no DMS
   precedent since DMS's hero has no equivalent overlay widget).
================================================================ */
.wms-hero-overview-card {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(760px, calc(100% - 48px)); background: var(--bg-white);
  border-radius: 8px; box-shadow: 0 24px 48px rgba(0,0,0,.12);
  padding: 20px 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media(max-width: 767px) { .wms-hero-overview-card { grid-template-columns: repeat(2, 1fr); position: static; transform: none; margin-top: -40px; width: 100%; } }
.wms-hero-ov-item { display: flex; flex-direction: column; gap: 6px; }
.wms-hero-ov-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; color: var(--text-muted); }
.wms-hero-ov-value { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 20px; color: var(--text-primary); }
.wms-hero-visual { position: relative; }

/* ================================================================
   ONE PLATFORM HEX DIAGRAM (Home "One Platform. Endless Possibilities.")
   — center hub + up to 6 surrounding nodes, connected by short rules.
   No DMS precedent; kept intentionally simple (CSS grid, not literal
   connector-line SVG paths) so it degrades cleanly on mobile.
================================================================ */
.wms-hex-diagram { position: relative; background: var(--bg-tint); border-radius: 12px; padding: 56px 32px; }
.wms-hex-diagram-image { background: none; padding: 0; overflow: hidden; }
.wms-hex-diagram-image img { width: 100%; height: auto; display: block; border-radius: 12px; }
.wms-hex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
@media(max-width: 639px) { .wms-hex-grid { grid-template-columns: 1fr; } }
.wms-hex-center {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--bg-dark); color: var(--text-on-dark); border-radius: 10px; padding: 24px; margin-bottom: 12px;
}
.wms-hex-center-label { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px; }
.wms-hex-node { background: var(--bg-white); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--brand); }
.wms-hex-node-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 15px; color: var(--text-primary); }
.wms-hex-node-desc { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ================================================================
   WAREHOUSE WORKFLOW — horizontal numbered-step sequence (Home).
   No DMS precedent. Desktop: row of step badges/labels with a
   connecting line; mobile: stacked list.
================================================================ */
.wms-workflow-image { margin-top: 48px; overflow: hidden; border-radius: 12px; }
.wms-workflow-image img { width: 100%; height: auto; display: block; }
.wms-workflow-row { display: flex; gap: 0; margin-top: 48px; position: relative; }
@media(max-width: 1023px) { .wms-workflow-row { flex-direction: column; gap: 32px; } }
.wms-workflow-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 0 12px; position: relative; }
@media(max-width: 1023px) { .wms-workflow-step { flex-direction: row; text-align: left; align-items: flex-start; padding: 0; } }
.wms-workflow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 100%; width: 100%; height: 2px;
  background: var(--border-light-2); z-index: 0;
}
@media(max-width: 1023px) { .wms-workflow-step:not(:last-child)::after { display: none; } }
.wms-workflow-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-white); border: 1px solid var(--border-light-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; }
.wms-workflow-badge img { width: 26px; height: 26px; }
.wms-workflow-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 15px; color: var(--text-primary); }
.wms-workflow-desc { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ================================================================
   INDUSTRIES GRID — bordered N-column grid of industry cells
   (icon/title/link), same visual pattern DMS builds inline in its
   page-industry.php, promoted to a reusable component here since
   WMS's Industry listing needs it directly.
================================================================ */
.wms-industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border-dark); margin-top: 48px; }
.sec-white .wms-industries-grid, .sec-tint .wms-industries-grid { border-color: var(--border-light); }
@media(max-width: 767px) { .wms-industries-grid { grid-template-columns: repeat(2, 1fr); } .wms-industry-cell-fill { display: none; } }
@media(max-width: 479px) { .wms-industries-grid { grid-template-columns: 1fr; } }
.wms-industry-cell {
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
  border-right: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark);
}
.sec-white .wms-industry-cell, .sec-tint .wms-industry-cell { border-color: var(--border-light); }
.wms-industry-cell-ico { width: 32px; height: 32px; color: var(--brand); }
.wms-industry-cell-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 17px; }
