/* ==========================================================================
   ADVENNO PHASE 4 PAGE - SERVICES (SCOPED)
   --------------------------------------------------------------------------
   Scope:
   - services.php only
   - preserve schema/content/scripts and all navigation behavior
   - replace inline presentation styles with page-scoped classes
   ========================================================================== */

.p4-services-page {
  background:
    radial-gradient(960px 460px at 7% -8%, rgba(20, 184, 166, 0.12), transparent 60%),
    radial-gradient(840px 420px at 92% 8%, rgba(37, 99, 235, 0.09), transparent 58%);
}

.p4-services-page .p4-services-main {
  padding-top: 0;
}

.p4-services-page .p4-services-hero {
  padding-top: var(--p3-hero-top-space);
}

.p4-services-page .p4-services-hero-actions {
  justify-content: center;
  margin-top: 32px;
}

.p4-services-page .p4-services-grid {
  gap: var(--space-2xl);
}

.p4-services-page .p4-services-grid-section,
.p4-services-page .p4-services-process-section,
.p4-services-page .p4-services-tech-section,
.p4-services-page .p4-services-insights-section,
.p4-services-page .p4-services-cta-section {
  position: relative;
}

.p4-services-page .p4-services-service-card {
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.p4-services-page .p4-services-card-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  overflow: hidden;
  border-radius: 0 0 0 80px;
  opacity: 0.12;
}

.p4-services-page .p4-services-card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p4-services-page .p4-services-service-icon {
  font-size: 1.8rem;
  color: var(--color-accent);
}

.p4-services-page .p4-services-service-title {
  font-size: 1.5rem;
  margin-top: var(--space-lg);
}

.p4-services-page .p4-services-service-copy {
  margin-bottom: var(--space-xl);
}

.p4-services-page .p4-services-service-list {
  list-style: none;
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
  padding: 0;
}

.p4-services-page .p4-services-service-list-item {
  padding: var(--space-sm) 0;
  display: flex;
  gap: var(--space-sm);
}

.p4-services-page .p4-services-service-list-arrow {
  color: var(--color-accent);
  font-size: 0.75rem;
}

.p4-services-page .p4-services-stats-section {
  padding: 32px 0;
}

.p4-services-page .p4-services-stats-wrap {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.p4-services-page .p4-services-stat-card {
  text-align: center;
  max-width: 180px;
}

.p4-services-page .p4-services-stat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
}

.p4-services-page .p4-services-stat-title-secondary {
  color: var(--color-accent-secondary);
}

.p4-services-page .p4-services-stat-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.p4-services-page .p4-services-process-card {
  text-align: center;
  padding: var(--space-2xl);
}

.p4-services-page .p4-services-process-step {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.p4-services-page .p4-services-insights-shell {
  max-width: 900px;
}

.p4-services-page .p4-services-insights-card {
  padding: 32px;
}

.p4-services-page .p4-services-insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.p4-services-page .p4-services-insights-title {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.p4-services-page .p4-services-insights-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p4-services-page .p4-services-insights-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.p4-services-page .p4-services-insights-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.p4-services-page .p4-services-insights-dot-1 {
  background: #22d3ee;
}

.p4-services-page .p4-services-insights-dot-2 {
  background: #3b82f6;
}

.p4-services-page .p4-services-insights-dot-3 {
  background: #8b5cf6;
}

.p4-services-page .p4-services-insights-dot-4 {
  background: #ec4899;
}

.p4-services-page .p4-services-insights-dot-5 {
  background: #f59e0b;
}

.p4-services-page .p4-services-insights-dot-6 {
  background: #10b981;
}

.p4-services-page .p4-services-insights-legend-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.p4-services-page .p4-services-cta-actions {
  justify-content: center;
}

.p4-services-page .p4-services-mobile-cta-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .p4-services-page .p4-services-insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .p4-services-page .p4-services-main {
    padding-top: 0;
  }

  .p4-services-page .p4-services-hero {
    padding-top: var(--p3-hero-top-space-mobile);
  }

  .p4-services-page .p4-services-service-card {
    padding: var(--space-2xl);
  }

  .p4-services-page .p4-services-stats-wrap {
    gap: 24px;
  }

  .p4-services-page .p4-services-insights-card {
    padding: 24px;
  }
}

/* ==========================================================================
   PHASE 4.9 — PREMIUM UPGRADE
   Appended block. Does not modify any rule above. Every selector is scoped
   with `.p4-services-page` so it only affects the Services listing page.
   `!important` is used sparingly, only to beat bundle.min.css which loads
   asynchronously after this file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) BRAND ACCENT UNIFICATION
   The page markup carries inline styles referencing the legacy bright-cyan
   `--accent-cyan` (#22D3EE), which is off-brand. Remap those legacy custom
   properties onto the teal brand-accent tokens so inline usages inherit the
   correct brand color without touching the PHP.
   -------------------------------------------------------------------------- */
.p4-services-page {
  --accent-cyan: var(--color-accent);
  --accent-blue: var(--color-accent-hover);
  --glow-cyan: var(--color-accent-subtle);
}

/* --------------------------------------------------------------------------
   2) PREMIUM SERVICE CARDS
   Glassmorphic gradient surface, subtle blur, brand border, premium hover
   (lift + accent border + layered shadow with accent glow), and a gradient
   top-accent bar that scales in on hover. Uses ::after so it never clobbers
   any existing ::before on the card.
   -------------------------------------------------------------------------- */
.p4-services-page .p4-services-service-card {
  background: linear-gradient(160deg, var(--color-surface-2), var(--color-surface-1));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xl);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Gradient top-accent bar — collapsed by default, scales in on hover. */
.p4-services-page .p4-services-service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.p4-services-page .p4-services-service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent) !important;
  box-shadow: var(--shadow-lg), var(--shadow-accent-glow) !important;
}

.p4-services-page .p4-services-service-card:hover::after {
  transform: scaleX(1);
}

/* Light-theme hover shadow variant — softer, slate-tinted ambient shadow. */
[data-theme="light"] .p4-services-page .p4-services-service-card:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), var(--shadow-accent-glow) !important;
}

/* --------------------------------------------------------------------------
   3) BENTO FEATURE — first service card
   Make the first card span the full grid width with a teal-tinted gradient
   and a larger heading. Content is constrained so it stays readable rather
   than stretching across the full width awkwardly.
   -------------------------------------------------------------------------- */
.p4-services-page .p4-services-grid .p4-services-service-card:first-child {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, var(--color-accent-subtle), transparent 60%),
    linear-gradient(160deg, var(--color-surface-2), var(--color-surface-1));
  border-color: var(--color-accent-subtle);
}

.p4-services-page .p4-services-grid .p4-services-service-card:first-child .p4-services-service-title {
  font-size: 2rem;
  max-width: 60ch;
}

/* Keep the body content readable on the wide featured card. */
.p4-services-page .p4-services-grid .p4-services-service-card:first-child .p4-services-service-copy,
.p4-services-page .p4-services-grid .p4-services-service-card:first-child .p4-services-service-list {
  max-width: 56ch;
}

/* On small screens the featured card returns to a single column. */
@media (max-width: 768px) {
  .p4-services-page .p4-services-grid .p4-services-service-card:first-child {
    grid-column: auto;
  }

  .p4-services-page .p4-services-grid .p4-services-service-card:first-child .p4-services-service-title {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   4) SECTION RHYTHM
   Alternate sections get a distinct surface tone and hairline dividers to
   create clear vertical rhythm down the page.
   -------------------------------------------------------------------------- */
.p4-services-page .section-alt {
  background:
    radial-gradient(ellipse 60% 80% at 50% -10%, color-mix(in srgb, var(--color-accent-secondary) 8%, transparent), transparent 60%),
    color-mix(in srgb, var(--color-surface-1) 80%, transparent) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  border-block: 1px solid var(--color-border-subtle);
}

/* ==========================================================================
   PHASE 5 — ADVANCED FRONTEND
   --------------------------------------------------------------------------
   Brings the Services listing page up to the homepage gold-standard.
   Appended after the 4.9 block — nothing above is modified or removed.
   Every selector is scoped under `.p4-services-page`. `!important` is used
   only where bundle.min.css (loaded async, after this file) would otherwise
   win on the same property. Dark-first; light overrides + responsive at end.
   Mirrors homepage patterns: atmospheric pure-CSS hero (gradient-mesh glow +
   masked blueprint grid), eyebrow pill, connected numbered timeline, refined
   glass cards with icon tile + hover arrow.
   ========================================================================== */

/* --------------------------------------------------------------------------
   5.1) ATMOSPHERIC HERO BACKGROUND (pure CSS, like .p4-hero-bg on home)
   Layered: a masked blueprint grid + two soft radial gradient-mesh glows.
   Lives in .p4-services-hero-bg (added in services.php). The hero is made a
   positioning + stacking context so the layers sit behind the content.
   -------------------------------------------------------------------------- */
.p4-services-page .p4-services-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.p4-services-page .p4-services-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Faint blueprint grid, radially masked so it fades toward the edges. */
.p4-services-page .p4-services-hero-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.10) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 28%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 78% 72% at 50% 28%, #000 30%, transparent 80%);
  opacity: 0.7;
}

/* Soft mesh glows — brand teal + secondary accent. */
.p4-services-page .p4-services-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.p4-services-page .p4-services-hero-glow-a {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  top: -16%;
  left: -10%;
  background: radial-gradient(circle, var(--color-accent), transparent 65%);
}

.p4-services-page .p4-services-hero-glow-b {
  width: 40vw;
  height: 40vw;
  max-width: 540px;
  max-height: 540px;
  top: 2%;
  right: -12%;
  background: radial-gradient(circle, var(--color-accent-secondary), transparent 65%);
  opacity: 0.38;
}

/* Slow, calm drift so the hero feels alive without distracting. */
@keyframes p4ServicesGlowDriftA {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(3%, 4%, 0); }
}
@keyframes p4ServicesGlowDriftB {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-4%, 3%, 0); }
}
.p4-services-page .p4-services-hero-glow-a { animation: p4ServicesGlowDriftA 22s ease-in-out infinite; }
.p4-services-page .p4-services-hero-glow-b { animation: p4ServicesGlowDriftB 26s ease-in-out infinite; }

/* --------------------------------------------------------------------------
   5.2) EYEBROW PILL (matches the homepage hero badge: dot + capsule)
   -------------------------------------------------------------------------- */
.p4-services-page .p4-services-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-border-default);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent) 8%, transparent);
  color: var(--color-text-secondary);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.p4-services-page .p4-services-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 22%, transparent);
}

/* Refined headline rhythm to match the homepage scale. */
.p4-services-page .p4-services-hero .page-header-title {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   5.3) CONNECTED TIMELINE — "How We Work"
   Turns the four process cards into circular numbered nodes joined by a
   single horizontal connector line, exactly like the homepage #process
   timeline. The connector is drawn on the grid wrapper (.p4-services-timeline)
   so it runs node-to-node behind the nodes.
   -------------------------------------------------------------------------- */
.p4-services-page .p4-services-timeline {
  position: relative;
}

/* Horizontal connector behind the numbered nodes. */
.p4-services-page .p4-services-timeline::before {
  content: "";
  position: absolute;
  top: 30px; /* aligns with the vertical centre of the 60px nodes */
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), color-mix(in srgb, var(--color-accent) 22%, transparent));
  z-index: 0;
}

/* Nodes/cards become transparent so the connector reads as one timeline. */
.p4-services-page .p4-services-timeline .p4-services-process-card {
  position: relative;
  z-index: 2;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Numbered circular node: ring on a surface chip, with a bg halo so the
   connector line appears to pass cleanly under each node. */
.p4-services-page .p4-services-timeline .p4-services-process-step {
  width: 60px;
  height: 60px;
  background: var(--color-surface-2) !important;
  border: 2px solid var(--color-accent);
  color: var(--color-accent) !important;
  font-family: var(--font-mono);
  font-weight: 700;
  box-shadow: 0 0 0 7px var(--color-bg);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.p4-services-page .p4-services-timeline .p4-services-process-card:hover .p4-services-process-step {
  transform: scale(1.08);
  background: var(--color-accent) !important;
  color: var(--color-text-inverse) !important;
}

/* --------------------------------------------------------------------------
   5.4) SERVICE CARD REFINEMENTS (enhancing the 4.9 glass cards)
   Icon tile around the existing icon + a hover arrow on the "Learn More"
   link, echoing the homepage card affordances. Tasteful, no layout churn.
   -------------------------------------------------------------------------- */
.p4-services-page .p4-services-service-card .card-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 28%, transparent);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.p4-services-page .p4-services-service-card:hover .card-icon {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
  border-color: var(--color-accent);
}

/* Service-number watermark sits unobtrusively top-right. */
.p4-services-page .p4-services-service-card .service-number {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-xl);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  opacity: 0.7;
  z-index: 3;
}

/* "Learn More" gains a sliding arrow on hover. */
.p4-services-page .p4-services-service-card .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.p4-services-page .p4-services-service-card .btn-secondary::after {
  content: "\2192"; /* → */
  font-size: 1.05em;
  transform: translateX(-2px);
  opacity: 0.85;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.p4-services-page .p4-services-service-card:hover .btn-secondary::after {
  transform: translateX(2px);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   5.5) STATS BANNER — glass chips with rhythm (matches card system)
   -------------------------------------------------------------------------- */
.p4-services-page .p4-services-stat-card {
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  background: color-mix(in srgb, var(--color-surface-2) 80%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.p4-services-page .p4-services-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   5.6) LIGHT-THEME OVERRIDES
   -------------------------------------------------------------------------- */
[data-theme="light"] .p4-services-page .p4-services-hero-grid {
  background-image:
    linear-gradient(to right, rgba(71, 85, 105, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(71, 85, 105, 0.10) 1px, transparent 1px);
}
[data-theme="light"] .p4-services-page .p4-services-hero-glow { opacity: 0.22; }
[data-theme="light"] .p4-services-page .p4-services-eyebrow {
  background: color-mix(in srgb, var(--color-accent) 10%, #fff);
}

/* --------------------------------------------------------------------------
   5.7) RESPONSIVE
   On tablet the timeline wraps to two columns; on phones it stacks and the
   connector line is hidden (no longer continuous), with nodes inline-left.
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .p4-services-page .p4-services-timeline { grid-template-columns: 1fr 1fr; }
  .p4-services-page .p4-services-timeline::before { display: none; }
}

@media (max-width: 640px) {
  .p4-services-page .p4-services-timeline { grid-template-columns: 1fr; }
  .p4-services-page .p4-services-timeline .p4-services-process-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem var(--space-lg);
    align-items: center;
    text-align: left;
  }
  .p4-services-page .p4-services-timeline .p4-services-process-step {
    margin: 0;
    box-shadow: none;
    grid-row: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p4-services-page .p4-services-hero-glow-a,
  .p4-services-page .p4-services-hero-glow-b {
    animation: none !important;
  }
}

/* ==========================================================================
   PHASE 6 — ASYMMETRIC HERO
   --------------------------------------------------------------------------
   Converts the services hero from a centered single column into a two-column
   asymmetric layout that mirrors the homepage hero:
     LEFT  = existing copy (eyebrow, headline, subcopy, CTAs)
     RIGHT = a NEW glassy "What we deliver" capability checklist panel + chips
   The Phase 5 atmospheric background (.p4-services-hero-bg) is preserved.
   Specificity + !important are used deliberately to win over the async
   bundle.min.css enhanced-hero centering rules.
   ========================================================================== */

/* ---- Two-column grid (desktop) ---- */
.p4-services-page .p4-services-hero .p4-services-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  text-align: left;
}

/* LEFT column: left-align everything (override centered enhanced-hero) */
.p4-services-page .p4-services-hero .p4-services-hero-copy {
  text-align: left !important;
  max-width: 640px;
  margin: 0 !important;
}
.p4-services-page .p4-services-hero .p4-services-hero-copy .page-header-title,
.p4-services-page .p4-services-hero .p4-services-hero-copy .page-header-description {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.p4-services-page .p4-services-hero .p4-services-hero-copy .page-header-description {
  max-width: 34em;
}

/* CTAs: left-aligned in the asymmetric layout (overrides Phase 4 centering) */
.p4-services-page .p4-services-hero .p4-services-hero-copy .p4-services-hero-actions {
  justify-content: flex-start !important;
}

/* ---- RIGHT column: glassy capability panel ---- */
.p4-services-page .p4-services-hero-visual {
  position: relative;
}

.p4-services-page .p4-services-hero-panel {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--color-accent) 7%, var(--color-surface-2)),
      var(--color-surface-1));
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.p4-services-page .p4-services-hero-panel-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-subtle);
  background: color-mix(in srgb, var(--color-accent) 6%, transparent);
}
.p4-services-page .p4-services-hero-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
  color: var(--color-accent);
  flex-shrink: 0;
}
.p4-services-page .p4-services-hero-panel-title {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: var(--text-body);
}
.p4-services-page .p4-services-hero-panel-head em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

/* Checklist of capabilities — two columns inside the card on desktop */
.p4-services-page .p4-services-hero-caplist {
  list-style: none;
  margin: 0;
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-4);
}
.p4-services-page .p4-services-hero-cap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}
.p4-services-page .p4-services-hero-cap i {
  color: var(--color-accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.p4-services-page .p4-services-hero-panel-foot {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}
.p4-services-page .p4-services-hero-panel-foot b {
  color: var(--color-accent);
  font-weight: 700;
}

/* ---- Floating chips ---- */
.p4-services-page .p4-services-hero-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: p4ServicesHeroFloat 6s ease-in-out infinite;
}
.p4-services-page .p4-services-hero-chip i { color: var(--color-accent); }
.p4-services-page .p4-services-hero-chip-1 { top: 6%; right: -6%; animation-delay: 0s; }
.p4-services-page .p4-services-hero-chip-2 { bottom: 8%; left: -7%; animation-delay: 1.6s; }

@keyframes p4ServicesHeroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---- Light theme ---- */
[data-theme="light"] .p4-services-page .p4-services-hero-panel {
  background: linear-gradient(160deg, #ffffff, #eef3fb);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.14);
}
[data-theme="light"] .p4-services-page .p4-services-hero-panel-head {
  background: color-mix(in srgb, var(--color-accent) 8%, #fff);
}
[data-theme="light"] .p4-services-page .p4-services-hero-chip {
  background: #ffffff;
}

/* ---- Responsive: stack on tablet/mobile ---- */
@media (max-width: 980px) {
  .p4-services-page .p4-services-hero .p4-services-hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 2rem + 4vw, 4rem);
    text-align: center;
  }
  .p4-services-page .p4-services-hero .p4-services-hero-copy {
    max-width: 100%;
    margin-inline: auto !important;
    text-align: center !important;
  }
  .p4-services-page .p4-services-hero .p4-services-hero-copy .page-header-title,
  .p4-services-page .p4-services-hero .p4-services-hero-copy .page-header-description {
    text-align: center !important;
  }
  .p4-services-page .p4-services-hero .p4-services-hero-copy .page-header-description {
    margin-inline: auto !important;
  }
  .p4-services-page .p4-services-hero .p4-services-hero-copy .p4-services-hero-actions {
    justify-content: center !important;
  }
  .p4-services-page .p4-services-hero-visual {
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
  }
  .p4-services-page .p4-services-hero-chip-1 { right: 1%; }
  .p4-services-page .p4-services-hero-chip-2 { left: 1%; }
}

@media (max-width: 575px) {
  .p4-services-page .p4-services-hero-caplist {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .p4-services-page .p4-services-hero-chip {
    display: none;
  }
  .p4-services-page .p4-services-hero .p4-services-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p4-services-page .p4-services-hero-chip {
    animation: none !important;
  }
}
