/*
Theme Name: joxel web
Author: Disruptorsmedia
Description: Custom theme project.
Version: 1.0
*/

/* ==========================================================================
   The Joxel Group, Premium Redesign
   Design system: warm soft-tone luxury-tech corporate identity
   ========================================================================== */

/* ----------  Design Tokens  ---------- */
:root {
  /* Brand palette, derived from The Joxel Group logo (teal · navy · cyan) */
  --sage:        #0E7C74;   /* primary, logo teal-green wordmark */
  --sage-deep:   #0A5A54;
  --sage-soft:   #5AA69F;
  --blue:        #1AA3CE;   /* secondary, logo bright cyan */
  --blue-deep:   #27317E;   /* logo navy/indigo swoosh */
  --bronze:      #147F9E;   /* accent, deepened cyan (echoes the tagline) */
  --bronze-soft: #7CC8DE;

  --beige:       #EFF4F3;   /* soft cool background (never pure white) */
  --cream:       #FBFDFC;   /* card surface */
  --cream-2:     #F0F6F5;
  --surface:     #D9E5E3;   /* neutral surface */
  --gray:        #9FB0AE;   /* elegant cool gray */
  --gray-line:   #DCE7E4;

  --ink:         #33434C;   /* text primary (cool slate) */
  --ink-2:       #5B6A72;   /* text secondary */
  --ink-3:       #849499;

  /* Semantic */
  --bg:          var(--beige);
  --bg-tint:     #E4EEEC;
  --sec-tint:    rgba(26,163,206,.09);   /* translucent brand wash for section blends */
  --heading:     #213139;
  --footer-bg:   #0C3E3A;   /* deep teal */
  --footer-ink:  #D5E7E3;

  /* Typography */
  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Shadows, soft, layered */
  --sh-1: 0 1px 2px rgba(60,70,80,.04), 0 4px 12px rgba(60,70,80,.05);
  --sh-2: 0 4px 10px rgba(60,70,80,.05), 0 18px 40px -12px rgba(60,70,80,.14);
  --sh-3: 0 10px 24px rgba(60,70,80,.08), 0 40px 80px -24px rgba(60,70,80,.22);
  --sh-glow: 0 20px 60px -20px rgba(14,124,116,.45);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Layout */
  --container: 1200px;
  --container-wide: 1340px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --section-y: clamp(4rem, 9vw, 8rem);
}

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 640px at 100% -8%, rgba(26,163,206,.13), transparent 60%),
    radial-gradient(900px 620px at -12% 16%, rgba(14,124,116,.11), transparent 58%),
    radial-gradient(760px 620px at 18% 62%, rgba(39,49,126,.06), transparent 55%),
    radial-gradient(1000px 760px at 108% 88%, rgba(26,163,206,.10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

/* ----------  Typography  ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--heading);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.35rem); font-weight: 480; }
h2 { font-size: clamp(1.95rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
p  { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-sans);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--bronze), transparent);
}
.eyebrow.center::before { display: none; }

.lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--ink-2); line-height: 1.7; }

/* ----------  Layout helpers  ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.wide { max-width: var(--container-wide); }
.container.narrow { max-width: 820px; }
.section { padding-block: var(--section-y); position: relative; }
.section.tight { padding-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }
.section-head { max-width: 660px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; }
.stack > * + * { margin-top: 1.1rem; }
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.9rem); }
/* Responsive collapse for inline 3-column grids (feature cards, testimonials, metro cards) */
@media (max-width: 880px) { .grid[style*="repeat(3"] { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 560px) { .grid[style*="repeat(3"] { grid-template-columns: 1fr !important; } }

/* Decorative frosted gradient blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0; pointer-events: none; }
.blob.sage  { background: radial-gradient(circle, rgba(14,124,116,.55), transparent 70%); }
.blob.blue  { background: radial-gradient(circle, rgba(26,163,206,.5), transparent 70%); }
.blob.bronze{ background: radial-gradient(circle, rgba(26,163,206,.35), transparent 70%); }
.section > .container { position: relative; z-index: 1; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--sage);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.7rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .96rem;
  letter-spacing: .01em;
  border-radius: var(--r-pill);
  color: var(--cream);
  background: var(--btn-bg);
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .3s;
  box-shadow: var(--sh-1);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.24), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--sh-glow); }
.btn:hover::after { opacity: 1; }
.btn .ico { transition: transform .4s var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }

.btn.ghost {
  background: transparent; color: var(--sage-deep);
  box-shadow: inset 0 0 0 1.5px rgba(14,124,116,.5);
}
.btn.ghost:hover { background: rgba(14,124,116,.08); box-shadow: inset 0 0 0 1.5px var(--sage); }
.btn.light { background: var(--cream); color: var(--sage-deep); }
.btn.bronze { --btn-bg: var(--bronze); }
.btn.sm { padding: .7rem 1.3rem; font-size: .88rem; }
.btn.block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .93rem; color: var(--sage-deep);
  transition: gap .3s var(--ease-out), color .3s;
}
.link-arrow .ico { transition: transform .35s var(--ease-out); }
.link-arrow:hover { color: var(--bronze); gap: .75rem; }
.link-arrow:hover .ico { transform: translateX(3px); }

.ico { width: 1.05em; height: 1.05em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.topbar {
  background: var(--sage-deep);
  color: var(--footer-ink);
  font-size: .82rem;
  letter-spacing: .01em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; padding-block: .35rem; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; color: var(--footer-ink); transition: color .25s; opacity: .92; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.topbar .tb-right { display: flex; gap: 1.2rem; }
.topbar .ico { width: 15px; height: 15px; opacity: .8; }
@media (max-width: 760px) { .topbar .tb-right { display: none; } .topbar .tb-left { gap: 1.1rem; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,241,.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s, background .4s, border-color .4s;
}
.site-header.scrolled { box-shadow: var(--sh-1); border-color: var(--gray-line); background: rgba(251,248,241,.9); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; z-index: 2; }
.brand img { height: 42px; width: auto; transition: transform .4s var(--ease-out); }
.brand:hover img { transform: scale(1.04); }

.nav-menu { display: flex; align-items: center; gap: clamp(.4rem, 1.1vw, 1.1rem); margin-inline: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .32rem; white-space: nowrap;
  padding: .6rem .6rem; font-weight: 500; font-size: .93rem; color: var(--ink);
  border-radius: var(--r-pill); transition: color .25s, background .25s;
}
.nav-item:hover > .nav-link { background: var(--bg-tint); }
.nav-link .caret { width: 12px; height: 12px; transition: transform .3s var(--ease-out); opacity: .6; }
.nav-item:hover > .nav-link,
.nav-link.active { color: var(--sage-deep); }
.nav-item:hover > .nav-link .caret { transform: rotate(180deg); }
.nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--bronze);
}

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 264px; padding: .7rem;
  background: var(--cream);
  border: 1px solid var(--gray-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
  z-index: 50;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.dropdown a {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .85rem; border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 500; color: var(--ink);
  transition: background .25s, color .25s, padding .25s;
}
.dropdown a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gray); flex: none; transition: background .25s, transform .25s; }
.dropdown a:hover { background: var(--bg-tint); color: var(--sage-deep); padding-left: 1.05rem; }
.dropdown a:hover .dot { background: var(--bronze); transform: scale(1.4); }
/* Nested sub-service (Custom Product children) inside a dropdown */
.dropdown a.sub { padding-left: 2.05rem; }
.dropdown a.sub .dot { width: 4px; height: 4px; background: var(--gray-line); }

.nav-cta { display: flex; align-items: center; gap: .9rem; flex: none; }
.nav-toggle { display: none; }

/* Mobile drawer */
.drawer-root { position: fixed; inset: 0; overflow: hidden; z-index: 199; pointer-events: none; }
body.menu-open .drawer-root { pointer-events: auto; }
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(60,70,80,.4);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; z-index: 199;
}
.mobile-drawer {
  position: absolute; top: 0; right: 0; height: 100%; width: min(88vw, 400px);
  background: var(--cream); z-index: 200;
  transform: translateX(100%); transition: transform .5s var(--ease-out);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px -20px rgba(60,70,80,.35);
  overflow-y: auto;
}
body.menu-open .mobile-drawer { transform: translateX(0); }
body.menu-open .drawer-backdrop { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem var(--gutter); border-bottom: 1px solid var(--gray-line); }
.drawer-nav { padding: 1rem var(--gutter) 2rem; }
.m-group { border-bottom: 1px solid var(--gray-line); }
.m-top {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 0; font-size: 1.05rem; font-weight: 500; font-family: var(--font-serif); color: var(--heading);
}
.m-top .caret { width: 16px; height: 16px; transition: transform .35s var(--ease-out); color: var(--sage); }
.m-group.open .m-top .caret { transform: rotate(180deg); }
.m-sub { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.m-group.open .m-sub { max-height: 560px; }
.m-sub a { display: block; padding: .6rem 0 .6rem 1rem; color: var(--ink-2); font-size: .95rem; border-left: 2px solid var(--gray-line); margin-bottom: .1rem; transition: color .25s, border-color .25s; }
.m-sub a:hover { color: var(--sage-deep); border-color: var(--bronze); }
.m-sub a.child { padding-left: 2rem; font-size: .9rem; opacity: .92; }
.drawer-foot { margin-top: auto; padding: 1.5rem var(--gutter); background: var(--bg-tint); }

.hamburger { width: 26px; height: 18px; position: relative; }
.hamburger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--heading); transition: transform .4s var(--ease-out), opacity .3s; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1240px) {
  .nav-menu, .nav-cta .btn { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--cream-2); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.18fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .accent { font-style: italic; color: var(--sage); }
.hero .lede { max-width: 38ch; margin-bottom: 2rem; text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

.hero-visual { position: relative; z-index: 1; }
.hero-figure {
  position: relative; border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-3);
  aspect-ratio: 5/4;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 88% center; }
.hero-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,90,84,.35)); }
.hero-frame { position: absolute; inset: 0; border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); pointer-events: none; }

/* Floating chips */
.float-chip {
  position: absolute; z-index: 3;
  background: rgba(251,248,241,.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-md); padding: .85rem 1.1rem;
  box-shadow: var(--sh-2);
  display: flex; align-items: center; gap: .7rem;
}
.float-chip .fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sage); color: var(--cream); flex: none; }
.float-chip .fc-icon .ico { width: 20px; height: 20px; }
.float-chip .fc-num { font-family: var(--font-serif); font-size: 1.3rem; color: var(--heading); line-height: 1; }
.float-chip .fc-label { font-size: .74rem; color: var(--ink-2); letter-spacing: .02em; }
.float-chip.c1 { top: 8%; left: -6%; animation: floaty 6s ease-in-out infinite; }
.float-chip.c2 { bottom: 10%; right: -5%; animation: floaty 7s ease-in-out infinite .6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero .lede { max-width: 100%; }
  .float-chip.c1 { left: 2%; } .float-chip.c2 { right: 2%; }
  body { background-attachment: scroll; }
}
@media (max-width: 620px) {
  .hero .lede { text-align: left; hyphens: manual; }
  .float-chip { padding: .6rem .8rem; }
  .float-chip .fc-num { font-size: 1.05rem; }
}

/* ==========================================================================
   Page banner (inner pages)
   ========================================================================== */
.page-banner { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); background: linear-gradient(160deg, var(--bg-tint), var(--beige)); }
.page-banner::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% -10%, rgba(26,163,206,.22), transparent 45%), radial-gradient(circle at 0% 120%, rgba(14,124,116,.2), transparent 45%); }
.page-banner .container { position: relative; z-index: 1; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ink-3); margin-bottom: 1.2rem; }
.breadcrumbs a { transition: color .25s; } .breadcrumbs a:hover { color: var(--sage-deep); }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs .current { color: var(--bronze); font-weight: 600; }
.page-banner h1 { max-width: 16ch; }
/* Blog single posts: let the title use the full width (titles run long). */
.page-banner.single-banner h1 { max-width: none; }
.page-banner .banner-lede { margin-top: 1.3rem; max-width: 60ch; }

/* Optional full-bleed hero image with dark overlay + light text. */
.page-banner.has-bg { background-size: cover; background-position: center; }
.page-banner.has-bg::before { display: none; }
.page-banner.has-bg .blob { display: none; }
.page-banner.has-bg .pb-overlay { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(10,30,32,.55), rgba(10,30,32,.72)); }
.page-banner.has-bg .eyebrow { color: #fff; opacity: .92; }
.page-banner.has-bg h1 { color: #fff; }
.page-banner.has-bg .banner-lede { color: rgba(255,255,255,.9); }
.page-banner.has-bg .breadcrumbs,
.page-banner.has-bg .breadcrumbs .current { color: rgba(255,255,255,.75); }
.page-banner.has-bg .breadcrumbs a { color: rgba(255,255,255,.9); }
.page-banner.has-bg .breadcrumbs a:hover { color: #fff; }
.page-banner.has-bg .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.page-banner.has-bg .btn.ghost:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px #fff; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  position: relative; background: var(--cream);
  border: 1px solid var(--gray-line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  box-shadow: var(--sh-1);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: rgba(14,124,116,.35); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--sage), var(--sage-deep)); color: var(--cream);
  margin-bottom: 1.3rem; box-shadow: var(--sh-1); transition: transform .5s var(--ease-out);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-icon .ico { width: 26px; height: 26px; }
.card h3 { margin-bottom: .7rem; }
.card p { font-size: .97rem; }
.card .card-foot { margin-top: 1.3rem; }
.card.tinted { background: linear-gradient(160deg, var(--cream), var(--cream-2)); }

/* Feature link cards (home services) */
.feature-card { display: flex; flex-direction: column; min-height: 100%; }
.feature-card .num { font-family: var(--font-serif); font-size: .95rem; color: var(--bronze); letter-spacing: .1em; margin-bottom: 1rem; }

/* Split showcase (home) */
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.showcase-item {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 320px;
  display: flex; align-items: flex-end; box-shadow: var(--sh-2);
  isolation: isolate;
}
.showcase-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.showcase-item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(60,70,80,.05) 30%, rgba(60,70,80,.78)); }
.showcase-item:hover img { transform: scale(1.06); }
.showcase-body { padding: clamp(1.5rem, 2.5vw, 2.2rem); color: var(--cream); position: relative; z-index: 1; }
.showcase-body .eyebrow { color: var(--bronze-soft); }
.showcase-body h3 { color: #fff; margin-bottom: 1rem; }
.showcase-body .link-arrow { color: var(--cream); }
.showcase-body .link-arrow:hover { color: var(--bronze-soft); }
.showcase-item.tall { grid-row: span 2; }
@media (max-width: 760px) { .showcase { grid-template-columns: 1fr; } .showcase-item.tall { grid-row: auto; } }

/* ==========================================================================
   Feature list / checklist
   ========================================================================== */
.check-list { display: grid; gap: .85rem; }
.check-list li { display: flex; gap: .85rem; align-items: flex-start; color: var(--ink); line-height: 1.55; }
.check-list li .tick { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(14,124,116,.14); color: var(--sage-deep); margin-top: .1rem; }
.check-list li .tick .ico { width: 15px; height: 15px; }
.check-list.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .check-list.two { grid-template-columns: 1fr; } }

/* Numbered process steps */
.steps { display: grid; gap: clamp(1.1rem, 2.2vw, 1.6rem); }
.step {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  background: var(--cream); border: 1px solid var(--gray-line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem); box-shadow: var(--sh-1);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.step-num {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500;
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--sage-deep);
  background: radial-gradient(circle at 30% 25%, var(--cream), var(--surface));
  box-shadow: inset 0 0 0 1px var(--gray-line);
}
.step h4 { margin-bottom: .5rem; }
.step p { font-size: .97rem; }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.4rem 1rem; }
.stat .n { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--sage-deep); line-height: 1; }
.stat .n .plus { color: var(--bronze); }
.stat .l { margin-top: .6rem; font-size: .86rem; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; gap: .5rem; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.tcard {
  background: var(--cream); border: 1px solid var(--gray-line); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.6vw, 2.2rem); box-shadow: var(--sh-1);
  display: flex; flex-direction: column; height: 100%;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.tcard:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.tcard .quote-mark { font-family: var(--font-serif); font-size: 3.2rem; line-height: .6; color: var(--sage-soft); height: 28px; }
.tcard blockquote { color: var(--ink); font-size: 1rem; line-height: 1.65; margin: .4rem 0 1.4rem; }
.tcard .t-foot { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--gray-line); text-align: center; }
.tcard .t-org { font-family: var(--font-serif); font-size: 1.1rem; color: var(--heading); }
.tcard .t-person { font-size: .84rem; color: var(--ink-2); margin-top: .25rem; }
.tcard.cta { background: linear-gradient(150deg, var(--sage), var(--sage-deep)); border: none; }
.tcard.cta h4, .tcard.cta p { color: var(--cream); }
.tcard.cta h4 { margin-bottom: .8rem; }
.tcard.cta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Marquee logos, full-bleed, edge to edge */
.logo-strip { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.logo-strip.full-bleed { width: 100%; }
.logo-track { display: flex; gap: clamp(1.75rem, 3.5vw, 3.5rem); align-items: center; width: max-content; animation: marquee 40s linear infinite; will-change: transform; }
.logo-strip:hover .logo-track { animation-play-state: paused; }
.logo-track img { height: 74px; width: auto; object-fit: contain; opacity: 1; filter: none; transition: transform .35s var(--ease-out); }
.logo-track img:hover { transform: scale(1.06); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
@media (max-width: 640px) { .logo-track img { height: 56px; } }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.1rem, 2.2vw, 1.7rem); }
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .team-grid { grid-template-columns: 1fr; } }
.member { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--cream); border: 1px solid var(--gray-line); box-shadow: var(--sh-1); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.member:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.member-photo { display: block; position: relative; aspect-ratio: 3/3.4; overflow: hidden; background: var(--surface); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease-out); }
.member:hover .member-photo img { transform: scale(1.05); }
.member-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(60,70,80,.55)); opacity: 0; transition: opacity .4s; }
.member:hover .member-photo::after { opacity: 1; }
.member-body { padding: 1.2rem 1.3rem 1.4rem; }
.member-body .role { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--bronze); font-weight: 600; }
.member-body h4 { margin: .35rem 0 .55rem; }
.member-body p { font-size: .9rem; }
.member-body .link-arrow { margin-top: .9rem; font-size: .85rem; }

/* ==========================================================================
   Blog
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 1.9rem); }
@media (max-width: 940px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--gray-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); height: 100%; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.post-thumb { display: block; text-decoration: none; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(140deg, var(--surface), var(--bg-tint)); position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-thumb.placeholder { display: grid; place-items: center; }
.post-thumb.placeholder .ph-mark { font-family: var(--font-serif); font-size: 2.6rem; color: var(--sage-soft); opacity: .6; }
.post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .76rem; color: var(--ink-3); margin-bottom: .8rem; }
.post-meta .tag { background: var(--bg-tint); color: var(--sage-deep); padding: .2rem .6rem; border-radius: var(--r-pill); font-weight: 600; letter-spacing: .02em; }
.post-body h3 { font-size: 1.28rem; margin-bottom: .7rem; }
.post-body h3 a { transition: color .25s; } .post-body h3 a:hover { color: var(--sage-deep); }
.post-body p { font-size: .93rem; flex: 1; }
.post-body .link-arrow { margin-top: 1.1rem; font-size: .86rem; }

.sidebar { display: flex; flex-direction: column; gap: 1.6rem; }
.widget { background: var(--cream); border: 1px solid var(--gray-line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--sh-1); }
.widget h4 { margin-bottom: 1rem; font-size: 1.15rem; }
.widget ul li { margin-bottom: .2rem; }
.widget ul li a, .widget ul li { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 0; border-bottom: 1px dashed var(--gray-line); font-size: .92rem; color: var(--ink-2); transition: color .25s; }
.widget ul li:last-child { border-bottom: none; }
.widget a:hover { color: var(--sage-deep); }
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(1.5rem, 3vw, 2.6rem); align-items: start; }
@media (max-width: 980px) { .blog-layout { grid-template-columns: 1fr; } .sidebar { flex-direction: row; flex-wrap: wrap; } .widget { flex: 1; min-width: 240px; } }

.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2.6rem; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--cream); border: 1px solid var(--gray-line); font-weight: 600; font-size: .92rem; transition: all .25s; }
.pagination .curr { background: var(--sage); color: var(--cream); border-color: var(--sage); }
.pagination a:hover { border-color: var(--sage); color: var(--sage-deep); }

/* ==========================================================================
   Prose (legal / long text)
   ========================================================================== */
.prose { max-width: 820px; }
.prose p { margin-bottom: 1.3rem; line-height: 1.8; color: var(--ink-2); }
.prose h2 { font-size: 1.5rem; margin: 2.4rem 0 1rem; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 .8rem; color: var(--sage-deep); }
.prose .q { font-family: var(--font-serif); color: var(--heading); font-size: 1.2rem; margin: 2.2rem 0 .5rem; }
.prose ul { display: grid; gap: .6rem; margin-bottom: 1.3rem; }
.prose ul li { position: relative; padding-left: 1.5rem; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.legal-updated { display: inline-block; margin-top: 1rem; padding: .5rem 1rem; background: var(--bg-tint); border-radius: var(--r-pill); font-size: .85rem; color: var(--ink-2); }

/* ==========================================================================
   Content sections (rich text pages)
   ========================================================================== */
.rich { max-width: 760px; }
.rich > p { margin-bottom: 1.3rem; font-size: 1.06rem; line-height: 1.8; }
.rich > p:first-of-type { font-size: 1.16rem; color: var(--ink); }
.subhead { margin-top: 2.6rem; margin-bottom: 1rem; }

/* Split content block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.rev .split-media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } }
.split-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 4/3.2; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.contain { background: var(--cream); display: grid; place-items: center; aspect-ratio: 4/3; }
.split-media.contain img { object-fit: contain; padding: 2rem; }

/* Responsive video embed */
.split-media.video { overflow: visible; box-shadow: none; aspect-ratio: auto; background: none; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); background: #1c231f; }
.video-frame::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-badge { position: absolute; right: -16px; bottom: -18px; width: 104px; height: 104px; border-radius: 18px; overflow: hidden; background: var(--cream); border: 3px solid var(--cream); box-shadow: var(--sh-2); z-index: 2; }
.video-badge img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
@media (max-width: 520px) { .video-badge { width: 82px; height: 82px; right: -6px; bottom: -10px; } }

/* Definition / quote callout */
.callout { border-left: 3px solid var(--bronze); background: linear-gradient(100deg, var(--cream-2), transparent); padding: 1.3rem 1.6rem; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 1.6rem 0; }
.callout p { font-family: var(--font-serif); font-size: 1.15rem; color: var(--heading); font-style: italic; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(135deg, var(--sage-deep), var(--sage) 55%, var(--blue-deep));
  padding: clamp(2.6rem, 6vw, 4.6rem); text-align: center; color: var(--cream);
  box-shadow: var(--sh-3);
}
.cta-inner::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.14), transparent 40%), radial-gradient(circle at 85% 90%, rgba(26,163,206,.3), transparent 45%); }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner .eyebrow { color: var(--bronze-soft); }
.cta-inner h2 { color: #fff; max-width: 20ch; margin-inline: auto; margin-bottom: 1.2rem; }
.cta-inner p { color: rgba(251,248,241,.85); max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1rem; }
.info-card { display: flex; gap: 1rem; align-items: center; background: var(--cream); border: 1px solid var(--gray-line); border-radius: var(--r-md); padding: 1.2rem 1.3rem; box-shadow: var(--sh-1); transition: transform .4s var(--ease-out); }
.info-card:hover { transform: translateX(4px); }
.info-card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-tint); color: var(--sage-deep); flex: none; }
.info-card .k { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.info-card .v { font-weight: 600; color: var(--heading); margin-top: .1rem; }
.form-wrap { background: var(--cream); border: 1px solid var(--gray-line); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--sh-2); }
.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.field label .req { color: var(--bronze); }
.field .sub-label { font-size: .74rem; color: var(--ink-3); font-weight: 500; }
.field input[type=text], .field input[type=email], .field textarea {
  width: 100%; padding: .82rem 1rem; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--gray-line); border-radius: var(--r-sm);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(14,124,116,.12); background: var(--cream); }
.field textarea { min-height: 140px; resize: vertical; }
.choice-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border: 1px solid var(--gray-line); border-radius: var(--r-pill); font-size: .9rem; font-weight: 500; color: var(--ink-2); cursor: pointer; margin: 0; transition: all .25s; }
.choice input:checked + label { border-color: var(--sage); background: rgba(14,124,116,.1); color: var(--sage-deep); }

/* ==========================================================================
   Values / promise
   ========================================================================== */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.2vw, 1.6rem); }
@media (max-width: 720px) { .value-grid { grid-template-columns: 1fr; } }
.value { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; background: var(--cream); border: 1px solid var(--gray-line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--sh-1); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.value:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.value .v-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, var(--bronze), var(--bronze-soft)); color: var(--cream); flex: none; }
.value .v-ic .ico { width: 24px; height: 24px; }

/* Joxel 365 "Our Impact" country chips (class-based so flex survives kses). */
.impact-countries { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-top: 1.5rem; }
.impact-chip { display: inline-block; background: var(--sec-tint); border: 1px solid var(--gray-line); border-radius: 999px; padding: .5rem 1.05rem; font-size: .92rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.value h4 { margin-bottom: .5rem; }
.value p { font-size: .94rem; }

/* Community gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; justify-content: center; }
.gallery figure { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--cream); border: 1px solid var(--gray-line); aspect-ratio: 1/1; display: grid; place-items: center; box-shadow: var(--sh-1); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.gallery figure:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--sh-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img.logo-fit { object-fit: contain; padding: 1.3rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); position: relative; overflow: hidden; margin-top: 2rem; }
.site-footer::before { content: ""; position: absolute; top: -30%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(14,124,116,.4), transparent 65%); filter: blur(60px); }
.footer-main { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.6rem, 3vw, 2.6rem); padding-block: clamp(3rem, 6vw, 5rem) 2.6rem; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand img { height: 44px; margin-bottom: 1.2rem; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { color: rgba(220,230,223,.7); font-size: .92rem; max-width: 34ch; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .3s, transform .3s; }
.footer-social a:hover { background: var(--sage); transform: translateY(-3px); }
.footer-social .ico { width: 18px; height: 18px; }
.footer-col h5 { font-family: var(--font-sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--sage-soft); margin-bottom: 1.2rem; font-weight: 700; }
.footer-col ul li { margin-bottom: .7rem; }
.footer-col a { color: rgba(220,230,223,.78); font-size: .93rem; transition: color .25s, padding-left .25s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; color: rgba(220,230,223,.78); font-size: .93rem; margin-bottom: .9rem; }
.footer-contact .ico { width: 17px; height: 17px; margin-top: .2rem; color: var(--sage-soft); flex: none; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: rgba(220,230,223,.6); }
.footer-bottom a { transition: color .25s; } .footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 1.4rem; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .40s; }

/* Page-load fade */
.page-fade { animation: pageIn .7s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Top scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300; background: linear-gradient(90deg, var(--sage), var(--bronze)); transition: width .1s linear; }

/* Preloader — GPU-only animation (transform + opacity), self-removing via JS. */
.preloader { position: fixed; inset: 0; z-index: 999; background: var(--beige); display: grid; place-items: center; transition: opacity .5s var(--ease-out), visibility .5s var(--ease-out); will-change: opacity; }
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader .pl-mark { font-family: var(--font-serif); font-size: 2rem; color: var(--sage-deep); letter-spacing: .04em; position: relative; animation: plmarkin .55s var(--ease-out) both; }
/* static track */
.preloader .pl-mark::after { content: ""; position: absolute; left: 0; bottom: -10px; height: 2px; width: 100%; background: var(--gray-line); }
/* indeterminate progress: scaleX only, so it composites on the GPU at 60fps */
.preloader .pl-bar { position: absolute; left: 0; bottom: -10px; height: 2px; width: 100%; background: var(--bronze); transform: scaleX(0); transform-origin: left center; will-change: transform; animation: plload 1.3s var(--ease-out) infinite; }
.preloader.done .pl-bar { animation: none; }
@keyframes plload {
  0%   { transform: scaleX(0); transform-origin: left center; }
  45%  { transform: scaleX(1); transform-origin: left center; }
  55%  { transform: scaleX(1); transform-origin: right center; }
  100% { transform: scaleX(0); transform-origin: right center; }
}
@keyframes plmarkin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .preloader { transition: opacity .2s linear, visibility .2s linear; }
  .preloader .pl-mark { animation: none; }
  .preloader .pl-bar { animation: none; transform: scaleX(1); }
}

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--sage); color: var(--cream); display: grid; place-items: center; box-shadow: var(--sh-2); z-index: 90; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s, background .3s; }
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--sage-deep); }

/* Service / rich body */
.rich-body > p { margin-bottom: 1.25rem; font-size: 1.06rem; line-height: 1.8; color: var(--ink-2); }
.rich-body > p:first-of-type { font-size: 1.16rem; color: var(--ink); }
.rich-body .subhead { margin-top: 2.4rem; margin-bottom: 1rem; }
.rich-body .subhead + p { margin-top: 0; }
.soft-card { background: var(--cream); border: 1px solid var(--gray-line); border-radius: var(--r-lg); padding: clamp(1.4rem, 2.4vw, 1.9rem); box-shadow: var(--sh-1); margin: 1.4rem 0 1.6rem; }
.soft-card .check-list.two { gap: .85rem 2rem; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-2); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gray-line), transparent); border: none; margin-block: clamp(2rem,5vw,4rem); }
.pill-tag { display: inline-block; padding: .4rem .9rem; border-radius: var(--r-pill); background: var(--bg-tint); color: var(--sage-deep); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
/* =====================================================================
   Service page, two-column (content + sidebar) layout
   Body list items render as a green-checkmark card; sidebar has a
   "Let's talk" CTA card and a related-links card.
   ===================================================================== */
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-main .rich > p { margin-bottom: 1.1rem; }
.svc-main .rich > h2 { margin: 2rem 0 .8rem; }
.svc-main .rich > h3 { margin: 1.6rem 0 .6rem; }
.svc-main .rich ol { list-style: decimal; margin: 1.4rem 0; padding-left: 1.6rem; }
.svc-main .rich ol > li { margin-bottom: .95rem; padding-left: .35rem; line-height: 1.65; }
.svc-main .rich ol > li::marker { color: var(--sage-deep); font-weight: 700; }

/* Unordered lists become a checklist card. */
.svc-main .rich ul {
  list-style: none; margin: 1.6rem 0; padding: clamp(1.4rem, 2.4vw, 2rem);
  background: var(--cream); border: 1px solid var(--gray-line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); display: grid; grid-template-columns: 1fr; gap: .75rem;
}
/* Long lists (7+ items) flow into two columns; short lists stay single-column. */
.svc-main .rich ul:has(> li:nth-child(7)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 2rem; }
@media (max-width: 640px) { .svc-main .rich ul:has(> li:nth-child(7)) { grid-template-columns: 1fr; gap: .75rem; } }
.svc-main .rich ul li { position: relative; padding-left: 1.95rem; font-size: .95rem; color: var(--ink); line-height: 1.5; }
.svc-main .rich ul li::before {
  content: ""; position: absolute; left: 0; top: .05em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background-color: rgba(14, 124, 116, .12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c74' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: .72rem;
}

/* Sidebar */
.svc-side { display: grid; gap: 1.2rem; position: sticky; top: 100px; }
@media (max-width: 960px) { .svc-side { position: static; } }
.svc-cta { background: linear-gradient(155deg, var(--sage), var(--sage-deep)); color: var(--cream); border-radius: var(--r-lg); padding: clamp(1.5rem, 2.4vw, 2rem); box-shadow: var(--sh-2); }
.svc-cta .eyebrow::before { display: none; } /* drop the leading rule so the eyebrow aligns flush with the "Let's talk" heading */

/* Embedded single-file tools (AI Readiness Assessment, Revenue Calculator).
   The iframe is auto-sized to its content by JS in the page template, so it
   scrolls with the page; these rules just make it a clean full-width block. */
/* Full-bleed embed: the iframe spans the full page width; each tool constrains
   its own content to the site container width internally (see the tool files),
   so backgrounds bleed edge-to-edge while content stays aligned with the site. */
.tool-embed-main { padding: 0; }
.tool-embed-frame { display: block; width: 100%; border: 0; min-height: 80vh; background: transparent; }

/* Solutions page (#360): left-align the prose body so its sections line up flush
   with the hero and the services intro, instead of the centered default column. */
.page-id-360 .rich { margin-left: 0 !important; margin-right: 0 !important; max-width: 880px !important; }

/* EHR Support & Configuration page (#132): left-align the prose sections
   (Platform Expertise, Why Joxel) so they line up with the section headings. */
.page-id-132 .rich { margin-left: 0 !important; margin-right: 0 !important; }

/* Solutions page: modern numbered feature cards for the two narrative sections. */
.page-id-360 .sol-features { display: grid; gap: clamp(1.1rem, 2.4vw, 1.6rem); }
.page-id-360 .sol-item {
  display: grid; grid-template-columns: auto 1fr; align-items: start;
  gap: clamp(1.1rem, 2.6vw, 1.9rem);
  background: var(--cream);
  border: 1px solid var(--gray-line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
  box-shadow: var(--sh-1);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.page-id-360 .sol-item:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.page-id-360 .sol-num {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.45rem; line-height: 1;
  color: #fff;
  background: linear-gradient(150deg, var(--sage), var(--blue));
  box-shadow: 0 10px 24px -8px rgba(14, 124, 116, .55);
}
.page-id-360 .sol-copy h2 { margin: .15rem 0 .7rem; font-size: clamp(1.4rem, 2.7vw, 1.95rem); line-height: 1.15; }
.page-id-360 .sol-copy p { margin: 0; color: var(--ink-2); line-height: 1.75; }
@media (max-width: 560px) {
  .page-id-360 .sol-item { grid-template-columns: 1fr; gap: 1rem; }
  .page-id-360 .sol-num { width: 48px; height: 48px; font-size: 1.3rem; }
}
.svc-cta .eyebrow { color: var(--bronze-soft); }
.svc-cta h3 { color: #fff; margin: .5rem 0 .55rem; }
.svc-cta p { color: rgba(251, 248, 241, .85); font-size: .92rem; line-height: 1.6; margin-bottom: 1.2rem; }
.svc-cta .btn.block { justify-content: center; margin-bottom: 1.1rem; }
.svc-contact { display: grid; gap: .55rem; font-size: .9rem; }
.svc-contact a { display: inline-flex; align-items: center; gap: .5rem; color: #fff; }
.svc-contact .ico { width: 16px; height: 16px; opacity: .85; }

.svc-links { background: var(--cream); border: 1px solid var(--gray-line); border-radius: var(--r-lg); padding: clamp(1.3rem, 2.2vw, 1.7rem) clamp(1.4rem, 2.2vw, 1.8rem); box-shadow: var(--sh-1); }
.svc-links h4 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--heading); margin-bottom: .5rem; }
.svc-links a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .72rem 0; border-bottom: 1px dashed var(--gray-line); color: var(--ink); font-size: .92rem; transition: color .2s var(--ease-out), padding .2s var(--ease-out); }
.svc-links a:last-child { border-bottom: none; }
.svc-links a:hover { color: var(--sage); padding-left: .25rem; }
.svc-links a .ico { width: 16px; height: 16px; color: var(--sage); flex: none; }

/* --- Compact service intro (tighter sidebar; balance a short main column) --- */
.svc-grid { gap: clamp(1.6rem, 3vw, 2.6rem); }
.svc-side { gap: 1rem; top: 92px; }
.svc-cta { padding: clamp(1.25rem, 2vw, 1.6rem); }
.svc-cta h3 { margin: .4rem 0 .45rem; }
.svc-cta p { margin-bottom: .95rem; }
.svc-cta .btn.block { margin-bottom: .9rem; }
.svc-links { padding: clamp(1.1rem, 1.9vw, 1.45rem) clamp(1.3rem, 2vw, 1.6rem); }
.svc-links h4 { margin-bottom: .35rem; }
.svc-links a { padding: .56rem 0; }
/* Sidebar card order: related links (Healthcare Consulting) first, contact card second. */
.svc-side .svc-links { order: 1; }
.svc-side .svc-cta { order: 2; }
/* When the main column holds only a short intro paragraph, center it beside the
   sidebar and give it lede weight instead of leaving a tall empty gap. Full
   service pages (multiple body elements) are unaffected. */
.svc-grid:has(.svc-main .rich > p:only-child) { align-items: center; }
.svc-grid:has(.svc-main .rich > p:only-child) .svc-main .rich > p {
  font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.75; color: var(--ink); margin-bottom: 0;
}

/* =====================================================================
   Hero banner action buttons (page-banner CTA)
   ===================================================================== */
.banner-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* =====================================================================
   Standalone checklist card (Text + Checklist block)
   ===================================================================== */
.jx-checklist {
  list-style: none; margin: 0; padding: clamp(1.5rem, 2.6vw, 2.4rem);
  background: var(--cream); border: 1px solid var(--gray-line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.4rem;
}
@media (max-width: 720px) { .jx-checklist { grid-template-columns: 1fr; } }
.jx-checklist li { position: relative; padding-left: 2.1rem; font-size: .97rem; color: var(--ink); line-height: 1.55; }
.jx-checklist li::before {
  content: ""; position: absolute; left: 0; top: .05em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background-color: rgba(14, 124, 116, .12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c74' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: .8rem;
}

/* Split feature with no image (front end) collapses to a single column. */
.split.no-media { grid-template-columns: 1fr; }

/* =====================================================================
   Image section (joxel/image), single image with optional caption
   ===================================================================== */
.image-section .img-figure { margin: 0; }
.image-section .img-figure img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--sh-2); }

/* Product pages: product banner shown below all page content, sized to the text container width and centered. */
.product-graphic { max-width: 820px; margin-inline: auto; margin-block: clamp(1.6rem, 3.2vw, 2.6rem); }
.product-graphic img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.image-section figcaption { margin-top: .85rem; text-align: center; font-size: .9rem; color: var(--ink-3); }
.image-section .img-placeholder {
  border: 1px dashed var(--gray-line); border-radius: var(--r-lg);
  padding: clamp(3rem, 8vw, 5rem) 2rem; text-align: center; color: var(--ink-3); background: var(--cream);
}

/* =====================================================================
   Single blog post (single.php)
   ===================================================================== */
/* Scope to the <article>, WordPress also puts "single-post" on <body>,
   so a bare .single-post rule would shrink the whole page. */
article.single-post { max-width: 760px; margin: 0 auto; }
.single-thumb { max-width: 760px; margin: 0 auto 2.4rem; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.single-thumb img { display: block; width: 100%; height: auto; }
.single-thumb figcaption { margin-top: .7rem; text-align: center; font-size: .88rem; color: var(--ink-3); }
.single-body { font-size: 1.02rem; line-height: 1.75; color: var(--ink); }
.single-body > * + * { margin-top: 1.1rem; }
.single-body h2 { margin: 2.1rem 0 .2rem; }
.single-body h3 { margin: 1.6rem 0 .2rem; }
.single-body ul, .single-body ol { margin-left: 1.4rem; }
.single-body li + li { margin-top: .4rem; }
.single-body a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 2px; }
.single-body a:hover { color: var(--bronze); }
.single-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 1.6rem 0; box-shadow: var(--sh-1); }
.single-body figure { margin: 1.6rem 0; }
.single-body figcaption { text-align: center; font-size: .88rem; color: var(--ink-3); margin-top: .5rem; }
.single-body blockquote { margin: 1.6rem 0; padding: .4rem 0 .4rem 1.2rem; border-left: 3px solid var(--sage); color: var(--ink-2); font-style: italic; }
.single-back { margin-top: 2.6rem; }

/* =====================================================================
   Flow chart (joxel/flowchart), horizontal, hover to reveal description
   ===================================================================== */
.flowchart {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: .5rem;
}
.flow-step {
  position: relative; flex: 1 1 0; min-width: 168px;
  background: var(--cream); border: 1px solid var(--gray-line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); padding: 1.5rem 1.25rem;
  margin-right: 2.2rem; cursor: default; outline: none;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.flow-step:last-child { margin-right: 0; }
/* Connector arrow between steps */
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -2.2rem; width: 2.2rem; height: 2px;
  transform: translateY(-50%); background: linear-gradient(90deg, var(--bronze-soft), var(--bronze));
}
.flow-step:not(:last-child)::before {
  content: ""; position: absolute; top: 50%; right: -.55rem; width: .5rem; height: .5rem;
  transform: translateY(-50%) rotate(45deg); border-top: 2px solid var(--bronze); border-right: 2px solid var(--bronze);
  z-index: 1;
}
.flow-num { font-family: var(--font-serif); font-size: .85rem; letter-spacing: .12em; color: var(--bronze); }
.flow-title { margin: .5rem 0 0; font-size: 1.04rem; line-height: 1.3; }
.flow-desc {
  margin: 0; color: var(--ink-2); font-size: .93rem; line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden;
  transform: translateY(-4px);
  transition: max-height .32s ease, opacity .28s ease, transform .28s ease, margin-top .28s ease;
}
.flow-step:hover, .flow-step:focus, .flow-step:focus-within {
  transform: translateY(-4px); border-color: var(--bronze-soft); box-shadow: var(--sh-2, 0 14px 40px rgba(20,127,158,.14));
}
.flow-step:hover .flow-desc, .flow-step:focus .flow-desc, .flow-step:focus-within .flow-desc {
  max-height: 12rem; opacity: 1; transform: translateY(0); margin-top: .7rem;
}
@media (max-width: 760px) {
  .flowchart { flex-direction: column; overflow-x: visible; }
  .flow-step { margin-right: 0; margin-bottom: 2rem; min-width: 0; }
  .flow-step:last-child { margin-bottom: 0; }
  .flow-step:not(:last-child)::after {
    top: auto; right: 50%; bottom: -2rem; width: 2px; height: 2rem; transform: translateX(50%);
    background: linear-gradient(180deg, var(--bronze-soft), var(--bronze));
  }
  .flow-step:not(:last-child)::before {
    top: auto; right: 50%; bottom: -.55rem; transform: translateX(50%) rotate(135deg);
  }
  /* Touch devices have no hover, show descriptions by default. */
  .flow-desc { max-height: 12rem; opacity: 1; transform: none; margin-top: .7rem; }
}

/* =====================================================================
   Checklist decision tool (joxel/checklist), real checkboxes + reveal CTA
   ===================================================================== */
.jx-checktool {
  background: var(--cream); border: 1px solid var(--gray-line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); padding: clamp(1.5rem, 2.6vw, 2.4rem);
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 2.4rem; }
@media (max-width: 720px) { .check-list { grid-template-columns: 1fr; } }
.check-list li { display: flex; align-items: flex-start; gap: .8rem; }
.check-list input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto; margin: .08em 0 0;
  width: 1.4rem; height: 1.4rem; border-radius: .45rem; cursor: pointer;
  border: 1.5px solid var(--gray-line); background: #fff;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.check-list input[type="checkbox"]:hover { border-color: var(--sage); }
.check-list input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(14,124,116,.25); }
.check-list input[type="checkbox"]:checked {
  background-color: var(--sage); border-color: var(--sage);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: .9rem;
}
.check-list label { cursor: pointer; font-size: .97rem; color: var(--ink); line-height: 1.5; }
/* Reveal panel */
.checklist-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  margin-top: 1.8rem; padding: 1.4rem 1.6rem; border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--sage), var(--sage-deep)); color: var(--cream);
  opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease;
}
.checklist-cta.show { opacity: 1; transform: translateY(0); }
.checklist-cta-copy { flex: 1 1 320px; }
.checklist-cta h3 { margin: 0 0 .25rem; color: var(--cream); font-size: 1.15rem; }
.checklist-cta p { margin: 0; color: rgba(255,255,255,.9); font-size: .96rem; line-height: 1.55; }
.checklist-cta .btn { background: var(--cream); color: var(--sage-deep); flex: 0 0 auto; }
.checklist-cta .btn:hover { background: #fff; }

/* =====================================================================
   Comparison table (CIO vs CAIO block)
   ===================================================================== */
.compare { border: 1px solid var(--gray-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); background: var(--cream); }
.compare-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; align-items: stretch; }
.compare-row + .compare-row { border-top: 1px solid var(--gray-line); }
.compare-cat { padding: 1.05rem 1.3rem; font-weight: 600; color: var(--heading); font-size: .95rem; display: flex; align-items: center; background: var(--bg-tint); }
.compare-col, .compare-val { padding: 1.05rem 1.3rem; display: flex; align-items: center; font-size: .95rem; color: var(--ink); }
.compare-val + .compare-val { border-left: 1px solid var(--gray-line); }
.compare-head .compare-col { font-family: var(--font-serif); font-size: 1.15rem; color: #fff; }
.compare-head .compare-cio { background: linear-gradient(150deg, var(--sage), var(--sage-deep)); }
.compare-head .compare-caio { background: linear-gradient(150deg, var(--bronze), #9a6a2f); }
.compare-head .compare-cat { background: var(--cream-2, var(--bg-tint)); }
.compare-caio-val { background: rgba(26, 163, 206, .05); }
.compare-label { display: none; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; margin-bottom: .25rem; }
@media (max-width: 720px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-head { display: none; }
  .compare-row + .compare-row { border-top: 6px solid var(--bg-tint); }
  .compare-cat { background: var(--sage-deep); color: #fff; font-family: var(--font-serif); font-size: 1.05rem; }
  .compare-val { flex-direction: column; align-items: flex-start; }
  .compare-val + .compare-val { border-left: none; border-top: 1px solid var(--gray-line); }
  .compare-label { display: block; }
}
