/* ============================================
   TAVLO COMPONENT STYLES - V3
   All values reference tokens only.
   Zero hardcoded color/size values.
   Class names match HTML partials exactly.
   ============================================ */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--dur-fast); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: var(--leading-tight); }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-6); }
.container--narrow { max-width: var(--max-w-text); }

/* ---- SECTION ---- */
.section { padding: var(--section-py) 0; }
.section--alt { background: var(--bg-alt); }
.section--compact { padding: var(--section-py-sm) 0; }
.section__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  color: var(--text);
  margin-bottom: var(--space-6);
}
.section__subtitle {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: var(--max-w-text);
  line-height: var(--leading-relaxed);
}
.section__cta {
  margin-top: var(--space-8);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  color: var(--text);
  margin-bottom: var(--space-6);
  text-align: center;
}

/* ---- PROSE ---- */
.prose p {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}
.prose p:last-child {
  margin-bottom: 0;
}

/* ============================================
   NAVIGATION - .nav-bar
   Matches: nav-global.html, nav-de.html, nav-in.html
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
}
.nav-bar {
  height: var(--nav-height);
  background: var(--bg-glass-solid);
  backdrop-filter: blur(var(--blur-nav));
  -webkit-backdrop-filter: blur(var(--blur-nav));
  border-bottom: var(--border-width) solid var(--border);
  transition: background var(--dur-base);
}
.nav-bar.nav--scrolled {
  background: var(--bg-glass-solid);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img,
.nav-logo .logo-img {
  height: var(--space-6);
  width: auto;
}

/* ---- NAV LINKS (desktop menubar) ---- */
.nav-links {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--dur-fast), background var(--dur-fast);
  text-decoration: none;
  line-height: var(--leading-normal);
}
.nav-link:hover,
.nav-link[aria-expanded="true"] {
  color: var(--accent);
  background: var(--border);
}
.nav-link:focus-visible {
  outline: var(--border-width) solid var(--accent);
  outline-offset: var(--space-1);
  border-radius: var(--radius-sm);
}
.nav-link .icon-chevron-down {
  width: var(--space-3);
  height: var(--space-3);
  transition: transform var(--dur-base) var(--ease-out);
  flex-shrink: 0;
}
.nav-link[aria-expanded="true"] .icon-chevron-down {
  transform: rotate(180deg);
}

/* ---- NAV ACTIONS (right side controls) ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ---- ENTITY SWITCHER ---- */
.entity-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-1);
}
.entity-switcher .icon {
  width: var(--space-4);
  height: var(--space-4);
  color: var(--text-3);
  margin-left: var(--space-1);
}
.entity-pill {
  font-family: var(--font-body);
  font-size: var(--ts-2xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  color: var(--text-3);
  background: transparent;
  transition: all var(--dur-fast) var(--ease-smooth);
  text-decoration: none;
}
.entity-pill:hover {
  color: var(--text);
}
.entity-pill.active {
  background: var(--bg-elevated);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ---- LANGUAGE TOGGLE ---- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-3);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast);
}
.lang-toggle:hover {
  color: var(--text);
}
.lang-label {
  color: inherit;
}
.lang-divider {
  color: var(--text-3);
  opacity: 1;
}
.lang-alt {
  opacity: 1;
}

/* ---- THEME TOGGLE ---- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-8);
  height: var(--space-8);
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.theme-toggle:hover {
  color: var(--text);
  background: var(--border);
}
.theme-toggle .icon {
  width: var(--space-4);
  height: var(--space-4);
}

/* ---- MOBILE HAMBURGER ---- */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--space-8);
  height: var(--space-8);
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: color var(--dur-fast);
}
.nav-hamburger:hover {
  color: var(--text);
}
.nav-hamburger .icon {
  width: var(--space-5);
  height: var(--space-5);
}
.nav-hamburger .icon-close {
  display: none;
}
.nav-hamburger[aria-expanded="true"] .icon-open {
  display: none;
}
.nav-hamburger[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---- GLASS CARD ---- */
.card {
  display: block;
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-glass);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-fast);
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(var(--hover-lift));
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  color: inherit;
}
.card--glass {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur-nav));
  -webkit-backdrop-filter: blur(var(--blur-nav));
}
.card--flat {
  box-shadow: none;
}
.card--flat:hover {
  box-shadow: var(--shadow-sm);
}

/* Card sub-elements (used in de/index.html) */
.card__icon {
  width: var(--space-12);
  height: var(--space-12);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__icon .icon,
.card__icon svg {
  width: var(--space-6);
  height: var(--space-6);
  color: var(--accent);
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text);
  margin-bottom: var(--space-2);
}
.card__desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: var(--leading-relaxed);
}
.card__link {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: var(--border-width) solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-smooth);
  text-decoration: none;
  line-height: var(--leading-normal);
}
.btn .icon {
  width: var(--space-4);
  height: var(--space-4);
}
.btn:focus-visible {
  outline: var(--border-width) solid var(--accent);
  outline-offset: var(--space-1);
}
.btn--primary {
  background: var(--accent);
  color: var(--pal-white);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--pal-white);
  transform: translateY(calc(var(--border-width) * -1));
}
.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn--secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--accent);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--pal-white);
}
.btn--accent {
  background: var(--accent);
  color: var(--pal-white);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--pal-white);
  transform: translateY(calc(var(--border-width) * -1));
}
.btn--pill {
  border-radius: var(--radius-full);
}

/* ---- GRID LAYOUTS ---- */
.grid { display: grid; gap: var(--grid-gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

/* ---- HERO ---- */
.hero {
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-16);
}
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--ts-hero);
  line-height: var(--leading-tight);
  max-width: var(--max-w-text);
}
.hero__headline em {
  font-style: italic;
  color: var(--accent);
}
.hero__sub {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: var(--max-w-text);
  margin: var(--space-6) 0 var(--space-8);
  line-height: var(--leading-relaxed);
}
.hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero__metrics {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: var(--border-width) solid var(--border);
}

/* ---- HERO SLIDER ---- */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-height));
  padding-top: var(--nav-height);
}
.hero-slide {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding: var(--space-16) 0;
}
.hero-slide.active {
  display: flex;
}
.hero-slide__inner {
  max-width: var(--max-w-text);
  text-align: center;
}
.hero-slide__kicker {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.hero-slide__title {
  font-family: var(--font-display);
  font-size: var(--ts-hero);
  line-height: var(--leading-tight);
  color: var(--text);
  margin-bottom: var(--space-6);
}
.hero-slide__desc {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: var(--max-w-text);
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}
.hero-slide__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-slider__controls {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-3);
  z-index: var(--z-base);
}
.hero-slider__dot {
  width: var(--slider-dot-size);
  height: var(--slider-dot-size);
  border-radius: var(--radius-full);
  background: var(--slider-dot-inactive);
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast);
  padding: 0;
}
.hero-slider__dot.active {
  background: var(--slider-dot-active);
  transform: scale(1.3);
}

/* ---- SUB-PAGE HERO ---- */
.sub-hero {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-12);
  text-align: center;
  border-bottom: var(--border-width) solid var(--border);
}
.sub-hero__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.sub-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  color: var(--text);
  margin-bottom: var(--space-4);
  max-width: var(--max-w-text);
  margin-left: auto;
  margin-right: auto;
}
.sub-hero__tagline {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: var(--max-w-text);
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ---- SERVICE CARD ---- */
.service-card {
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-fast);
}
.service-card:hover {
  transform: translateY(var(--hover-lift));
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.service-card__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 500;
}
.service-card__icon {
  width: var(--space-10);
  height: var(--space-10);
  margin: var(--space-3) 0;
  border-radius: var(--radius-md);
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__icon .icon {
  width: var(--space-6);
  height: var(--space-6);
  color: var(--accent);
}
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  margin: var(--space-3) 0 var(--space-2);
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: var(--leading-relaxed);
}

/* ---- SERVICE ROW (alternating layout) ---- */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-6) 0;
  border-bottom: var(--border-width) solid var(--border);
}
.svc-row:last-child { border-bottom: none; }
.svc-row.reverse { direction: rtl; }
.svc-row.reverse > * { direction: ltr; }
.svc-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.svc-visual svg {
  width: 100%;
  max-width: var(--max-w-narrow);
  aspect-ratio: 1;
}
.svc-desc {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: var(--leading-relaxed);
}
.svc-desc .svc-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.svc-desc h4 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text);
  margin-bottom: var(--space-3);
}

/* ---- TRUST LOGO STRIP ---- */
.logo-strip {
  overflow: hidden;
  padding: var(--space-8) 0;
}
.logo-strip__track {
  display: flex;
  gap: var(--space-16);
  animation: marquee var(--marquee-speed) linear infinite;
  width: max-content;
}
.logo-strip__logo {
  height: var(--space-6);
  opacity: 1;
  filter: none;
  transition: all var(--dur-base);
}
.logo-strip__logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ============================================
   PEDIGREE STRIP
   Matches: pedigree-strip.html
   ============================================ */
.pedigree-strip {
  padding: var(--space-12) 0;
  border-top: var(--border-width) solid var(--border);
  border-bottom: var(--border-width) solid var(--border);
}
.pedigree-row {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: var(--border-width) solid var(--border);
}
.pedigree-row:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.pedigree-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-4);
}
.pedigree-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
}
.pedigree-logo {
  height: var(--space-8);
  opacity: 1;
  filter: none;
  transition: all var(--dur-base);
  flex-shrink: 0;
}
.pedigree-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}
.pedigree-caption {
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-top: var(--space-6);
  text-align: center;
  line-height: var(--leading-relaxed);
}

/* ============================================
   CAPABILITIES GRID
   Matches: capabilities-grid.html
   ============================================ */
.capabilities-grid {
  padding: var(--space-12) 0;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}
.cap-col {
  padding: var(--space-6);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--bg-elevated);
  transition: border-color var(--dur-fast);
}
.cap-col:hover {
  border-color: var(--border-hover);
}
.cap-icon {
  width: var(--space-10);
  height: var(--space-10);
  border-radius: var(--radius-md);
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.cap-icon .icon {
  width: var(--space-6);
  height: var(--space-6);
  color: var(--accent);
}
.cap-heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text);
  margin-bottom: var(--space-3);
}
.cap-tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.cap-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-2);
  background: var(--border);
  border-radius: var(--radius-full);
  border: var(--border-width) solid var(--border);
  transition: all var(--dur-fast);
}
.cap-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   DELIVERY PANEL
   Matches: delivery-panel.html
   ============================================ */
.delivery-panel {
  padding: var(--space-12) 0;
}
.delivery-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  border: var(--border-width) solid var(--border);
  background: var(--bg-elevated);
}
.delivery-side {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.delivery-side--de {
  background: var(--bg-elevated);
}
.delivery-side--in {
  background: var(--bg-alt);
}
.delivery-side__badge {
  width: var(--space-10);
  height: var(--space-10);
  border-radius: var(--radius-md);
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.delivery-side__badge .icon {
  width: var(--space-6);
  height: var(--space-6);
  color: var(--accent);
}
.delivery-side__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text);
  margin-bottom: var(--space-2);
}
.delivery-side__role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}
.delivery-side__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.delivery-side__list li {
  font-size: var(--text-sm);
  color: var(--text-2);
  padding-left: var(--space-6);
  position: relative;
  line-height: var(--leading-relaxed);
}
.delivery-side__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--space-2);
  width: var(--space-4);
  height: var(--border-width);
  background: var(--accent);
}
.delivery-arrows {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
}
.delivery-arrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-3);
}
.delivery-arrow .icon {
  width: var(--space-4);
  height: var(--space-4);
  color: var(--accent);
}
.delivery-arrow--left .icon {
  transform: rotate(180deg);
}
.delivery-arrow__label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-3);
}

/* ---- PERSON CARD ---- */
.person-card {
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: border-color var(--dur-fast);
}
.person-card:hover {
  border-color: var(--border-hover);
}
.person-card--featured {
  padding: var(--space-8);
}
.person-card--compact {
  text-align: center;
  padding: var(--space-6);
}
.person-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.person-card__avatar {
  width: var(--space-16);
  height: var(--space-16);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--pal-white);
  background: var(--accent);
  overflow: hidden;
  flex-shrink: 0;
}
.person-card--compact .person-card__avatar {
  margin: 0 auto var(--space-4);
  width: var(--space-12);
  height: var(--space-12);
  font-size: var(--text-base);
}
.person-card__avatar--accent {
  background: var(--accent);
}
.person-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.person-card__name {
  font-weight: 600;
  color: var(--text);
  font-size: var(--text-base);
}
.person-card__role {
  font-size: var(--text-sm);
  color: var(--accent);
}
.person-card__employer {
  font-size: var(--text-xs);
  color: var(--text-3);
  line-height: var(--leading-relaxed);
}
.person-card__bio {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: var(--leading-relaxed);
}
.person-card__bio p {
  margin-bottom: var(--space-3);
}
.person-card__bio p:last-child {
  margin-bottom: 0;
}
.person-card__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.person-card__badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: var(--radius-full);
}
.person-card__links {
  margin-top: var(--space-4);
}
.person-card__links a,
.person-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.person-card__links a:hover,
.person-card__linkedin:hover {
  color: var(--accent);
}
.person-card__links .icon,
.person-card__linkedin .icon {
  width: var(--space-4);
  height: var(--space-4);
}

/* ---- INDUSTRY CARD (used in global/in index.html) ---- */
.industry-card {
  display: block;
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-fast);
}
.industry-card:hover {
  transform: translateY(var(--hover-lift));
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  color: inherit;
}
.industry-card__icon {
  width: var(--space-12);
  height: var(--space-12);
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.industry-card__icon svg {
  width: var(--space-6);
  height: var(--space-6);
  color: var(--accent);
}
.industry-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text);
  margin-bottom: var(--space-2);
}
.industry-card__desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: var(--leading-relaxed);
}

/* ---- CONTACT FORM ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-3);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 var(--space-1) var(--accent-bg);
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6862' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}
.contact-form textarea {
  resize: vertical;
  min-height: var(--space-24);
}
.contact-form input[type="hidden"] {
  display: none;
}
.contact-form__status {
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
}
.contact-form__status.success {
  background: var(--accent-bg);
  color: var(--accent);
}
.contact-form__status.error {
  background: var(--border);
  color: var(--pal-rose);
}

/* ============================================
   CONTACT CTA STRIP
   Matches: contact-cta-strip.html
   ============================================ */
.cta-strip {
  background: var(--accent);
  padding: var(--space-16) 0;
  text-align: center;
}
.cta-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-strip__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--pal-warm-900);
  margin-bottom: var(--space-4);
}
.cta-strip__subtitle {
  font-size: var(--text-lg);
  color: var(--pal-warm-800);
  opacity: 1;
  max-width: var(--max-w-text);
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}
.cta-strip__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}
.cta-strip .btn--cta-dark,
.cta-strip .btn--accent {
  background: var(--pal-white);
  color: var(--accent);
  border-color: var(--pal-white);
}
.cta-strip .btn--accent:hover {
  background: var(--pal-warm-50);
  border-color: var(--pal-warm-50);
}
.cta-strip .btn--outline {
  background: transparent;
  color: var(--pal-white);
  border-color: var(--pal-white);
}
.cta-strip .btn--outline:hover {
  background: var(--pal-white);
  color: var(--accent);
}

/* ---- TESTIMONIAL ---- */
.testimonial { text-align: center; max-width: var(--max-w-text); margin: 0 auto; }
.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--text);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}
.testimonial__quote::before { content: '\201C'; color: var(--accent); }
.testimonial__quote::after { content: '\201D'; color: var(--accent); }
.testimonial__name { font-weight: 600; color: var(--text); }
.testimonial__role { font-size: var(--text-sm); color: var(--text-2); }

/* ---- FAQ ACCORDION ---- */
.faq-item { border-bottom: var(--border-width) solid var(--border); }
.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-lg);
  font-family: var(--font-body);
  background: transparent;
  border: none;
  color: var(--text);
  width: 100%;
  text-align: left;
  transition: color var(--dur-fast);
}
.faq-item__question:hover {
  color: var(--accent);
}
.faq-item__question:focus-visible {
  outline: var(--border-width) solid var(--accent);
  outline-offset: var(--space-1);
  border-radius: var(--radius-sm);
}
.faq-item__question svg {
  flex-shrink: 0;
  width: var(--space-4);
  height: var(--space-4);
  color: var(--text-3);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-item.active .faq-item__question svg {
  transform: rotate(45deg);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
  color: var(--text-2);
  line-height: var(--leading-relaxed);
}
.faq-item.active .faq-item__answer {
  max-height: 500px;
  padding-bottom: var(--space-6);
}

/* ---- DOMAIN ACCORDION ---- */
.domain-accordion {
  border-bottom: var(--border-width) solid var(--border);
}
.domain-accordion__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-6) 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text);
  text-align: left;
  transition: background var(--dur-fast);
}
.domain-accordion__trigger:hover {
  background: var(--border);
  border-radius: var(--radius-md);
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}
.domain-accordion__trigger:focus-visible {
  outline: var(--border-width) solid var(--accent);
  outline-offset: var(--space-1);
  border-radius: var(--radius-md);
}
.domain-accordion__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-10);
  height: var(--space-10);
  border-radius: var(--radius-md);
  background: var(--border);
  flex-shrink: 0;
}
.domain-accordion__icon svg {
  width: var(--space-6);
  height: var(--space-6);
  color: var(--accent);
}
.domain-accordion__name {
  font-size: var(--text-lg);
  font-weight: 600;
  flex: 1;
}
.domain-accordion__count {
  font-size: var(--text-sm);
  color: var(--text-3);
  font-weight: 500;
}
.domain-accordion__chevron {
  width: var(--space-4);
  height: var(--space-4);
  color: var(--text-3);
  transition: transform var(--dur-base) var(--ease-out);
  flex-shrink: 0;
}
.domain-accordion__trigger[aria-expanded="true"] .domain-accordion__chevron {
  transform: rotate(180deg);
}
.domain-accordion__panel { overflow: hidden; }
.domain-accordion__panel[hidden] { display: none; }
.domain-accordion__content { padding: 0 0 var(--space-8) 0; }
.domain-accordion__framing { margin-bottom: var(--space-6); }
.domain-accordion__framing h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
  margin-top: var(--space-4);
}
.domain-accordion__framing h4:first-child { margin-top: 0; }
.domain-accordion__framing p {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: var(--leading-relaxed);
}
.domain-accordion__usecases {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-2);
  background: var(--border);
  border-radius: var(--radius-full);
  border: var(--border-width) solid var(--border);
  transition: all var(--dur-fast);
}
.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- STEP INDICATOR ---- */
.steps { display: flex; gap: var(--space-8); }
.step { flex: 1; text-align: center; }
.step__number {
  width: var(--space-12);
  height: var(--space-12);
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--pal-white);
  font-weight: 600;
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}
.step__title { font-weight: 600; margin-bottom: var(--space-2); color: var(--text); }
.step__desc { font-size: var(--text-sm); color: var(--text-2); }

/* ---- METRIC CALLOUT ---- */
.metric { text-align: center; }
.metric__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--accent);
  line-height: 1;
}
.metric__label {
  font-size: var(--text-sm);
  color: var(--text-2);
  margin-top: var(--space-2);
}

/* ---- CALENDLY CONTAINER ---- */
.calendly-container {
  margin-top: var(--space-8);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: var(--border-width) solid var(--border);
}
.contact-form-toggle { margin-top: var(--space-8); }
.contact-form-toggle summary {
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-2);
  font-weight: 500;
  padding: var(--space-4) 0;
  transition: color var(--dur-fast);
}
.contact-form-toggle summary:hover { color: var(--accent); }

/* ============================================
   COOKIE BANNER
   Matches: cookie-banner.html
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-glass-solid);
  backdrop-filter: blur(var(--blur-nav));
  -webkit-backdrop-filter: blur(var(--blur-nav));
  border-top: var(--border-width) solid var(--border);
  padding: var(--space-6);
  z-index: var(--z-cookie);
  animation: slideUp var(--dur-slow) var(--ease-out);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--text-2);
  max-width: var(--max-w-text);
}
.cookie-banner__link {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}
.cookie-banner__btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: var(--border-width) solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-smooth);
}
.cookie-banner__btn--accept {
  background: var(--accent);
  color: var(--pal-white);
  border-color: var(--accent);
}
.cookie-banner__btn--accept:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.cookie-banner__btn--reject {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.cookie-banner__btn--reject:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* ============================================
   FOOTER
   Matches: footer-global.html, footer-de.html, footer-in.html
   ============================================ */
.site-footer {
  border-top: var(--border-width) solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-8);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
  margin-top: 0;
}
.footer-heading--sub {
  margin-top: var(--space-4);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-3);
  transition: color var(--dur-fast);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }
.footer-social {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-3);
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: color var(--dur-fast);
}
.footer-social a:hover {
  color: var(--accent);
}
.footer-social .icon {
  width: var(--space-5);
  height: var(--space-5);
}
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: var(--border-width) solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copyright {
  font-size: var(--text-xs);
  color: var(--text-3);
}
.footer-contact-email {
  font-size: var(--text-xs);
  color: var(--text-3);
}
.footer-domain {
  font-size: var(--text-xs);
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer-domain:hover { color: var(--accent); }

/* ---- ICON UTILITY ---- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-2); }
.sr-only {
  position: absolute;
  width: var(--border-width);
  height: var(--border-width);
  padding: 0;
  margin: calc(var(--border-width) * -1);
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

/* ---- TABLET (max-width: 1024px) ---- */
@media (max-width: 1024px) {
  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
  .steps {
    flex-wrap: wrap;
  }
  .step {
    flex: 1 1 calc(50% - var(--space-4));
  }
  .delivery-split {
    grid-template-columns: 1fr;
  }
  .delivery-arrows {
    flex-direction: row;
    padding: var(--space-2) var(--space-4);
  }
  .hero__headline {
    font-size: var(--text-4xl);
  }
  .svc-row {
    gap: var(--space-6);
  }
  .hero-slide__title {
    font-size: var(--text-4xl);
  }
}

/* ---- MOBILE (max-width: 768px) ---- */
@media (max-width: 768px) {
  /* Grid */
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: 1fr;
  }
  .cap-grid {
    grid-template-columns: 1fr;
  }

  /* Section */
  .section {
    padding: var(--space-16) 0;
  }
  .section__title {
    font-size: var(--text-2xl);
  }

  /* Navigation: mobile full-screen menu */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    padding: var(--space-8);
    background: var(--bg);
    gap: var(--space-2);
    overflow-y: auto;
    z-index: var(--z-nav);
  }
  .nav-bar.nav--open .nav-links {
    display: flex;
  }
  .nav-hamburger {
    display: flex;
  }

  /* Entity Switcher in mobile */
  .entity-switcher {
    width: 100%;
    justify-content: center;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-12);
  }
  .hero__headline {
    font-size: var(--text-3xl);
  }
  .hero__metrics {
    flex-wrap: wrap;
    gap: var(--space-8);
  }
  .hero__metrics .metric {
    flex: 1 1 calc(50% - var(--space-4));
  }

  /* Hero Slider */
  .hero-slider {
    min-height: auto;
  }
  .hero-slide {
    min-height: auto;
    padding: var(--space-12) 0;
  }
  .hero-slide__title {
    font-size: var(--text-3xl);
  }
  .hero-slider__controls {
    bottom: var(--space-4);
  }

  /* Sub-Hero */
  .sub-hero {
    padding-top: calc(var(--nav-height) + var(--space-10));
    padding-bottom: var(--space-8);
  }
  .sub-hero__title {
    font-size: var(--text-2xl);
  }

  /* Service Row */
  .svc-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .svc-row.reverse {
    direction: ltr;
  }
  .svc-visual {
    padding: var(--space-3);
  }
  .svc-desc h4 {
    font-size: var(--text-lg);
  }

  /* Steps */
  .steps {
    flex-direction: column;
  }
  .step {
    flex: 1 1 100%;
  }

  /* Metric */
  .metric__number {
    font-size: var(--text-3xl);
  }

  /* Delivery Panel */
  .delivery-split {
    grid-template-columns: 1fr;
  }
  .delivery-side {
    padding: var(--space-8);
  }
  .delivery-arrows {
    flex-direction: row;
    padding: var(--space-2) var(--space-4);
  }

  /* CTA Strip */
  .cta-strip {
    padding: var(--space-12) 0;
  }
  .cta-strip__title {
    font-size: var(--text-2xl);
  }
  .cta-strip__actions {
    flex-direction: column;
    align-items: center;
  }

  /* Pedigree Strip */
  .pedigree-logos {
    gap: var(--space-4);
  }
  .pedigree-logo {
    height: var(--space-6);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }
  .footer-col {
    align-items: center;
  }
  .footer-links {
    align-items: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  /* Logo Strip */
  .logo-strip__logo {
    height: var(--space-4);
  }

  /* Domain Accordion */
  .domain-accordion__trigger {
    gap: var(--space-3);
  }
  .domain-accordion__icon {
    width: var(--space-8);
    height: var(--space-8);
  }
  .domain-accordion__name {
    font-size: var(--text-base);
  }
  .domain-accordion__count {
    display: none;
  }

  /* Person Card */
  .person-card__avatar {
    width: var(--space-12);
    height: var(--space-12);
    font-size: var(--text-lg);
  }
  .person-card--compact .person-card__avatar {
    width: var(--space-10);
    height: var(--space-10);
  }

  /* Testimonial */
  .testimonial__quote {
    font-size: var(--text-lg);
  }

  /* Cookie Banner */
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
}

/* ---- LINKEDIN & SOCIAL ICON SIZE FIX ---- */
.footer-social .icon,
.person-card__linkedin .icon {
  width: 20px;
  height: 20px;
}

/* Fix card icon size in grids */
.card .icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: var(--space-4, 1rem);
}

/* Platform/industry card icon override */
.card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: var(--space-4, 1rem);
}

.card__icon .icon {
  width: 100%;
  height: 100%;
}

/* ---- HEADING WEIGHT FIX: size differentiation only, no bold ---- */
.section-title,
.section__title,
h1, h2 {
  font-weight: 400 !important;
}
.page-hero__title {font-weight: 400 !important;}

/* ============================================
   LOGO DISPLAY RULES (single authoritative block)
   ============================================ */

/* Light mode: show logos in their ORIGINAL colors */
.logo-strip__logo,
.pedigree-logo {
  height: 28px;
  width: auto;
  opacity: 1;
  filter: none;
  transition: transform 0.3s;
}
.logo-strip__logo:hover,
.pedigree-logo:hover {
  transform: scale(1.05);
}

/* Dark mode: invert dark logos to white for visibility */
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
  opacity: 1;
}

/* Theme-aware logos (Bosch, Aptiv): JS swaps src, NO CSS filter */
.pedigree-logo.theme-logo,
.logo-strip__logo.theme-logo {
  filter: none !important;
  opacity: 1 !important;
}
  filter: none !important;
  opacity: 1 !important;
}

/* ---- FORCE LIGHT MODE TEXT COLORS ---- */
html, body {
  color: #1A1918 !important;
  background: #FAFAF8 !important;
}
.hero-slide__title {
  color: #1A1918 !important;
}
.hero-slide__desc {
  color: #6B6862 !important;
}
.hero-slide__kicker {
  color: #E39214 !important;
}
.section__title,
.section-title,
h1, h2, h3, h4 {
  color: #1A1918 !important;
}
p, li, span, a {
  color: inherit;
}
.section__label {
  color: #E39214 !important;
}
.section__subtitle,
.section__prose,
.section__prose p {
  color: #6B6862 !important;
}

/* Nav text must be dark */
.nav-link, .nav-item a, .nav-links a, .nav-bar a {
  color: #1A1918 !important;
}
.nav-link:hover, .nav-bar a:hover {
  color: #E39214 !important;
}

/* Nav links centered */
.nav-links {
  justify-content: center !important;
  flex: 1;
}

}
.section--split .container {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 60%;
}
.section--split .section__title {
  text-align: left !important;
}
.section--split .section__label {
  text-align: left;
}
.section--split-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 1;
}
.section--split-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, var(--bg-alt, #F5F4F1), transparent);
}
@media (max-width: 768px) {
  .section--split .container {
    max-width: 100%;
  }
  .section--split-bg {
    display: none;
  }
}

/* FORCE left-align for split sections */
.section--split,
.section--split .container,
.section--split .section__label,
.section--split .section__title,
.section--split h2,
.section--split p,
.section--split .grid {
  text-align: left !important;
}
.section--split .container {
  max-width: 60% !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: var(--space-12) !important;
}
@media (max-width: 768px) {
  .section--split .container {
    max-width: 100% !important;
    padding-left: var(--space-6) !important;
  }
}

/* ---- HERO: left-aligned ---- */
.hero-slide__inner {
  text-align: left !important;
  max-width: var(--max-w) !important;
}
.hero-slide__title {
  text-align: left !important;
}
.hero-slide__desc {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}
.hero-slide__kicker {
  text-align: left !important;
}
.hero-slide__actions {
  justify-content: flex-start !important;
}
.hero-slider__controls {
  justify-content: flex-start !important;
  left: var(--space-12) !important;
  right: auto !important;
  transform: none !important;
}

/* ---- HERO CONTAINER: push left ---- */
.hero-slider .container,
.hero-slide .container {
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: var(--space-12, 3rem) !important;
}
.hero-slide {
  justify-content: flex-start !important;
}

/* ---- HERO TITLE: force single line / 2 lines max ---- */
.hero-slide__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
  white-space: nowrap !important;
}

/* ---- HERO DOTS: center of page ---- */
.hero-slider__controls {
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  justify-content: center !important;
}

/* ---- HERO: 2-line title + right background image ---- */
.hero-slide__title {
  font-size: clamp(2.8rem, 4.5vw, 4rem) !important;
  white-space: normal !important;
  max-width: 600px !important;
  line-height: 1.15 !important;
}
.hero-slider {
  position: relative !important;
  background: var(--bg, #FAFAF8) !important;
}
.hero-slider::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.6) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.6) 100%);
}
.hero-slide {
  position: relative !important;
  z-index: 1 !important;
}
.hero-slider__controls {
  position: relative !important;
  z-index: 2 !important;
}

@media (max-width: 768px) {
  .hero-slider::after {
    width: 100%;
    opacity: 0.15;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .hero-slide__title {
    font-size: 2rem !important;
    max-width: 100% !important;
  }
}

/* ---- HERO: no fade on image, more left margin ---- */
.hero-slider::after {
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 15%) !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 15%) !important;
}
.hero-slider .container,
.hero-slide .container {
  padding-left: clamp(3rem, 8vw, 8rem) !important;
}

/* ---- HERO IMAGE: 25% blend, subtle fade ---- */
.hero-slider::after {
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 25%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.95) 100%) !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 25%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.95) 100%) !important;
}

/* ---- HERO: per-slide backgrounds, remove global ::after ---- */
.hero-slider::after {
  display: none !important;
}
.hero-slide {
  position: relative !important;
}
.hero-slide__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  mask-image: linear-gradient(to right, transparent 0%, transparent 10%, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 75%, rgba(0,0,0,0.9) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 10%, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 75%, rgba(0,0,0,0.9) 100%);
}
/* Flip horizontally + warm filter */
.hero-slide__bg--flip {
  transform: scaleX(-1);
  filter: sepia(0.15) saturate(1.2) brightness(1.05);
}
.hero-slide__inner {
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 768px) {
  .hero-slide__bg {
    width: 100%;
    opacity: 0.15;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* Fix: flipped images need reversed gradient (scaleX flips the mask too) */
.hero-slide__bg--flip {
  mask-image: linear-gradient(to left, transparent 0%, transparent 10%, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 75%, rgba(0,0,0,0.9) 100%) !important;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, transparent 10%, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 75%, rgba(0,0,0,0.9) 100%) !important;
}

/* ---- WHO WE ARE: image left (flipped), text right ---- */
.section--who-we-are {
  position: relative;
  overflow: hidden;
}
.who-we-are__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background-image: url('/assets/images/who-we-are-bg.jpg');
  background-size: cover;
  background-position: center;
  transform: scaleX(-1);
  z-index: 0;
  mask-image: linear-gradient(to left, transparent 0%, transparent 5%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 80%, rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, transparent 5%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 80%, rgba(0,0,0,1) 100%);
}
.who-we-are__content {
  position: relative;
  z-index: 1;
  max-width: 55% !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-right: clamp(3rem, 8vw, 8rem) !important;
  text-align: left !important;
}
.who-we-are__content .section__label,
.who-we-are__content .section__title,
.who-we-are__content .section__subtitle,
.who-we-are__content p {
  text-align: left !important;
  max-width: none !important;
}
@media (max-width: 768px) {
  .who-we-are__bg {
    width: 100%;
    height: 200px;
    position: relative;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, transparent 100%);
  }
  .who-we-are__content {
    max-width: 100% !important;
    padding-right: var(--space-6) !important;
    margin: 0 auto !important;
  }
}

/* Fix: Who We Are gradient - fade to white on the RIGHT side (toward text) */
.who-we-are__bg {
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 40%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.15) 85%, transparent 100%) !important;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 40%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.15) 85%, transparent 100%) !important;
}

/* Fix: Who We Are - gradient blend in the CENTER where image meets text */
.who-we-are__bg {
  width: 55% !important;
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.2) 85%, transparent 95%) !important;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.2) 85%, transparent 95%) !important;
}

/* Fix: Flip first via wrapper, gradient on outer element */
.who-we-are__bg {
  transform: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  background-image: none !important;
  overflow: hidden;
}
.who-we-are__bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/who-we-are-bg.jpg');
  background-size: cover;
  background-position: center;
  transform: scaleX(-1);
}
.who-we-are__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, transparent 50%, rgba(250,250,248,0.3) 65%, rgba(250,250,248,0.7) 80%, rgba(250,250,248,1) 95%);
  z-index: 1;
}

/* Who We Are: image more left, text more right */
.who-we-are__bg {
  width: 50% !important;
  left: 0 !important;
}
.who-we-are__bg::before {
  background-position: left center !important;
}
.who-we-are__content {
  max-width: 48% !important;
  margin-left: auto !important;
  margin-right: 2% !important;
  padding-right: clamp(2rem, 5vw, 5rem) !important;
  padding-left: var(--space-8) !important;
}

/* Who We Are: crop 20% from left, then flip, then gradient */
.who-we-are__bg::before {
  left: -20% !important;
  width: 120% !important;
  transform: scaleX(-1) !important;
  background-position: center !important;
}

/* Who We Are: mobile - hide image, full width text */
@media (max-width: 768px) {
  .who-we-are__bg {
    display: none !important;
  }
  .who-we-are__content {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: var(--space-6) !important;
    padding-right: var(--space-6) !important;
  }
}

/* ---- INDUSTRY CARDS: image-based, 3-col centered ---- */
.industry-grid--centered {
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.industry-card--image {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.05));
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.industry-card--image:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.industry-card__img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.industry-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.industry-card--image:hover .industry-card__img img {
  transform: scale(1.05);
}
.industry-card--image .industry-card__name {
  padding: 1rem 1.25rem 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1A1918;
}
.industry-card--image .industry-card__desc {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.85rem;
  color: #6B6862;
  line-height: 1.5;
}
/* Center the 5th card (last row with 2 empty slots) */
.industry-grid--centered .industry-card--image:last-child:nth-child(3n+1) {
  grid-column: 2;
}
/* Two cards on last row - center them */
.industry-grid--centered .industry-card--image:nth-last-child(2):nth-child(3n+1),
.industry-grid--centered .industry-card--image:nth-last-child(1):nth-child(3n+2) {
  /* Auto-center remaining cards */
}
@media (max-width: 768px) {
  .industry-card__img {
    height: 140px;
  }
}

/* Center last row of industry grid (2 items in 3-col) */
.industry-grid--centered {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 1.5rem !important;
}
.industry-card--image {
  width: calc(33.333% - 1rem);
  min-width: 280px;
}
@media (max-width: 768px) {
  .industry-card--image {
    width: 100%;
  }
}

/* ---- CORE PLATFORM: 2-col cards ---- */
.platform-row__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.platform-row__cards .industry-card--image {
  width: auto;
  min-width: 0;
}
@media (max-width: 768px) {
  .platform-row__cards {
    grid-template-columns: 1fr;
  }
}

/* Crop Computer Vision image - show top 70% */
.industry-card--image[href*="computer-vision"] .industry-card__img img {
  object-position: top !important;
}

/* Fix: Computer Vision image - crop only 10% from bottom */
.industry-card--image[href*="computer-vision"] .industry-card__img img {
  object-position: center 40% !important;
}

/* ---- CAPABILITY CARDS: image + tags ---- */
.cap-card {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.05));
  transition: transform 0.3s, box-shadow 0.3s;
}
.cap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.cap-card__img {
  width: 40%;
  min-height: 200px;
  flex-shrink: 0;
  overflow: hidden;
}
.cap-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cap-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cap-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1A1918;
  margin-bottom: 0.75rem;
}
.cap-card .cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cap-card .cap-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-alt, #F5F4F1);
  border-radius: 100px;
  color: #6B6862;
  font-weight: 500;
}
@media (max-width: 768px) {
  .cap-card {
    flex-direction: column;
  }
  .cap-card__img {
    width: 100%;
    min-height: 150px;
  }
}

/* ---- SOLUTIONS PAGE: consistent section styling ---- */
.section .section__label {
  display: block;
  margin-bottom: 0.5rem;
}
.section .section__title {
  margin-bottom: 2rem;
}
.section .container {
  text-align: left;
}
/* Section headings: consistent left-align */
.section__label,
.section__title {
  text-align: left !important;
}
/* Cards grid: consistent gap */
.grid {
  gap: 1.5rem;
}

/* ============================================
   SOLUTIONS PAGE: Consistent spacing ruleset
   
   Rules:
   - Title + tagline: single line space (0.5rem)
   - Tagline + paragraph: large space (2.5rem)
   - Paragraph + sub-heading (Use Cases/Standards): large space (2.5rem)
   - Sub-heading + content: medium space (1.5rem)
   - Between sections: section padding handles it
   ============================================ */

/* Title to tagline: tight */
.section__title + .section__subtitle {
  margin-top: 0.5rem !important;
}

/* Tagline to prose: generous */
.section__subtitle + .section__prose {
  margin-top: 2.5rem !important;
}

/* Prose paragraphs internal spacing */
.section__prose p {
  margin-bottom: 1rem !important;
}
.section__prose p:last-child {
  margin-bottom: 0 !important;
}

/* Prose to sub-headings (h3): generous */
.section__prose + h3,
.section__subtitle + h3 {
  margin-top: 2.5rem !important;
}

/* Sub-heading to grid/content: medium */
h3 + .grid,
h3 + .pill-row {
  margin-top: 1.5rem !important;
}

/* Grid to next sub-heading: generous */
.grid + h3,
.pill-row + h3 {
  margin-top: 2.5rem !important;
}

/* Sub-headings in solutions: consistent style */
.section h3 {
  font-family: var(--font-body, sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, #E39214);
  margin-bottom: 0 !important;
}

/* Pill row spacing */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: 100px;
  color: #6B6862;
  font-weight: 500;
}

/* Use case cards: consistent */
.card--use-case {
  padding: 1.25rem !important;
}
.card--use-case .card__title {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}
.card--use-case .card__desc {
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  color: #6B6862 !important;
}

/* Section divider between solution sections */
.section + .section {
  border-top: 1px solid var(--border, rgba(0,0,0,0.05));
}

/* ---- SOLUTIONS SECTION HEADER IMAGE ---- */
.section--has-header-img {
  position: relative;
  overflow: hidden;
}
.section__header-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border-radius: 12px;
  max-width: var(--max-w, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}
.section__header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .section__header-img {
    height: 150px;
    margin-bottom: 1.5rem;
  }
}

/* ---- FIX: Reduce section gaps in solutions page ---- */
/* Tighter section padding */
.section {
  padding: 3rem 0 !important;
}
/* Page hero sections (Industries, Core Platform, Applied Intelligence headers) */
.page-hero {
  padding: 2rem 0 1rem !important;
}
/* Header image: less margin */
.section__header-img {
  margin-bottom: 1.5rem !important;
  height: 180px !important;
}
/* Section title spacing */
.section__title {
  margin-bottom: 1rem !important;
}
/* Reduce grid gap after last item to next section */
.grid:last-child,
.pill-row:last-child {
  margin-bottom: 0 !important;
}

/* ---- FIX: First section starts below fixed nav ---- */
main > section:first-child,
main > .page-hero:first-child {
  padding-top: calc(var(--nav-height, 64px) + 2rem) !important;
}

/* ---- FIX: SVG icons in capability cards ---- */
svg.card__icon,
svg.icon.card__icon {
  width: 32px !important;
  height: 32px !important;
  color: #E39214;
  margin-bottom: 0.75rem;
  display: block;
}
/* Cards with icons: ensure icon shows */
.card svg {
  display: block;
  flex-shrink: 0;
}
.card svg.icon {
  width: 28px;
  height: 28px;
  color: #E39214;
  margin-bottom: 0.75rem;
}

/* ---- FIX: Force SVG icon strokes to be visible ---- */
.card__icon,
svg.card__icon,
.card svg.icon {
  stroke: #E39214 !important;
  fill: none !important;
  stroke-width: 1.5px !important;
}
.card__icon *,
svg.card__icon *,
.card svg.icon * {
  stroke: inherit !important;
  fill: inherit !important;
}

/* ============================================
   DEFINITIVE ICON + IMAGE FIX (overrides all above)
   ============================================ */

/* Use case card icons: visible, no background blob */
.card--use-case svg.icon,
.card--use-case .card__icon {
  width: 28px !important;
  height: 28px !important;
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 0.75rem !important;
  display: block !important;
  stroke: #E39214 !important;
  fill: none !important;
  stroke-width: 1.5 !important;
  color: #E39214 !important;
}
/* Force child elements to inherit stroke */
.card--use-case svg.icon *,
.card--use-case .card__icon * {
  stroke: #E39214 !important;
  fill: none !important;
}

/* Capability card icons: same fix */
.cap-card svg.icon,
.card:not(.card--use-case) svg.icon.card__icon {
  width: 28px !important;
  height: 28px !important;
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 0.75rem !important;
  display: block !important;
  stroke: #E39214 !important;
  fill: none !important;
  stroke-width: 1.5 !important;
}
.cap-card svg.icon *,
.card:not(.card--use-case) svg.icon.card__icon * {
  stroke: #E39214 !important;
  fill: none !important;
}

/* Section header images: increase height by 20% */
.section__header-img {
  height: 220px !important;
}

/* Industry card images on landing page: increase height by 20% */
.industry-card__img {
  height: 220px !important;
}

/* Platform card images: increase too */
.platform-row__cards .industry-card__img {
  height: 220px !important;
}

/* All card images: 20% more (220 -> 264px) */
.industry-card__img,
.platform-row__cards .industry-card__img,
.section__header-img,
.cap-card__img {
  height: 264px !important;
}

/* ---- About page cards with images ---- */
.card--link .card__img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.card--link .card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* ---- VALUES PYRAMID: 1 top, 2 middle, 2 bottom ---- */
.values-pyramid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
/* Row 1: 1 card centered */
.values-pyramid .card:nth-child(1) {
  grid-column: 2 / 4;
}
/* Row 2: 2 cards */
.values-pyramid .card:nth-child(2) {
  grid-column: 1 / 3;
}
.values-pyramid .card:nth-child(3) {
  grid-column: 3 / 5;
}
/* Row 3: 2 cards */
.values-pyramid .card:nth-child(4) {
  grid-column: 1 / 3;
}
.values-pyramid .card:nth-child(5) {
  grid-column: 3 / 5;
}
.values-pyramid .card {
  text-align: center;
}
@media (max-width: 768px) {
  .values-pyramid {
    grid-template-columns: 1fr;
  }
  .values-pyramid .card:nth-child(n) {
    grid-column: 1;
  }
}

/* ---- Vision page: hero starts right at nav, no gap ---- */
.section--who-we-are:first-child,
main > .section--who-we-are:first-of-type {
  padding-top: var(--nav-height, 64px) !important;
  margin-top: 0 !important;
}
/* Override the generic first-section rule that adds extra gap */
main > .section--who-we-are:first-child {
  padding-top: var(--nav-height, 64px) !important;
}

/* ---- DEFINITIVE FIX: Landing page hero NO gap, Vision page hero NO tuck ---- */

/* Landing page: hero background image starts right at nav bottom edge */
.hero-slider {
  margin-top: 0 !important;
}
main > .hero-slider:first-child {
  padding-top: var(--nav-height, 64px) !important;
}

/* Vision/about pages: who-we-are section starts below nav, image visible */
main > section:first-child.section--who-we-are {
  padding-top: calc(var(--nav-height, 64px) + 0px) !important;
}
.section--who-we-are .who-we-are__bg {
  top: 0 !important;
}

/* Remove the old conflicting rules */
main > section:first-child,
main > .page-hero:first-child {
  padding-top: var(--nav-height, 64px) !important;
}

/* Crop Safety-Critical capability card image - show left 75% */
.cap-card:first-child .cap-card__img img {
  object-position: left center !important;
}

/* Safety card image: crop 20% from right */
.cap-card:first-child .cap-card__img img {
  object-position: 20% center !important;
}

/* Gap between capability card title and tags */
.cap-card__title {
  margin-bottom: 1rem !important;
}

/* ---- Expertise section: space between heading and cards ---- */
#capabilities .section__title {
  margin-bottom: 2.5rem !important;
}

/* More gap between cap card title and tags */
.cap-card__title {
  margin-bottom: 1.5rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

/* Remove separator, just clean gap */
.cap-card__title {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 1.25rem !important;
}

/* ---- DEFINITIVE: gap between cap card title and tags ---- */
.cap-card__content h3 {
  margin-bottom: 1.25rem !important;
}
.cap-card__content .cap-tags {
  margin-top: 1.25rem !important;
}

/* ---- HERO SLIDER: Navigation arrows ---- */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A1918;
  transition: all 0.2s;
}
.hero-slider__arrow:hover {
  background: #fff;
  border-color: rgba(0,0,0,0.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.hero-slider__arrow--prev {
  left: 2rem;
}
.hero-slider__arrow--next {
  right: 2rem;
}
.hero-slider__arrow svg {
  stroke: #1A1918 !important;
  fill: none !important;
  width: 20px;
  height: 20px;
}
@media (max-width: 768px) {
  .hero-slider__arrow {
    width: 36px;
    height: 36px;
  }
  .hero-slider__arrow--prev {
    left: 1rem;
  }
  .hero-slider__arrow--next {
    right: 1rem;
  }
}

/* ---- FIX: Arrows must be above slides ---- */
.hero-slider__arrow {
  z-index: 10 !important;
  pointer-events: auto !important;
}
.hero-slider {
  position: relative !important;
}

/* Ensure arrow button SVG doesn't block clicks */
.hero-slider__arrow svg {
  pointer-events: none !important;
}
.hero-slider__arrow path {
  pointer-events: none !important;
}

/* ============================================
   MOBILE NAV FIX
   ============================================ */
@media (max-width: 768px) {
  /* Show hamburger */
  .nav-hamburger {
    display: flex !important;
  }

  /* Hide nav links by default, show when open */
  .nav-links {
    display: none !important;
    position: fixed;
    top: var(--nav-height, 64px);
    left: 0;
    right: 0;
    bottom: 0;
    background: #FAFAF8;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 9998;
  }
  .nav-bar.nav--open .nav-links {
    display: flex !important;
  }

  /* Nav items stack vertically */
  .nav-links .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .nav-links .nav-link {
    width: 100%;
    padding: 1rem 0 !important;
    justify-content: space-between;
    font-size: 1.1rem !important;
  }

  /* Mega panel: accordion style on mobile */
  .mega-panel {
    position: static !important;
    min-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 0 1rem !important;
    margin: 0 !important;
    max-height: 0;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: max-height 0.3s ease;
    background: transparent !important;
  }
  .mega-panel.is-open {
    max-height: 800px !important;
    padding-bottom: 1rem !important;
  }

  /* Mega grid: single column on mobile */
  .mega-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  /* Mega heading */
  .mega-heading {
    margin-top: 0.75rem !important;
    padding-top: 0.5rem;
  }

  /* Mega items */
  .mega-col ul li a {
    padding: 0.6rem 0 !important;
    font-size: 0.9rem !important;
  }
}

/* ============================================
   SOLUTIONS DROPDOWN: Scrollbar
   ============================================ */
.mega-panel[aria-label="Solutions"] {
  max-height: 70vh;
  overflow-y: auto;
}
.mega-panel[aria-label="Solutions"]::-webkit-scrollbar {
  width: 4px;
}
.mega-panel[aria-label="Solutions"]::-webkit-scrollbar-track {
  background: transparent;
}
.mega-panel[aria-label="Solutions"]::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
}
.mega-panel[aria-label="Solutions"]::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.3);
}

/* ---- MOBILE NAV: z-index above everything ---- */
@media (max-width: 768px) {
  .nav-bar {
    z-index: 99999 !important;
  }
  .nav-bar.nav--open .nav-links {
    z-index: 99998 !important;
    background: #FAFAF8 !important;
  }
  .mega-panel {
    z-index: 99997 !important;
    background: #FAFAF8 !important;
  }
}

/* ============================================
   DEFINITIVE Z-INDEX HIERARCHY (mobile)
   Nav open > Nav bar > Arrows > Hero slides > Content
   ============================================ */
@media (max-width: 768px) {
  /* Hero slider and all children: LOW z-index */
  .hero-slider {
    z-index: 1 !important;
    position: relative !important;
  }
  .hero-slide,
  .hero-slide__bg,
  .hero-slide__inner {
    z-index: 1 !important;
  }
  .hero-slider__arrow {
    z-index: 2 !important;
  }
  .hero-slider__controls {
    z-index: 2 !important;
  }

  /* Nav bar: ALWAYS on top */
  .site-header,
  .nav-bar {
    position: fixed !important;
    z-index: 100000 !important;
  }

  /* Open nav overlay: just below nav bar, above everything else */
  .nav-bar.nav--open .nav-links {
    position: fixed !important;
    z-index: 99999 !important;
    background: #FAFAF8 !important;
    opacity: 1 !important;
  }

  /* Mega panels inside open nav */
  .nav-bar.nav--open .mega-panel {
    z-index: 99998 !important;
    background: #F5F4F1 !important;
  }
  .nav-bar.nav--open .mega-panel.is-open {
    background: #F5F4F1 !important;
  }
}

/* ============================================
   MOBILE NAV: PROPER LAYOUT FIX
   ============================================ */
@media (max-width: 768px) {
  /* Nav bar: logo left, hamburger right */
  .nav-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Hide desktop nav actions except hamburger */
  .nav-actions {
    display: flex !important;
    align-items: center !important;
  }

  /* Hamburger: proper positioning */
  .nav-hamburger {
    position: relative !important;
    z-index: 100001 !important;
    width: 40px !important;
    height: 40px !important;
    background: none !important;
    border: none !important;
  }
  .nav-hamburger .icon {
    width: 24px !important;
    height: 24px !important;
    stroke: #1A1918 !important;
  }

  /* Nav links overlay: FULL SCREEN below nav */
  .nav-links {
    position: fixed !important;
    top: var(--nav-height, 64px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: #FAFAF8 !important;
    flex-direction: column !important;
    padding: 1.5rem !important;
    overflow-y: auto !important;
    z-index: 100000 !important;
    display: none !important;
  }
  .nav-bar.nav--open .nav-links {
    display: flex !important;
  }

  /* Hero slider: stays below nav */
  .hero-slider {
    z-index: 0 !important;
  }
  .hero-slider__arrow {
    z-index: 1 !important;
  }
}

/* ============================================
   FINAL MOBILE NAV — OVERRIDES EVERYTHING
   ============================================ */
@media (max-width: 768px) {
  header.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    background: #FAFAF8 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  }
  .nav-bar {
    width: 100% !important;
    z-index: 999999 !important;
  }
  .nav-inner {
    width: 100% !important;
    padding: 0 1rem !important;
  }
  ul.nav-links {
    display: none !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    background: #FAFAF8 !important;
    z-index: 999998 !important;
    flex-direction: column !important;
    padding: 1rem !important;
    overflow-y: auto !important;
    margin: 0 !important;
    list-style: none !important;
  }
  .nav-bar.nav--open ul.nav-links {
    display: flex !important;
  }
  .nav-bar.nav--open .mega-panel.is-open {
    position: static !important;
    width: 100% !important;
    background: #F0EFEC !important;
    z-index: 999997 !important;
    max-height: 500px !important;
    overflow-y: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    padding: 0.5rem 0 0.5rem 1rem !important;
    border-radius: 8px !important;
    margin-top: 0.5rem !important;
  }
  section.hero-slider {
    z-index: 0 !important;
  }
}

/* Fix: Vision page body needs nav offset */
body {
  padding-top: var(--nav-height, 64px);
}
/* Hero slider should NOT double-offset (it already accounts for nav) */
.hero-slider {
  margin-top: calc(-1 * var(--nav-height, 64px));
}

/* Landing pages with hero slider: no body padding gap */
body.page--has-hero {
  padding-top: 0 !important;
}
body.page--has-hero .hero-slider {
  margin-top: 0 !important;
}

/* Fix: Porsche and FCA logos bigger, Bosch rivit visible */
.pedigree-logo[alt="Porsche"],
.pedigree-logo[alt="FCA / Stellantis"] {
  height: 48px !important;
}
/* Bosch dark logo: use the dark variant which has black rivit */
.pedigree-logo.theme-logo[alt="Bosch"] {
  height: 36px !important;
}

/* Fix: Porsche and FCA vertically centered with other logos */
.pedigree-logo[alt="Porsche"],
.pedigree-logo[alt="FCA / Stellantis"] {
  height: 48px !important;
  vertical-align: middle !important;
  align-self: center !important;
}
.logo-strip__track {
  align-items: center !important;
}

/* ---- PERFORMANCE: smooth scrolling + rendering hints ---- */
html {
  scroll-behavior: smooth;
}
img {
  content-visibility: auto;
}
.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* Contact page: minimal top padding */
body.page--contact {
  padding-top: var(--nav-height, 64px) !important;
}

/* Contact page: no extra first-section padding */
body.page--contact main > section:first-child {
  padding-top: 1rem !important;
}
body.page--contact .page-hero {
  padding-top: 0.5rem !important;
  padding-bottom: 1rem !important;
}

/* Fix: disable content-visibility on sections with anchor IDs (breaks scroll-to-anchor) */
.section[id] {
  content-visibility: visible !important;
  contain-intrinsic-size: auto !important;
}

/* Cookie banner: ensure visible above content, below nav */
.cookie-banner {
  z-index: 99990 !important;
  background: #FAFAF8 !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08) !important;
}
.cookie-banner__inner {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
}
.cookie-banner__text {
  flex: 1;
  font-size: 0.85rem;
  color: #6B6862;
  min-width: 200px;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
}
.cookie-banner__btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid;
  font-family: inherit;
}
.cookie-banner__btn--accept {
  background: #E39214;
  color: #fff;
  border-color: #E39214;
}
.cookie-banner__btn--reject {
  background: transparent;
  color: #6B6862;
  border-color: rgba(0,0,0,0.15);
}

/* ---- Language Toggle ---- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6B6862;
}
.lang-label {
  color: #A8A59E;
}
.lang-label.lang-active {
  color: #1A1918;
}
.lang-divider {
  color: #C8C5BF;
}
.lang-toggle:hover {
  border-color: rgba(0,0,0,0.2);
}
