@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --navy: #07111f;
  --navy-2: #0d1b2e;
  --ink: #142033;
  --steel: #3d4f66;
  --muted: #5b6b7f;
  --line: rgba(20, 32, 51, 0.12);
  --paper: #f4f6f9;
  --white: #ffffff;
  --accent: #0b6e99;
  --accent-2: #1487b8;
  --accent-soft: rgba(11, 110, 153, 0.12);
  --gold: #c4a35a;
  --ok: #1f7a4c;
  --shadow: 0 24px 60px rgba(7, 17, 31, 0.18);
  --radius: 4px;
  --nav-h: 76px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.05rem;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(7, 17, 31, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-row {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}

.brand span { font-size: 1.05rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch a {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}

.lang-switch a.active {
  background: var(--accent);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-2); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover { background: #12233a; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(7,17,31,0.25);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: end;
  background: linear-gradient(135deg, #07111f 0%, #0d1b2e 45%, #12324a 100%);
  color: #fff;
  overflow: hidden;
}

.hero-carousel .hero-slides {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.88);
  transform-origin: center center;
  transition:
    opacity 1.6s var(--ease),
    visibility 1.6s var(--ease),
    transform 1.6s var(--ease);
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transform: scale(1);
}

.hero-slide.is-leaving {
  position: absolute;
  opacity: 0;
  visibility: visible;
  z-index: 2;
  transform: scale(1.06);
}

.hero-bg {
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(90deg, rgba(7,17,31,0.9) 0%, rgba(7,17,31,0.58) 48%, rgba(7,17,31,0.3) 100%),
    var(--hero-bg, none) center/cover no-repeat;
  transform: scale(1.08);
  opacity: 0.7;
  transition: transform 7s var(--ease), opacity 1s var(--ease);
}

.hero-slide.is-active .hero-bg {
  transform: scale(1.16) translate3d(-1.2%, -0.8%, 0);
  opacity: 0.85;
  animation: heroDrift 14s var(--ease) infinite alternate;
}

.hero-slide[data-index="1"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 55% at 75% 25%, rgba(196, 163, 90, 0.22), transparent 55%),
    linear-gradient(90deg, rgba(7,17,31,0.92) 0%, rgba(7,17,31,0.6) 50%, rgba(7,17,31,0.28) 100%),
    var(--hero-bg, none) center/cover no-repeat;
}

.hero-slide[data-index="2"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 55% at 72% 18%, rgba(20, 135, 184, 0.35), transparent 55%),
    linear-gradient(90deg, rgba(7,17,31,0.92) 0%, rgba(7,17,31,0.58) 50%, rgba(7,17,31,0.28) 100%),
    var(--hero-bg, none) center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(to top, rgba(7,17,31,0.9), transparent);
  z-index: 2;
  pointer-events: none;
}

@keyframes heroDrift {
  from { transform: scale(1.08) translate3d(0,0,0); }
  to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); }
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 5rem 0 6.5rem;
  max-width: 760px;
}

.hero-slide.is-active .eyebrow,
.hero-slide.is-active h1,
.hero-slide.is-active p,
.hero-slide.is-active .hero-actions {
  animation: heroRise 1.45s var(--ease) both;
}

.hero-slide.is-active h1 { animation-delay: 0.12s; }
.hero-slide.is-active p { animation-delay: 0.22s; }
.hero-slide.is-active .hero-actions { animation-delay: 0.32s; }

@keyframes heroRise {
  from { opacity: 0; transform: scale(0.92); filter: blur(6px); }
  to { opacity: 1; transform: scale(1); filter: none; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.84);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.4rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.hero-dots {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.hero-dot {
  width: 2.4rem;
  height: 0.28rem;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero-dot.is-active {
  background: #fff;
  transform: scaleX(1.08);
}

.hero-nav {
  display: flex;
  gap: 0.5rem;
}

.hero-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(7,17,31,0.35);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-arrow:hover {
  background: rgba(11,110,153,0.85);
  border-color: transparent;
  transform: translateY(-1px);
}

.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.hero-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #5ec8ef);
  transform-origin: left center;
}

.hero-carousel.is-playing .hero-progress span {
  animation: heroProgress var(--hero-ms, 6500ms) linear forwards;
}

@keyframes heroProgress {
  from { width: 0%; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-bg,
  .hero-slide.is-active .eyebrow,
  .hero-slide.is-active h1,
  .hero-slide.is-active p,
  .hero-slide.is-active .hero-actions {
    animation: none !important;
    transition: opacity 0.2s ease !important;
  }
}


.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.band-dark {
  background: var(--navy);
  color: #fff;
}

.band-dark .section-head p { color: rgba(255,255,255,0.72); }

.band-paper { background: var(--paper); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card .media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy-2);
}

.service-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .media img { transform: scale(1.06); }

.service-card .body {
  padding: 1.25rem 1.2rem 1.4rem;
}

.service-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.service-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.service-card .meta span {
  color: var(--accent);
  max-width: 70%;
  line-height: 1.35;
}
.service-card .meta a { color: var(--navy); }

.page-hero {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(20,135,184,0.22), transparent 50%),
    linear-gradient(135deg, #07111f, #12324a);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.split.reverse { grid-template-columns: 0.9fr 1.1fr; }

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.prose p { color: var(--steel); }

.feature-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.feature-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink);
}

.feature-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  flex: 0 0 auto;
  background: var(--accent);
  border-radius: 1px;
}

.quote-block {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.quote-block .who {
  font-weight: 700;
  color: var(--navy);
}

.quote-block .badge {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--ok);
  font-size: 0.9rem;
  font-weight: 600;
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.expert-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.expert-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--paper);
}

.expert-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(20, 32, 51, 0.08);
}

.expert-photo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.expert-photo--kenia img {
  /* Crop out the baked-in black ring in the source image */
  transform: scale(1.12);
  transform-origin: center center;
}

.expert-card h3 {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.expert-card .role {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.expert-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-panel {
  background: var(--navy);
  color: #fff;
  padding: 2rem;
}

.contact-panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
}

.contact-panel a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.contact-panel dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.contact-panel dt {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.2rem;
}

.contact-panel dd {
  margin: 0;
  font-weight: 600;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(20,32,51,0.18);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

textarea { min-height: 140px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(11,110,153,0.35);
  border-color: var(--accent);
}

.field-error, .validation-summary-errors {
  color: #a11;
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

.alert-ok {
  background: #e8f6ee;
  color: var(--ok);
  border: 1px solid rgba(31,122,76,0.25);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(11,110,153,0.95), rgba(7,17,31,0.95)),
    url('/images/services/realtime.jpg') center/cover;
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: rgba(255,255,255,0.85);
}

.site-footer {
  background: #050b14;
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
}

.site-footer a:hover { color: #fff; }

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.level-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.75rem;
}

.training-card .body { padding-top: 1.5rem; }
.training-card .muted { color: var(--muted); font-size: 0.92rem; margin: 0.35rem 0; }
.feature-list.compact { margin-top: 0.85rem; }
.feature-list.compact li { font-size: 0.92rem; }

@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse, .contact-grid, .footer-grid, .experts-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .expert-card { grid-template-columns: 120px 1fr; }
  .expert-card img { width: 120px; height: 120px; }
  .expert-photo { width: 120px; height: 120px; }
}

@media (max-width: 760px) {
  /* Mobile header: burger left, brand nudged slightly toward language switch */
  .nav-row {
    justify-content: space-between;
    gap: 0.65rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 0;
  }

  .brand {
    flex: 1;
    min-width: 0;
    gap: 0.45rem;
    justify-content: center;
    text-align: center;
    transform: translateX(10px);
  }

  .brand img {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-actions {
    margin-left: auto;
    flex-shrink: 0;
  }

  .lang-switch {
    display: flex;
    flex-direction: column;
    border-radius: 0.85rem;
  }

  .lang-switch a {
    padding: 0.28rem 0.55rem;
    text-align: center;
  }

  .nav-links, .nav-actions .btn { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: flex-start;
  }
  .service-grid, .form-grid, .steps { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 4rem; padding-bottom: 7rem; }
  .hero-controls { bottom: 1rem; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
}
