/* =====================================================
   SPARX SERVICES — COMPONENTS
   Hybrid v2 | April 2026
   ===================================================== */

/* ── NAV ────────────────────────────────────────────── */
.sparx-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: 68px; display: flex; align-items: center;
}
/* Offset sticky nav when WP admin bar is visible (logged-in users only) */
.admin-bar .sparx-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .sparx-nav { top: 46px; }
}
.sparx-nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.sparx-nav__logo { display: flex; align-items: center; }
.sparx-nav__logo img, .sparx-nav__logo svg { height: 36px; width: auto; }
.sparx-nav__links { display: flex; align-items: center; gap: 6px; list-style: none; }
.sparx-nav__links > li { position: relative; }
.sparx-nav__links > li > a {
  font-size: 14px; font-weight: 500; color: var(--color-mid-grey);
  padding: 8px 14px; border-radius: 4px; display: block;
  transition: color 0.15s, background 0.15s;
}
.sparx-nav__links > li > a:hover,
.sparx-nav__links > li.current-menu-item > a { color: var(--color-near-black); background: var(--color-off-white); }
.sparx-nav__cta {
  background: var(--color-teal-dark); color: #fff !important;
  border-radius: var(--radius-btn) !important; padding: 9px 18px !important;
  font-weight: 600 !important; transition: background 0.2s !important;
}
.sparx-nav__cta:hover { background: #0a6347 !important; }

/* Mega menu dropdown */
.sparx-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 16px;
  min-width: 320px;
  display: grid; /* always grid, control visibility separately */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0s linear 0.2s;
}
.sparx-nav__links > li:hover .sparx-nav__dropdown,
.sparx-nav__links > li:focus-within .sparx-nav__dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.15s ease, visibility 0s linear 0s;
}
/* Invisible bridge: extends hover area from nav link into dropdown gap */
.sparx-nav__links > li::after {
  content: '';
  position: absolute;
  height: 12px;
  bottom: -12px;
  left: 0;
  right: 0;
  display: block;
}
/* Right-align dropdowns for items near the right edge of nav */
.sparx-nav__links > li:nth-last-child(-n+3) .sparx-nav__dropdown {
  left: auto;
  right: 0;
}
.sparx-nav__dropdown--2col { grid-template-columns: 1fr 1fr; gap: 6px; }
.sparx-nav__dropdown--3col { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.sparx-nav__dropdown a {
  display: block; padding: 10px 12px; border-radius: 6px;
  font-size: 14px; color: var(--color-body);
  transition: background 0.15s, color 0.15s;
}
.sparx-nav__dropdown a:hover { background: var(--color-off-white); color: var(--color-teal); }
.sparx-nav__dropdown a strong { display: block; font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.sparx-nav__dropdown a span { font-size: 12px; color: var(--color-mid-grey); }

/* Hamburger (mobile) */
.sparx-nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.sparx-nav__hamburger span { width: 22px; height: 2px; background: var(--color-body); border-radius: 2px; transition: all 0.25s; }
.sparx-nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sparx-nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.sparx-nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.sparx-nav__mobile { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: #fff; overflow-y: auto; padding: 24px; z-index: 99; }
.sparx-nav__mobile.is-open { display: block; }
.sparx-nav__mobile-section { margin-bottom: 24px; }
.sparx-nav__mobile-section-title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-mid-grey); padding: 8px 0; border-bottom: 1px solid var(--color-border); margin-bottom: 8px; }
.sparx-nav__mobile a { display: block; padding: 10px 0; font-size: 15px; color: var(--color-body); border-bottom: 1px solid var(--color-border); }

/* ── HERO HOME ──────────────────────────────────────── */
.sparx-hero-home {
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
  padding: 100px 0 80px;
}
/* Dot grid overlay */
.sparx-hero-home::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
/* Bottom fade */
.sparx-hero-home::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, #fff, transparent);
  pointer-events: none;
}
.sparx-hero-home .container { position: relative; z-index: 1; }
.sparx-hero-home__grid { display: grid; grid-template-columns: 1fr 480px; gap: 60px; align-items: center; }
.sparx-hero-home__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.sparx-hero-home__h1 { font-size: 50px; font-weight: 700; line-height: 1.08; letter-spacing: -1px; color: #fff; margin-bottom: 20px; }
.sparx-hero-home__lead { font-size: 18px; line-height: 1.75; color: rgba(255,255,255,0.88); margin-bottom: 36px; max-width: 520px; }
.sparx-hero-home__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.sparx-hero-home__diagram { position: relative; z-index: 1; }

/* ── HERO INNER ─────────────────────────────────────── */
.sparx-hero-inner {
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
  padding: 80px 0 64px;
}
.sparx-hero-inner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.sparx-hero-inner::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to top, #fff, transparent);
  pointer-events: none;
}
.sparx-hero-inner .container { position: relative; z-index: 1; max-width: 720px; }
.sparx-hero-inner__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.sparx-hero-inner__h1 { font-size: 42px; font-weight: 700; line-height: 1.1; letter-spacing: -0.5px; color: #fff; margin-bottom: 16px; }
.sparx-hero-inner__lead { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.88); margin-bottom: 32px; }
.sparx-hero-inner__actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* Offering-specific hero colour overrides */
.sparx-hero-inner--teal   { background: linear-gradient(140deg, var(--color-teal-dark) 0%, var(--color-teal) 60%, #148067 100%); }
.sparx-hero-inner--blue   { background: linear-gradient(140deg, #0d3e6e 0%, var(--color-blue) 60%, #1a6cbf 100%); }
.sparx-hero-inner--purple { background: linear-gradient(140deg, #2d2880 0%, var(--color-purple) 60%, #6b62c8 100%); }
.sparx-hero-inner--deploy { background: linear-gradient(140deg, #1a3050 0%, var(--color-deploy) 60%, #3a6394 100%); }

/* ─── Button contrast overrides — dark / gradient backgrounds ──────────────────────
   On teal or gradient hero sections the standard teal btn-primary is
   nearly invisible.  Override to white-fill with dark text so the CTA
   always pops.  Ghost (secondary) border is boosted to 85% opacity.    */
.sparx-hero-home .btn-primary,
.sparx-hero-inner .btn-primary,
.sparx-cta-band  .btn-primary {
  background: #fff;
  color: var(--color-near-black);
}
.sparx-hero-home .btn-primary:hover,
.sparx-hero-inner .btn-primary:hover,
.sparx-cta-band  .btn-primary:hover {
  background: var(--color-off-white);
  color: var(--color-near-black);
  transform: translateY(-1px);
}

.sparx-hero-home .btn-secondary,
.sparx-hero-inner .btn-secondary,
.sparx-cta-band  .btn-secondary {
  border-color: rgba(255,255,255,0.85);
}
.sparx-hero-home .btn-secondary:hover,
.sparx-hero-inner .btn-secondary:hover,
.sparx-cta-band  .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.15);
}

/* ── PROBLEM STRIP ──────────────────────────────────── */
.sparx-problem-strip { background: var(--color-off-white); padding: 72px 0; }
.sparx-problem-strip__head { text-align: center; margin-bottom: 48px; }
.sparx-problem-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sparx-problem-card { background: #fff; border-radius: var(--radius-card); padding: 32px; border: 1px solid var(--color-border); box-shadow: var(--shadow-card); border-top: 3px solid var(--color-teal); }
.sparx-problem-card__icon { font-size: 28px; margin-bottom: 16px; }
.sparx-problem-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--color-near-black); }
.sparx-problem-card p { font-size: 15px; color: var(--color-mid-grey); line-height: 1.65; }

/* ── OFFERING CARDS ─────────────────────────────────── */
.sparx-offering-cards { padding: 80px 0; }
.sparx-offering-cards__head { text-align: center; margin-bottom: 52px; }
.sparx-offering-cards__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media(min-width:900px) { .sparx-offering-cards__grid { grid-template-columns: repeat(4, 1fr); } }
.sparx-offering-card { background: #fff; border-radius: var(--radius-card); border: 1px solid var(--color-border); box-shadow: var(--shadow-card); padding: 28px 24px; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.sparx-offering-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.sparx-offering-card--teal   { border-top: 3px solid var(--color-teal); }
.sparx-offering-card--blue   { border-top: 3px solid var(--color-blue); }
.sparx-offering-card--purple { border-top: 3px solid var(--color-purple); }
.sparx-offering-card--deploy { border-top: 3px solid var(--color-deploy); }
.sparx-offering-card__badge { margin-bottom: 14px; }
.sparx-offering-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--color-near-black); }
.sparx-offering-card p { font-size: 14px; color: var(--color-mid-grey); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.sparx-offering-card a { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; transition: gap 0.15s; }
.sparx-offering-card--teal   a { color: var(--color-teal); }
.sparx-offering-card--blue   a { color: var(--color-blue); }
.sparx-offering-card--purple a { color: var(--color-purple); }
.sparx-offering-card--deploy a { color: var(--color-deploy); }
.sparx-offering-card a:hover { gap: 8px; }

/* ── PROOF STRIP ────────────────────────────────────── */
.sparx-proof-strip { background: #2C2C2A; padding: 60px 0; }
.sparx-proof-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.sparx-proof-strip__stat-number { font-size: 44px; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 8px; }
.sparx-proof-strip__stat-label  { font-size: 14px; color: rgba(255,255,255,0.6); font-weight: 500; }

/* ── CTA BAND ───────────────────────────────────────── */
.sparx-cta-band {
  background: var(--gradient-cta);
  position: relative; overflow: hidden;
  padding: 72px 0; text-align: center;
}
.sparx-cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.sparx-cta-band .container { position: relative; z-index: 1; }
.sparx-cta-band h2 { color: #fff; font-size: 34px; font-weight: 700; margin-bottom: 14px; }
.sparx-cta-band p  { color: rgba(255,255,255,0.88); font-size: 17px; max-width: 560px; margin: 0 auto 32px; }
.sparx-cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FAQ ACCORDION ──────────────────────────────────── */
.sparx-faq { padding: 72px 0; background: var(--color-off-white); }
.sparx-faq__head { text-align: center; margin-bottom: 48px; }
.sparx-faq__list { max-width: 760px; margin: 0 auto; }
.sparx-faq__item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); margin-bottom: 8px; overflow: hidden; }
.sparx-faq__question { width: 100%; background: none; border: none; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-primary); font-size: 16px; font-weight: 600; color: var(--color-near-black); cursor: pointer; text-align: left; gap: 16px; }
.sparx-faq__question:hover { background: var(--color-off-white); }
.sparx-faq__icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.25s; color: var(--color-teal); }
.sparx-faq__item.is-open .sparx-faq__icon { transform: rotate(45deg); }
.sparx-faq__answer { display: none; padding: 0 24px 20px; font-size: 15px; line-height: 1.7; color: var(--color-body); }
.sparx-faq__item.is-open .sparx-faq__answer { display: block; }

/* ── INSIGHTS ───────────────────────────────────────── */
.insights-archive-hero { background: var(--color-off-white); padding: 72px 0; border-bottom: 1px solid var(--color-border); }
.insights-archive-hero h1 { font-size: 40px; margin-bottom: 14px; }
.insights-archive-hero .lead { max-width: 620px; color: var(--color-mid-grey); }
.insights-archive-grid { padding: 64px 0; }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.insight-card { background: #fff; border-radius: var(--radius-card); border: 1px solid var(--color-border); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow 0.2s, transform 0.2s; }
.insight-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.insight-card__image img { width: 100%; height: 200px; object-fit: cover; }
.insight-card__body { padding: 20px 24px 24px; }
.insight-card__cat { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-teal); margin-bottom: 8px; }
.insight-card__title { font-size: 17px; font-weight: 600; line-height: 1.35; margin-bottom: 10px; }
.insight-card__title a { color: var(--color-near-black); transition: color 0.15s; }
.insight-card__title a:hover { color: var(--color-teal); }
.insight-card__excerpt { font-size: 14px; color: var(--color-mid-grey); line-height: 1.6; margin-bottom: 12px; }
.insight-card__meta { font-size: 12px; color: var(--color-light-grey); }

/* Single insight */
.insight-post-hero { background: var(--color-off-white); padding: 60px 0 40px; border-bottom: 1px solid var(--color-border); }
.insight-post-hero__cat { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-teal); margin-bottom: 12px; }
.insight-post-hero__title { font-size: 40px; font-weight: 700; line-height: 1.15; max-width: 760px; margin-bottom: 16px; }
.insight-post-hero__meta { font-size: 14px; color: var(--color-mid-grey); }
.insight-post-body { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.insight-post-body h2 { font-size: 28px; font-weight: 700; margin: 40px 0 16px; }
.insight-post-body h3 { font-size: 22px; font-weight: 600; margin: 32px 0 12px; }
.insight-post-body p  { font-size: 17px; line-height: 1.8; margin-bottom: 20px; }
.insight-post-body ul, .insight-post-body ol { padding-left: 24px; margin-bottom: 20px; }
.insight-post-body li { font-size: 17px; line-height: 1.7; margin-bottom: 8px; }
.insight-post-body blockquote { border-left: 3px solid var(--color-teal); padding: 16px 24px; margin: 28px 0; background: var(--color-off-white); border-radius: 0 6px 6px 0; font-style: italic; }
.insight-post-body a { color: var(--color-teal); text-decoration: underline; }
.insight-related { background: var(--color-off-white); padding: 60px 0; }
.insight-related__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }

/* ── GATED FORM ─────────────────────────────────────── */
.sparx-gate { background: var(--color-off-white); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 40px; max-width: 560px; margin: 0 auto; }
.sparx-gate h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.sparx-gate p  { font-size: 15px; color: var(--color-mid-grey); margin-bottom: 24px; }
.sparx-gate .gform_wrapper input[type="text"],
.sparx-gate .gform_wrapper input[type="email"],
.sparx-gate .gform_wrapper textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--color-border); border-radius: 6px;
  font-family: var(--font-primary); font-size: 15px;
  transition: border-color 0.2s;
}
.sparx-gate .gform_wrapper input:focus,
.sparx-gate .gform_wrapper textarea:focus { outline: none; border-color: var(--color-teal); }
.sparx-gate .gform_button { background: var(--color-teal); color: #fff; border: none; border-radius: var(--radius-btn); padding: 13px 24px; font-size: 15px; font-weight: 600; cursor: pointer; width: 100%; transition: background 0.2s; }
.sparx-gate .gform_button:hover { background: var(--color-teal-dark); }

/* ── FOOTER ─────────────────────────────────────────── */
.sparx-footer { background: #1A1A18; color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.sparx-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.sparx-footer__brand-col .sparx-footer__logo { margin-bottom: 16px; }
.sparx-footer__brand-col p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.sparx-footer__col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.sparx-footer__col ul { list-style: none; }
.sparx-footer__col li { margin-bottom: 10px; }
.sparx-footer__col a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.sparx-footer__col a:hover { color: #fff; }
.sparx-footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.sparx-footer__bottom p { font-size: 13px; }
.sparx-footer__bottom-links { display: flex; gap: 20px; }
.sparx-footer__bottom-links a { font-size: 13px; color: rgba(255,255,255,0.5); }
.sparx-footer__bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ── PRICING TIERS ──────────────────────────────────── */
.sparx-tiers { padding: 72px 0; }
.sparx-tiers__head { text-align: center; margin-bottom: 48px; }
.sparx-tiers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sparx-tier-card { border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 32px; background: #fff; box-shadow: var(--shadow-card); }
.sparx-tier-card--featured { border-color: var(--color-teal); box-shadow: 0 0 0 2px rgba(29,158,117,0.2), var(--shadow-card-hover); }
.sparx-tier-card__label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-teal); margin-bottom: 10px; }
.sparx-tier-card__name { font-size: 24px; font-weight: 700; color: var(--color-near-black); margin-bottom: 6px; }
.sparx-tier-card__desc { font-size: 14px; color: var(--color-mid-grey); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.sparx-tier-card ul { list-style: none; margin-bottom: 28px; }
.sparx-tier-card li { font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--color-off-white); display: flex; gap: 8px; align-items: flex-start; }
.sparx-tier-card li::before { content: '\2713'; color: var(--color-teal); font-weight: 700; flex-shrink: 0; }

/* ── PROCESS STEPS ──────────────────────────────────── */
.sparx-process { padding: 72px 0; background: var(--color-off-white); }
.sparx-process__head { text-align: center; margin-bottom: 48px; }
.sparx-process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.sparx-process-step { text-align: center; padding: 20px; }
.sparx-process-step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--color-teal); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.sparx-process-step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.sparx-process-step p { font-size: 14px; color: var(--color-mid-grey); line-height: 1.6; }

/* ── LEGAL / PRIVACY ────────────────────────────────── */
.sparx-legal { padding: 64px 0; }
.sparx-legal__layout { display: grid; grid-template-columns: 26% 1fr; gap: 48px; align-items: start; }
.sparx-legal__toc { position: sticky; top: 88px; background: var(--color-off-white); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 24px; }
.sparx-legal__toc h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-mid-grey); margin-bottom: 14px; }
.sparx-legal__toc ol { list-style: none; counter-reset: toc-counter; }
.sparx-legal__toc li { counter-increment: toc-counter; padding: 5px 0; border-bottom: 1px solid var(--color-border); }
.sparx-legal__toc li:last-child { border-bottom: none; }
.sparx-legal__toc a { font-size: 13px; color: var(--color-body); display: flex; gap: 8px; transition: color 0.15s; }
.sparx-legal__toc a::before { content: counter(toc-counter) '.'; color: var(--color-mid-grey); flex-shrink: 0; }
.sparx-legal__toc a:hover { color: var(--color-teal); }
.sparx-legal__body h2 { font-size: 24px; font-weight: 700; margin: 40px 0 14px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.sparx-legal__body h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.sparx-legal__body p { font-size: 16px; line-height: 1.75; margin-bottom: 16px; }
.sparx-legal__body ul { padding-left: 20px; margin-bottom: 16px; }
.sparx-legal__body li { font-size: 16px; line-height: 1.7; margin-bottom: 6px; }
.sparx-legal__body a { color: var(--color-teal); text-decoration: underline; }

/* ── CONTENT PAGE ───────────────────────────────────── */
.sparx-content-page { padding: 64px 0; }
.sparx-content-page .container { max-width: 900px; }
.sparx-content-page h2 { font-size: 28px; font-weight: 700; margin: 36px 0 14px; }
.sparx-content-page h3 { font-size: 22px; font-weight: 600; margin: 28px 0 12px; }
.sparx-content-page p  { font-size: 17px; line-height: 1.8; margin-bottom: 18px; }
.sparx-content-page ul, .sparx-content-page ol { padding-left: 22px; margin-bottom: 18px; }
.sparx-content-page li { font-size: 17px; line-height: 1.7; margin-bottom: 8px; }
.sparx-content-page a  { color: var(--color-teal); text-decoration: underline; }
.sparx-content-page blockquote { border-left: 3px solid var(--color-teal); padding: 14px 20px; margin: 24px 0; background: var(--color-off-white); font-style: italic; border-radius: 0 6px 6px 0; }

/* Callout box */
.sparx-callout { border-left: 4px solid var(--color-teal); padding: 20px 24px; background: rgba(29,158,117,0.05); border-radius: 0 8px 8px 0; margin: 28px 0; }
.sparx-callout--blue { border-left-color: var(--color-blue); background: rgba(24,95,165,0.05); }
.sparx-callout--purple { border-left-color: var(--color-purple); background: rgba(83,74,183,0.05); }

/* ── GRAVITY FORMS ──────────────────────────────────── */
.gform_wrapper { font-family: var(--font-primary) !important; }
.gform_wrapper .gfield label { font-size: 14px; font-weight: 600; color: var(--color-body); display: block; margin-bottom: 6px; }
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea,
.gform_wrapper select {
  width: 100% !important; padding: 12px 14px !important;
  border: 1px solid var(--color-border) !important; border-radius: 6px !important;
  font-family: var(--font-primary) !important; font-size: 15px !important;
  color: var(--color-body) !important; background: #fff !important;
  transition: border-color 0.2s !important; box-shadow: none !important;
}
.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus { border-color: var(--color-teal) !important; outline: none !important; }
.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"] {
  background: var(--color-teal) !important; color: #fff !important;
  border: none !important; border-radius: var(--radius-btn) !important;
  padding: 13px 28px !important; font-size: 15px !important; font-weight: 600 !important;
  cursor: pointer !important; transition: background 0.2s !important;
  font-family: var(--font-primary) !important;
}
.gform_wrapper .gform_button:hover { background: var(--color-teal-dark) !important; }
.gform_validation_message { color: #c0392b !important; font-size: 13px !important; }

/* ─── Social Share Bar ───────────────────────────────────────────────────── */
.insight-share-bar {
  max-width: 760px; margin: 0 auto; padding: 32px 24px 48px;
  display: flex; align-items: center; gap: 20px;
  border-top: 1px solid var(--color-border);
}
.insight-share-bar__label {
  font-size: 14px; font-weight: 600; color: var(--color-mid-grey);
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.insight-share-bar__buttons { display: flex; gap: 10px; }
.insight-share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-btn);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.insight-share-btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.insight-share-btn--linkedin { background: #0A66C2; color: #fff; }
.insight-share-btn--facebook { background: #1877F2; color: #fff; }
@media (max-width: 600px) {
  .insight-share-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Search toggle */
.sparx-nav__search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-body);
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: background 0.15s;
}
.sparx-nav__search-toggle:hover { background: var(--color-off-white); }
.sparx-nav__search-box {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: #fff;
  border-bottom: 2px solid var(--color-teal);
  padding: 16px 24px;
  display: none;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.sparx-nav__search-box.is-open { display: block; }
.sparx-nav__search-box form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0;
}
.sparx-nav__search-box input[type="search"] {
  flex: 1;
  padding: 10px 16px;
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  outline: none;
  font-family: var(--font-primary);
}
.sparx-nav__search-box input[type="search"]:focus { border-color: var(--color-teal); }
.sparx-nav__search-box button[type="submit"] {
  background: var(--color-teal);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

/* ============================================================
   INSIGHT POST BODY TYPOGRAPHY
   ============================================================ */
.insight-post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-body);
}
.insight-post-body h1,
.insight-post-body h2,
.insight-post-body h3,
.insight-post-body h4,
.insight-post-body h5 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-near-black);
  margin: 2em 0 0.6em;
  line-height: 1.25;
}
.insight-post-body h2 { font-size: 1.6em; border-bottom: 2px solid var(--color-teal); padding-bottom: 0.3em; }
.insight-post-body h3 { font-size: 1.25em; }
.insight-post-body h4 { font-size: 1.05em; color: var(--color-teal); text-transform: uppercase; letter-spacing: 0.04em; }
.insight-post-body p { margin: 0 0 1.4em; }
.insight-post-body a { color: var(--color-teal); text-decoration: underline; }
.insight-post-body a:hover { color: var(--color-teal-dark); }
.insight-post-body ul,
.insight-post-body ol { padding-left: 1.6em; margin: 0 0 1.4em; }
.insight-post-body li { margin-bottom: 0.5em; }
.insight-post-body blockquote {
  border-left: 4px solid var(--color-teal);
  margin: 2em 0;
  padding: 16px 24px;
  background: var(--color-off-white);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--color-mid-grey);
}
.insight-post-body blockquote p { margin: 0; }
.insight-post-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 3em 0;
}
.insight-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.insight-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}
.insight-post-body th {
  background: var(--color-near-black);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.insight-post-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.insight-post-body tr:nth-child(even) td { background: var(--color-off-white); }
.insight-post-body code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  color: #0f766e;
}
.insight-post-body pre {
  background: var(--color-near-black);
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.insight-post-body pre code { background: none; color: inherit; padding: 0; }
/* Strong intro paragraph style */
.insight-post-body > p:first-of-type {
  font-size: 1.1em;
  color: var(--color-mid-grey);
  font-weight: 400;
  line-height: 1.7;
}
/* ─── Insight single post hero ─────────────────────────────────────── */
.insight-post-hero {
  background: var(--color-near-black);
  padding: 64px 0 64px;
  color: #fff;
}
/* Full-width container when image is present */
.insight-post-hero--with-image .container { max-width: 1140px; }
/* Narrow container for text-only posts */
.insight-post-hero:not(.insight-post-hero--with-image) .container { max-width: 760px; }

/* Two-column grid: text left, image right */
.insight-post-hero__grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 60px;
  align-items: center;
}
/* Single column when no image */
.insight-post-hero:not(.insight-post-hero--with-image) .insight-post-hero__grid {
  grid-template-columns: 1fr;
}

.insight-post-hero__content { max-width: 560px; }

.insight-post-hero__cat {
  display: inline-block;
  background: var(--color-teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.insight-post-hero__title {
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff;
}
.insight-post-hero__meta {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* Featured image in right column */
.insight-post-hero__thumb {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  aspect-ratio: 16/9;
}
.insight-post-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Share bar */
.insight-share-bar { max-width: 760px; }


/* Featured image between hero dark band and post body */
.insight-post-hero__image {
  background: var(--color-near-black);
  padding: 0;
}
.insight-post-hero__image .container {
  max-width: 900px;
}
.insight-post-hero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}