/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/* ---- Anchor scroll offset (compensates for sticky navbar) ---- */
html {
  scroll-padding-top: 120px;
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 991.98px) {
  body, html {
    overflow-x: hidden !important;
    max-width: 100vw;
  }
}

/* ---- Liquid Glass Navbar ---- */

/* Ensure header is always on top of hero content */
#header,
.liquid-glass-nav {
  z-index: 9999 !important;
  position: relative;
}

#header-wrap {
  z-index: 9999 !important;
}

/* Reset ALL theme background variables on the glass nav */
.liquid-glass-nav,
.liquid-glass-nav #header-wrap,
.liquid-glass-nav #header-wrap > .container {
  --cnvs-header-bg: transparent !important;
  --cnvs-header-sticky-bg: transparent !important;
  --cnvs-header-border-color: transparent !important;
  --cnvs-header-floating-bg: transparent !important;
}

/* Make #header-wrap fully transparent — just a wrapper */
.liquid-glass-nav #header-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Liquid glass pill — true glass effect */
.liquid-glass-nav #header-wrap > .container {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(220, 238, 255, 0.20) 50%,
    rgba(200, 228, 255, 0.15) 100%
  ) !important;
  backdrop-filter: blur(32px) saturate(2.2) brightness(1.06);
  -webkit-backdrop-filter: blur(32px) saturate(2.2) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.60) !important;
  border-bottom-color: rgba(180, 215, 255, 0.25) !important;
  border-radius: 20px !important;
  box-shadow:
    0 8px 40px rgba(11, 61, 145, 0.08),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(100, 181, 246, 0.10),
    inset 1px 0 0 rgba(255, 255, 255, 0.40);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top-edge glass sheen */
.liquid-glass-nav #header-wrap > .container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.00) 100%
  );
  border-radius: 20px 20px 0 0;
  pointer-events: none;
  z-index: 0;
}

/* Hover — slightly more opaque */
.liquid-glass-nav #header-wrap > .container:hover {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(220, 238, 255, 0.28) 50%,
    rgba(200, 228, 255, 0.22) 100%
  ) !important;
  box-shadow:
    0 12px 48px rgba(11, 61, 145, 0.11),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(100, 181, 246, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.50);
}

/* Sticky / scrolled — a touch more solid */
.liquid-glass-nav.sticky-header #header-wrap > .container {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(220, 238, 255, 0.38) 50%,
    rgba(200, 228, 255, 0.30) 100%
  ) !important;
  backdrop-filter: blur(36px) saturate(2.4) brightness(1.08);
  -webkit-backdrop-filter: blur(36px) saturate(2.4) brightness(1.08);
  box-shadow:
    0 4px 28px rgba(11, 61, 145, 0.10),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.80);
}

/* ---- Text & UI Elements ---- */

/* Nav links — dark on light background */
.liquid-glass-nav .menu-link div {
  color: #0B3D91 !important;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.25s ease;
}

.liquid-glass-nav .menu-link:hover div {
  color: #1565C0 !important;
  text-shadow: none;
}

/* Phone button */
.liquid-glass-nav .header-misc .button {
  border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  transition: all 0.25s ease;
}

.liquid-glass-nav .header-misc .button:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
  color: #fff !important;
}

/* Logo — display in original colours */
.liquid-glass-nav .logo-default {
  filter: none;
}

/* Login button on glass nav */
.liquid-glass-nav .header-misc .button {
  background: #0B3D91 !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 22px !important;
  font-size: 0.85rem !important;
  transition: all 0.3s ease;
}

.liquid-glass-nav .header-misc .button:hover {
  background: #1565C0 !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(11, 61, 145, 0.25);
  transform: translateY(-1px);
}

/* Single-line navbar — keep everything on one row */
.liquid-glass-nav .header-row {
  flex-wrap: nowrap !important;
  align-items: center;
}

/* Hide hamburger on desktop immediately — prevents flash before JS loads */
@media (min-width: 992px) {
  .primary-menu-trigger {
    display: none !important;
  }
}

.liquid-glass-nav #logo {
  flex-shrink: 0;
}

/* ---- Logo Group: "A Unit of Focus Imaging Systems" + Logo ---- */
.logo-group {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-unit-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding-left: 12px;
  line-height: 1.25;
}

.logo-unit-line1 {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5a7ab5;
  white-space: nowrap;
}

.logo-unit-line2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0B3D91;
  white-space: nowrap;
}

.logo-unit-divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, rgba(11,61,145,0.25) 30%, rgba(11,61,145,0.25) 70%, transparent);
  margin-left: 14px;
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .logo-unit-tag {
    display: none;
  }
  .logo-unit-divider {
    display: none;
  }
}

.liquid-glass-nav .header-misc {
  flex-shrink: 0;
  order: 3;
}

/* Mobile hamburger */
.liquid-glass-nav .cnvs-hamburger-inner,
.liquid-glass-nav .cnvs-hamburger-inner::before,
.liquid-glass-nav .cnvs-hamburger-inner::after {
  background-color: #0B3D91 !important;
}

/* ---- Hero Doctor Image Animations ---- */

/* Fade-in + rise on load */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gentle float — subtle breathing motion */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-doc {
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out forwards;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Staggered entrance delays */
.hero-doc-1 { animation-delay: 0.15s; }
.hero-doc-2 { animation-delay: 0.4s; }
.hero-doc-3 { animation-delay: 0.65s; }

/* After entrance, apply gentle float with offset timing */
.hero-doc-1 { animation: heroFadeUp 0.8s 0.15s ease-out forwards, heroFloat 5s 1.2s ease-in-out infinite; }
.hero-doc-2 { animation: heroFadeUp 0.8s 0.4s ease-out forwards, heroFloat 5s 1.8s ease-in-out infinite; }
.hero-doc-3 { animation: heroFadeUp 0.8s 0.65s ease-out forwards, heroFloat 5s 2.4s ease-in-out infinite; }

/* Subtle lift on hover */
.hero-doc:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(11, 61, 145, 0.15);
}

/* ---- Hero Card Slide-in Animation ---- */

@keyframes heroSlideIn {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Card overlapping bottom-left of first doctor image */
.hero-card-slide {
  position: absolute;
  bottom: 10%;
  left: -15%;
  width: max-content;
  max-width: 280px;
  opacity: 0;
  animation: heroSlideIn 0.7s 1s ease-out forwards;
  border-radius: 12px !important;
  box-shadow: 0 8px 28px rgba(11, 61, 145, 0.12);
}

.hero-card-slide .hero-card-icon svg {
  filter: drop-shadow(0 2px 4px rgba(11, 61, 145, 0.1));
}

@media (max-width: 991.98px) {
  .hero-card-slide {
    position: relative;
    left: 0;
    bottom: 0;
    margin-top: 20px;
    max-width: 100%;
  }
}

/* ---- Hero Icon Animations ---- */

/* Wave / sparkle lines — twinkle pulse */
@keyframes waveSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  25% { transform: scale(1.15) rotate(-8deg); opacity: 1; }
  50% { transform: scale(0.95) rotate(4deg); opacity: 0.7; }
  75% { transform: scale(1.1) rotate(-4deg); opacity: 1; }
}

.hero-wave {
  animation: waveSparkle 3s 0.5s ease-in-out infinite;
  transform-origin: center center;
}

/* Smiley — gentle nod / happy wiggle */
@keyframes smileyWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  15% { transform: rotate(-6deg) scale(1.05); }
  30% { transform: rotate(4deg) scale(1.02); }
  45% { transform: rotate(-3deg) scale(1.04); }
  60% { transform: rotate(2deg) scale(1); }
}

.hero-smiley {
  display: inline-block;
  animation: smileyWiggle 4s 1s ease-in-out infinite;
  transform-origin: center bottom;
}

/* Capsule / pill — slow gentle spin + float */
@keyframes capsuleFloat {
  0%, 100% { transform: rotate(0deg) translateY(0); opacity: 0.12; }
  25% { transform: rotate(8deg) translateY(-6px); opacity: 0.18; }
  50% { transform: rotate(-5deg) translateY(-10px); opacity: 0.15; }
  75% { transform: rotate(3deg) translateY(-4px); opacity: 0.2; }
}

.hero-capsule {
  animation: capsuleFloat 6s 0.8s ease-in-out infinite;
  transform-origin: center center;
}

/* ---- SEO Hero Floating Icons ---- */

/* Base styles for floating icons */
.seo-float-icon {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

.seo-float-icon:hover {
  opacity: 0.28;
}

/* Search icon — gentle pulse and float */
@keyframes seoSearchFloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.15; }
  25% { transform: translateY(-12px) rotate(5deg) scale(1.08); opacity: 0.22; }
  50% { transform: translateY(-18px) rotate(-3deg) scale(1.05); opacity: 0.18; }
  75% { transform: translateY(-8px) rotate(4deg) scale(1.1); opacity: 0.25; }
}

.seo-icon-search {
  top: 8%;
  left: -8%;
  animation: seoSearchFloat 7s 0.5s ease-in-out infinite;
  z-index: 1;
}

/* Chart icon — upward trending motion */
@keyframes seoChartRise {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.16; }
  25% { transform: translateY(-10px) translateX(4px) rotate(-8deg); opacity: 0.24; }
  50% { transform: translateY(-15px) translateX(-3px) rotate(5deg); opacity: 0.2; }
  75% { transform: translateY(-6px) translateX(2px) rotate(-3deg); opacity: 0.22; }
}

.seo-icon-chart {
  top: 15%;
  right: -5%;
  animation: seoChartRise 6s 1s ease-in-out infinite;
  z-index: 1;
}

/* Trophy icon — gentle bounce */
@keyframes seoTrophyBounce {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.14; }
  15% { transform: translateY(-8px) scale(1.08); opacity: 0.2; }
  30% { transform: translateY(-4px) scale(1.05); opacity: 0.17; }
  45% { transform: translateY(-10px) scale(1.1); opacity: 0.22; }
  60% { transform: translateY(-2px) scale(1.03); opacity: 0.16; }
}

.seo-icon-trophy {
  bottom: 12%;
  left: -6%;
  animation: seoTrophyBounce 5s 1.5s ease-in-out infinite;
  z-index: 1;
}

/* Trending icon — wave motion */
@keyframes seoTrendingWave {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.17; }
  25% { transform: translateY(-14px) translateX(-5px) rotate(8deg); opacity: 0.25; }
  50% { transform: translateY(-8px) translateX(3px) rotate(-4deg); opacity: 0.2; }
  75% { transform: translateY(-16px) translateX(-2px) rotate(5deg); opacity: 0.23; }
}

.seo-icon-trending {
  top: 45%;
  right: -7%;
  animation: seoTrendingWave 8s 0.8s ease-in-out infinite;
  z-index: 1;
}

/* Link icon — gentle rotate and float */
@keyframes seoLinkFloat {
  0%, 100% { transform: rotate(0deg) translateY(0) scale(1); opacity: 0.13; }
  25% { transform: rotate(12deg) translateY(-9px) scale(1.06); opacity: 0.19; }
  50% { transform: rotate(-8deg) translateY(-13px) scale(1.08); opacity: 0.16; }
  75% { transform: rotate(6deg) translateY(-5px) scale(1.04); opacity: 0.21; }
}

.seo-icon-link {
  bottom: 25%;
  right: -4%;
  animation: seoLinkFloat 6.5s 2s ease-in-out infinite;
  z-index: 1;
}

/* Target icon — pulse and expand */
@keyframes seoTargetPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.15; }
  25% { transform: scale(1.12) rotate(10deg); opacity: 0.22; }
  50% { transform: scale(0.95) rotate(-6deg); opacity: 0.18; }
  75% { transform: scale(1.08) rotate(8deg); opacity: 0.24; }
}

.seo-icon-target {
  top: 60%;
  left: -5%;
  animation: seoTargetPulse 7s 1.2s ease-in-out infinite;
  z-index: 1;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
  .seo-float-icon {
    display: none;
  }
}

/* ---- How We Care — Center-aligned Alternating Timeline ---- */

/* Timeline container — vertical center line */
.hwc-timeline {
  position: relative;
}

.hwc-timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, var(--cnvs-themecolor), #E0E8F0 30%, #E0E8F0 70%, transparent);
  z-index: 0;
}

/* Each step row */
.hwc-row {
  position: relative;
  padding: 30px 0;
}

/* Numbered circle */
.hwc-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #E0E8F0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.35s ease;
}

.hwc-circle span {
  font-size: 22px;
  font-weight: 700;
  color: #b0bec5;
  transition: color 0.35s ease;
}

/* Active (first) circle */
.hwc-circle-active {
  background: var(--cnvs-themecolor);
  border-color: var(--cnvs-themecolor);
  box-shadow: 0 4px 18px rgba(var(--cnvs-themecolor-rgb), 0.3);
}

.hwc-circle-active span {
  color: #fff;
}

/* Hover on row highlights circle */
.hwc-row:hover .hwc-circle:not(.hwc-circle-active) {
  border-color: var(--cnvs-themecolor-2);
  box-shadow: 0 4px 16px rgba(var(--cnvs-themecolor-2-rgb), 0.25);
}

.hwc-row:hover .hwc-circle:not(.hwc-circle-active) span {
  color: var(--cnvs-themecolor);
}

/* Text content */
.hwc-content h3 {
  color: var(--cnvs-themecolor);
  font-size: 1.25rem;
}

.hwc-content p {
  font-size: 0.95rem;
  opacity: 0.7;
  line-height: 1.65;
}

/* ---- Scroll-triggered animations ---- */

/* Hidden by default — waiting for scroll */
.hwc-content,
.hwc-illus {
  opacity: 0;
  transform: translateY(24px);
}

/* Circle hidden until row visible */
.hwc-circle {
  opacity: 0;
  transform: scale(0.6);
}

/* SVG elements hidden */
.hwc-bg-circle {
  opacity: 0;
  transform-origin: center;
}

.hwc-draw {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  opacity: 0;
}

.hwc-illus .hwc-draw-svg {
  width: 160px;
  height: 160px;
  transition: transform 0.4s ease;
}

/* Hover scale on illustrations */
.hwc-row:hover .hwc-illus .hwc-draw-svg {
  transform: scale(1.05);
}

/* ---- Keyframes ---- */

@keyframes hwcSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hwcCirclePop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hwcBgFade {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hwcStrokeDraw {
  from { stroke-dashoffset: 500; opacity: 0.3; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

/* ---- Animate ONLY when .hwc-visible is on the row ---- */

/* Circle pops in */
.hwc-row.hwc-visible .hwc-circle {
  animation: hwcCirclePop 0.5s ease-out forwards;
}

/* Text slides in with slight delay after circle */
.hwc-row.hwc-visible .hwc-content {
  animation: hwcSlideIn 0.6s 0.2s ease-out forwards;
}

/* Illustration container slides in */
.hwc-row.hwc-visible .hwc-illus {
  animation: hwcSlideIn 0.6s 0.15s ease-out forwards;
}

/* Background circle fades in */
.hwc-row.hwc-visible .hwc-bg-circle {
  animation: hwcBgFade 0.5s 0.2s ease-out forwards;
}

/* Stroke elements draw in with stagger */
.hwc-row.hwc-visible .hwc-draw {
  animation: hwcStrokeDraw 1s ease-out forwards;
}

.hwc-row.hwc-visible .hwc-draw.d1 { animation-delay: 0.3s; }
.hwc-row.hwc-visible .hwc-draw.d2 { animation-delay: 0.55s; }
.hwc-row.hwc-visible .hwc-draw.d3 { animation-delay: 0.8s; }
.hwc-row.hwc-visible .hwc-draw.d4 { animation-delay: 1.0s; }
.hwc-row.hwc-visible .hwc-draw.d5 { animation-delay: 1.2s; }
.hwc-row.hwc-visible .hwc-draw.d6 { animation-delay: 1.4s; }

/* ---- Pulse ring on active circle ---- */
@keyframes hwcPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hwc-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--cnvs-themecolor);
  pointer-events: none;
  opacity: 0;
}

.hwc-row.hwc-visible .hwc-pulse-ring {
  animation: hwcPulse 2s 0.5s ease-out infinite;
}

/* ---- Floating decorative accents ---- */
.hwc-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

@keyframes hwcDecoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(6deg); }
}

@keyframes hwcDecoSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes hwcDecoPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes hwcDecoBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  56% { transform: scale(1); }
}

.hwc-deco-cross {
  animation: hwcDecoFloat 5s ease-in-out infinite;
}

.hwc-deco-ring {
  animation: hwcDecoSpin 12s linear infinite;
}

.hwc-deco-dot {
  animation: hwcDecoPulse 3s ease-in-out infinite;
}

.hwc-deco-heart {
  animation: hwcDecoBeat 2.5s ease-in-out infinite;
}

.hwc-deco-pill {
  animation: hwcDecoFloat 6s 1s ease-in-out infinite;
}

/* ---- Animated connecting line (draw-in) ---- */
@keyframes hwcLineGrow {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0% 0);
  }
}

.hwc-timeline::before {
  animation: hwcLineGrow 1.5s 0.3s ease-out both;
}

/* ---- Traveling dot along the timeline ---- */
@keyframes hwcDotTravel {
  0% { top: 30px; opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 30px); opacity: 0; }
}

.hwc-timeline::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cnvs-themecolor-2);
  box-shadow: 0 0 8px rgba(var(--cnvs-themecolor-2-rgb), 0.6);
  z-index: 1;
  animation: hwcDotTravel 4s 1.8s ease-in-out infinite;
}

/* ---- Mobile: stack vertically, hide center line ---- */
@media (max-width: 767.98px) {
  .hwc-timeline::before,
  .hwc-timeline::after {
    display: none;
  }

  .hwc-row {
    padding: 20px 0;
  }

  .hwc-text-col {
    text-align: center !important;
    order: 2;
  }

  .hwc-center-col {
    order: 1;
    margin-bottom: 12px;
  }

  .hwc-img-col {
    order: 3;
    margin-top: 16px;
  }

  .hwc-illus svg {
    width: 120px;
    height: 120px;
  }

  .hwc-deco {
    display: none;
  }
}

/* ================================================================
   Trust Strips Section
   ================================================================ */

/* ---- Section layout ---- */
.ts-section {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: linear-gradient(168deg, #f7faff 0%, #eef3fb 40%, #f0f4fa 100%);
}

/* ---- Ambient background shapes ---- */
.ts-bg-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.5;
}

.ts-bg-shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(11, 61, 145, 0.08) 0%, transparent 70%);
  top: -120px;
  left: -100px;
  animation: tsBgFloat 12s ease-in-out infinite;
}

.ts-bg-shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.06) 0%, transparent 70%);
  bottom: -80px;
  right: -60px;
  animation: tsBgFloat 10s 2s ease-in-out infinite reverse;
}

.ts-bg-shape-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(100, 181, 246, 0.07) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation: tsBgFloat 14s 4s ease-in-out infinite;
}

@keyframes tsBgFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

/* ---- Label / tag ---- */
.ts-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #0B3D91;
  margin-bottom: 20px;
  opacity: 0.8;
}

.ts-label-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #42A5F5;
  animation: tsLabelPulse 2s ease-in-out infinite;
}

@keyframes tsLabelPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ---- Heading ---- */
.ts-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #1a2332;
  line-height: 1.2;
  margin-bottom: 18px;
}

.ts-heading-accent {
  background: linear-gradient(135deg, #0B3D91 0%, #42A5F5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.ts-heading-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0B3D91, #42A5F5);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ts-heading-wrap.ts-visible .ts-heading-accent::after {
  transform: scaleX(1);
}

.ts-subtext {
  font-size: 1.05rem;
  color: #5a6b7f;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 420px;
}

/* ---- Heading animation ---- */
.ts-heading-wrap {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.ts-heading-wrap.ts-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Mini Counters ---- */
.ts-counters {
  display: flex;
  gap: 36px;
}

.ts-counter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ts-counter-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0B3D91;
  line-height: 1;
  display: inline;
}

.ts-counter-suffix {
  font-size: 1.6rem;
  font-weight: 700;
  color: #42A5F5;
  margin-left: 2px;
  display: inline;
}

.ts-counter-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #8a9bb5;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 4px;
}

/* ---- Trust Strip Cards ---- */
.ts-strips-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Fly-in keyframe — starts from far right off-screen */
@keyframes tsStripFlyIn {
  0% {
    opacity: 0;
    transform: translateX(80vw);
  }
  60% {
    opacity: 1;
    transform: translateX(-12px);
  }
  80% {
    transform: translateX(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.ts-strip {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  /* Only opacity hidden — no transform so IntersectionObserver can detect it */
  opacity: 0;
}

.ts-strip.ts-visible {
  /* 'both' fill mode: applies 0% keyframe during delay, 100% keyframe after finish */
  animation: tsStripFlyIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--ts-delay, 0s);
}

.ts-strip-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(11, 61, 145, 0.08);
  border-radius: 16px;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ts-strip:hover .ts-strip-inner {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(66, 165, 245, 0.25);
  box-shadow:
    0 8px 32px rgba(11, 61, 145, 0.1),
    0 2px 8px rgba(11, 61, 145, 0.06);
  transform: translateX(6px);
}

/* ---- Strip number ---- */
.ts-strip-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(11, 61, 145, 0.06), rgba(66, 165, 245, 0.06));
  transition: all 0.4s ease;
}

.ts-strip-num span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0B3D91;
  opacity: 0.5;
  letter-spacing: 0.5px;
}

.ts-strip:hover .ts-strip-num {
  background: linear-gradient(135deg, #0B3D91, #42A5F5);
}

.ts-strip:hover .ts-strip-num span {
  color: #fff;
  opacity: 1;
}

/* ---- Strip icon ---- */
.ts-strip-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.ts-strip-icon svg {
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Icon pops in after the strip lands */
.ts-strip.ts-visible .ts-strip-icon svg {
  opacity: 1;
  transform: scale(1);
  transition-delay: calc(var(--ts-delay, 0s) + 0.5s);
}

.ts-strip:hover .ts-strip-icon svg {
  transform: scale(1.12) rotate(-4deg);
}

/* ---- Strip content ---- */
.ts-strip-content {
  flex: 1;
  min-width: 0;
}

.ts-strip-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a2332;
  margin: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.ts-strip:hover .ts-strip-content h4 {
  color: #0B3D91;
}

.ts-strip-desc {
  font-size: 0.825rem;
  color: #5C6B8A;
  margin: 4px 0 0;
  line-height: 1.5;
}

/* ---- Strip arrow ---- */
.ts-strip-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.4s ease;
  color: #42A5F5;
}

.ts-strip-arrow svg {
  width: 100%;
  height: 100%;
}

.ts-strip:hover .ts-strip-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Hover glow ---- */
.ts-strip-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  opacity: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 61, 145, 0.04) 0%,
    rgba(66, 165, 245, 0.06) 50%,
    rgba(100, 181, 246, 0.04) 100%
  );
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.ts-strip:hover .ts-strip-glow {
  opacity: 1;
}

/* ---- Shimmer sweep on strip (on visible) ---- */
@keyframes tsShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.ts-strip-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: translateX(-100%);
  z-index: 2;
  pointer-events: none;
}

.ts-strip.ts-visible .ts-strip-inner::after {
  animation: tsShimmer 1.2s calc(var(--ts-delay, 0s) + 0.6s) ease-out forwards;
}

/* ---- Mobile responsive ---- */
@media (max-width: 991.98px) {
  .ts-section {
    padding: 60px 0 50px;
  }

  .ts-heading {
    text-align: center;
  }

  .ts-subtext {
    text-align: center;
    max-width: 100%;
  }

  .ts-label {
    justify-content: center;
  }

  .ts-counters {
    justify-content: center;
    margin-bottom: 40px;
  }

  /* On mobile, fly in from the bottom instead of right */
  @keyframes tsStripFlyInMobile {
    0% {
      opacity: 0;
      transform: translateY(60px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .ts-strip.ts-visible {
    animation-name: tsStripFlyInMobile;
    animation-duration: 0.6s;
  }
}

@media (max-width: 575.98px) {
  .ts-strip-inner {
    padding: 16px 18px;
    gap: 12px;
  }

  .ts-strip-icon {
    width: 38px;
    height: 38px;
  }

  .ts-strip-content h4 {
    font-size: 0.9rem;
  }

  .ts-strip-num {
    display: none;
  }

  .ts-counters {
    gap: 24px;
  }

  .ts-counter-num {
    font-size: 1.8rem;
  }
}

/* ================================================================
   Parallax Stacking Cards Section
   ================================================================ */

/* Override Canvas framework's overflow:hidden which breaks position:sticky */
.content-wrap {
  overflow: clip !important;
}

/* ---- Section wrapper ---- */
.px-section {
  position: relative;
  background: #fff;
  padding-bottom: 40px;
}

/* ---- Quote Banner ---- */
.px-quote-wrap {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #0B3D91 0%, #1565C0 50%, #0D47A1 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
.px-quote-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(66, 165, 245, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(100, 181, 246, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.px-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.px-quote blockquote {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  color: #fff;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 0;
  font-style: italic;
  max-width: 700px;
}

.px-quote-mark {
  font-size: 1.5em;
  color: rgba(100, 181, 246, 0.6);
  font-style: normal;
  vertical-align: -0.1em;
  line-height: 0;
}

.px-quote-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* ---- Section Heading ---- */
.px-heading {
  text-align: center;
  padding: 70px 0 50px;
}

.px-heading-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #42A5F5;
  background: rgba(66, 165, 245, 0.08);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.px-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #1a2332;
  line-height: 1.25;
  margin: 0;
}

.px-heading-accent {
  background: linear-gradient(135deg, #0B3D91, #42A5F5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Card Shell ---- */
.px-card {
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.18);
}

/* Card inside scroll-stack fills the scroll-stack-card */
.scroll-stack-card .px-card {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

/* ---- Card Body — compact ---- */
.px-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 44px;
}

.scroll-stack-card .px-card-body {
  height: 100%;
}

.px-card-text h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: #fff;
}

.px-card-text p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---- Learn More Link ---- */
.px-card-learn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.85);
}

.px-card-learn:hover {
  text-decoration: none;
  color: #fff;
}

/* ---- Quote background pattern ---- */
.px-quote-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(66, 165, 245, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(100, 181, 246, 0.08) 0%, transparent 35%);
  pointer-events: none;
}

/* ---- Mobile responsive ---- */
@media (max-width: 991.98px) {
  .px-card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 28px;
  }

  .px-card-text h3 {
    font-size: 1.25rem;
  }

  .px-quote {
    flex-direction: column;
    gap: 16px;
  }

  .px-quote-line {
    width: 60px;
    max-width: none;
  }

  .px-heading {
    padding: 50px 0 30px;
  }
}

@media (max-width: 575.98px) {
  .px-quote-wrap {
    padding: 50px 0 40px;
  }

  .px-card {
    border-radius: 24px;
  }

  .px-card-body {
    padding: 24px 22px;
    gap: 16px;
  }

  .px-card-text h3 {
    font-size: 1.1rem;
  }

  .px-card-text p {
    font-size: 0.88rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-doc,
  .hero-card-slide,
  .hero-wave,
  .hero-smiley,
  .hero-capsule,
  .seo-float-icon,
  .hwc-content,
  .hwc-illus,
  .hwc-circle,
  .hwc-bg-circle,
  .hwc-draw,
  .hwc-pulse-ring,
  .hwc-deco,
  .hwc-timeline::before,
  .hwc-timeline::after,
  .ts-heading-wrap,
  .ts-strip,
  .ts-strip-inner::after,
  .ts-bg-shape,
  .ts-label-dot,
  .ts-strip-icon svg {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }

  .scroll-stack-card {
    transform: none !important;
    filter: none !important;
  }

  .scroll-stack-inner {
    padding-bottom: 0 !important;
  }
}


/* ================================================================
   Focus Amplify Growth Framework Section — Timeline Design
   Light background with center timeline + alternating content
   ================================================================ */

/* ---- Section ---- */
.faf-section {
  position: relative;
  padding: 90px 0 100px;
  background: linear-gradient(168deg, #f7faff 0%, #eef5fc 40%, #f0f4fa 100%);
  overflow: hidden;
}

/* ---- Background blobs ---- */
.faf-bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.4;
}

.faf-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation: blobFloat 16s ease-in-out infinite;
}

.faf-blob-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  bottom: -120px;
  left: -80px;
  animation: blobFloat 14s 4s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.05); }
}

/* ---- Section Heading ---- */
.faf-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #0B3D91;
  background: rgba(11,61,145,0.06);
  border: 1px solid rgba(11,61,145,0.15);
  padding: 6px 22px;
  border-radius: 100px;
}

.faf-main-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: #1a2332;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.5px;
}

.faf-accent-text {
  background: linear-gradient(135deg, #0B3D91 0%, #3B82F6 50%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Timeline Container ---- */
.faf-timeline {
  position: relative;
  padding: 40px 0;
}

/* Center vertical line */
.faf-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(11,61,145,0.15) 10%, rgba(11,61,145,0.15) 90%, transparent);
  top: 0;
  bottom: 0;
  z-index: 0;
}

/* ---- Timeline Row ---- */
.faf-row {
  position: relative;
  padding: 0 0 80px 0;
  z-index: 1;
}

.faf-row-last {
  padding-bottom: 0;
}

/* ---- Numbered Circle ---- */
.faf-circle {
  position: relative;
  width: 70px;
  height: 70px;
  background: #ffffff;
  border: 3px solid #0B3D91;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  z-index: 2;
  transition: all 0.35s ease;
  --step-accent: #0B3D91;
}

.faf-circle span {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0B3D91;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

/* Hover effect on circles */
.faf-row:hover .faf-circle {
  border-color: var(--step-accent);
  box-shadow: 0 0 0 6px rgba(11,61,145,0.08);
}

/* ---- Content Columns ---- */
.faf-text-col {
  padding: 0 30px;
}

.faf-content {
  max-width: 450px;
}

/* Right-aligned content */
.faf-text-col.text-md-end .faf-content {
  margin-left: auto;
}

/* Left-aligned content */
.faf-text-col:not(.text-md-end) .faf-content {
  margin-right: auto;
}

.faf-content h3 {
  font-size: 1.45rem;
  color: #1a2332;
  margin-bottom: 12px;
  font-weight: 700;
}

.faf-lead {
  font-size: 0.95rem;
  font-weight: 600;
  color: #5a6b7f;
  margin-bottom: 12px;
}

.faf-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faf-items-list li {
  font-size: 0.9rem;
  color: #5a6b7f;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.faf-items-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0B3D91;
}

/* Fix alignment for right-aligned text */
.text-md-end .faf-items-list {
  align-items: flex-end;
}

.text-md-end .faf-items-list li {
  padding-left: 0;
  padding-right: 20px;
  text-align: right;
}

.text-md-end .faf-items-list li::before {
  left: auto;
  right: 0;
}

/* ---- Illustrations ---- */
.faf-illus {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.faf-content,
.faf-illus {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.faf-circle {
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faf-bg-circle {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.faf-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0;
  transition: stroke-dashoffset 1s ease, opacity 0.5s ease;
}

.faf-illus .faf-draw-svg {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 8px 24px rgba(11,61,145,0.1));
  transition: transform 0.4s ease;
}

.faf-row:hover .faf-illus .faf-draw-svg {
  transform: scale(1.08);
}

/* ---- Animate when visible ---- */
.faf-row.faf-visible .faf-circle {
  opacity: 1;
  transform: scale(1);
}

.faf-row.faf-visible .faf-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.faf-row.faf-visible .faf-illus {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.faf-row.faf-visible .faf-bg-circle {
  opacity: 1;
  transition-delay: 0.1s;
}

.faf-row.faf-visible .faf-draw {
  stroke-dashoffset: 0;
  opacity: 1;
}

.faf-row.faf-visible .faf-draw.d1 { transition-delay: 0.4s; }
.faf-row.faf-visible .faf-draw.d2 { transition-delay: 0.55s; }
.faf-row.faf-visible .faf-draw.d3 { transition-delay: 0.7s; }
.faf-row.faf-visible .faf-draw.d4 { transition-delay: 0.85s; }
.faf-row.faf-visible .faf-draw.d5 { transition-delay: 1s; }
.faf-row.faf-visible .faf-draw.d6 { transition-delay: 1.15s; }

/* ---- Clients Section ---- */
.faf-clients-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #1a2332;
  margin: 0;
  letter-spacing: -0.5px;
}

.faf-clients-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.faf-client-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2332;
  background: #ffffff;
  border: 1px solid rgba(11,61,145,0.12);
  padding: 12px 24px;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.faf-client-tag:hover {
  transform: translateY(-3px);
  border-color: rgba(11,61,145,0.25);
  box-shadow: 0 8px 24px rgba(11,61,145,0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  /* Vertical line centered on mobile */
  .faf-timeline::before {
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
  }

  .faf-row {
    padding: 0 0 48px 0;
  }

  /* Stack all columns vertically, centered */
  .faf-row .row {
    position: static;
    padding-left: 0;
    flex-direction: column;
    align-items: center;
  }

  /* All columns full width, center-aligned */
  .faf-text-col,
  .faf-img-col,
  .faf-center-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    text-align: center !important;
    padding: 0 !important;
    position: static !important;
  }

  /* Number circle first, centered */
  .faf-center-col {
    order: -1;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
  }

  .faf-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto !important;
  }

  .faf-circle span {
    font-size: 0.9rem;
  }

  /* Text content — centered */
  .faf-text-col .faf-content,
  .text-md-end .faf-content {
    margin: 0 auto;
    max-width: 100%;
    text-align: center !important;
  }

  /* Bullet list — centered */
  .faf-items-list,
  .text-md-end .faf-items-list {
    align-items: center !important;
  }

  .faf-items-list li,
  .text-md-end .faf-items-list li {
    padding-left: 20px;
    padding-right: 0;
    text-align: left;
    justify-content: center;
  }

  .text-md-end .faf-items-list li::before {
    left: 0;
    right: auto;
  }

  /* Illustration — centered */
  .faf-img-col {
    margin-top: 16px;
  }

  .faf-illus {
    justify-content: center !important;
    padding: 0;
  }

  .faf-illus .faf-draw-svg {
    width: 130px;
    height: 130px;
    margin: 0 auto;
  }
}

@media (max-width: 599px) {
  .faf-section {
    padding: 60px 0 70px;
  }

  .faf-main-title {
    font-size: 1.9rem;
  }

  .faf-timeline {
    padding: 20px 0;
  }

  .faf-content h3 {
    font-size: 1.25rem;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .faf-content,
  .faf-illus,
  .faf-circle,
  .faf-bg-circle,
  .faf-draw,
  .faf-bg-blob,
  .faf-client-tag {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---- Hero subtext brand styling ---- */
.seo-hero-brand {
  font-weight: 700;
  color: #0B3D91;
}

.seo-hero-unit {
  font-size: 0.92em;
  font-weight: 500;
  color: #5a7ab5;
}

.seo-hero-kpi {
  font-weight: 700;
  color: #0B3D91;
}

/* ================================================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   Disable expensive GPU-heavy CSS on phones/tablets
   ================================================================ */

@media (max-width: 991.98px) {

  /* Remove backdrop-filter (very expensive on mobile GPU) */
  .liquid-glass-nav #header-wrap > .container,
  .liquid-glass-nav #header-wrap > .container:hover,
  .liquid-glass-nav.sticky-header #header-wrap > .container {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10) !important;
  }

  /* Stop floating hero animations on mobile */
  .seo-float-icon,
  .seo-metric-float,
  .seo-metric-central,
  .seo-glow-ring {
    animation: none !important;
  }

  /* Disable parallax transforms on mobile */
  [style*="translateY"],
  .px-card {
    transform: none !important;
    will-change: auto !important;
  }

  /* Reduce hero height on mobile + clip overflowing cards */
  .seo-hero {
    min-height: auto !important;
    overflow: hidden !important;
  }

  /* Fully hide the floating metric cards column on mobile */
  .seo-hero-visuals {
    display: none !important;
  }

  /* Simplify bento card hover — no glow on touch devices */
  .magic-bento-card::before,
  .magic-bento-card::after {
    display: none !important;
  }

  /* Disable blob background animations */
  .seo-hero-blob {
    display: none;
  }
}

/* ================================================================
   IMAGE LAZY LOADING — ensure images below-fold don't block LCP
   ================================================================ */
img:not([fetchpriority="high"]) {
  content-visibility: auto;
}

/* ================================================================
   REDUCE LAYOUT SHIFT — reserve space for lazy sections
   ================================================================ */
.content-wrap {
  contain: layout style;
}

/* ================================================================
   PARALLAX CARDS — clip CardSwap overflow on all screen sizes
   ================================================================ */
.px-section {
  overflow: hidden;
}

/* ================================================================
   MOBILE NAV & GENERAL MOBILE OPTIMIZATIONS
   ================================================================ */
@media (max-width: 767.98px) {

  /* Hero heading size on small phones */
  .seo-hero-heading {
    font-size: clamp(2rem, 10vw, 3rem) !important;
    line-height: 1.15 !important;
  }

  .seo-hero-sub {
    font-size: 1rem !important;
  }

  /* Hide floating metric cards on very small screens */
  .seo-hero-visuals {
    display: none !important;
  }

  /* ParallaxCards — stack columns full-width on mobile */
  .px-section .col-lg-5,
  .px-section .col-lg-7 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* Stack hero text full-width on mobile */
  .seo-hero .col-lg-5 {
    text-align: center;
  }

  /* Mobile nav dropdown — ensure menu is visible when open */
  #primary-menu-trigger + nav,
  .primary-menu-wrap {
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    padding: 12px 0 !important;
  }

  /* Nav links bigger tap target on mobile */
  .menu-container .menu-item .menu-link {
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }

  /* Footer columns stack cleanly */
  footer .col-lg-4,
  footer .col-md-4 {
    margin-bottom: 2rem;
  }

  /* Reduce section padding on mobile */
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}
