/* ========================================================================
   CBO-Services — Modernized site
   Charter respected : navy #214162 / blue #20AEFF / orange #F6A500
   Font : Rubik
   ======================================================================== */

/* --- Design tokens --- */
:root {
  --navy: #214162;
  --navy-dark: #182f47;
  --navy-light: #2c547e;
  --blue: #20AEFF;
  --blue-soft: #e6f5ff;
  --orange: #F6A500;
  --orange-soft: #fff4dc;
  --white: #ffffff;
  --off-white: #f8f9fb;
  --gray-50: #f4f6f9;
  --gray-100: #e9ecf1;
  --gray-300: #c9d0da;
  --gray-500: #767686;
  --gray-700: #4a4d58;
  --gray-900: #1c1e26;
  --text: #232833;
  --shadow-sm: 0 2px 8px rgba(33, 65, 98, 0.06);
  --shadow-md: 0 8px 24px rgba(33, 65, 98, 0.10);
  --shadow-lg: 0 20px 60px rgba(33, 65, 98, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-height: 84px;
  --container: 1200px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--navy); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-sans); font-weight: 700; line-height: 1.2; color: var(--navy); margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

/* --- Typographie française — jamais un mot ni une ponctuation seul en fin de ligne ---
   Deux niveaux complémentaires :
   1. HTML — espace insécable (&nbsp;) avant « ? ! : ; » et autour des guillemets.
      C'est le seul mécanisme fiable à 100 %, mais il n'existe que dans le balisage
      statique (index.html / peppol.html).
   2. CSS — ci-dessous. Indispensable pour le questionnaire, dont les textes sont
      injectés par JS et n'embarquent pas de &nbsp;.
      `pretty` interdit une dernière ligne réduite à un seul mot (ou à un « ? »
      précédé d'une espace ordinaire) ; `balance` égalise les lignes des titres
      courts d'affichage, où le déséquilibre se voit le plus.
   Navigateurs sans support (text-wrap: pretty/balance) : la déclaration est
   simplement ignorée, le rendu reste celui d'aujourd'hui — aucune régression,
   et les &nbsp; du HTML continuent de tenir. */
h1, h2, h3, h4, h5, h6,
p, li, dt, dd, blockquote, figcaption, label, caption, summary {
  text-wrap: pretty;
}
.section-title,
.section-sub,
.cta-title,
.team-quote {
  text-wrap: balance;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* --- Sticky navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--white);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img {
  height: 56px;
  width: auto;
  transition: transform var(--transition);
}
.nav-logo:hover img { transform: scale(1.03); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 12px 22px !important;
  border-radius: 999px;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(246, 165, 0, 0.35);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(246, 165, 0, 0.5);
  background: #ffb61c;
}
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: transparent;
  color: var(--navy);
  align-items: center;
  justify-content: center;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: "";
  display: block;
  position: relative;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), top var(--transition), opacity var(--transition-fast);
}
.nav-burger span::before { position: absolute; top: -7px; }
.nav-burger span::after { position: absolute; top: 5px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { top: 0; transform: rotate(45deg); }
.nav-burger.open span::after { top: -2px; transform: rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-height) + 80px) 0 120px;
  color: var(--white);
  background:
    radial-gradient(ellipse at 20% 20%, #2a5488 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, #1a3050 0%, transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  animation: floatBlob 16s ease-in-out infinite;
}
.hero::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  top: -140px; right: -100px;
}
.hero::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  bottom: -140px; left: -100px;
  animation-delay: -8s;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
}

/* Canvas particles — layer above blobs, below content */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

/* Grid overlay — subtle constellation feel */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
  animation: gridSlide 40s linear infinite;
}
@keyframes gridSlide {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 64px 64px, 64px 64px; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 24px;
}
.hero-kicker::before {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.hero-title {
  color: var(--white);
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 32px;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 820px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}
.hero-title .accent {
  color: #ffb51c;
  font-weight: 900;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(246, 165, 0, 0.35);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  max-width: 640px;
  margin-bottom: 44px;
  line-height: 1.6;
  font-weight: 400;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  animation: hintFade 3s ease-in-out infinite;
}
.hero-scroll-hint span {
  display: block;
  width: 4px; height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: hintScroll 1.8s ease-in-out infinite;
}
@keyframes hintScroll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}
@keyframes hintFade {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.4; }
}

/* Glowing CTA button */
.btn-glow {
  position: relative;
  isolation: isolate;
}
.btn-glow::before {
  content: "";
  position: absolute;
  inset: -4px;
  background: linear-gradient(90deg, var(--orange), #ffcc4d, var(--orange));
  background-size: 200% 100%;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.5;
  z-index: -1;
  animation: glowShift 3s linear infinite;
}
@keyframes glowShift {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(246, 165, 0, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  color: var(--white);
  background: #ffb61c;
  box-shadow: 0 12px 28px rgba(246, 165, 0, 0.5);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-navy:hover {
  transform: translateY(-3px);
  color: var(--white);
  background: var(--navy-dark);
  box-shadow: var(--shadow-lg);
}
.btn-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Hero visual — constellation "cards" (extensions of the particle bg) */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 560px;
  margin-left: auto;
  min-height: 480px;
}
.hero-card {
  position: absolute;
  color: var(--white);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
  line-height: 1.25;
  animation: hoverY 6s ease-in-out infinite;
  min-width: 260px;
  transition: transform var(--transition);
  z-index: 3;
  /* Very subtle backdrop so text reads over the busy canvas */
  background: rgba(24, 47, 71, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(120, 200, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
}
.hero-card:hover {
  transform: translateY(-8px);
  border-color: rgba(120, 200, 255, 0.45);
  background: rgba(24, 47, 71, 0.55);
}
.hero-card .hero-card-text {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
/* Constellation SVG behind the icon+text — thin blue lines, faint dots */
.hero-card-const {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-card-const line {
  stroke: rgba(150, 210, 255, 0.35);
  stroke-width: 0.8;
  animation: constPulse 4s ease-in-out infinite;
}
.hero-card-const circle {
  fill: rgba(180, 220, 255, 0.85);
}
@keyframes constPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.75; }
}

/* The dot = the "principal star" of the constellation */
.hero-card .dot {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(32, 174, 255, 0.35) 0%, rgba(32, 174, 255, 0.1) 60%, transparent 100%);
  color: var(--blue);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(32, 174, 255, 0.35);
}
.hero-card .dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(120, 200, 255, 0.35);
  animation: cbo-spin 22s linear infinite;
}
.hero-card .dot .cbo-icon { width: 26px !important; height: 26px !important; }

/* Card variants — same layout, different constellation tint */
.hero-card.c1 { top: 4%; left: -4%; animation-delay: 0s; }
.hero-card.c2 {
  top: 42%; right: -8%;
  animation-delay: -2s;
  border-color: rgba(246, 165, 0, 0.35);
  background: rgba(70, 45, 15, 0.35);
}
.hero-card.c2 .dot {
  background: radial-gradient(circle, rgba(246, 165, 0, 0.4) 0%, rgba(246, 165, 0, 0.1) 60%, transparent 100%);
  color: var(--orange);
  box-shadow: 0 0 24px rgba(246, 165, 0, 0.5);
}
.hero-card.c2 .dot::after { border-color: rgba(255, 190, 80, 0.5); }
.hero-card.c2 .hero-card-const line { stroke: rgba(255, 200, 100, 0.4); }
.hero-card.c2 .hero-card-const circle { fill: rgba(255, 210, 140, 0.9); }
.hero-card.c2:hover { background: rgba(90, 55, 20, 0.55); border-color: rgba(246, 165, 0, 0.55); }
.hero-card.c3 { bottom: 4%; left: 8%; animation-delay: -4s; }
@keyframes hoverY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* --- Intro block --- */
.intro {
  background: var(--white);
  padding: 120px 0;
  position: relative;
}
.intro::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--orange));
  transform: translateX(-50%);
}
.intro-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
}
.intro-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  padding-top: 8px;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  position: relative;
}
.intro-label::before {
  content: "";
  position: absolute;
  top: 0; right: -18px;
  width: 2px; height: 60px;
  background: linear-gradient(to bottom, var(--orange), transparent);
}
.intro-text p {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1.15em;
  letter-spacing: -0.005em;
}
.intro-text p strong { color: var(--navy); font-weight: 700; }
.intro-text .highlight {
  color: var(--orange);
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.intro-text .highlight::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 6px;
  background: var(--orange-soft);
  z-index: -1;
  border-radius: 4px;
  transform-origin: left;
  animation: highlightSweep 2s ease-out 0.4s both;
}
@keyframes highlightSweep {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* --- Section heading pattern --- */
.section-head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--navy);
  margin: 0 0 16px;
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.1;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  margin: 18px auto 0;
  border-radius: 4px;
  transform-origin: center;
  animation: titleUnderline 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.section-head.reveal.visible .section-title::after,
.reveal.visible .section-title::after { animation: titleUnderline 1.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes titleUnderline {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
.service-content .section-title::after { margin-left: 0; }
.section-sub {
  color: var(--orange);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.01em;
}

/* --- Service block (alternating rows) --- */
.service-block {
  padding: 120px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.service-block::before {
  content: "";
  position: absolute;
  top: 10%; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 174, 255, 0.06), transparent 70%);
  pointer-events: none;
}
.service-block.alt {
  background: var(--off-white);
}
.service-block.alt::before {
  top: auto; bottom: 10%; left: -100px; right: auto;
  background: radial-gradient(circle, rgba(246, 165, 0, 0.06), transparent 70%);
}
.service-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-inner.reverse .service-media { order: 2; }
.service-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 4 / 3;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition);
}
.service-media:hover img { transform: scale(1.04); }
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(33, 65, 98, 0.15) 100%);
  pointer-events: none;
}
.service-content .section-head {
  text-align: left;
  margin-left: 0;
  margin-bottom: 32px;
}
.service-content .section-sub { color: var(--orange); }
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-item {
  background: var(--white);
  padding: 26px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--blue);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(32, 174, 255, 0.05));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.service-block.alt .service-item { background: var(--white); }
.service-item:hover {
  transform: translateX(8px) translateY(-2px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--orange);
}
.service-item:hover::before { opacity: 1; }
.service-item h4 {
  color: var(--navy);
  font-size: 1.2rem;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.service-item p {
  color: var(--gray-700);
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.6;
}
.service-item a {
  color: var(--blue);
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
}
.service-item a:hover {
  color: var(--orange);
}

/* --- Team --- */
.team {
  background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
  padding: 100px 0;
}
.team-quote {
  text-align: center;
  color: var(--gray-700);
  font-style: italic;
  font-size: 1.15rem;
  margin: 0 auto 60px;
  max-width: 640px;
}
.team-quote cite {
  display: block;
  color: var(--orange);
  font-weight: 600;
  font-style: normal;
  margin-top: 8px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.team-card:hover::before { transform: scaleX(1); }
.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 8px 20px rgba(33, 65, 98, 0.15);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 4px;
}
.team-role {
  color: var(--gray-700);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* --- Clients --- */
.clients {
  background: var(--white);
  padding: 90px 0;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px 40px;
  align-items: center;
  justify-items: center;
  margin-top: 40px;
}
.client-logo {
  max-width: 140px;
  max-height: 80px;
  width: auto; height: auto;
  filter: grayscale(1) opacity(0.6);
  transition: all var(--transition);
}
.client-logo:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.06);
}

/* --- CTA banner (questionnaire promo) --- */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(32, 174, 255, 0.15) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta-eyebrow {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}
.cta-title {
  color: var(--white);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 22px;
  font-weight: 800;
}
.cta-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin: 0 0 32px;
  line-height: 1.65;
  max-width: 560px;
}
.cta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
  list-style: none;
  padding: 0;
}
.cta-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
}
.cta-features li::before {
  content: "✓";
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.cta-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-visual svg { width: 100%; max-width: 340px; height: auto; }

/* --- Contact section --- */
.contact {
  background: var(--off-white);
  padding: 100px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: stretch;
}
.contact-info {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.contact-block:nth-child(2) .contact-icon { background: var(--orange-soft); color: var(--orange); }
.contact-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  display: block;
  font-weight: 600;
}
.contact-value {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
.contact-value a { color: inherit; }
.contact-value a:hover { color: var(--blue); }
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
}
.contact-map iframe {
  width: 100%; height: 100%; min-height: 400px;
  border: 0;
}

/* --- Support (AnyDesk) --- */
.support {
  background: var(--white);
  padding: 90px 0;
}
.support-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-soft) 0%, var(--white) 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid rgba(32, 174, 255, 0.15);
}
.support-icon-wrap {
  display: flex;
  justify-content: center;
}
.support-icon-wrap a {
  display: block;
  transition: transform var(--transition);
}
.support-icon-wrap a:hover { transform: scale(1.05) rotate(-4deg); }
.support-icon-wrap img { max-width: 180px; }
.support-content h3 {
  color: var(--navy);
  font-size: 1.8rem;
  margin: 0 0 16px;
}
.support-content p {
  color: var(--gray-700);
  font-size: 1.02rem;
  margin: 0 0 20px;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 80px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo img {
  max-width: 180px;
  margin-bottom: 16px;
}
.footer-tagline {
  color: var(--orange);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}
.footer h5 {
  color: var(--white);
  font-size: 1rem;
  margin: 0 0 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}
.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}
.footer a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  margin: 0;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   CBO Icons — animations
   ========================================================================== */

.cbo-icon {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: currentColor;
}
[data-cbo-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
/* Constrain SVG sizes inside common holders so the icon reads correctly */
.hero-card .dot .cbo-icon { width: 22px; height: 22px; }
.contact-icon .cbo-icon { width: 24px; height: 24px; }
.q-intro-icon .cbo-icon { width: 46px; height: 46px; }
.q-info-tile .icn .cbo-icon { width: 22px; height: 22px; }

/* Cards c2 in hero use white icon over orange bg */
.hero-card.c2 .dot { color: #fff; }
.hero-card.c1 .dot { color: var(--blue); }
.hero-card.c3 .dot { color: var(--orange); }

/* pin — bob vertically */
.cbo-icon--pin { animation: cbo-bob 3.4s ease-in-out infinite; transform-origin: center bottom; }
@keyframes cbo-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* phone — pulse rings */
.cbo-pulse { animation: cbo-pulse 1.8s ease-out infinite; transform-origin: 15px 8px; }
.cbo-pulse-2 { animation-delay: 0.4s; }
@keyframes cbo-pulse {
  0% { opacity: 0; transform: scale(0.5); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.15); }
}

/* mail flap — open on hover */
.cbo-mail-flap {
  transform-origin: 12px 7px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-cbo-icon="mail"]:hover .cbo-mail-flap {
  transform: scaleY(-0.5) translateY(2px);
}

/* documents — stack sway */
.cbo-icon--documents rect { transition: transform 0.5s var(--transition); }
[data-cbo-icon="documents"]:hover .cbo-icon--documents rect:first-of-type {
  transform: translate(-1px, -1px);
}
[data-cbo-icon="documents"]:hover .cbo-icon--documents rect:nth-of-type(2) {
  transform: translate(1px, 1px);
}

/* shield — check draws on load */
.cbo-check-anim {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: cbo-draw 0.9s ease-out 0.3s forwards;
}
@keyframes cbo-draw {
  to { stroke-dashoffset: 0; }
}

/* bulb — filament glows */
.cbo-glow {
  animation: cbo-glow 2.4s ease-in-out infinite;
}
@keyframes cbo-glow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; filter: drop-shadow(0 0 4px currentColor); }
}

/* target — outer ring rotates */
.cbo-ring {
  transform-origin: center;
  animation: cbo-spin 22s linear infinite;
}
@keyframes cbo-spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* clock — hands rotate */
.cbo-hand-m {
  transform-origin: 12px 12px;
  animation: cbo-spin 6s linear infinite;
}
.cbo-hand-h {
  transform-origin: 12px 12px;
  animation: cbo-spin 36s linear infinite;
}

/* lock — mini shake occasionally */
.cbo-icon--lock { animation: cbo-shake 6s ease-in-out infinite; }
@keyframes cbo-shake {
  0%, 88%, 100% { transform: translateX(0); }
  90% { transform: translateX(-1.5px); }
  92% { transform: translateX(1.5px); }
  94% { transform: translateX(-1.5px); }
  96% { transform: translateX(1px); }
}

/* plane — glides forward and back */
.cbo-icon--plane {
  animation: cbo-glide 2.6s ease-in-out infinite;
}
@keyframes cbo-glide {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(4px, -4px) rotate(-6deg); }
}

/* --- Scroll-reveal animation base --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--transition), transform 0.9s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* --- Scroll to top button --- */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-4px); background: #ffb61c; }

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 3px solid var(--orange);
}
.cookie-banner.show { display: flex; }
.cookie-banner p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.9rem;
  flex: 1;
  min-width: 220px;
}
.cookie-banner button {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition-fast);
}
.cookie-banner button:hover { background: var(--navy-dark); }

/* --- Responsive --- */
@media (max-width: 960px) {
  .section, .service-block, .contact, .team, .cta-banner, .intro { padding: 70px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .service-inner { grid-template-columns: 1fr; gap: 40px; }
  .service-inner.reverse .service-media { order: 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-visual { max-width: 300px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .support-inner { grid-template-columns: 1fr; padding: 32px; text-align: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .intro-label { writing-mode: horizontal-tb; transform: none; padding: 0; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 32px 24px;
    gap: 22px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-burger { display: flex; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 40px); padding-bottom: 60px; }
  .section-head { margin-bottom: 40px; }
}
