/*
Theme Name: EXPRE Child
Theme URI: https://expre.co.uk
Description: EXPRE Digital child theme for Divi
Author: EXPRE Digital
Author URI: https://expre.co.uk
Template: Divi
Version: 1.0.0
Text Domain: expre-child
*/

/* ============================================
   CSS CUSTOM PROPERTIES (Design System)
   ============================================ */
:root {
  --xp-navy:          #0D0D2B;
  --xp-purple:        #5A00D1;
  --xp-fuchsia:       #C300FF;
  --xp-accent:        #B42CFF;
  --xp-accent-hover:  #9B00E6;
  --xp-cyan:          #00D4FF;
  --xp-amber:         #FF9F43;
  --xp-bg:            #F8FAFC;
  --xp-card:          #FFFFFF;
  --xp-border:        #E2E8F0;
  --xp-text:          #1E293B;
  --xp-text-muted:    #64748B;
  --xp-teal:          #0D9488;
  --xp-dark-surface:  #111122;
  --xp-font:          'Varela Round', system-ui, sans-serif;
  --xp-font-size:     17px;
  --xp-line-height:   1.65;
  --xp-section-py:    clamp(56px, 8vw, 100px);
  --xp-container:     1200px;
  --xp-radius:        7px;
  --xp-radius-lg:     12px;
  --xp-shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
  --xp-shadow-md:     0 4px 12px rgba(0,0,0,0.08);
  --xp-shadow-lg:     0 8px 30px rgba(0,0,0,0.1);
  --xp-shadow-xl:     0 20px 60px rgba(0,0,0,0.12);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body,
.et_pb_section,
.et_pb_row,
.et_pb_column,
.et_pb_module {
  font-family: var(--xp-font) !important;
}

body {
  font-size: var(--xp-font-size);
  line-height: var(--xp-line-height);
  color: var(--xp-text);
  background: var(--xp-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--xp-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--xp-accent-hover); }

/* ============================================
   TYPOGRAPHY — Divi overrides
   ============================================ */
h1, h2, h3, h4,
.et_pb_text_inner h1,
.et_pb_text_inner h2,
.et_pb_text_inner h3,
.et_pb_text_inner h4 {
  font-family: var(--xp-font) !important;
  color: var(--xp-navy);
  font-weight: 700;
  line-height: 1.2;
}

h1, .et_pb_text_inner h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2, .et_pb_text_inner h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 16px; }
h3, .et_pb_text_inner h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 12px; }
h4, .et_pb_text_inner h4 { font-size: 1.1rem; margin-bottom: 8px; }

.xp-text-accent { color: var(--xp-accent) !important; }

.xp-accent-underline {
  position: relative;
  display: inline;
}
.xp-accent-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 4px;
  background: var(--xp-accent);
  border-radius: 2px;
}

/* Eyebrow / section label — targets Divi text module paragraph */
.xp-eyebrow .et_pb_text_inner p,
.xp-eyebrow p {
  display: inline-block;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: var(--xp-accent) !important;
  margin-bottom: 12px !important;
}

.xp-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.xp-section-header .et_pb_text_inner p,
.xp-section-header p {
  color: var(--xp-text-muted);
  font-size: 1.1rem;
  margin-top: 8px;
}

.xp-section-footer { text-align: center; margin-top: 40px; }

/* ============================================
   BUTTONS
   ============================================ */
.xp-btn--primary,
.et_pb_button.xp-btn--primary,
a.xp-btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--xp-font) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 14px 28px !important;
  border-radius: var(--xp-radius) !important;
  border: 2px solid var(--xp-accent) !important;
  background: var(--xp-accent) !important;
  color: #fff !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}
.xp-btn--primary:hover,
.et_pb_button.xp-btn--primary:hover,
a.xp-btn--primary:hover {
  background: var(--xp-accent-hover) !important;
  border-color: var(--xp-accent-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(180,44,255,0.3) !important;
}

.xp-btn--outline,
a.xp-btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--xp-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--xp-radius);
  border: 2px solid var(--xp-border);
  background: transparent;
  color: var(--xp-navy);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.xp-btn--outline:hover,
a.xp-btn--outline:hover {
  border-color: var(--xp-navy);
  color: var(--xp-navy);
}

.xp-btn--outline-white,
a.xp-btn--outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--xp-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--xp-radius);
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.xp-btn--outline-white:hover,
a.xp-btn--outline-white:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.xp-btn--ghost,
a.xp-btn--ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--xp-font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 0;
  background: transparent;
  color: var(--xp-accent);
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}
.xp-btn--ghost:hover,
a.xp-btn--ghost:hover { color: var(--xp-accent-hover); }

.xp-btn--lg { padding: 16px 36px !important; font-size: 1.05rem !important; }
.xp-btn--sm { padding: 10px 20px !important; font-size: 0.85rem !important; }

/* ============================================
   SECTION PATTERNS — applied via module_class
   ============================================ */

/* Dark navy section with dot-grid */
.xp-section--dark.et_pb_section,
.et_pb_section.xp-section--dark {
  background-color: var(--xp-navy) !important;
  color: #fff !important;
  position: relative;
}
.xp-section--dark.et_pb_section::before,
.et_pb_section.xp-section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.xp-section--dark .et_pb_row { position: relative; z-index: 1; }
.xp-section--dark .et_pb_text_inner h1,
.xp-section--dark .et_pb_text_inner h2,
.xp-section--dark .et_pb_text_inner h3,
.xp-section--dark .et_pb_text_inner h4,
.xp-section--dark h1,
.xp-section--dark h2,
.xp-section--dark h3,
.xp-section--dark h4 { color: #fff !important; }
.xp-section--dark .et_pb_text_inner p,
.xp-section--dark p { color: rgba(255,255,255,0.75) !important; }

/* Light background section */
.xp-section--light.et_pb_section,
.et_pb_section.xp-section--light {
  background-color: var(--xp-bg) !important;
}

/* White section */
.xp-section--white.et_pb_section,
.et_pb_section.xp-section--white {
  background-color: #fff !important;
}

/* Gradient section with pulse rings */
.xp-section--gradient.et_pb_section,
.et_pb_section.xp-section--gradient {
  background: linear-gradient(135deg, var(--xp-navy) 0%, var(--xp-purple) 50%, var(--xp-fuchsia) 100%) !important;
  color: #fff !important;
  position: relative;
}
.xp-section--gradient.et_pb_section::before,
.et_pb_section.xp-section--gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 80px,
    transparent 82px, transparent 84px,
    rgba(255,255,255,0.03) 86px, rgba(255,255,255,0.03) 170px,
    transparent 172px, transparent 174px,
    rgba(255,255,255,0.022) 176px, rgba(255,255,255,0.022) 270px,
    transparent 272px, transparent 274px,
    rgba(255,255,255,0.015) 276px, rgba(255,255,255,0.015) 390px,
    transparent 392px
  );
  pointer-events: none;
  z-index: 0;
}
.xp-section--gradient .et_pb_row { position: relative; z-index: 1; }
.xp-section--gradient h1,
.xp-section--gradient h2,
.xp-section--gradient h3,
.xp-section--gradient h4,
.xp-section--gradient .et_pb_text_inner h1,
.xp-section--gradient .et_pb_text_inner h2,
.xp-section--gradient .et_pb_text_inner h3,
.xp-section--gradient .et_pb_text_inner h4 { color: #fff !important; }
.xp-section--gradient p,
.xp-section--gradient .et_pb_text_inner p { color: rgba(255,255,255,0.8) !important; }

/* Light with diagonal line pattern */
.xp-section--pattern.et_pb_section,
.et_pb_section.xp-section--pattern {
  background-color: var(--xp-bg) !important;
  position: relative;
}
.xp-section--pattern.et_pb_section::before,
.et_pb_section.xp-section--pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(-75deg,
      transparent 0px, transparent 42px,
      rgba(90,0,209,0.1) 42px, rgba(90,0,209,0.1) 43px,
      transparent 43px, transparent 51px,
      rgba(90,0,209,0.07) 51px, rgba(90,0,209,0.07) 52px,
      transparent 52px, transparent 110px,
      rgba(90,0,209,0.12) 110px, rgba(90,0,209,0.12) 111px,
      transparent 111px, transparent 200px
    );
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 40%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 40%);
  pointer-events: none;
  z-index: 0;
}
.xp-section--pattern .et_pb_row { position: relative; z-index: 1; }

/* Section vertical padding helper */
.xp-section--py.et_pb_section,
.et_pb_section.xp-section--py {
  padding-top: var(--xp-section-py) !important;
  padding-bottom: var(--xp-section-py) !important;
}

/* ============================================
   HEADER
   ============================================ */
.xp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  box-shadow: none;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.xp-header .xp-top-bar {
  max-height: 0;
  padding: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.xp-header .xp-nav { opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.xp-header .xp-nav-actions { transition: opacity 0.4s ease; }

.xp-header .xp-nav-actions .xp-btn--primary {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.6) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Reveal on header hover */
.xp-header:hover {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.xp-header:hover .xp-nav { opacity: 1; pointer-events: auto; }
.xp-header:hover .xp-logo__img { filter: none; }
.xp-header:hover .xp-nav-actions .xp-btn--primary {
  background: var(--xp-accent) !important;
  border-color: var(--xp-accent) !important;
  color: #fff !important;
}

/* Logo white tint on transparent state */
.xp-header .xp-logo__img {
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease, height 0.3s ease;
  height: 32px;
  width: auto;
}

/* Scrolled state */
.xp-header.header--scrolled {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.xp-header.header--scrolled .xp-nav { opacity: 1; pointer-events: auto; }
.xp-header.header--scrolled .xp-logo__img { filter: none; height: 26px; }
.xp-header.header--scrolled .xp-nav-actions .xp-btn--primary {
  background: var(--xp-accent) !important;
  border-color: var(--xp-accent) !important;
  color: #fff !important;
}

/* Top bar */
.xp-top-bar {
  background: var(--xp-navy);
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  padding: 6px 0;
}
.xp-top-bar__inner {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: center;
  max-width: var(--xp-container);
  margin: 0 auto;
  padding: 0 24px;
}
.xp-top-bar__reviews {
  margin-right: auto;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.xp-top-bar__reviews:hover { color: #fff; }
.xp-top-bar__stars { color: #FBBC05; letter-spacing: 1px; }

/* Main nav inner */
.xp-main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  padding: 12px 24px;
  position: relative;
  transition: padding 0.3s ease;
}
.header--scrolled .xp-main-nav__inner { padding-top: 6px; padding-bottom: 6px; }

/* Nav menu */
.xp-nav { display: flex; list-style: none; gap: 4px; margin: 0; padding: 0; }
.xp-nav__item > a {
  display: block;
  padding: 10px 16px;
  color: var(--xp-text);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--xp-radius);
  transition: background 0.2s;
}
.xp-nav__item > a:hover { background: var(--xp-bg); color: var(--xp-navy); }

/* Nav chevron */
.xp-nav-chevron {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.xp-nav__item:hover .xp-nav-chevron { transform: rotate(180deg); }

/* Nav actions */
.xp-nav-actions { display: flex; gap: 12px; align-items: center; }
.xp-nav-actions .xp-btn--primary { padding: 8px 20px !important; font-size: 0.85rem !important; }

/* Mobile toggle */
.xp-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 40px;
  height: 40px;
  z-index: 301;
}
.xp-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
  left: 8px;
}
.xp-nav-toggle span:nth-child(1) { top: 10px; }
.xp-nav-toggle span:nth-child(2) { top: 19px; }
.xp-nav-toggle span:nth-child(3) { top: 28px; }
.xp-nav-toggle.is-active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.xp-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.xp-nav-toggle.is-active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
.header--scrolled .xp-nav-toggle span,
.xp-header:hover .xp-nav-toggle span { background: var(--xp-navy); }

/* Dropdown */
.xp-dropdown {
  position: absolute;
  top: 100%;
  background: #fff;
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
  transform: translateY(8px);
  min-width: 200px;
}
.xp-nav__item--has-dropdown { position: relative; }
.xp-nav__item--has-dropdown.xp-dropdown--open .xp-dropdown,
.xp-nav__item--has-dropdown:hover .xp-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mega menu */
.xp-mega-menu {
  min-width: 680px;
  padding: 0;
}
.xp-mega-menu__columns {
  display: flex;
  gap: 0;
  padding: 28px 0;
}
.xp-mega-menu__column {
  flex: 1;
  padding: 0 28px;
  border-right: 1px solid var(--xp-border);
}
.xp-mega-menu__column:last-child { border-right: none; }
.xp-mega-menu__column-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--xp-border);
}
.xp-mega-menu__column-header h4 {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--xp-accent) !important;
  margin-bottom: 2px;
}
.xp-mega-menu__column ul { list-style: none; padding: 0; margin: 0; }
.xp-mega-menu__column li { margin-bottom: 2px; }
.xp-mega-menu__column a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--xp-radius);
  color: var(--xp-text);
  font-size: 0.88rem;
  transition: all 0.15s ease;
}
.xp-mega-menu__column a:hover { background: var(--xp-bg); color: var(--xp-accent); }

/* ============================================
   HERO SECTIONS
   ============================================ */

/* Standard hero */
.xp-hero.et_pb_section,
.et_pb_section.xp-hero {
  position: relative;
  background: linear-gradient(135deg, var(--xp-navy) 0%, var(--xp-purple) 100%) !important;
  color: #fff !important;
  padding-top: 100px !important;
  padding-bottom: 120px !important;
  overflow: hidden;
  min-height: 60vh;
}
.xp-hero .et_pb_text_inner h1,
.xp-hero h1 { color: #fff !important; margin-bottom: 20px; }
.xp-hero .et_pb_text_inner p,
.xp-hero p { color: rgba(255,255,255,0.8) !important; }

/* Hero badge / pill */
.xp-hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--xp-accent);
  background: rgba(180,44,255,0.12);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}

/* Hero stats */
.xp-hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.xp-hero-stat__number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--xp-accent);
  line-height: 1.2;
}
.xp-hero-stat__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero diagonal strips */
.xp-hero-strips {
  position: relative;
  min-height: 100vh;
  background: #0a0a14;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.xp-hero-strips__panels {
  position: absolute;
  inset: 0;
  display: flex;
}

.xp-hero-strip {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  transform: skewX(-15deg);
  margin: 0 -4%;
}
.xp-hero-strip:first-child { margin-left: -8%; }
.xp-hero-strip:last-child  { margin-right: -8%; }

.xp-hero-strip img {
  width: 120%;
  height: 100%;
  object-fit: cover;
  transform: skewX(15deg) scale(1.1);
  transform-origin: center;
  margin-left: -10%;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.xp-hero-strip__video {
  position: absolute;
  inset: 0;
  width: 120%;
  height: 100%;
  object-fit: cover;
  transform: skewX(15deg) scale(1.1);
  transform-origin: center;
  margin-left: -10%;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}
.xp-hero-strip:hover .xp-hero-strip__video { opacity: 1; }

.xp-hero-strip__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,20,0.6);
  transition: background 0.6s ease;
  z-index: 2;
}
.xp-hero-strips::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 75%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  z-index: 4;
  pointer-events: none;
}

.xp-hero-strip__text {
  position: absolute;
  top: 148px;
  left: 50%;
  transform: translateX(-50%) skewX(15deg);
  text-align: center;
  z-index: 3;
  white-space: nowrap;
}
.xp-hero-strip__label {
  display: block;
  font-family: var(--xp-font);
  font-size: clamp(0.9rem,1.2vw,1.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.35);
  transition: all 0.5s ease;
  line-height: 1;
}
.xp-hero-strip__desc {
  display: block;
  font-size: 1.05rem;
  color: rgba(255,255,255,0);
  margin-top: 12px;
  max-width: 280px;
  white-space: normal;
  line-height: 1.6;
  transition: all 0.5s ease 0.1s;
  transform: translateY(8px);
}

.xp-hero-strips__panels:hover .xp-hero-strip { flex: 0.65; }
.xp-hero-strips__panels:hover .xp-hero-strip:hover { flex: 1.7; }
.xp-hero-strip:hover .xp-hero-strip__overlay { background: rgba(10,10,20,0.55); }
.xp-hero-strip:hover img { transform: skewX(15deg) scale(1.15); }
.xp-hero-strip:hover .xp-hero-strip__label {
  color: rgba(255,255,255,0.95);
  letter-spacing: 4px;
  font-size: clamp(1.1rem,1.5vw,1.3rem);
  font-weight: 900;
}
.xp-hero-strip:hover .xp-hero-strip__desc { color: #fff; transform: translateY(0); }
.xp-hero-strips__panels:hover .xp-hero-strip:not(:hover) .xp-hero-strip__overlay { background: rgba(10,10,20,0.82); }
.xp-hero-strips__panels:hover .xp-hero-strip:not(:hover) .xp-hero-strip__label { color: rgba(255,255,255,0.1); }

.xp-hero-strip + .xp-hero-strip::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.08);
  z-index: 4;
}

.xp-hero-strips__content {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: var(--xp-container);
  margin: 0 auto;
  padding: 0 24px 80px;
  pointer-events: none;
  text-align: left;
}
.xp-hero-strips__content h1,
.xp-hero-strips__content .xp-hero__subtitle,
.xp-hero-strips__content .xp-hero__ctas { max-width: 50%; }
.xp-hero-strips__content h1,
.xp-hero-strips__content .xp-hero__subtitle { pointer-events: auto; cursor: default; }
.xp-hero-strips__content h1 {
  color: #fff;
  font-size: clamp(2rem,4vw,3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 4px 60px rgba(0,0,0,0.6);
}
.xp-hero-strips__content .xp-hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 36px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.xp-hero-strips__content .xp-hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  pointer-events: auto;
}

/* Service page hero */
.xp-service-hero {
  background: var(--xp-navy);
  color: #fff;
  text-align: center;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.xp-service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(13,13,43,0.88) 0%, rgba(13,13,43,0.85) 100%);
  background-size: 24px 24px, 100% 100%;
  pointer-events: none;
}
.xp-service-hero h1 { color: #fff !important; font-size: clamp(2rem,4.5vw,3.4rem); line-height: 1.15; }
.xp-service-hero p { color: rgba(255,255,255,0.7) !important; }

/* ============================================
   TRUST BAR
   ============================================ */
.xp-trust-bar {
  background: var(--xp-navy);
  padding: 16px 0;
  border-bottom: 2px solid var(--xp-accent);
}
.xp-trust-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: var(--xp-container);
  margin: 0 auto;
  padding: 0 24px;
}
.xp-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
}
.xp-trust-item__icon { font-size: 1rem; color: #FBBF24; }

/* ============================================
   LOGO MARQUEE
   ============================================ */
.xp-logo-marquee {
  overflow: hidden;
  position: relative;
  padding: 24px 0;
}
.xp-logo-marquee::before,
.xp-logo-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.xp-logo-marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.xp-logo-marquee::after  { right: 0; background: linear-gradient(270deg, #fff, transparent); }

.xp-logo-marquee__track {
  display: flex;
  gap: 48px;
  animation: xp-marquee var(--marquee-speed, 35s) linear infinite;
  width: max-content;
}
.xp-logo-marquee__track:hover { animation-play-state: paused; }

.xp-logo-marquee__item { flex-shrink: 0; }
.xp-logo-marquee__item img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.xp-logo-marquee__item:hover img { filter: grayscale(0%); opacity: 1; }
.xp-logo-placeholder {
  display: inline-block;
  padding: 10px 20px;
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--xp-text-muted);
}
.xp-logo-name {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--xp-font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--xp-text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s;
}
.xp-logo-marquee__item:hover .xp-logo-name { color: var(--xp-purple); }

@keyframes xp-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Dark background marquee */
.xp-section--dark .xp-logo-marquee::before { background: linear-gradient(90deg, var(--xp-navy), transparent); }
.xp-section--dark .xp-logo-marquee::after  { background: linear-gradient(270deg, var(--xp-navy), transparent); }

/* ============================================
   STAT BAR (shortcode [xp_stats])
   ============================================ */
.xp-stat-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--xp-navy) 0%, var(--xp-purple) 100%);
  border-radius: var(--xp-radius-lg);
  color: #fff;
  padding: 36px;
}
.xp-stat-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 0 24px;
}
.xp-stat-item + .xp-stat-item { border-left: 1px solid rgba(255,255,255,0.15); }
.xp-stat-value {
  display: block;
  font-size: clamp(2rem,3.5vw,2.8rem);
  font-weight: 800;
  color: var(--xp-accent);
  line-height: 1.1;
  margin-bottom: 6px;
}
.xp-stat-label {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ============================================
   TAG / PILL
   ============================================ */
.xp-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--xp-accent);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.xp-tag--light {
  background: var(--xp-bg);
  color: var(--xp-text-muted);
  border: 1px solid var(--xp-border);
}
.xp-tag--accent-light {
  background: rgba(180,44,255,0.1);
  color: var(--xp-accent);
  border: 1px solid rgba(180,44,255,0.2);
}

/* ============================================
   CARDS — General
   ============================================ */
.xp-card {
  background: var(--xp-card);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.xp-card:hover {
  box-shadow: var(--xp-shadow-xl);
  transform: translateY(-4px);
}
.xp-card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: #fff;
}
.xp-card--dark:hover { border-color: var(--xp-accent); background: rgba(255,255,255,0.08); }
.xp-card--dark h3, .xp-card--dark h4 { color: #fff !important; }
.xp-card--dark p { color: rgba(255,255,255,0.65) !important; }

/* Gradient top border on hover */
.xp-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--xp-accent), var(--xp-teal));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: var(--xp-radius-lg) var(--xp-radius-lg) 0 0;
}
.xp-card:hover::after { transform: scaleX(1); }

/* ============================================
   CASE STUDY CARDS (.xp-case-card)
   ============================================ */
.xp-case-grid { display: grid; gap: 32px; }
.xp-case-grid--3col { grid-template-columns: repeat(3,1fr); }
.xp-case-grid--2col { grid-template-columns: repeat(2,1fr); }
.xp-case-grid--1col { grid-template-columns: 1fr; }

.xp-case-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.xp-case-card:hover {
  border-color: var(--xp-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.xp-case-card__image {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}
.xp-case-card__body { padding: 28px; }
.xp-case-card__body h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.xp-case-card__body p { color: rgba(255,255,255,0.6); font-size: 0.95rem; margin-bottom: 20px; }

/* Light-background case cards */
.xp-section--light .xp-case-card,
.xp-section--white .xp-case-card,
.et_pb_section:not(.xp-section--dark):not(.xp-section--gradient) .xp-case-card {
  background: var(--xp-card);
  border-color: var(--xp-border);
}
.xp-section--light .xp-case-card__body h3,
.xp-section--white .xp-case-card__body h3 { color: var(--xp-navy) !important; }
.xp-section--light .xp-case-card__body p,
.xp-section--white .xp-case-card__body p { color: var(--xp-text-muted) !important; }

/* ============================================
   STEP CARDS (.xp-step-card) — timeline shortcode
   ============================================ */
.xp-timeline { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; position: relative; }

/* Connector line */
.xp-timeline::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 60px; right: 60px;
  height: 2px;
  background: var(--xp-border);
}

.xp-step-card {
  background: var(--xp-card);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  padding: 40px 32px;
  position: relative;
  text-align: center;
  transition: all 0.3s;
}
.xp-step-card:hover {
  box-shadow: var(--xp-shadow-lg);
  border-color: var(--xp-accent);
  transform: translateY(-3px);
}
.xp-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--xp-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.xp-step-card h4 { font-size: 1.25rem; margin-bottom: 10px; }
.xp-step-card p { color: var(--xp-text-muted); font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* Dark section step cards */
.xp-section--dark .xp-step-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.xp-section--dark .xp-step-card h4 { color: #fff !important; }
.xp-section--dark .xp-step-card p { color: rgba(255,255,255,0.65) !important; }
.xp-section--dark .xp-timeline::before { background: rgba(255,255,255,0.1); }

/* ============================================
   FORM CARD (.xp-form-card)
   ============================================ */
.xp-form-card {
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  padding: 32px 28px;
}
.xp-form-title { font-size: 1.3rem; margin-bottom: 6px; }
.xp-form-subtitle {
  color: var(--xp-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.xp-contact-form input,
.xp-contact-form textarea,
.xp-contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius);
  font-family: var(--xp-font);
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
  display: block;
}
.xp-contact-form input:focus,
.xp-contact-form textarea:focus {
  outline: none;
  border-color: var(--xp-accent);
  box-shadow: 0 0 0 3px rgba(180,44,255,0.1);
}
.xp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.xp-form-row input { margin-bottom: 0; }
.xp-contact-form textarea { resize: vertical; min-height: 120px; }

.xp-form-response {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--xp-radius);
  font-size: 0.9rem;
}
.xp-form-response--success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}
.xp-form-response--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* ============================================
   PROMISE CARDS (.xp-promise-card)
   ============================================ */
.xp-promises-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-bottom: 48px; }

.xp-promise-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 36px 24px;
  background: #fff;
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  transition: all 0.3s;
}
.xp-promise-card:hover {
  box-shadow: var(--xp-shadow-md);
  border-color: var(--xp-accent);
  transform: translateY(-2px);
}
.xp-promise-card__icon {
  position: absolute;
  top: 16px; right: 16px;
  color: rgba(0,0,0,0.04);
  pointer-events: none;
}
.xp-promise-card__icon svg { display: block; width: 96px; height: 96px; }
.xp-promise-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.xp-promise-card p { color: var(--xp-text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ============================================
   CTA SECTION (.xp-cta-section)
   ============================================ */
.xp-cta-section {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--xp-radius-lg);
}
.xp-cta-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(180,44,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.xp-cta-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.xp-cta-content h2 { color: #fff !important; font-size: clamp(2rem,3.5vw,2.8rem); margin-bottom: 20px; }
.xp-cta-content p { color: rgba(255,255,255,0.75) !important; font-size: 1.15rem; margin-bottom: 36px; }

/* ============================================
   SERVICE CARDS (grid layout)
   ============================================ */
.xp-services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.xp-service-card {
  background: var(--xp-card);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.xp-service-card:hover { box-shadow: var(--xp-shadow-xl); transform: translateY(-4px); }
.xp-service-card--featured { border-color: var(--xp-accent); box-shadow: 0 0 0 1px var(--xp-accent); }

.xp-service-card__image { position: relative; overflow: hidden; height: 200px; }
.xp-service-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.xp-service-card:hover .xp-service-card__image img { transform: scale(1.05); }
.xp-service-card__body { padding: 28px; }
.xp-service-card__body h3 { margin-bottom: 10px; }
.xp-service-card__body p { color: var(--xp-text-muted); margin-bottom: 16px; font-size: 0.95rem; }

.xp-service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--xp-accent), var(--xp-teal));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: var(--xp-radius-lg) var(--xp-radius-lg) 0 0;
}
.xp-service-card:hover::after { transform: scaleX(1); }

/* ============================================
   RESULT / FEATURE CARDS
   ============================================ */
.xp-results-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.xp-result-card {
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--xp-radius-lg);
  transition: all 0.3s;
  background: rgba(255,255,255,0.04);
}
.xp-result-card:hover {
  border-color: var(--xp-accent);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.xp-result-card h3 { color: #fff; margin-bottom: 8px; }
.xp-result-card p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.xp-testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.xp-testimonial {
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  border-left: 3px solid var(--xp-accent);
  padding: 32px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.xp-testimonial:hover { box-shadow: var(--xp-shadow-md); transform: translateY(-2px); }
.xp-testimonial::before {
  content: '\201C';
  position: absolute;
  top: 12px; right: 16px;
  font-size: 4rem;
  color: rgba(180,44,255,0.06);
  font-family: Georgia, serif;
  line-height: 1;
}
.xp-testimonial__stars { color: #FBBF24; font-size: 1.1rem; margin-bottom: 16px; }
.xp-testimonial p {
  font-size: 1rem;
  color: var(--xp-text);
  margin-bottom: 20px;
  font-style: italic;
  flex: 1;
  line-height: 1.7;
}
.xp-testimonial__footer { display: flex; align-items: center; gap: 12px; font-style: normal; }
.xp-testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--xp-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.xp-testimonial cite { font-style: normal; font-size: 0.9rem; font-weight: 600; color: var(--xp-text); display: block; }
.xp-testimonial__footer span { font-size: 0.8rem; color: var(--xp-text-muted); }

/* ============================================
   SERVICE ROWS (alternating layout)
   ============================================ */
.xp-service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}
.xp-service-row:last-child { margin-bottom: 0; }
.xp-service-row--reverse { direction: rtl; }
.xp-service-row--reverse > * { direction: ltr; }

.xp-service-row__number {
  position: absolute;
  top: -110px; left: -36px;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(90,0,209,0.05);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.xp-service-row--reverse .xp-service-row__number { left: auto; right: -100px; }

.xp-service-row__image {
  position: relative;
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(180,44,255,0.1);
  z-index: 1;
}
.xp-service-row--reverse .xp-service-row__image { box-shadow: -12px 12px 0 rgba(180,44,255,0.1); }
.xp-service-row__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; aspect-ratio: 4/3; }
.xp-service-row:hover .xp-service-row__image img { transform: scale(1.03); }

.xp-service-row__content h3 { font-size: clamp(1.4rem,2.5vw,1.8rem); margin-bottom: 16px; }
.xp-service-row__content p { color: var(--xp-text-muted); margin-bottom: 24px; font-size: 1.05rem; line-height: 1.7; }

/* ============================================
   HOW IT WORKS / PROCESS STEPS
   ============================================ */
.xp-steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }

.xp-how-step {
  background: var(--xp-card);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s;
}
.xp-how-step:hover { box-shadow: var(--xp-shadow-lg); border-color: var(--xp-accent); transform: translateY(-3px); }
.xp-how-step__number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--xp-border);
  line-height: 1;
  margin-bottom: 16px;
}
.xp-how-step h3 { font-size: 1.35rem; margin-bottom: 12px; }
.xp-how-step p { color: var(--xp-text-muted); font-size: 0.98rem; line-height: 1.7; }

/* ============================================
   OUTCOMES / CHECKLIST
   ============================================ */
.xp-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.xp-outcome-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; }
.xp-outcome-check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(180,44,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xp-accent);
  font-size: 0.9rem;
  margin-top: 2px;
}
.xp-outcome-item h4 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.xp-outcome-item p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ============================================
   STAT BANNER (full-width)
   ============================================ */
.xp-stat-banner {
  background: var(--xp-navy);
  padding: 48px 0;
  position: relative;
}
.xp-stat-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.xp-stat-banner__inner {
  display: flex;
  justify-content: center;
  gap: 64px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  max-width: var(--xp-container);
  margin: 0 auto;
  padding: 0 24px;
}
.xp-stat-banner__item { text-align: center; }
.xp-stat-banner__number {
  display: block;
  font-size: clamp(2rem,3.5vw,2.8rem);
  font-weight: 800;
  color: var(--xp-accent);
  line-height: 1.1;
  margin-bottom: 6px;
}
.xp-stat-banner__label { display: block; color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ============================================
   TECH / PLATFORM LOGOS
   ============================================ */
.xp-tech-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.xp-tech-logo {
  padding: 10px 20px;
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--xp-text-muted);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.xp-tech-logo:hover { border-color: var(--xp-accent); color: var(--xp-accent); transform: translateY(-2px); }
.xp-tech-logo img { height: 24px; width: auto; max-width: 100px; object-fit: contain; }

/* ============================================
   THE SHIFT — Editorial section
   ============================================ */
.xp-the-shift {
  padding: var(--xp-section-py) 0;
  background: var(--xp-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.xp-the-shift::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}
.xp-the-shift .et_pb_row { position: relative; z-index: 1; }
.xp-the-shift__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.xp-the-shift h2 { color: #fff !important; font-size: clamp(2rem,3.5vw,2.8rem); margin-bottom: 32px; line-height: 1.25; }
.xp-the-shift p { font-size: 1.15rem; line-height: 1.8; color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.xp-the-shift__image {
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.xp-the-shift__image img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.4s ease; }
.xp-the-shift__image:hover img { transform: scale(1.03); }

.xp-shift-stats {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.xp-shift-stat__number { display: block; font-size: 2rem; font-weight: 800; color: var(--xp-accent); line-height: 1.1; }
.xp-shift-stat__label { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 4px; line-height: 1.4; }

/* ============================================
   BLOG / NEWS CARDS
   ============================================ */
.xp-blog-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

.xp-blog-card {
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  background: var(--xp-card);
  transition: all 0.3s;
}
.xp-blog-card:hover { box-shadow: var(--xp-shadow-md); transform: translateY(-3px); }
.xp-blog-card__image { height: 180px; overflow: hidden; }
.xp-blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.xp-blog-card:hover .xp-blog-card__image img { transform: scale(1.05); }
.xp-blog-card__body { padding: 16px; }
.xp-blog-card__category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--xp-accent);
  margin-bottom: 6px;
}
.xp-blog-card h4 { font-size: 0.92rem; }
.xp-blog-card a { color: var(--xp-text); }
.xp-blog-card a:hover { color: var(--xp-accent); }

/* ============================================
   FOOTER
   ============================================ */
.xp-footer {
  background: var(--xp-navy) !important;
  color: rgba(255,255,255,0.8);
  padding: 80px 0 32px;
}
.xp-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}
.xp-footer-col h4 {
  color: #fff;
  font-size: 0.9rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.xp-footer-col ul { list-style: none; margin: 0; padding: 0; }
.xp-footer-col li { margin-bottom: 10px; }
.xp-footer-col a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color 0.2s; }
.xp-footer-col a:hover { color: #fff; }

.xp-footer-brand p { margin: 16px 0 20px; color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; }
.xp-footer-brand .xp-logo__img { height: 28px; filter: brightness(0) invert(1); }

.xp-footer-social { display: flex; list-style: none; gap: 12px; margin: 0; padding: 0 0 24px; }
.xp-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.45);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.xp-footer-social a:hover { color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }

.xp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.xp-footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; }
.xp-footer-legal { display: flex; list-style: none; gap: 16px; margin: 0; padding: 0; }
.xp-footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.xp-footer-legal a:hover { color: #fff; }

.xp-footer-locals { border-top: 1px solid rgba(255,255,255,0.08); padding: 32px 0; margin-bottom: 24px; }
.xp-footer-locals h4 { color: rgba(255,255,255,0.5); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.xp-footer-locals__list { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 0; }
.xp-footer-locals__list a { font-size: 0.78rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.xp-footer-locals__list a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   PLATFORM STRIPS (diagonal)
   ============================================ */
.xp-platform-strips {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  z-index: 2;
}
.xp-platform-strips--inline { margin-top: 32px; margin-bottom: 48px; }
.xp-platform-strips__panels { display: flex; height: 160px; }

.xp-platform-strip {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: flex 0.5s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  transform: skewX(-12deg);
  margin: 0 -3%;
  text-decoration: none;
}
.xp-platform-strip:first-child { margin-left: -6%; }
.xp-platform-strip:last-child  { margin-right: -6%; }
.xp-platform-strip img {
  width: 130%; height: 100%;
  object-fit: cover;
  transform: skewX(12deg) scale(1.1);
  transform-origin: center;
  margin-left: -15%;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.xp-platform-strip__overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,20,0.82);
  transition: background 0.5s ease;
  z-index: 1;
}
.xp-platform-strip__text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) skewX(12deg);
  text-align: center;
  z-index: 2;
  white-space: nowrap;
}
.xp-platform-strip__label {
  display: block;
  font-family: var(--xp-font);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;
  transition: all 0.4s ease;
  line-height: 1;
}
.xp-platform-strips__panels:hover .xp-platform-strip { flex: 0.7; }
.xp-platform-strips__panels:hover .xp-platform-strip:hover { flex: 2; }
.xp-platform-strip:hover .xp-platform-strip__overlay { background: rgba(10,10,20,0.7); }
.xp-platform-strip:hover img { transform: skewX(12deg) scale(1.15); }
.xp-platform-strips__panels:hover .xp-platform-strip:not(:hover) .xp-platform-strip__overlay { background: rgba(10,10,20,0.82); }
.xp-platform-strips__panels:hover .xp-platform-strip:not(:hover) .xp-platform-strip__label { color: rgba(255,255,255,0.15); }
.xp-platform-strip + .xp-platform-strip::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 1px;
  background: rgba(255,255,255,0.1);
  z-index: 3;
}

/* ============================================
   SERVICE MAGAZINE LAYOUT
   ============================================ */
.xp-service-magazine { padding: 80px 0; }
.xp-service-magazine__card {
  display: grid;
  grid-template-columns: 45fr 55fr;
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
  margin-bottom: 48px;
}
.xp-service-magazine__card:last-child { margin-bottom: 0; }
.xp-service-magazine__card--reverse { direction: rtl; }
.xp-service-magazine__card--reverse > * { direction: ltr; }

.xp-service-magazine__visual { position: relative; min-height: 420px; overflow: hidden; }
.xp-service-magazine__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-service-magazine__visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,43,0.92) 0%, rgba(13,13,43,0.55) 100%);
}
.xp-service-magazine__visual-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px; color: #fff; z-index: 1;
}
.xp-service-magazine__number {
  display: block; font-size: 3.5rem;
  font-weight: 700; opacity: 0.15; line-height: 1; margin-bottom: 8px;
}
.xp-service-magazine__visual-text h2 { font-size: 1.65rem; margin-bottom: 4px; color: #fff !important; }
.xp-service-magazine__visual-text p { font-size: 0.95rem; opacity: 0.7; margin: 0; color: #fff !important; }
.xp-service-magazine__body { padding: 48px; display: flex; flex-direction: column; }
.xp-service-magazine__body > p { color: var(--xp-text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 28px; }

.xp-service-magazine__links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; flex: 1; }
.xp-service-magazine__link {
  display: block; padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(13,13,43,0.08);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.xp-service-magazine__link:hover { border-color: var(--xp-accent); box-shadow: 0 2px 12px rgba(180,44,255,0.1); transform: translateY(-2px); }
.xp-service-magazine__link strong { display: block; font-size: 0.92rem; color: var(--xp-navy); margin-bottom: 2px; }
.xp-service-magazine__link span { font-size: 0.82rem; color: var(--xp-text-muted); }

/* ============================================
   WHY STRIP
   ============================================ */
.xp-why-strip { background: var(--xp-navy); padding: 56px 0; }
.xp-why-strip__inner {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
  max-width: var(--xp-container);
  margin: 0 auto;
  padding: 0 24px;
}
.xp-why-item { display: flex; align-items: flex-start; gap: 16px; color: #fff; }
.xp-why-item svg { flex-shrink: 0; margin-top: 2px; color: var(--xp-accent); }
.xp-why-item strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.xp-why-item span { font-size: 0.85rem; opacity: 0.6; }

/* ============================================
   VERTICAL TIMELINE
   ============================================ */
.xp-timeline-v {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 60px;
}
.xp-timeline-v__line {
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: var(--xp-border);
}
.xp-timeline-v__step { position: relative; padding-bottom: 48px; }
.xp-timeline-v__step:last-child { padding-bottom: 0; }
.xp-timeline-v__number {
  position: absolute; left: -60px; top: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--xp-accent);
  color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.xp-timeline-v__step h3 { font-size: 1.3rem; margin-bottom: 8px; padding-top: 6px; }
.xp-timeline-v__step p { color: var(--xp-text-muted); font-size: 0.98rem; line-height: 1.7; }

/* ============================================
   ANIMATIONS & SCROLL EFFECTS
   ============================================ */

/* Fade-in animation (JS adds .xp-visible) */
.xp-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.xp-fade-in.xp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.xp-fade-in:nth-child(1) { transition-delay: 0s; }
.xp-fade-in:nth-child(2) { transition-delay: 0.1s; }
.xp-fade-in:nth-child(3) { transition-delay: 0.2s; }
.xp-fade-in:nth-child(4) { transition-delay: 0.3s; }
.xp-fade-in:nth-child(5) { transition-delay: 0.4s; }
.xp-fade-in:nth-child(6) { transition-delay: 0.5s; }

/* Hero image float animation */
@keyframes xp-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.xp-hero-float { animation: xp-float 6s ease-in-out infinite; }

/* Counter element (JS animates value) */
.xp-counter { font-variant-numeric: tabular-nums; }

/* ============================================
   DIVI OVERRIDES — Reset Divi defaults
   ============================================ */

/* Remove Divi default section padding when using xp- section classes */
.et_pb_section.xp-section--dark,
.et_pb_section.xp-section--light,
.et_pb_section.xp-section--white,
.et_pb_section.xp-section--gradient,
.et_pb_section.xp-section--pattern {
  padding: var(--xp-section-py) 0 !important;
}

/* Divi module inner padding reset for full-bleed components */
.xp-full-bleed .et_pb_column { padding: 0 !important; }
.xp-no-pad.et_pb_section { padding: 0 !important; }
.xp-no-pad .et_pb_row { max-width: 100% !important; padding: 0 !important; }

/* Ensure Divi rows respect max-width */
.et_pb_row {
  max-width: var(--xp-container);
}

/* Divi button override */
.et_pb_button:not([class*="xp-btn"]) {
  font-family: var(--xp-font) !important;
  border-radius: var(--xp-radius) !important;
}

/* Divi text module base */
.et_pb_text_inner {
  font-family: var(--xp-font) !important;
  font-size: var(--xp-font-size) !important;
  line-height: var(--xp-line-height) !important;
  color: inherit !important;
}

/* Remove Divi outline on buttons */
.et_pb_button:focus { outline: 2px solid var(--xp-accent); outline-offset: 2px; }

/* Divi image module */
.et_pb_image_inner img { border-radius: var(--xp-radius); }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.xp-text-center { text-align: center; }
.xp-text-left   { text-align: left; }
.xp-text-right  { text-align: right; }

.xp-mt-0  { margin-top: 0 !important; }
.xp-mb-0  { margin-bottom: 0 !important; }
.xp-mt-sm { margin-top: 16px !important; }
.xp-mb-sm { margin-bottom: 16px !important; }
.xp-mt-md { margin-top: 32px !important; }
.xp-mb-md { margin-bottom: 32px !important; }
.xp-mt-lg { margin-top: 64px !important; }
.xp-mb-lg { margin-bottom: 64px !important; }

.xp-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* 1200px — Container starts compressing */
@media (max-width: 1200px) {
  .xp-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .xp-promises-grid { grid-template-columns: repeat(2,1fr); }
  .xp-why-strip__inner { grid-template-columns: 1fr 1fr; }
  .xp-platform-strips__panels { height: 120px; }
}

/* 1024px — Tablet landscape */
@media (max-width: 1024px) {
  .xp-services-grid,
  .xp-results-grid,
  .xp-testimonials-grid { grid-template-columns: 1fr 1fr; }

  .xp-blog-grid { grid-template-columns: 1fr 1fr; }
  .xp-the-shift__grid { grid-template-columns: 1fr; gap: 32px; }
  .xp-service-row { grid-template-columns: 1fr; gap: 32px; }
  .xp-service-row--reverse { direction: ltr; }
  .xp-case-grid--3col { grid-template-columns: repeat(2,1fr); }
  .xp-steps-grid { grid-template-columns: 1fr 1fr; }
  .xp-outcomes-grid { grid-template-columns: 1fr; }
  .xp-hero-strips { min-height: 80vh; }
  .xp-service-magazine__card { grid-template-columns: 1fr; }
  .xp-service-magazine__card--reverse { direction: ltr; }
  .xp-service-magazine__visual { min-height: 280px; }
  .xp-stat-banner__inner { gap: 40px; }

  /* Divi: show mobile menu toggle on tablet */
  .xp-nav-toggle { display: block; }
  .xp-nav, .xp-nav-actions { display: none; }
}

/* 768px — Mobile */
@media (max-width: 768px) {
  .xp-nav, .xp-nav-actions { display: none !important; }
  .xp-nav-toggle { display: block !important; }

  .xp-services-grid,
  .xp-results-grid,
  .xp-testimonials-grid,
  .xp-steps-grid,
  .xp-promises-grid,
  .xp-case-grid--3col,
  .xp-case-grid--2col { grid-template-columns: 1fr; }

  .xp-blog-grid { grid-template-columns: 1fr; }
  .xp-footer-grid { grid-template-columns: 1fr; }
  .xp-why-strip__inner { grid-template-columns: 1fr; gap: 24px; }
  .xp-stat-banner__inner { flex-direction: column; gap: 24px; }
  .xp-stat-bar { flex-direction: column; }
  .xp-stat-item + .xp-stat-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; margin-top: 24px; }
  .xp-outcomes-grid { grid-template-columns: 1fr; }

  .xp-form-row { grid-template-columns: 1fr; }
  .xp-timeline { grid-template-columns: 1fr; }
  .xp-timeline::before { display: none; }
  .xp-step-card { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .xp-step-number { margin: 0; flex-shrink: 0; }

  /* Hero strips mobile */
  .xp-hero-strips {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
  }
  .xp-hero-strips__panels {
    position: relative;
    height: 45vh;
  }
  .xp-hero-strip { transform: none; margin: 0; }
  .xp-hero-strip:first-child { margin-left: 0; }
  .xp-hero-strip:last-child  { margin-right: 0; }
  .xp-hero-strip img { transform: none; width: 100%; margin-left: 0; }
  .xp-hero-strip:hover img { transform: none; }
  .xp-hero-strip__video { display: none; }
  .xp-hero-strip__text,
  .xp-hero-strip:nth-child(2) .xp-hero-strip__text {
    top: 50%; bottom: auto; left: 50%;
    transform: translate(-50%,-50%);
  }
  .xp-hero-strip__label { font-size: 0.7rem; letter-spacing: 2px; color: rgba(255,255,255,0.6); }
  .xp-hero-strip__desc { display: none; }
  .xp-hero-strip + .xp-hero-strip::before { display: none; }
  .xp-hero-strips::after { display: none; }
  .xp-hero-strips__content {
    position: relative;
    z-index: 6;
    padding: 40px 24px 48px;
    background: linear-gradient(160deg, #0a0a14 0%, var(--xp-navy) 100%);
    pointer-events: auto;
  }
  .xp-hero-strips__content h1,
  .xp-hero-strips__content .xp-hero__subtitle,
  .xp-hero-strips__content .xp-hero__ctas { max-width: 100%; }
  .xp-hero-strips__content h1 { font-size: clamp(1.8rem,7vw,2.4rem); }
  .xp-hero-strips__content .xp-hero__ctas { flex-direction: column; }

  /* Platform strips mobile */
  .xp-platform-strips__panels { height: 80px; }
  .xp-platform-strip { transform: skewX(0); margin: 0; }
  .xp-platform-strip:first-child { margin-left: 0; }
  .xp-platform-strip:last-child { margin-right: 0; }
  .xp-platform-strip img { transform: skewX(0) scale(1.1); margin-left: 0; width: 100%; }
  .xp-platform-strip__text { transform: translate(-50%,-50%) skewX(0); }
  .xp-platform-strip__label { font-size: 0.7rem; letter-spacing: 1.5px; }

  .xp-service-magazine { padding: 48px 0; }
  .xp-service-magazine__card { margin-bottom: 32px; }
  .xp-service-magazine__visual { min-height: 220px; }
  .xp-service-magazine__body { padding: 28px; }
  .xp-service-magazine__links { grid-template-columns: 1fr; }

  .xp-footer-bottom { flex-direction: column; text-align: center; }
  .xp-trust-bar__inner { flex-direction: column; gap: 12px; }

  .xp-hero.et_pb_section { padding-top: 80px !important; padding-bottom: 64px !important; }
  .xp-service-hero { padding: 120px 0 60px; }

  .xp-timeline-v { padding-left: 52px; }
  .xp-timeline-v__line { left: 16px; }
  .xp-timeline-v__number { left: -52px; width: 36px; height: 36px; font-size: 0.95rem; }

  .xp-shift-stats { flex-direction: column; gap: 20px; }
  .xp-the-shift__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* 480px — Small mobile */
@media (max-width: 480px) {
  .xp-stat-banner__inner { gap: 20px; }
  .xp-hero-stat__number { font-size: 1.3rem; }
  .xp-cta-section { padding: 64px 24px; }
  .xp-service-magazine__visual-text { padding: 24px; }
  .xp-service-magazine__visual-text h2 { font-size: 1.3rem; }
  .xp-service-magazine__number { font-size: 2.5rem; }
}

/* ============================================
   MOBILE NAV (slide-in panel)
   ============================================ */
.xp-nav--open {
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  z-index: 300;
  display: flex !important;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
  overflow-y: auto;
  padding: 80px 0 24px;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.xp-nav--open .xp-nav__item { border-bottom: 1px solid var(--xp-border); }
.xp-nav--open .xp-nav__item > a {
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--xp-text);
  border-radius: 0;
}
.xp-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 299;
  display: none;
}
.xp-nav-backdrop.is-visible { display: block; }

/* ============================================================
   GLOBAL LAYOUT HELPERS — ensure flex/grid inside Code Modules
   ============================================================ */
.xp-hero__ctas {
  display: flex !important;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.xp-hero__content { max-width: 800px; }
.xp-trust-signals {
  display: flex !important;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 32px;
}
.xp-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }

/* Card grids inside code modules */
.xp-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.xp-cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.xp-cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.xp-cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Service category rows */
.xp-service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}
.xp-service-row--reverse { direction: rtl; }
.xp-service-row--reverse > * { direction: ltr; }
.xp-service-row__label {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  margin-bottom: -20px;
  font-family: var(--xp-font);
}
.xp-service-row__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.xp-service-row__links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; }

/* Outcome / feature grid items */
.xp-outcome-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.xp-outcome-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--xp-radius);
  background: rgba(255,255,255,0.04);
}
.xp-outcome-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--xp-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .xp-cards-grid--2,
  .xp-cards-grid--3,
  .xp-cards-grid--4 { grid-template-columns: 1fr; }
  .xp-service-row { grid-template-columns: 1fr; gap: 32px; }
  .xp-service-row--reverse { direction: ltr; }
}

/* ===========================================
   SUCCESS STORY SINGLE & ARCHIVE TEMPLATES
   =========================================== */

/* Single hero */
.xp-case-single__hero {
  background: var(--xp-navy);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.xp-case-single__hero--has-image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}
.xp-case-single__hero--has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,12,29,0.8) 0%, rgba(7,12,29,0.9) 100%);
}
.xp-case-single__hero .xp-container { position: relative; z-index: 1; }

.xp-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.xp-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.xp-breadcrumb a:hover { color: var(--xp-purple); }

.xp-case-single__hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.xp-case-single__headline {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  font-weight: 700;
  max-width: 800px;
  margin: 0;
}

/* Body layout */
.xp-case-single__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  padding: 60px 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .xp-case-single__body { grid-template-columns: 1fr; }
  .xp-case-single__sidebar { order: -1; }
}

/* Case sections */
.xp-case-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--xp-border);
}
.xp-case-section:last-child { border-bottom: none; }
.xp-case-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--xp-navy);
  margin-bottom: 16px;
}
.xp-case-section__content p { color: var(--xp-muted); line-height: 1.7; }

.xp-case-section--kpis { background: var(--xp-light); border-radius: 12px; padding: 32px; border: none; }
.xp-case-section--results { background: linear-gradient(135deg, var(--xp-navy) 0%, #1a0533 100%); border-radius: 12px; padding: 32px; border: none; }
.xp-case-section--results h2,
.xp-case-section--results p { color: #fff; }
.xp-case-results p { font-size: 1.05rem; }

/* Testimonials */
.xp-testimonial {
  background: var(--xp-light);
  border-left: 4px solid var(--xp-purple);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  margin: 0 0 20px;
}
.xp-testimonial p { font-style: italic; color: var(--xp-navy); font-size: 1.05rem; }
.xp-testimonial footer { color: var(--xp-muted); font-size: 0.9rem; margin-top: 12px; }

/* Sidebar */
.xp-case-meta-box {
  background: var(--xp-light);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.xp-case-meta-box h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--xp-muted);
  margin-bottom: 12px;
}
.xp-case-meta-box p { color: var(--xp-navy); font-size: 0.95rem; }
.xp-tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.xp-case-cta { background: linear-gradient(135deg, var(--xp-navy) 0%, #1a0533 100%); text-align: center; }
.xp-case-cta h3 { color: #fff !important; font-size: 1.1rem !important; text-transform: none !important; letter-spacing: 0 !important; }
.xp-case-cta p { color: rgba(255,255,255,0.8) !important; font-size: 0.9rem; margin-bottom: 16px; }

/* Related */
.xp-case-single__related { padding: 60px 0; }
.xp-case-single__related h2 { font-size: 1.8rem; margin-bottom: 32px; color: var(--xp-navy); }

/* Archive */
.xp-case-archive { padding: 60px 20px; }
.xp-case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 40px;
}
.xp-case-filters__label { color: var(--xp-muted); font-size: 0.9rem; }
.xp-filter-btn {
  padding: 6px 18px;
  border: 1px solid var(--xp-border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--xp-navy);
  text-decoration: none;
  transition: all 0.2s;
}
.xp-filter-btn:hover,
.xp-filter-btn.active { background: var(--xp-purple); border-color: var(--xp-purple); color: #fff; }

/* Tag variants */
.xp-tag { display: inline-block; padding: 4px 12px; background: rgba(108,53,255,0.1); color: var(--xp-purple); border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.xp-tag--outline { background: transparent; border: 1px solid var(--xp-border); color: var(--xp-muted); }
.xp-tag--accent { background: rgba(234,0,122,0.1); color: var(--xp-fuchsia); }

/* Case card (used by shortcode) */
.xp-case-grid {
  display: grid;
  gap: 28px;
}
.xp-case-grid--3col { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.xp-case-grid--2col { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.xp-case-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--xp-border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.xp-case-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }

.xp-case-card__image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--xp-navy);
}
.xp-case-card__body { padding: 24px; }
.xp-case-card__body .xp-tag { margin-bottom: 4px; }
.xp-case-card__body h3 { font-size: 1.05rem; color: var(--xp-navy); margin: 12px 0 8px; line-height: 1.4; }
.xp-case-card__body p { color: var(--xp-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }

/* Page hero (used by archive) */
.xp-page-hero { background: var(--xp-navy); padding: 80px 0; text-align: center; }
.xp-page-hero--dark { background: linear-gradient(135deg, var(--xp-navy) 0%, #1a0533 100%); }
.xp-page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.xp-page-hero .xp-hero__subtitle { color: rgba(255,255,255,0.75); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }

/* ===========================================
   HEADER / NAV CLASS NAME CORRECTIONS
   Fix mismatches between header.php and style.css
   =========================================== */

/* CRITICAL: .xp-nav is the outer <nav> element — should NEVER be hidden.
   Only .xp-nav-menu (the <ul>) should fade in/out */
.xp-header .xp-nav {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.xp-header .xp-nav-menu {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.xp-header:hover .xp-nav-menu {
  opacity: 1;
  pointer-events: auto;
}
.xp-header.header--scrolled .xp-nav-menu {
  opacity: 1;
  pointer-events: auto;
}

/* Fix <nav> element layout — it's a block container, not a flex list */
.xp-nav {
  display: block !important;
  list-style: none;
}

/* The actual flex list should be .xp-nav-menu */
.xp-nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}

/* nav__inner: HTML uses xp-nav__inner, CSS uses xp-main-nav__inner */
.xp-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  padding: 12px 24px;
  position: relative;
  transition: padding 0.3s ease;
}
.header--scrolled .xp-nav__inner { padding-top: 6px; padding-bottom: 6px; }

/* Mobile toggle: HTML uses xp-mobile-toggle, CSS uses xp-nav-toggle */
.xp-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 40px;
  height: 40px;
  z-index: 301;
}
.xp-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
  left: 8px;
}
.xp-mobile-toggle span:nth-child(1) { top: 10px; }
.xp-mobile-toggle span:nth-child(2) { top: 19px; }
.xp-mobile-toggle span:nth-child(3) { top: 28px; }
.xp-mobile-toggle.is-active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.xp-mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
.xp-mobile-toggle.is-active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
.header--scrolled .xp-mobile-toggle span,
.xp-header:hover .xp-mobile-toggle span { background: var(--xp-navy); }

/* Mega menu col header: HTML uses xp-mega-menu__col-header */
.xp-mega-menu__col-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--xp-border);
}
.xp-mega-menu__col-header h4 {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--xp-accent) !important;
  margin-bottom: 2px;
}
.xp-mega-menu__col-header h4 a {
  color: var(--xp-accent) !important;
  text-decoration: none;
}
.xp-mega-menu__col-header h4 a:hover { color: var(--xp-purple) !important; }
.xp-mega-menu__col-header p {
  font-size: 0.78rem;
  color: var(--xp-muted);
  margin: 0;
  line-height: 1.4;
}

/* CTA column in mega menu: HTML uses xp-mega-menu__cta-col */
.xp-mega-menu__cta-col {
  background: var(--xp-bg);
  border-right: none !important;
  border-radius: 0 var(--xp-radius-lg) var(--xp-radius-lg) 0;
  display: flex;
  align-items: stretch;
  padding: 0 !important;
}
.xp-mega-menu__cta-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
  width: 100%;
}
.xp-mega-menu__cta-card h4 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--xp-navy) !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.xp-mega-menu__cta-card p {
  font-size: 0.82rem;
  color: var(--xp-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.xp-mega-menu__cta-card .xp-btn--primary {
  align-self: flex-start;
  margin-top: 4px;
}

/* Mobile menu panel: HTML uses xp-mobile-menu */
.xp-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 340px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.xp-mobile-menu.is-open { right: 0; }
.xp-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--xp-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.xp-mobile-menu__header .xp-logo__img { filter: none; height: 28px; }
.xp-mobile-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--xp-navy);
  line-height: 1;
  padding: 4px;
}
.xp-mobile-menu__body { flex: 1; overflow-y: auto; }
.xp-mobile-menu__list { list-style: none; padding: 8px 0; margin: 0; }
.xp-mobile-menu__item { }
.xp-mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--xp-navy);
  background: none;
  border: none;
  border-bottom: 1px solid var(--xp-border);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.xp-mobile-menu__link:hover { color: var(--xp-accent); background: var(--xp-bg); }
.xp-mobile-menu__link svg { flex-shrink: 0; transition: transform 0.25s; }
.xp-mobile-has-children .xp-mobile-menu__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.xp-mobile-menu__sub {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  background: var(--xp-bg);
}
.xp-mobile-menu__sub li a {
  display: block;
  padding: 10px 24px 10px 36px;
  color: var(--xp-text);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.xp-mobile-menu__sub li a:hover { color: var(--xp-accent); }
.xp-mobile-menu__heading {
  padding: 12px 24px 4px 24px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--xp-muted);
}
.xp-mobile-menu__footer {
  padding: 24px;
  border-top: 1px solid var(--xp-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.xp-mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.xp-mobile-menu__contact a {
  color: var(--xp-muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.xp-mobile-menu__contact a:hover { color: var(--xp-accent); }

/* Backdrop */
.xp-mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
  cursor: pointer;
}
.xp-mobile-menu__backdrop.is-visible { display: block; }

/* Responsive: show mobile toggle, hide desktop nav menu + actions */
@media (max-width: 1024px) {
  .xp-mobile-toggle { display: block !important; }
  .xp-nav-menu, .xp-nav-actions { display: none !important; }
}

/* ===========================================
   FOOTER CLASS NAME CORRECTIONS & ADDITIONS
   Fix mismatches between footer.php and style.css
   =========================================== */

/* BEM double-underscore → single-dash aliases */
.xp-footer__grid { /* same as xp-footer-grid */
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.xp-footer__col { /* same as xp-footer-col */
  color: rgba(255,255,255,0.6);
}
.xp-footer__col h4 {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.xp-footer__col ul { list-style: none; margin: 0; padding: 0; }
.xp-footer__col li { margin-bottom: 10px; }
.xp-footer__col a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color 0.2s; }
.xp-footer__col a:hover { color: #fff; }

.xp-footer__col--brand { /* same as xp-footer-brand */ }
.xp-footer__col--brand p { margin: 16px 0 20px; color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; }
.xp-footer__col--brand .xp-logo__img { height: 28px; filter: brightness(0) invert(1); }

/* Top bar phone/email */
.xp-top-bar__phone,
.xp-top-bar__email {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
}

/* Top bar uses xp-container not xp-top-bar__inner */
.xp-top-bar .xp-container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: center;
}

/* Google logo in top bar */
.xp-google-logo { font-weight: 700; }

/* Eyebrow small (used in mega menu CTA) */
.xp-eyebrow-small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--xp-accent);
  font-weight: 700;
}

/* Footer contact & office */
.xp-footer-contact { list-style: none; padding: 0; margin: 0; }
.xp-footer-contact li {
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}
.xp-footer-contact strong { color: rgba(255,255,255,0.8); }
.xp-footer-contact a { color: rgba(255,255,255,0.6); }
.xp-footer-contact a:hover { color: #fff; }

.xp-footer-office {
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.xp-footer-office strong { display: block; color: rgba(255,255,255,0.75); margin-bottom: 4px; }
.xp-footer-office address { font-style: normal; }

/* Footer made in */
.xp-footer-made-in {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
}
.xp-footer-made-in svg { flex-shrink: 0; }

/* Footer badges / eco */
.xp-badge img { height: 40px; width: auto; opacity: 0.7; transition: opacity 0.2s; }
.xp-badge img:hover { opacity: 1; }

.xp-footer-eco {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.xp-footer-eco__green { display: flex; align-items: center; }
.xp-footer-eco__green img { height: 30px; width: auto; opacity: 0.8; transition: opacity 0.2s; }
.xp-footer-eco__green:hover img { opacity: 1; }

/* Responsive footer grid */
@media (max-width: 1024px) {
  .xp-footer__grid,
  .xp-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .xp-footer__grid,
  .xp-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ============================================
   MISSING BASE: .xp-container
   Used throughout header, footer, and all page templates
   ============================================ */
.xp-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .xp-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ============================================
   MISSING BASE: body/html foundations
   Ensure font and box model are correct
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--xp-font);
  color: var(--xp-text);
  background-color: var(--xp-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   XP-TEXT-CENTER utility
   ============================================ */
.xp-text-center { text-align: center; }
.xp-text-left   { text-align: left; }
.xp-text-right  { text-align: right; }

