/* =========================================================================
   Exhale Staffing — product page design layer
   Sits on top of Bootstrap 5 and the existing theme. Works in light + dark.
   Each product gets an accent through --acc, set on the page wrapper.
   ========================================================================= */

.exp {
  --acc: #2b6ef0;
  --acc-soft: rgba(43,110,240,.12);
  --ink: #0d1526;
  --ink-2: #475569;
  --line: rgba(15,23,42,.10);
  --card: #ffffff;
  --page: #f6f8fc;
  --radius: 20px;
  color: var(--ink);
  font-feature-settings: "ss01" on, "cv11" on;
}
.exp.acc-hr, .exp .acc-hr  { --acc: #2b6ef0; --acc-soft: rgba(43,110,240,.12); }
.exp.acc-ta, .exp .acc-ta  { --acc: #f07000; --acc-soft: rgba(240,112,0,.13);  }
.exp.acc-ecs, .exp .acc-ecs { --acc: #12886a; --acc-soft: rgba(18,136,106,.13); }
.exp.acc-kcp, .exp .acc-kcp { --acc: #7c46e0; --acc-soft: rgba(124,70,224,.13); }
.exp.acc-all, .exp .acc-all { --acc: #e10614; --acc-soft: rgba(225,6,20,.12);   }

html[data-theme='dark'] .exp {
  --ink: #eef2f8;
  --ink-2: #a3b0c2;
  --line: rgba(255,255,255,.12);
  --card: #121a29;
  --page: #0b1220;
}

.exp section { padding: clamp(56px, 7vw, 104px) 0; }
.exp .wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- type ---------- */
.exp .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--acc); margin: 0 0 14px;
}
.exp .eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--acc); }
.exp h1.exp-h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800;
  line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; color: var(--ink);
}
.exp h2.exp-h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.7rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -.03em; margin: 0 0 16px; color: var(--ink);
}
.exp h3.exp-h3 { font-size: 1.16rem; font-weight: 750; margin: 0 0 8px; color: var(--ink); }
.exp .lead-p { font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.65; color: var(--ink-2); margin: 0 0 22px; max-width: 62ch; }
.exp p { color: var(--ink-2); line-height: 1.7; }
.exp .accent { color: var(--acc); }

/* ---------- buttons ---------- */
.exp .btn-exp {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 0;
  font-weight: 750; font-size: 1rem; text-decoration: none;
  background: var(--acc); color: #fff;
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--acc) 70%, transparent);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, filter .2s ease;
}
.exp .btn-exp:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff; }
.exp .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--ink);
  font-weight: 700; text-decoration: none; background: transparent;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.exp .btn-ghost:hover { border-color: var(--acc); color: var(--acc); transform: translateY(-2px); }

/* ---------- hero ---------- */
.exp .hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -6%, var(--acc-soft), transparent 62%),
    linear-gradient(180deg, var(--page), transparent 70%);
}
.exp .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 900px) { .exp .hero-grid { grid-template-columns: 1fr; } }
.exp .hero-mesh {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 72%);
}

/* ---------- cards ---------- */
.exp .card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.exp .xcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; height: 100%;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, border-color .25s ease;
}
.exp .xcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); box-shadow: 0 22px 46px -26px rgba(2,10,28,.42); }
.exp .xicon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc); margin-bottom: 14px; font-size: 1.1rem;
}

/* ---------- stat strip ---------- */
.exp .stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.exp .stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.exp .stat b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--acc); line-height: 1; }
.exp .stat span { display: block; margin-top: 8px; font-size: .93rem; color: var(--ink-2); }

/* ---------- steps ---------- */
.exp .steps { counter-reset: s; display: grid; gap: 14px; }
.exp .step {
  position: relative; padding: 20px 22px 20px 66px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.exp .step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 20px; top: 19px;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--acc); color: #fff; font-weight: 800; font-size: .95rem;
}

/* ---------- the connection band ---------- */
.exp .connect {
  background: linear-gradient(135deg, #0b1220 0%, #16233c 60%, #0b1220 100%);
  color: #fff;
}
.exp .connect h2.exp-h2, .exp .connect h3.exp-h3 { color: #fff; }
.exp .connect p { color: rgba(255,255,255,.76); }
.exp .connect .xcard {
  background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}
.exp .connect .xcard:hover { border-color: rgba(255,255,255,.32); }
.exp .connect .eyebrow { color: #ffb066; }
.exp .connect .eyebrow::before { background: #ffb066; }

/* ---------- faq ---------- */
.exp .faq-item { border-bottom: 1px solid var(--line); }
.exp .faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 44px 20px 0; position: relative;
  font-size: 1.06rem; font-weight: 720; color: var(--ink);
}
.exp .faq-q::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--acc); transition: transform .25s ease;
}
.exp .faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.exp .faq-a { max-height: 0; overflow: hidden; transition: max-height .34s cubic-bezier(.3,.8,.3,1); }
.exp .faq-a p { padding: 0 40px 20px 0; margin: 0; }

/* ---------- reveal on scroll ----------
   The JS adds .in as each block comes into view. The animation below is a
   safety net: if the script fails or never fires, the content still appears. */
.exp [data-rise] {
  opacity: 0; transform: translateY(22px);
  animation: expRiseSafety 0.01s linear 2.2s forwards;
}
@keyframes expRiseSafety { to { opacity: 1; transform: none; } }
.exp [data-rise].in { opacity: 1; transform: none; transition: opacity .66s ease, transform .66s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .exp [data-rise], .exp [data-rise].in { opacity: 1; transform: none; transition: none; }
  .exp .btn-exp, .exp .xcard { transition: none; }
}

/* ---------- device mock ---------- */
.exp .mock {
  position: relative; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 40px 80px -50px rgba(2,10,28,.6);
}
.exp .mock img, .exp .mock video { display: block; width: 100%; height: auto; }
.exp .mock-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: color-mix(in srgb, var(--card) 88%, var(--ink) 12%);
  border-bottom: 1px solid var(--line);
}
.exp .mock-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }

/* ---------- Guides (problem-phrase answer pages) ---------- */
.exp.guide .gwrap { max-width: 860px; }
.exp.guide .hero .exp-h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.exp.guide .ganswer {
  margin-top: 26px; padding: 22px 26px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line, #e6eaf2);
  border-left: 5px solid var(--acc);
  box-shadow: 0 24px 50px -30px rgba(2,10,28,.35);
}
.exp.guide .ganswer p { margin: 0; font-size: 1.12rem; line-height: 1.65; color: #1b2438; }
.exp.guide .ganswer .exkick { color: var(--acc); font-size: .74rem; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; }
.exp.guide .gsec { padding-top: 34px; padding-bottom: 10px; }
.exp.guide .gsec .exp-h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 12px; }
.exp.guide .gbody p, .exp.guide .gbody li { font-size: 1.04rem; line-height: 1.72; color: #2a3346; }
.exp.guide .gbody p { margin: 0 0 16px; }
.exp.guide .gbody ul, .exp.guide .gbody ol { padding-left: 1.25rem; margin: 0 0 18px; }
.exp.guide .gbody li { margin-bottom: 8px; }
.exp.guide .gbody li strong { color: #0d1526; }
.exp.guide .gbody a { color: var(--acc); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.exp .grel { display: block; text-decoration: none; color: inherit; }
.exp .grel:hover h3 { color: var(--acc); }
.exp .grel .exp-h3 { margin-bottom: 8px; transition: color .2s ease; }
