/* ================================================================
   PAGODA DMS — 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;
}

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

/* ── Layout ── */
.pagoda-wrap { max-width: 1440px; margin: 0 auto; padding: 0 80px; }
.pagoda-wrap--narrow { max-width: 1184px; } /* 80% of the standard 1280px content width (blog detail page) */
.pagoda-sec { padding: 100px 0; }
@media(max-width: 1199px) { .pagoda-wrap { padding: 0 40px; } }
@media(max-width: 767px) { .pagoda-wrap { padding: 0 24px; } .pagoda-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 .pagoda-h1, .sec-dark .pagoda-h2, .sec-dark .pagoda-h3, .sec-dark .pagoda-h4 { color: var(--text-on-dark); }
.sec-dark .pagoda-body { color: var(--text-on-dark-muted); }
.sec-dark .pagoda-eyebrow { color: var(--brand); }

/* Decorative dark-section network background (green globe artwork). Figma's
   own export of this element (Frame 3179.svg) draws it as a 1440x810 rect
   offset -57px above a 495px-tall frame — i.e. the artwork is taller than
   the section and anchored so its BOTTOM sits 258px below the section's
   bottom edge (810 - 57 - 495 = 258), not stretched to the section's own
   height and not simply cropped to a thin bottom strip. Anchoring from the
   bottom (instead of matching that top offset literally) keeps the same
   fixed-size artwork — and so the same visible slice of it — hugging the
   bottom on taller sections (Stats) as well as the short CTA block. The
   source PNG is 1344x576 (a different aspect ratio); Figma's own render
   stretches it non-uniformly to fill the full 1440x810 box, so this must
   match with background-size 100% 100%, not an aspect-preserving size. */
.sec-dark-fx { position: relative; overflow: hidden; }
.sec-dark-fx-bg {
  position: absolute; left: 0; right: 0; top: 0px; height: 100%;
/* 	 position: absolute; left: 0; right: 0; bottom: -258px; height: 810px; */
/*   background: url('../img/extracted/home/home-07.png') top left / 100% 100% no-repeat; */
  background: url('https://dms.pagodalabs.com/wp-content/uploads/2026/10/background-scaled.webp') top left / 100% 100% no-repeat;
  opacity: .6; pointer-events: none;
}
/* Mobile: tall, narrow sections made the 100% 100% stretch distort the art ~4x
   vertically (blurry streaks). Keep its aspect ratio and crop instead. */
@media (max-width: 767px) {
  .sec-dark-fx-bg { background-size: cover; background-position: center; }
}
.sec-dark-fx > *:not(.sec-dark-fx-bg) { position: relative; z-index: 1; }

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

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

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

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

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

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

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

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

.pagoda-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) { .pagoda-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. */
.pagoda-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;
}
.pagoda-nav-links li:hover .pagoda-drop { opacity: 1; pointer-events: auto; transform: translateY(0); }
.pagoda-drop-inner { max-width: 1440px; margin: 0 auto; padding: 0 80px; }
@media(max-width: 1199px) { .pagoda-drop-inner { padding: 0 40px; } .pagoda-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. */
.pagoda-drop-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 32px; }
.pagoda-drop-cols > * { min-width: 0; }
.pagoda-drop-group { margin-bottom: 28px; }
.pagoda-drop-group:last-child { margin-bottom: 0; }
.pagoda-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; }
.pagoda-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; }
.pagoda-drop-link:hover { color: var(--brand); }
.pagoda-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; }
.pagoda-drop-bottom-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 17px; color: var(--text-primary); }
.pagoda-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 .pagoda-nav-links li is
   static by default. Declared after the base .pagoda-drop rule (and its
   narrower-viewport media query) so these overrides win the cascade at
   every width without needing extra specificity. */
.pagoda-nav-links li.pagoda-nav-drop-anchor { position: relative; }
.pagoda-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;
}
.pagoda-drop-compact .pagoda-drop-inner { max-width: none; margin: 0; padding: 0; }

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

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

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

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

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

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

/* ================================================================
   STATS
================================================================ */
.pagoda-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; margin-top: 48px; }
@media(max-width: 639px) { .pagoda-stats-row { grid-template-columns: repeat(2, 1fr); } }
.pagoda-stat { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--brand); }
.pagoda-stat-n { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 42px; color: var(--text-on-dark); line-height: 1; }
.pagoda-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) */
.pagoda-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
@media(max-width: 639px) { .pagoda-result-grid { grid-template-columns: 1fr; } }
.pagoda-result-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media(max-width: 639px) { .pagoda-result-grid.cols-2 { grid-template-columns: 1fr; } }
.pagoda-result-n { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(28px, 3.5vw, 40px); color: var(--brand); line-height: 1; }
.pagoda-result-l { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 16px; color: var(--text-primary); margin-top: 10px; }
.pagoda-result-d { font-size: 14px !important; margin-top: 6px; }

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

/* ================================================================
   CASE STUDIES / BLOG-STYLE CARDS
================================================================ */
.pagoda-cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
@media(max-width: 767px) { .pagoda-cases-grid { grid-template-columns: 1fr; } }
.pagoda-cases-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media(max-width: 1023px) { .pagoda-cases-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 767px) { .pagoda-cases-grid.cols-3 { grid-template-columns: 1fr; } }
.pagoda-cases-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media(max-width: 1023px) { .pagoda-cases-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 767px) { .pagoda-cases-grid.cols-4 { grid-template-columns: 1fr; } }.pagoda-case-card { display: block; overflow: hidden; background: var(--bg-tint); transition: transform .3s ease; }
.pagoda-case-card:hover { transform: translateY(-4px); }
.pagoda-case-img { aspect-ratio: 500/350; overflow: hidden; background: var(--bg-tint); }
.pagoda-case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pagoda-case-card:hover .pagoda-case-img img { transform: scale(1.05); }
.pagoda-case-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pagoda-case-date { font-size: 13px; color: var(--text-muted); }
.pagoda-case-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 19px; color: var(--text-primary); line-height: 1.35; }
/* Shown by the Case Studies / Blogs teasers when nothing is published */
.pagoda-empty-state { margin-top: 48px; padding: 40px 24px; text-align: center; font-size: 16px; color: var(--text-secondary); border: 1px dashed var(--border-light-2); }

/* Blogs listing card — featured image (artwork supplied by design, incl.
   logo + title) over a white footer with meta + button. */
.pagoda-blog-card { container-type: inline-size; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--border-light); box-shadow: 0 8px 24px rgba(18,18,18,.06); transition: transform .3s ease, box-shadow .3s ease; }
.pagoda-blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(18,18,18,.12); }
.pagoda-blog-card-media { display: block; aspect-ratio: 625/370; overflow: hidden; background: var(--bg-tint); }
.pagoda-blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pagoda-blog-card:hover .pagoda-blog-card-media img { transform: scale(1.03); }
.pagoda-blog-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; padding: 12px 5%; background: #fff; }
.pagoda-blog-card-meta { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--text-secondary); }
.pagoda-blog-card-btn { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px; flex: 0 0 auto; background: var(--brand); color: #FAFAFA; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: 15px; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.pagoda-blog-card-btn:hover { color: #FAFAFA; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(28,180,64,.35); }
/* Narrow cards (3-col grid, phones): shrink the footer so it stays one line */
@container (max-width: 460px) {
  .pagoda-blog-card-meta { font-size: 12.5px; }
  .pagoda-blog-card-btn { font-size: 13px; padding: 7px 14px; }
}

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

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

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

/* ================================================================
   CTA — headline left, laptop mockup right, on black with a soft
   grey glow behind the laptop (CTA Banner.png)
================================================================ */
.pagoda-cta-sec {
  position: relative; overflow: hidden; padding: 72px 0;
  background: radial-gradient(ellipse 34% 75% at 75% 55%, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 100%), #000;
}
.pagoda-cta-grid { display: grid; grid-template-columns: 1fr minmax(0, 460px); align-items: center; gap: 48px; }
.pagoda-cta-text { max-width: 620px; }
.pagoda-cta-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: clamp(34px, 4.4vw, 64px); color: var(--text-on-dark); line-height: 1.1; }
.pagoda-cta-body { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.4; color: #D4D4D4; margin-top: 24px; }
.pagoda-cta-btnwrap { margin-top: 36px; display: flex; }
.pagoda-cta-media { justify-self: end; width: 100%; }
.pagoda-cta-media img { width: 100%; }
@media(max-width: 1023px) {
  .pagoda-cta-sec { padding: 64px 0; background: radial-gradient(ellipse 70% 40% at 50% 78%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 100%), #000; }
  .pagoda-cta-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .pagoda-cta-text { margin: 0 auto; }
  .pagoda-cta-btnwrap { justify-content: center; }
  .pagoda-cta-media { justify-self: center; max-width: 460px; margin-right: 0; }
}

/* ================================================================
   FOOTER
================================================================ */
.pagoda-footer { background: var(--bg-white); padding: 72px 0 32px; border-top: 1px solid var(--border-light); }
.pagoda-ft-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; flex-wrap: wrap; margin-bottom: 48px; }
.pagoda-ft-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 300px; flex-shrink: 0; }
.pagoda-ft-logo { height: 40px; width: auto; object-fit: contain; margin: 0; align-self: flex-start; }
.pagoda-ft-brand p, .pagoda-ft-brand a { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: var(--text-secondary); }
.pagoda-ft-navs { display: flex; gap: 64px; flex-wrap: wrap; }
.pagoda-ft-col { display: flex; flex-direction: column; gap: 14px; min-width: 140px; }
.pagoda-ft-heading { font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; font-weight: 700; color: var(--brand); margin-bottom: 2px; }
.pagoda-ft-col a { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: var(--text-primary); transition: color .2s; }
.pagoda-ft-col a:hover { color: var(--brand); }
.pagoda-ft-divider { border: none; border-top: 1px solid var(--border-light); margin: 0 0 24px; }
.pagoda-ft-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.pagoda-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; }
.pagoda-ft-copy img { height: 16px; width: auto; display: inline-block; vertical-align: middle; }
.pagoda-ft-legal { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pagoda-ft-legal a { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--text-secondary); transition: color .2s; }
.pagoda-ft-legal a:hover { color: var(--brand); }
@media(max-width: 767px) {
  .pagoda-footer { padding: 48px 0 28px; }
  .pagoda-ft-top { flex-direction: column; gap: 36px; }
  .pagoda-ft-navs { gap: 36px; }
  .pagoda-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 pagoda-h2/pagoda-body utility classes used
   everywhere else in the theme. Same rich-text treatment fits both.
================================================================ */
.pagoda-legal, .pagoda-article { max-width: 860px; margin: 0 auto; }
.pagoda-legal h2, .pagoda-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; }
.pagoda-legal h3, .pagoda-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; }
.pagoda-legal h2:first-child, .pagoda-legal h3:first-child,
.pagoda-article h2:first-child, .pagoda-article h3:first-child { margin-top: 0; }
.pagoda-legal p, .pagoda-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 .pagoda-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. */
.pagoda-legal ul, .pagoda-legal ol, .pagoda-article ul, .pagoda-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; }
.pagoda-legal ul li, .pagoda-article ul li { position: relative; padding-left: 18px; }
.pagoda-legal ul li::before, .pagoda-article ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.pagoda-legal ol, .pagoda-article ol { counter-reset: pagoda-ol; }
.pagoda-legal ol li, .pagoda-article ol li { position: relative; padding-left: 22px; counter-increment: pagoda-ol; }
.pagoda-legal ol li::before, .pagoda-article ol li::before { content: counter(pagoda-ol) "."; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--brand); }
.pagoda-legal a, .pagoda-article a { color: var(--brand); text-decoration: underline; }
.pagoda-legal strong, .pagoda-article strong { color: var(--text-primary); font-weight: 600; }

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

/* Phone field: country-code selector laid out beside the number */
.pagoda-phone-row { display: flex; gap: 10px; }
.pagoda-country-select {
  flex: 0 0 170px; width: 170px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--bg-white); border: none; border-bottom: 1px solid var(--border-light-2); border-radius: 0;
  padding: 10px 14px 10px 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: var(--text-primary);
  outline: none; cursor: pointer; transition: border-color .2s;
}
.pagoda-country-select:focus { border-bottom-color: var(--brand); }
.pagoda-country-select.pagoda-error { border-bottom-color: #E5484D; }
.pagoda-country-select option { background: var(--bg-white); color: var(--text-primary); }
.pagoda-phone-row .pagoda-input { flex: 1 1 160px; min-width: 0; width: auto; }
@media (max-width: 380px) {
  .pagoda-phone-row { flex-wrap: wrap; }
  .pagoda-country-select { flex: 1 1 100%; width: 100%; max-width: 100%; }
  .pagoda-phone-row .pagoda-input { flex: 1 1 100%; }
}

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

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

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

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