/* ================================================================
   PAGODA HRMS — STATIC FRONTEND DESIGN SYSTEM
   Single light theme (matches figma-design exactly — no dark/light
   toggle). A handful of sections (hero-adjacent stats, features
   tabs, 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;
  --error: #D41717;
}

/* ── 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.hrms-locked { overflow: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }

/* ── Layout ── */
.hrms-wrap { max-width: 1440px; margin: 0 auto; padding: 0 80px; }
.hrms-sec { padding: 100px 0; }
@media(max-width: 1199px) { .hrms-wrap { padding: 0 40px; } }
@media(max-width: 767px) { .hrms-wrap { padding: 0 24px; } .hrms-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 .hrms-h1, .sec-dark .hrms-h2, .sec-dark .hrms-h3, .sec-dark .hrms-h4 { color: var(--text-on-dark); }
.sec-dark .hrms-body { color: var(--text-on-dark-muted); }
.sec-dark .hrms-eyebrow { color: var(--brand); }

/* Decorative dark-section network/HR-icon background artwork, bottom-anchored
   so the same fixed-height image sits consistently against the section's
   bottom edge regardless of how tall that particular dark section is. */
.sec-dark-fx { position: relative; overflow: hidden; }
.sec-dark-fx-bg {
  position: absolute; left: 0; right: 0; bottom: 0; height: 720px;
  background: url('../img/decorative/dark-network-bg.png') bottom center / 100% 100% no-repeat;
  pointer-events: none;
}
@media(max-width: 767px) { .sec-dark-fx-bg { height: 420px; } }
.sec-dark-fx > *:not(.sec-dark-fx-bg) { position: relative; z-index: 1; }

/* ── Type ── */
.hrms-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; }
.hrms-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); }
.hrms-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); }
.hrms-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); }
.hrms-h4 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--text-primary); }
.hrms-body { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 400; line-height: 1.65; color: var(--text-secondary); }
.hrms-sm { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ── Buttons ── */
.hrms-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;
}
.hrms-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(28,180,64,.35); color: #FAFAFA; }

.hrms-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;
}
.hrms-btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.35); color: #FAFAFA; }

.hrms-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;
}
.hrms-learn-more:hover { gap: 11px; color: var(--brand); }

/* ── Progress bar ── */
#hrms-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 ── */
#hrms-cursor, #hrms-cursor-ring { position: fixed; pointer-events: none; border-radius: 50%; z-index: 99999; transform: translate(-50%,-50%); opacity: 0; left: -500px; top: -500px; }
#hrms-cursor { width: 8px; height: 8px; background: var(--brand); transition: width .2s, height .2s, opacity .3s; }
#hrms-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) { #hrms-cursor, #hrms-cursor-ring { display: none !important; } }

/* ================================================================
   NAVBAR
================================================================ */
#hrms-nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-white); border-bottom: 1px solid var(--border-light);
}
.hrms-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) { .hrms-nav-inner { padding: 0 40px; } }
@media(max-width: 767px) { .hrms-nav-inner { padding: 0 24px; } }

.hrms-nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.hrms-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. */
.hrms-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 */
.hrms-nav-indicator { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brand); border-radius: 2px; pointer-events: none; opacity: 0; }
.hrms-nav-links li { position: static; height: 100%; display: flex; align-items: center; }
.hrms-nav-links > li > a,
.hrms-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;
}
.hrms-nav-links > li > a:hover,
.hrms-nav-links > li > button:hover,
.hrms-nav-links > li > a.active,
.hrms-nav-links > li > button.active { color: var(--brand); }
@media(max-width: 1023px) { .hrms-nav-links { display: none; } }

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

.hrms-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) { .hrms-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. */
.hrms-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;
}
.hrms-nav-links li:hover .hrms-drop { opacity: 1; pointer-events: auto; transform: translateY(0); }
.hrms-drop-inner { max-width: 1440px; margin: 0 auto; padding: 0 80px; }
@media(max-width: 1199px) { .hrms-drop-inner { padding: 0 40px; } .hrms-drop { padding: 24px 0; } }

.hrms-drop-group { margin-bottom: 28px; }
.hrms-drop-group:last-child { margin-bottom: 0; }
.hrms-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; }
/* Flat Solutions list (no per-category grouping, per Dropdown.svg): browser-
   balanced 2-column distribution — fills column 1 top-to-bottom, then
   column 2 — rather than a left-to-right grid wrap. */
.hrms-drop-flatlist { column-count: 2; column-gap: 32px; width: 560px; }
.hrms-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; }
.hrms-drop-link:hover { color: var(--brand); }

/* 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 .hrms-nav-links li is
   static by default. Declared after the base .hrms-drop rule (and its
   narrower-viewport media query) so these overrides win the cascade at
   every width without needing extra specificity. */
.hrms-nav-links li.hrms-nav-drop-anchor { position: relative; }
.hrms-drop-compact {
  position: absolute; top: calc(100% + 1px); left: 0; width: max-content; max-width: 660px;
  border: 1px solid var(--border-light); border-radius: 12px;
  padding: 24px 28px;
}
.hrms-drop-compact .hrms-drop-inner { max-width: none; margin: 0; padding: 0; }

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

/* ── Mobile nav ── */
#hrms-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;
}
#hrms-mob.hrms-mob-open { transform: translateX(0); }
.hrms-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); }
.hrms-mob-link:hover { color: var(--brand); }
.hrms-mob-x { position: absolute; top: 20px; right: 20px; z-index: 1101; background: none; border: none; padding: 8px; cursor: pointer; color: var(--text-primary); }
.hrms-mob-item-wrapper { width: 100%; display: block; }
.mob-arrow-icon { transition: transform 0.3s ease; }
.hrms-mob-drop-trigger.open .mob-arrow-icon { transform: rotate(180deg); }
.hrms-mob-drop { height: 0; overflow: hidden; transition: height 0.3s ease-out; display: flex; flex-direction: column; padding-left: 16px; }
.hrms-mob-sublink { display: block; padding: 10px 0; font-size: 15px; color: var(--text-secondary); }
.hrms-mob-sublink:hover { color: var(--brand); }

/* ================================================================
   HERO
================================================================ */
.hrms-hero { padding: 60px 0 90px; }
/* Pages with a breadcrumb (About/Solutions/Industry/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. */
.hrms-hero:has(.hrms-breadcrumb) { padding-top: 32px; }
/* align-items left at its default (stretch) so both grid items share the
   row's natural height — needed for .hrms-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. */
.hrms-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media(max-width: 1023px) { .hrms-hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hrms-hero-grid > * { display: flex; flex-direction: column; justify-content: center; }
.hrms-hero-center { max-width: 720px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hrms-hero-center .hrms-hero-btns { justify-content: center; }
.hrms-hero-visual { margin-top: 56px; overflow: hidden; }
.hrms-hero-visual img { width: 100%; height: auto; display: block; }
.hrms-hero-media { overflow: hidden; background: var(--bg-tint); width: 100%; max-width: 600px; aspect-ratio: 1 / 1; align-self: center; }
.hrms-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hrms-hero-btns { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
.hrms-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; }
.hrms-breadcrumb a { font-weight: 600; color: var(--text-primary); }
.hrms-breadcrumb a:hover { color: var(--brand); }
.hrms-breadcrumb svg { flex-shrink: 0; }

/* ================================================================
   MARQUEE (static row on light bg, no scroll needed at few logos but
   kept scrollable/loop-capable for consistency)
================================================================ */
.hrms-marquee-sec { border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); overflow: hidden; }
.hrms-marquee-wrap { position: relative; overflow: hidden; }
.hrms-marquee-track { display: flex; align-items: center; width: max-content; animation: hrms-mq 40s linear infinite; }
@keyframes hrms-mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hrms-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; }
.hrms-plogo:hover { opacity: 1; }
@media(max-width: 767px) { .hrms-plogo { width: 220px; height: 70px; padding: 0 24px; } }

/* ================================================================
   CARD GRIDS (Why Choose Us / Benefits — light gray box cards)
================================================================ */
.hrms-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media(max-width: 1023px) { .hrms-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 639px) { .hrms-card-grid { grid-template-columns: 1fr; } }
/* Fixed-column-count modifier (e.g. a 2-card section) that still collapses on mobile */
.hrms-card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media(max-width: 639px) { .hrms-card-grid.cols-2 { grid-template-columns: 1fr; } }
.hrms-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; }
.hrms-box-card:hover { border-bottom-color: var(--brand); }
/* Same card, placed on a dark section (e.g. Industries We Serve grid) */
.hrms-box-card-dark { background: rgba(255,255,255,.04); border-bottom-color: rgba(255,255,255,.15); }
.hrms-box-card-dark .hrms-box-card-title { color: var(--text-on-dark); }
.hrms-box-card-ico { width: 32px; height: 32px; color: var(--brand); }
.hrms-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
================================================================ */
.hrms-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
   .hrms-svc-acc accordion — otherwise the (always-rendered) active
   panel's full content shows dumped below the hidden tab list. */
@media(max-width: 1023px) { .hrms-tabs-grid { display: none; } }
.hrms-tabs-list { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; }
.hrms-tab { display: flex; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border-dark); cursor: pointer; }
.sec-white .hrms-tab, .sec-tint .hrms-tab { border-bottom-color: var(--border-light); }
.hrms-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; }
.hrms-tab:hover .hrms-tab-arr, .hrms-tab.hrms-tab-on .hrms-tab-arr { width: 22px; margin-right: 12px; opacity: 1; }
.hrms-tab-txt { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: 17px; color: inherit; opacity: .6; transition: opacity .25s, color .25s; }
.hrms-tab:hover .hrms-tab-txt, .hrms-tab.hrms-tab-on .hrms-tab-txt { opacity: 1; color: var(--brand); }
.hrms-panel { display: none; flex: 1; flex-direction: column; gap: 20px; }
.hrms-panel.hrms-panel-on { display: flex !important; }
.hrms-panel-ico { width: 32px; height: 32px; color: var(--brand); }
.hrms-panel-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.hrms-panel-list li { position: relative; padding-left: 18px; }
.hrms-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). */
.hrms-body ul, .hrms-body ol { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding: 0; list-style: none; }
.hrms-body ul li { position: relative; padding-left: 18px; }
.hrms-body ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.hrms-body ol { counter-reset: hrms-ol; }
.hrms-body ol li { position: relative; padding-left: 22px; counter-increment: hrms-ol; }
.hrms-body ol li::before { content: counter(hrms-ol) "."; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--brand); }

.hrms-svc-acc { display: none; }
@media (max-width: 1023px) {
  .hrms-svc-acc { display: block; }
  .hrms-acc-item { border-bottom: 1px solid var(--border-light); }
  .sec-dark .hrms-acc-item { border-bottom-color: var(--border-dark); }
  .hrms-acc-item:first-child { border-top: 1px solid var(--border-light); }
  .sec-dark .hrms-acc-item:first-child { border-top-color: var(--border-dark); }
  .hrms-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; }
  .hrms-acc-txt { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 16px; color: inherit; }
  .hrms-acc-open .hrms-acc-txt { color: var(--brand); }
  .hrms-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; }
  .hrms-acc-open .hrms-acc-chev { transform: rotate(180deg); opacity: 1; color: var(--brand); border-color: var(--brand); }
  .hrms-acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .hrms-acc-inner { padding: 4px 0 24px; }
}

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

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

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

/* ================================================================
   CASE STUDIES / BLOG-STYLE CARDS
================================================================ */
.hrms-cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
@media(max-width: 767px) { .hrms-cases-grid { grid-template-columns: 1fr; } }
.hrms-cases-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media(max-width: 1023px) { .hrms-cases-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 767px) { .hrms-cases-grid.cols-3 { grid-template-columns: 1fr; } }
.hrms-case-card { display: block; overflow: hidden; background: var(--bg-tint); transition: transform .3s ease; }
.hrms-case-card:hover { transform: translateY(-4px); }
.hrms-case-img { aspect-ratio: 620/350; overflow: hidden; background: var(--bg-tint); }
.hrms-case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hrms-case-card:hover .hrms-case-img img { transform: scale(1.05); }
.hrms-case-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.hrms-case-date { font-size: 13px; color: var(--text-muted); }
.hrms-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 */
.hrms-quote-block { display: grid; grid-template-columns: 220px 1fr; background: var(--bg-tint); overflow: hidden; }
@media(max-width: 767px) { .hrms-quote-block { grid-template-columns: 1fr; } }

/* Full-width hero image on the case study detail template */
.hrms-case-hero-wrap { margin-bottom: 64px; }
.hrms-case-hero-media { overflow: hidden; aspect-ratio: 16/7; }
.hrms-case-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media(max-width: 767px) { .hrms-case-hero-media { aspect-ratio: 4/3; } }

.hrms-testi-swiper { position: relative; }
.hrms-testi-swiper .swiper-slide { display: grid; grid-template-columns: 380px 1fr; background: var(--bg-tint); overflow: hidden; min-height: 380px; }
@media(max-width: 767px) { .hrms-testi-swiper .swiper-slide { grid-template-columns: 1fr; } }
.hrms-testi-photo { overflow: hidden; width: 100%; aspect-ratio: 1 / 1; align-self: start; }
.hrms-testi-photo img { width: 100%; height: 100%; object-fit: cover; }
.hrms-testi-content {
   padding: 48px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   gap: 24px;
}
@media(max-width: 767px) { .hrms-testi-content { padding-right: 48px; padding-bottom: 96px; } }
@media(max-width: 639px) { .hrms-testi-content { padding: 28px; padding-bottom: 88px; } }
.hrms-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); }
.hrms-testi-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden; }
.hrms-testi-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hrms-testi-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; color: var(--text-primary); }
.hrms-testi-role { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--text-secondary); }
.hrms-testi-nav { display: flex; align-items: center; gap: 16px; position: absolute; right: 48px; bottom: 48px; z-index: 5; }
@media(max-width: 639px) { .hrms-testi-nav { right: 28px; bottom: 28px; } }
.hrms-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; }
.hrms-testi-btn:hover { background: var(--border-light); }
.hrms-testi-cnt { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--text-secondary); }

/* ================================================================
   FAQ ACCORDION
================================================================ */
.hrms-faq-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; margin-top: 48px; align-items: start; }
@media(max-width: 1023px) { .hrms-faq-grid { grid-template-columns: 1fr; gap: 24px; } }
.hrms-faq-list { display: flex; flex-direction: column; gap: 12px; }
.hrms-faq-item { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 6px; overflow: hidden; }
.hrms-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; }
.hrms-faq-q { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 16px; color: var(--text-primary); }
.hrms-faq-icon { flex-shrink: 0; width: 18px; height: 18px; position: relative; }
.hrms-faq-icon::before, .hrms-faq-icon::after { content:""; position:absolute; background: var(--text-primary); transition: transform .2s; }
.hrms-faq-icon::before { left:0; top:50%; width:100%; height:2px; transform: translateY(-50%); }
.hrms-faq-icon::after { top:0; left:50%; width:2px; height:100%; transform: translateX(-50%); }
.hrms-faq-item.open .hrms-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 */
.hrms-faq-body { height: 0; overflow: hidden; }
.hrms-faq-body-inner { padding: 0 24px 22px; }

/* ================================================================
   CTA — big centered headline on dark bg
================================================================ */
.hrms-cta-sec { padding: 120px 0; text-align: center; }
@media(max-width: 767px) { .hrms-cta-sec { padding: 70px 0; } }
.hrms-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; }
.hrms-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; }
.hrms-cta-btnwrap { margin-top: 36px; display: flex; justify-content: center; }

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

/* ================================================================
   LEGAL PAGE CONTENT (Terms & Conditions / Privacy Policy) — styles the
   page's own standard editor body (the_content()), not ACF fields, so
   this targets bare tags rather than the hrms-h2/hrms-body utility
   classes used everywhere else in the theme.
================================================================ */
.hrms-legal { max-width: 860px; margin: 0 auto; }
.hrms-legal 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; }
.hrms-legal 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; }
.hrms-legal h2:first-child, .hrms-legal h3:first-child { margin-top: 0; }
.hrms-legal 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 .hrms-body ul/ol above — 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. */
.hrms-legal ul, .hrms-legal 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; }
.hrms-legal ul li { position: relative; padding-left: 18px; }
.hrms-legal ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.hrms-legal ol { counter-reset: hrms-ol; }
.hrms-legal ol li { position: relative; padding-left: 22px; counter-increment: hrms-ol; }
.hrms-legal ol li::before { content: counter(hrms-ol) "."; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--brand); }
.hrms-legal a { color: var(--brand); text-decoration: underline; }
.hrms-legal strong { color: var(--text-primary); font-weight: 600; }

/* ================================================================
   CONTACT FORM
================================================================ */
.hrms-form-field { margin-bottom: 38px; }
.hrms-form-label { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--text-primary); margin-bottom: 8px; }
.hrms-form-req { color: var(--error); }
.hrms-input, .hrms-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;
}
.hrms-input::placeholder, .hrms-textarea::placeholder { color: var(--text-muted); }
.hrms-input:focus, .hrms-textarea:focus { border-bottom-color: var(--brand); }
.hrms-textarea { min-height: 100px; resize: vertical; }
.hrms-input.hrms-error, .hrms-textarea.hrms-error { border-bottom-color: var(--error); }
.hrms-field-msg { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; color: var(--error); margin-top: 6px; display: none; }
.hrms-form-field.invalid .hrms-field-msg { display: block; }

/* The form is a flex column (.hrms-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. */
#hrms-contact-form button.hrms-btn-primary { align-self: flex-start; }

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

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

/* Video placeholder block (present as literally "Video" text in Figma).
   When an ACF oEmbed value is set, .hrms-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. */
.hrms-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;
}
.hrms-video-block.hrms-has-video {
  min-height: 0; height: 0; padding-top: 56.25%; display: block;
}
.hrms-video-block.hrms-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
================================================================ */
.hrms-swiper .swiper-pagination-bullet { background: var(--text-secondary); opacity: .3; }
.hrms-swiper .swiper-pagination-bullet-active { background: var(--brand); opacity: 1; }
