/* =================================================================
   VISEON Services Pages — Premium Dark Theme
   Inspired by Scrunch.com Enterprise/Agencies design
   ================================================================= */

/* -----------------------------------------------------------------
   0. PAGE-LEVEL RESET
   ----------------------------------------------------------------- */

/* Override base.css page-title / intro section styles on services pages */
.viseon-services-page .entry-content {
  max-width: none !important;
  padding: 0 !important;
}

/* ---- Full-bleed: kill wp-site-blocks padding on services pages ---- */
body.page-template-page-services .wp-site-blocks {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-template-page-services .wp-site-blocks>.viseon-services-page {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Kill base.css nth-child hero styling that targets generic page templates */
body.page .viseon-services-page .wp-block-group.alignfull.is-layout-constrained:first-child,
body.page .viseon-services-page .wp-block-group.alignfull.is-layout-constrained:nth-child(2) {
  background: transparent !important;
  border: none !important;
  padding: revert !important;
  margin: revert !important;
}

body.page .viseon-services-page .wp-block-group.alignfull.is-layout-constrained:first-child::before,
body.page .viseon-services-page .wp-block-group.alignfull.is-layout-constrained:first-child::after,
body.page .viseon-services-page .wp-block-group.alignfull.is-layout-constrained:nth-child(2)::before,
body.page .viseon-services-page .wp-block-group.alignfull.is-layout-constrained:nth-child(2)::after {
  display: none !important;
  content: none !important;
}

/* -----------------------------------------------------------------
   0B. NATIVE WP BLOCK RESETS (services pages only)
   Scoped to .viseon-services-page (<main>) so header/footer are unaffected.
   ----------------------------------------------------------------- */

/*
 * Reset wp-block-group defaults for INNER groups only.
 * Section-level groups (.svc-section) keep their own padding via the
 * .svc-section rule. We only zero-out inner container / layout groups.
 */
.viseon-services-page .wp-block-group:not(.svc-section) {
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  --wp--style--block-gap: 0;
}

/* Section-level groups must not have WP-added margins that create gaps */
.viseon-services-page .wp-block-group.svc-section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/*
 * Override base.css global h2/h3.wp-block-heading styles:
 * base.css adds border-bottom: 2px solid var(--brand-orange) and
 * color: var(--brand-dark-alt) — both wrong on dark services pages.
 */
.viseon-services-page h2.wp-block-heading {
  border-bottom: none !important;
  color: inherit !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.viseon-services-page h3.wp-block-heading {
  color: inherit !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Reset wp-block-list marker color from base.css (brand-orange bullets) */
.viseon-services-page .wp-block-list li::marker {
  color: var(--svc-accent) !important;
}

/* Reset wp-block-buttons layout */
.viseon-services-page .wp-block-buttons {
  gap: 16px;
  margin: 0;
}

/* Reset wp-block-button wrapper — prevent square background showing behind pill link */
.viseon-services-page .wp-block-button {
  margin: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/*
 * Kill WP-generated margins between top-level blocks in the post content.
 * WordPress adds margin-block-start/end to separate root-level blocks,
 * which creates white gaps between sections on dark backgrounds.
 */
.viseon-services-page .entry-content>* {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Dark background on the content area itself so margins never show white */
.viseon-services-page .entry-content,
.viseon-services-page .wp-block-post-content {
  background: var(--svc-bg-dark) !important;
}

/* Make native WP buttons match our svc-btn design */
body.page-template-page-services .wp-block-button__link.wp-element-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--svc-radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none !important;
  transition: all var(--svc-transition);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Primary button variant */
body.page-template-page-services .wp-block-button.svc-btn--primary .wp-block-button__link {
  background: var(--svc-text-white) !important;
  color: var(--svc-bg-dark) !important;
  border-color: var(--svc-text-white) !important;
}

body.page-template-page-services .wp-block-button.svc-btn--primary .wp-block-button__link:hover {
  background: transparent !important;
  color: var(--svc-text-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

/* Secondary button variant */
body.page-template-page-services .wp-block-button.svc-btn--secondary .wp-block-button__link {
  background: transparent !important;
  color: var(--svc-text-white) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

body.page-template-page-services .wp-block-button.svc-btn--secondary .wp-block-button__link:hover {
  border-color: var(--svc-text-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}

/* Accent button variant */
body.page-template-page-services .wp-block-button.svc-btn--accent .wp-block-button__link {
  background: var(--svc-accent) !important;
  color: #fff !important;
  border-color: var(--svc-accent) !important;
}

body.page-template-page-services .wp-block-button.svc-btn--accent .wp-block-button__link:hover {
  background: var(--brand-orange-dark, #e55a0d) !important;
  border-color: var(--brand-orange-dark, #e55a0d) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--svc-accent-glow);
}

/* Ensure WP list block matches svc-feature-list */
body.page-template-page-services .wp-block-list.svc-feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-template-page-services .wp-block-list.svc-feature-list li {
  padding-left: 24px;
  position: relative;
  color: var(--svc-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

body.page-template-page-services .wp-block-list.svc-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--svc-accent);
  font-weight: 700;
}

/* -----------------------------------------------------------------
   1. DESIGN TOKENS
   ----------------------------------------------------------------- */
.viseon-services-page {
  --svc-bg-dark: #0a0a0a;
  --svc-bg-dark-alt: #111111;
  --svc-bg-dark-card: #161616;
  --svc-bg-light: #f9f9fb;
  --svc-bg-white: #ffffff;
  --svc-text-white: #ffffff;
  --svc-text-muted: rgba(255, 255, 255, 0.65);
  --svc-text-dark: #1a1a2e;
  --svc-text-dark-muted: #6b7280;
  --svc-accent: #f4711d;
  --svc-accent-glow: rgba(244, 113, 29, 0.15);
  --svc-gradient-start: rgba(99, 102, 241, 0.12);
  --svc-gradient-end: rgba(168, 85, 247, 0.08);
  --svc-border-subtle: rgba(255, 255, 255, 0.08);
  --svc-border-light: rgba(0, 0, 0, 0.08);
  --svc-radius-card: 24px;
  --svc-radius-pill: 9999px;
  --svc-section-py: clamp(80px, 10vw, 120px);
  --svc-section-px: clamp(20px, 5vw, 40px);
  --svc-content-max: 1140px;
  --svc-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* -----------------------------------------------------------------
   2. SECTION BASE
   ----------------------------------------------------------------- */
.svc-section {
  width: 100%;
  padding: var(--svc-section-py) var(--svc-section-px);
  position: relative;
  overflow: hidden;
}

.svc-section--dark {
  background: var(--svc-bg-dark);
  color: var(--svc-text-white);
}

.svc-section--dark-alt {
  background: var(--svc-bg-dark-alt);
  color: var(--svc-text-white);
}

.svc-section--light {
  background: var(--svc-bg-light);
  color: var(--svc-text-dark);
}

.svc-section--white {
  background: var(--svc-bg-white);
  color: var(--svc-text-dark);
}

.svc-container {
  max-width: var(--svc-content-max);
  margin: 0 auto;
  width: 100%;
}

/* -----------------------------------------------------------------
   3. HERO SECTION
   ----------------------------------------------------------------- */
.svc-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
}

.svc-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--svc-gradient-start) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.svc-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--svc-gradient-end) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.svc-hero .svc-container {
  position: relative;
  z-index: 1;
  transform: translateY(-120px);
}

.svc-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--svc-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--svc-accent);
  margin-bottom: 32px;
}

.svc-hero__pill svg,
.svc-hero__pill .pill-icon {
  width: 16px;
  height: 16px;
}

.svc-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  color: var(--svc-text-white) !important;
  margin: 0 0 24px 0 !important;
  max-width: 720px;
}

.svc-hero__title em,
.svc-hero__title span.accent {
  color: var(--svc-accent) !important;
  font-style: normal;
}

.svc-hero__desc {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem) !important;
  line-height: 1.65 !important;
  color: var(--svc-text-muted) !important;
  max-width: 580px;
  margin: 0 0 40px 0 !important;
}

.svc-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* -----------------------------------------------------------------
   4. BUTTONS
   ----------------------------------------------------------------- */
.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--svc-radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none !important;
  transition: all var(--svc-transition);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.svc-btn--primary {
  background: var(--svc-text-white);
  color: var(--svc-bg-dark) !important;
  border-color: var(--svc-text-white);
}

.svc-btn--primary:hover {
  background: transparent;
  color: var(--svc-text-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.svc-btn--secondary {
  background: transparent;
  color: var(--svc-text-white) !important;
  border-color: rgba(255, 255, 255, 0.25);
}

.svc-btn--secondary:hover {
  border-color: var(--svc-text-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}

.svc-btn--accent {
  background: var(--svc-accent);
  color: #fff !important;
  border-color: var(--svc-accent);
}

.svc-btn--accent:hover {
  background: var(--brand-orange-dark, #e55a0d);
  border-color: var(--brand-orange-dark, #e55a0d);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--svc-accent-glow);
}

/* Dark buttons for light sections */
.svc-btn--dark {
  background: var(--svc-bg-dark);
  color: var(--svc-text-white) !important;
  border-color: var(--svc-bg-dark);
}

.svc-btn--dark:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.svc-btn__arrow {
  transition: transform 0.3s ease;
}

.svc-btn:hover .svc-btn__arrow {
  transform: translateX(4px);
}

/* -----------------------------------------------------------------
   5. STATS BAR
   ----------------------------------------------------------------- */
.svc-stats {
  display: flex;
  gap: clamp(32px, 5vw, 64px);
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid var(--svc-border-subtle);
  flex-wrap: wrap;
}

.svc-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.svc-stat__number {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--svc-text-white);
  line-height: 1.1;
}

.svc-stat__label {
  font-size: 0.9rem;
  color: var(--svc-text-muted);
  font-weight: 400;
}

/* -----------------------------------------------------------------
   6. SECTION HEADERS
   ----------------------------------------------------------------- */
.svc-section-header {
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 700px;
}

.svc-section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.svc-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--svc-accent-glow);
  border: 1px solid rgba(244, 113, 29, 0.25);
  border-radius: var(--svc-radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--svc-accent);
  margin-bottom: 20px;
}

/* For light sections */
.svc-section--light .svc-section-label,
.svc-section--white .svc-section-label {
  background: rgba(244, 113, 29, 0.08);
}

.svc-section__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 20px 0 !important;
}

.svc-section--dark .svc-section__title,
.svc-section--dark-alt .svc-section__title {
  color: var(--svc-text-white) !important;
}

.svc-section--light .svc-section__title,
.svc-section--white .svc-section__title {
  color: var(--svc-text-dark) !important;
}

.svc-section__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

.svc-section--dark .svc-section__subtitle,
.svc-section--dark-alt .svc-section__subtitle {
  color: var(--svc-text-muted) !important;
}

.svc-section--light .svc-section__subtitle,
.svc-section--white .svc-section__subtitle {
  color: var(--svc-text-dark-muted) !important;
}

/* -----------------------------------------------------------------
   7. CARD GRID
   ----------------------------------------------------------------- */
.svc-grid {
  display: grid;
  gap: 24px;
}

.svc-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.svc-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.svc-card {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--svc-radius-card);
  transition: all var(--svc-transition);
  position: relative;
  overflow: hidden;
}

/* Dark cards */
.svc-section--dark .svc-card,
.svc-section--dark-alt .svc-card {
  background: var(--svc-bg-dark-card);
  border: 1px solid var(--svc-border-subtle);
}

.svc-section--dark .svc-card:hover,
.svc-section--dark-alt .svc-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Light cards */
.svc-section--light .svc-card,
.svc-section--white .svc-card {
  background: var(--svc-bg-white);
  border: 1px solid var(--svc-border-light);
}

.svc-section--light .svc-card:hover,
.svc-section--white .svc-card:hover {
  border-color: rgba(244, 113, 29, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.svc-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.svc-section--dark .svc-card__icon,
.svc-section--dark-alt .svc-card__icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--svc-accent);
}

.svc-section--light .svc-card__icon,
.svc-section--white .svc-card__icon {
  background: var(--svc-accent-glow);
  color: var(--svc-accent);
}

.svc-card__title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 0 12px 0 !important;
}

.svc-section--dark .svc-card__title,
.svc-section--dark-alt .svc-card__title {
  color: var(--svc-text-white) !important;
}

.svc-section--light .svc-card__title,
.svc-section--white .svc-card__title {
  color: var(--svc-text-dark) !important;
}

.svc-card__desc {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

.svc-section--dark .svc-card__desc,
.svc-section--dark-alt .svc-card__desc {
  color: var(--svc-text-muted) !important;
}

.svc-section--light .svc-card__desc,
.svc-section--white .svc-card__desc {
  color: var(--svc-text-dark-muted) !important;
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--svc-accent) !important;
  text-decoration: none !important;
  transition: gap 0.3s ease;
}

.svc-card__link:hover {
  gap: 10px;
}

/* -----------------------------------------------------------------
   8. ZIGZAG / ALTERNATING FEATURE ROWS
   ----------------------------------------------------------------- */
.svc-zigzag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.svc-zigzag--reverse {
  direction: rtl;
}

.svc-zigzag--reverse>* {
  direction: ltr;
}

.svc-zigzag__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.svc-zigzag__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

.svc-zigzag__desc {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

.svc-section--dark .svc-zigzag__title,
.svc-section--dark-alt .svc-zigzag__title {
  color: var(--svc-text-white) !important;
}

.svc-section--dark .svc-zigzag__desc,
.svc-section--dark-alt .svc-zigzag__desc {
  color: var(--svc-text-muted) !important;
}

.svc-section--light .svc-zigzag__title,
.svc-section--white .svc-zigzag__title {
  color: var(--svc-text-dark) !important;
}

.svc-section--light .svc-zigzag__desc,
.svc-section--white .svc-zigzag__desc {
  color: var(--svc-text-dark-muted) !important;
}

.svc-zigzag__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border-radius: var(--svc-radius-card);
  overflow: hidden;
}

.svc-section--dark .svc-zigzag__visual,
.svc-section--dark-alt .svc-zigzag__visual {
  background: var(--svc-bg-dark-card);
  border: 1px solid var(--svc-border-subtle);
}

.svc-section--light .svc-zigzag__visual,
.svc-section--white .svc-zigzag__visual {
  background: #f0f0f4;
  border: 1px solid var(--svc-border-light);
}

.svc-zigzag__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Feature list items within zigzag */
.svc-feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.svc-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.svc-feature-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--svc-accent-glow);
  color: var(--svc-accent);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.svc-section--dark .svc-feature-list li,
.svc-section--dark-alt .svc-feature-list li {
  color: rgba(255, 255, 255, 0.85);
}

/* Native WP list blocks inside dark sections */
.viseon-services-page .svc-section--dark .wp-block-list li,
.viseon-services-page .svc-section--dark-alt .wp-block-list li {
  color: rgba(255, 255, 255, 0.85) !important;
}

.svc-section--light .svc-feature-list li,
.svc-section--white .svc-feature-list li {
  color: var(--svc-text-dark-muted);
}

/* -----------------------------------------------------------------
   9. TIMELINE
   ----------------------------------------------------------------- */
.svc-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 40px;
}

.svc-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--svc-border-subtle);
}

.svc-timeline__step {
  position: relative;
  padding: 32px 0;
  padding-left: 40px;
}

.svc-timeline__step::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 40px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--svc-accent);
  border: 3px solid var(--svc-bg-dark);
  z-index: 1;
}

.svc-timeline__step-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--svc-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.svc-timeline__step-title {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  margin: 0 0 8px 0 !important;
}

.svc-section--dark .svc-timeline__step-title {
  color: var(--svc-text-white) !important;
}

.svc-timeline__step-desc {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  color: var(--svc-text-muted) !important;
}

/* Light timeline variant */
.svc-section--light .svc-timeline::before,
.svc-section--white .svc-timeline::before {
  background: rgba(0, 0, 0, 0.1);
}

.svc-section--light .svc-timeline__step::before,
.svc-section--white .svc-timeline__step::before {
  border-color: var(--svc-bg-light);
}

.svc-section--light .svc-timeline__step-title,
.svc-section--white .svc-timeline__step-title {
  color: var(--svc-text-dark) !important;
}

.svc-section--light .svc-timeline__step-desc,
.svc-section--white .svc-timeline__step-desc {
  color: var(--svc-text-dark-muted) !important;
}

/* -----------------------------------------------------------------
   10. CTA BANNER
   ----------------------------------------------------------------- */
.svc-cta {
  text-align: center;
  padding: var(--svc-section-py) var(--svc-section-px);
}

.svc-cta__title {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin: 0 0 20px 0 !important;
}

.svc-section--dark .svc-cta__title {
  color: var(--svc-text-white) !important;
}

.svc-cta__desc {
  font-size: clamp(1rem, 1.6vw, 1.15rem) !important;
  line-height: 1.65 !important;
  color: var(--svc-text-muted) !important;
  max-width: 580px;
  margin: 0 auto 40px auto !important;
}

.svc-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -----------------------------------------------------------------
   11. SCROLL ANIMATIONS
   ----------------------------------------------------------------- */
.svc-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hero section reveals immediately — no scroll needed */
.svc-hero .svc-reveal {
  opacity: 1;
  transform: translateY(0);
}

.svc-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.svc-reveal-stagger>.svc-card:nth-child(1) {
  transition-delay: 0s;
}

.svc-reveal-stagger>.svc-card:nth-child(2) {
  transition-delay: 0.1s;
}

.svc-reveal-stagger>.svc-card:nth-child(3) {
  transition-delay: 0.2s;
}

.svc-reveal-stagger>.svc-card:nth-child(4) {
  transition-delay: 0.15s;
}

.svc-reveal-stagger>.svc-card:nth-child(5) {
  transition-delay: 0.25s;
}

.svc-reveal-stagger>.svc-card:nth-child(6) {
  transition-delay: 0.3s;
}

.svc-reveal-stagger>.svc-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.svc-reveal-stagger.is-visible>.svc-card {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced-motion & noscript fallback */
@media (prefers-reduced-motion: reduce) {

  .svc-reveal,
  .svc-reveal-stagger>.svc-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Fallback: auto-reveal after 1.5s if JS fails */
@keyframes svc-fallback-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.svc-reveal:not(.is-visible) {
  animation: svc-fallback-reveal 0.6s ease 1.5s forwards;
}

.svc-reveal-stagger:not(.is-visible)>.svc-card {
  animation: svc-fallback-reveal 0.6s ease 1.8s forwards;
}

/* -----------------------------------------------------------------
   12. RESPONSIVE
   ----------------------------------------------------------------- */
.svc-hero {
  min-height: 100vh;
}

.svc-hero .svc-container {
  transform: translateY(-120px);
}

@media (max-width: 1024px) {
  .svc-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc-zigzag {
    grid-template-columns: 1fr;
  }

  .svc-zigzag--reverse {
    direction: ltr;
  }

  .svc-hero__title {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .svc-hero {
    min-height: auto;
    padding-top: clamp(80px, 12vw, 120px);
    padding-bottom: clamp(40px, 6vw, 60px);
  }

  .svc-hero .svc-container {
    transform: none;
  }

  .svc-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .svc-btn {
    width: 100%;
    justify-content: center;
  }

  .svc-stats {
    flex-direction: column;
    gap: 24px;
  }

  .svc-zigzag__visual {
    min-height: 200px;
    order: -1;
  }

  .svc-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .svc-timeline {
    padding-left: 24px;
  }

  .svc-timeline__step {
    padding-left: 24px;
  }

  .svc-timeline__step::before {
    left: -17px;
    width: 10px;
    height: 10px;
  }
}

/* -----------------------------------------------------------------
   13. ICON PLACEHOLDERS (SVG icons via CSS)
   ----------------------------------------------------------------- */
.svc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.svc-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Fix WordPress block spacing overrides within services pages */
.viseon-services-page .wp-block-group {
  margin-block-start: 0 !important;
}

.viseon-services-page .alignfull {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Ensure the services page main tag doesn't constrain content */
.viseon-services-page.wp-block-group {
  max-width: none !important;
}