/* =====================================================
   PROVADIT - Styles (Identity Guide v2)
   Enterprise IT Consulting & QA Software Testing
   ===================================================== */

/* ---- Base / Reset (tokens-driven) ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;          /* Native smooth scroll as fallback */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-surface-white);
  margin: 0;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
input, button, textarea { font: inherit; color: inherit; }

/* ---- Accessibility: skip-link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-s);
  z-index: var(--z-toast);
  padding: var(--space-2xs) var(--space-s);
  background: var(--color-crimson-accent);
  color: var(--color-text-safe-light);
  border-radius: var(--radius-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-2xs);
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---- Focus rings (WCAG AA) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--space-l);
  background-color: var(--color-surface-header);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Subtle crimson accent between the header and the main content —
   center-weighted, fades out at both edges so it reads as a quiet mark, not a bar */
.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  opacity: 0.6;
  background: linear-gradient(90deg, transparent 0%, var(--color-crimson-accent) 25% 75%, transparent 100%);
}

/* Improved header with refined typography */
.header__logo-img {
  max-width: 140px;
  height: auto;
}

.header__brand { display: flex; align-items: center; gap: var(--space-m); }

/* ---- Logo (shared across header / footer) ---- */
.logo,
.header__logo-img,
.footer__logo {
  height: 32px;
  width: auto;
  vertical-align: middle;
  object-fit: contain;
}
.header__logo-img { max-width: 140px; }
.footer__logo    { max-width: 140px; height: 28px; }

/* Hamburger */
.hamburger {
  display: none;               /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-3xs);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2xs);
}
.hamburger span,
.hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-spring),
              opacity var(--duration-fast) var(--ease-out);
}

/* ---- Navigation ---- */
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-l);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--text-on-marine-soft);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: .01em;
  padding: var(--space-3xs) 0;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-crimson-accent);
  transition: width var(--duration-normal) var(--ease-spring);
}

.nav__link:hover {
  color: var(--text-on-marine);
}
.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--color-crimson-accent);
  color: var(--color-text-safe-light);
  padding: var(--space-2xs) var(--space-m);
  border-radius: var(--radius-md);
  font-weight: var(--weight-semibold);
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-spring);
}
.nav__link--cta:hover {
  background: var(--brand-crimson-dark);
  transform: translateY(-1px);
}
.nav__link--cta::after { display: none; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-marine);
  /* Refined gradient - marine deep to mid-tone only */
  background-image: var(--gradient-marine-soft);
  color: var(--text-on-marine);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  pointer-events: none;
  z-index: 1;
}

/* Move content above grid and overlay */
.hero__content,
.hero__brandmark {
  z-index: 2;
  position: relative;
}

/* Hero background image layer (set inline on .hero) */
.hero::after {
  /* .hero::after is set by JS when hero-bg.jpg exists */
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  text-align: center;
  padding: var(--space-2xl) var(--space-l);
}

/* Subtle brand watermark in hero - centered square P logo at low opacity */
.hero__brandmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  z-index: 0;
  opacity: 0.04;
  pointer-events: none;
}
.hero__brandmark img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 768px) {
  .hero__brandmark { width: 280px; height: 280px; }
}

/* Eyebrow - WCAG AA safe on dark bg: gold = ~10.5:1 */
.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-highlight);
  margin-bottom: var(--space-m);
}

/* Refined hero heading */
.hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -.02em;   /* Tight premium heading tracking */
  margin-bottom: var(--space-m);
}

.hero__sub {
  font-size: clamp(var(--text-lg), 1.5vw, var(--text-xl));
  line-height: var(--leading-relaxed);
  color: var(--text-on-marine-soft);
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

.hero__ctas { display: flex; gap: var(--space-m); justify-content: center; flex-wrap: wrap; }

/* Enhanced hero styling */
.hero__content {
  padding: var(--space-3xl) var(--space-l);
}

/* =====================================================
   BUTTONS (CTA hierarchy)
   Primary = Crimson | Secondary = Ghost | Tertiary = Text link
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-s) var(--space-l);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) var(--ease-out);
}

/* --- Primary action (strongest emphasis) --- */
.btn--primary {
  background: var(--color-crimson-accent);
  color: var(--color-text-safe-light);
  border-color: var(--color-crimson-accent);
}
.btn--primary:hover {
  background: var(--brand-crimson-dark);
  border-color: var(--brand-crimson-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(191,19,60,.35);
}

/* --- Secondary action (clearly interactive but quieter) --- */
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--text-on-marine);
}
.btn--ghost:hover {
  border-color: var(--text-on-marine);
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}

/* --- Ghost variant for light surfaces (personal card, white backgrounds) --- */
.btn--ghost-linkedin {
  background: transparent;
  border-color: var(--color-crimson-accent);
  color: var(--color-crimson-accent);
}
.btn--ghost-linkedin:hover {
  background: var(--color-crimson-accent);
  border-color: var(--brand-crimson-dark);
  color: var(--color-text-safe-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(191,19,60,.35);
}

/* --- Large variant --- */
.btn--lg {
  padding: var(--space-m) var(--space-2xl);
  font-size: var(--text-base);
  min-width: 180px;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
  padding: var(--space-3xl) 0;
}
.section--centered { text-align: center; }

/* Dark surface section (alternative to full-page gradients) */
.section--dark {
  background-color: var(--surface-marine);
  color: var(--text-on-marine);
}

.section__header { margin-bottom: var(--space-2xl); }

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -.02em;   /* Tight premium heading tracking */
  color: var(--color-text-on-white);
  margin-bottom: var(--space-s);
}

/* Dark surface override - ensure all text is visible on dark sections */
.section--dark .section__title {
  color: var(--text-on-marine);
}

.section__desc {
  font-size: clamp(var(--text-lg), 1.5vw, var(--text-xl));
  color: var(--color-text-primary);
  max-width: 640px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* Dark surface override - ensure section descriptions are readable on dark sections */
.section--dark .section__desc {
  color: var(--text-on-marine);
}

 /* Refined container with improved max-width and responsive adjustments */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-l);
}
.container--narrow {
  max-width: 960px;
}

/* =====================================================
   CARDS (service & insights) - restrained differentiation
   ===================================================== */
.cards-grid {
  display: grid;
  gap: var(--space-l);
  /* Desktop-first: 4-column */
  grid-template-columns: repeat(4, 1fr);
}
.cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---- Card shared ---- */
.card {
  position: relative;
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-l);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-spring),
              border-color var(--duration-normal) var(--ease-out);
}

/* Enhanced card styling with more consistent depth */
.card--accent {
  border-left: 4px solid transparent;
  padding: var(--space-xl) var(--space-l);
}
.card--border {
  border-top: 3px solid var(--color-crimson-accent);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-xl) var(--space-l);
}

/* Case study cards - crimson left border, subtle warm tint */
.card--case {
  border-left: 4px solid var(--color-crimson-accent);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-xl) var(--space-l);
  overflow: hidden;
}

/* Use-case banner media (full-bleed header image in case cards) */
.card-case-media {
  display: block;
  width: calc(100% + 2 * var(--space-l));
  max-width: none;
  height: 190px;
  object-fit: cover;
  object-position: center;
  margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-l)) var(--space-m);
}
@media (max-width: 768px) {
  .card-case-media { height: 150px; }
}

/* Refined card styling for more consistent spacing */
.card__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: -.01em;   /* Tighter sub-head tracking */
  color: var(--color-text-on-white);
  margin-bottom: var(--space-s);
}

.card__body {
  font-size: clamp(var(--text-sm), 1.2vw, var(--text-base));
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--space-m);
  flex-grow: 1;
}

/* Card link */
.card__link, .card__link--sm {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-brand-accent);
  text-decoration: none;
  padding-bottom: 2px;
  /* Animated underline reveal */
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size var(--duration-normal) var(--ease-spring),
              gap var(--duration-normal) var(--ease-spring);
}
.card__link:hover, .card__link--sm:hover {
  background-size: 100% 1.5px;
  gap: 6px;
}

/* Enhanced card hover effect */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card--accent:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--color-crimson-accent);
    border-top-color: var(--border-subtle);
    border-right-color: var(--border-subtle);
  }
  .card--border:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
  }
}

/* Refine section spacing */
.section {
  padding: var(--space-3xl) 0;
}

/* ---- Why PROVADIT - Architectural matrix / manifesto (light bg) ---- */
.why-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl) var(--space-3xl);
}

.why-item {
  position: relative;
}

/* Crimson numbered label - positioned top-left of each item */
.why-num {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: .12em;
  line-height: 1;
  color: var(--brand-crimson);
  margin-bottom: var(--space-s);
}

.why-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: -.01em;
  color: var(--color-text-on-white);
  margin-bottom: var(--space-2xs);
}

.why-desc {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin: 0;
}

/* Tablet: stack to single column, no dividers */
@media (max-width: 1024px) {
  .why-matrix {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .why-item + .why-item { padding-top: var(--space-xl); }
}

/* Mobile: same as tablet but tighter spacing */
@media (max-width: 768px) {
  .why-matrix {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .why-item + .why-item { padding-top: var(--space-xl); }
  .why-num { margin-bottom: var(--space-xs); font-size: var(--text-xs); }
}

/* =====================================================
   CLIENT LOGO STRIP
   ===================================================== */
.logos-section {
  padding: var(--space-2xl) 0;
  background: var(--color-surface-light);
}
.logos-section__label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.logos-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}
.logos-strip__item { opacity: .45; transition: opacity var(--duration-normal) var(--ease-out); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .logos-strip__item:hover { opacity: .80; }
}

/* === INDUSTRY GRID - extracted from inline styles === */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-m);
  text-align: center;
}

.industry-cell {
  padding: var(--space-xl) var(--space-s);
  background: var(--color-surface-white);
  border-radius: var(--radius-md);
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 2px solid var(--color-crimson-accent);
}

.industry-icon {
  display: block;
  margin: 0 auto var(--space-s);
  color: var(--brand-marine-dark);
}

.industry-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-white);
  margin: 0;
}

/* =====================================================
   STATS ROW
   ===================================================== */
.stats-section {
  background: var(--color-surface-dark);
  color: var(--text-on-marine);
}
.stats-row {
  display: grid;
  /* 4-column on desktop */
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-l);
  text-align: center;
}
.stat-item__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4vw, 3.5rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -.02em;   /* Tighter major-number tracking */
  color: var(--accent-highlight);
}
.stat-item__unit { font-size: .6em; }
.stat-item__label {
  display: block;
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  letter-spacing: .04em;
  color: var(--color-text-on-marine-muted);
}

/* =====================================================
   CTA SECTION (solid marine with crimson top accent)
   ===================================================== */
.cta-section {
  background-color: var(--surface-marine);
  border-top: 2px solid var(--brand-crimson);
  color: var(--text-on-marine);
}
.cta-section__inner { text-align: center; margin-bottom: var(--space-2xl); }

.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -.02em;   /* Tight premium heading tracking */
  margin-bottom: var(--space-s);
}

.cta-section__desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.88);
  max-width: 540px;
  margin: 0 auto;
}

/* CTA Form */
.cta-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-m);
  max-width: 640px;
  margin: 0 auto;
}

/* Centered form - fields & button aligned to center */
.centered-form {
  align-items: center;
  justify-content: center;
}
.centered-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-s);
  max-width: 640px;
  justify-content: center;
  width: 100%;
}
.centered-btn {
  align-self: center;
  justify-content: center;
}

/* Mailto CTA block (replaces former contact forms) */
.cta-mailto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-l);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-s);
}

.cta-form input {
  padding: var(--space-s) var(--space-m);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: var(--radius-md);
  color: var(--text-on-marine);
  font-size: var(--text-base);
}
.cta-form input::placeholder { color: rgba(255,255,255,.45); }
.cta-form input:focus {
  background: rgba(255,255,255,.15);
  border-color: var(--color-crimson-accent);
  box-shadow: 0 0 0 3px rgba(191,19,60,.4);
}

/* =====================================================
   FOOTER (structural conclusion)
   ===================================================== */
.footer {
  background: var(--color-surface-footer);
  color: var(--color-text-on-marine-muted);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: -.01em;   /* Tighter sub-heading tracking */
  color: var(--text-on-marine-soft);
  margin-bottom: var(--space-m);
}

.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: var(--space-2xs); }
.footer__links a {
  color: rgba(255,255,255,.70);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-out);
}
.footer__links a:hover { color: var(--brand-crimson-bright); }

.footer__social {
  display: flex;
  gap: var(--space-s);
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__social svg { stroke: rgba(255,255,255,.70); transition: stroke var(--duration-fast) var(--ease-out); }
.footer__social a:hover svg { stroke: var(--brand-crimson-bright); }

.footer__contact-email a {
  color: var(--brand-crimson-bright);
  text-decoration: none;
}
.footer__tagline {
  font-size: var(--text-xs);
  margin-top: var(--space-s);
  line-height: var(--leading-normal);
  color: rgba(255,255,255,.70);
  position: relative;
  padding-left: 16px;
}
.footer__tagline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--brand-crimson);
  border-radius: var(--radius-full);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: var(--space-m);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-on-marine-muted);
}

/* =====================================================
   SCROLL ANIMATIONS (transform + opacity only)
   Content is visible by default - the animation layer
   adds a subtle entrance effect without hiding content.
   ===================================================== */

/* ---- Reduced motion: no transition at all ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Users who prefer motion: animate on scroll only ---- */
@media (prefers-reduced-motion: no-preference) {
  /* Start slightly offset - IntersectionObserver adds '.animate' to slide up into view. */
  .fade-in,
  .slide-up {
    opacity: 0;
    transform: translateY(24px);
  }

  .fade-in.animate,
  .slide-up.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-spring);
  }
}

/* ---- Fallback for users without the media query or late JS load: visible ---- */
.fade-in,
.slide-up {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* =====================================================
   RESPONSIVE - TABLET (≤1024px)
   ===================================================== */
@media (max-width: 1024px) {
  /* Grid collapses from 4 to 3 */
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }

  /* Stats collapse to 2x2 */
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }

  /* Footer collapses from 4-col to 3-col + wrap */
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   RESPONSIVE - MOBILE (≤768px)
   ===================================================== */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav */
  .hamburger { display: flex; }
  .nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface-header);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--space-m) 0;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--duration-slow) var(--ease-spring),
                opacity var(--duration-normal) var(--ease-out),
                visibility var(--duration-normal) var(--ease-out);
  }
  .nav__list.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__link {
    display: block;
    padding: var(--space-s) var(--space-l);
    font-size: var(--text-base);
  }
  .nav__link::after { display: none; }   /* underline unnecessary in mobile */
  .nav__link--cta {
    margin: var(--space-m) var(--space-l);
    text-align: center;
  }

  /* Hero */
  .hero__content { padding: var(--space-xl) var(--space-m); }
  .hero__sub { font-size: var(--text-base); }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }

  /* Sections */
  .section { padding: var(--space-2xl) 0; }
  .container { padding: 0 var(--space-m); }

  /* Grid collapse to single column */
  .cards-grid,
  .cards-grid--3 { grid-template-columns: 1fr; }

  /* Stats 2-column */
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  /* Form rows stack */
  .form-row { grid-template-columns: 1fr; }
  .centered-row { grid-template-columns: 1fr; max-width: 320px; }

  /* Footer single-col */
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .logos-strip { flex-direction: column; gap: var(--space-m); }
}

/* =====================================================
   SMALL MOBILE (≤480px)
   ===================================================== */
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .header { padding: 0 var(--space-m); }
}

/* =====================================================
   PRINT (minimal, clean)
   ===================================================== */
@media print {
  .header, .hamburger, .footer, .cta-section,
  .logos-section, .card__link::after { display: none; }
  body { color: #000; background: #fff; }
}

/* =====================================================
   SR-only (screen-reader only)
   ===================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* =====================================================
   IMPRINT - simple vertical blocks (crimson-underlined headings)
   ===================================================== */

.imprint-content { display: flex; flex-direction: column; gap: var(--space-2xl); }

.imprint-block__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-s);
  padding-bottom: var(--space-2xs);
  border-bottom: 1.5px solid var(--color-crimson-accent);
}

.imprint-block__body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin: 0;
}

.imprint-block__body p {
  margin-bottom: var(--space-s);
}
.imprint-block__body p:last-child {
  margin-bottom: 0;
}

/* Long legal paragraphs - controlled reading measure */
.imprint-block__body > p:last-child:only-child,
.imprint-block__body > p:last-child {
  max-width: 68ch;
}

.imprint-block__body a {
  color: var(--color-text-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Section divider - subtle crimson accent */
.imprint-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-subtle) 15%, var(--color-crimson-accent) 50%, var(--border-subtle) 85%, transparent);
  margin: var(--space-l) 0;
}

@media (max-width: 768px) {
  .imprint-block__title {
    font-size: var(--text-base);
  }
}

/* =====================================================
   UTILITY CLASSES (brand-identity shortcuts)
   ===================================================== */

/* -- WCAG Safe Text Colour Utilities -- */
.text-safe { color: var(--color-text-safe-dark); }        /* On light bg - ~16:1 */
.bg-safe { background-color: var(--color-surface-white); }  /* Pure white surface */

/* -- Text colour utilities -- */
.text-primary { color: var(--color-text-primary) !important; }
.text-brand   { color: var(--color-brand-accent) !important; }
.text-muted   { color: var(--color-text-muted) !important; }
.text-white   { color: var(--text-on-marine) !important; }
.text-highlight { color: var(--accent-highlight) !important; }

/* -- Background colour utilities -- */
.bg-marine    { background-color: var(--surface-marine) !important; }
.bg-crimson   { background-color: var(--color-crimson-accent) !important; }
.bg-warm      { background-color: var(--surface-warm) !important; }
.bg-light     { background-color: var(--color-surface-subtle) !important; }
.bg-gradient-marine  { background-image: var(--gradient-marine) !important; }
.bg-gradient-crimson { background-image: var(--gradient-crimson) !important; }

/* -- Font-weight utilities -- */
.weight-light    { font-weight: var(--weight-light); }
.weight-semibold { font-weight: var(--weight-semibold); }
.weight-bold     { font-weight: var(--weight-bold); }
.weight-black    { font-weight: var(--weight-black); }

/* -- Letter-spacing utility (premium heading tracking) -- */
.tracking-tight   { letter-spacing: -.02em; }
.tracking-normal  { letter-spacing: 0; }

/* -- Focus-ring helper (accessibility shortcut) -- */
.focus-crimson:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* =====================================================
   ENHANCED CONTACT FORM
   ===================================================== */
.enhanced-form {
  display: grid;
  gap: var(--space-m);
  max-width: 640px;
  width: 100%;
}

.enhanced-form .form-row-inline {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: 1fr 1fr;
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-white);
  margin-bottom: var(--space-2xs);
}

.form-group .form-hint {
  font-size: var(--text-xs);
  color: var(--text-on-marine-muted);
  margin-top: var(--space-2xs);
  font-weight: var(--weight-light);
}

.form-group input:not(.iti__search-input),
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-s) var(--space-m);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-md);
  color: var(--text-on-marine);
  font-size: var(--text-base);
}

.form-group input:not(.iti__search-input)::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-group input:not(.iti__search-input):focus,
.form-group textarea:focus,
.form-group select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-crimson-accent);
  box-shadow: var(--focus-ring);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.6)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-m) center;
  padding-right: var(--space-xl);
}

.form-group select option {
  background: var(--color-surface-dark);
  color: var(--text-on-marine);
}

/* Checkbox / consent */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-s);
}

.form-consent input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--color-crimson-accent);
  cursor: pointer;
}

.form-consent label {
  font-size: var(--text-xs);
  color: var(--text-on-marine-muted);
  margin-bottom: 0;
  cursor: pointer;
}

/* Error styling */
.form-group input:not(.iti__search-input).invalid,
.form-group textarea.invalid {
  border-color: var(--color-error);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-2xs);
}

/* Success state */
.enhanced-form .form-success {
  text-align: center;
  padding: var(--space-xl);
}

.form-success__icon {
  font-size: 3rem;
  color: var(--color-success);
  margin-bottom: var(--space-m);
}

.form-success__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-on-marine);
  margin-bottom: var(--space-s);
}

.form-success__desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
  margin: 0 auto;
}

/* Submit button disabled state */
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Contact form light variant (for light-background sections) ---- */
.enhanced-form--light .form-group label {
  color: var(--color-text-primary);
}

.enhanced-form--light .form-group .form-hint {
  color: var(--color-text-secondary);
}

.enhanced-form--light .form-group input:not(.iti__search-input),
.enhanced-form--light .form-group textarea,
.enhanced-form--light .form-group select {
  background: var(--color-surface-white);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-primary);
  font-size: var(--text-base);
}

.enhanced-form--light .form-group input:not(.iti__search-input)::placeholder,
.enhanced-form--light .form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.enhanced-form--light .form-group input:not(.iti__search-input):focus,
.enhanced-form--light .form-group textarea:focus,
.enhanced-form--light .form-group select:focus {
  border-color: var(--color-crimson-accent);
  box-shadow: var(--focus-ring);
  outline: none;
}

.enhanced-form--light .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A8D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.enhanced-form--light .form-consent label {
  color: var(--color-text-secondary);
}

.enhanced-form--light .form-consent input[type="checkbox"] {
  accent-color: var(--color-crimson-accent);
}

/* Light-surface success message */
.enhanced-form--light .form-success__desc {
  color: var(--color-text-secondary);
}

/* ---- Contact services overview links (card treatment) ---- */
.services-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
}

.services-links li a {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-m);
  background: var(--color-surface-subtle);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border: 1px solid var(--border-subtle);
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-spring);
}

.services-links li a:hover {
  background: var(--color-surface-white);
  border-color: var(--color-crimson-accent);
  color: var(--color-crimson-accent);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(191, 19, 60, 0.15);
}

.services-links li a::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 20px;
  background: var(--brand-crimson);
  border-radius: 2px;
  flex-shrink: 0;
}

/* =====================================================
   ABOUT PAGE STYLES
   ===================================================== */
.about-hero .about-tagline {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-highlight);
  margin-bottom: var(--space-s);
}

.about-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.about-pillar {
  padding: var(--space-xl);
  background: var(--color-surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.about-pillar__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-m);
  color: var(--color-crimson-accent);
}

.about-pillar__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-white);
  margin-bottom: var(--space-2xs);
}

.about-pillar__body {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

/* About approach timeline */
.approach-timeline {
  display: grid;
  gap: var(--space-xl);
  max-width: 720px;
}

.approach-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-m);
  align-items: start;
}

/* Align the numbered circle's vertical center with the title text line */
.approach-step__num {
  margin-top: var(--space-s);
}

.approach-step__num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-crimson-accent);
  color: var(--text-on-marine);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  border-radius: 50%;
}

.approach-step__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-white);
  margin-bottom: var(--space-2xs);
}

.approach-step__body {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
}

/* --- Homepage Approach carousel (horizontal scroll, stacked card depth) --- */
.approach-intro {
  max-width: 640px;
  margin: 0 auto;
}

.approach-carousel {
  display: flex;
  align-items: stretch;
  gap: var(--space-s);
}

/* Track - wider than viewport so partial cards peek through edges */
.approach-carousel__track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: var(--space-m);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox hide */
  padding-bottom: var(--space-xs); /* space for scrollbar placeholder */
}

.approach-carousel__track::-webkit-scrollbar {
  display: none;
}

/* Each card - wider than the old calc(100% - 240px). Shows less peeking at desktop, full bleed at small viewports. */
.approach-carousel__card {
  flex: 0 0 clamp(320px, 75%, 640px);
  scroll-snap-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  opacity: .85;
  transform: scale(.97);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

/* Active card - lifts up and becomes fully opaque */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .approach-carousel__card:hover {
    opacity: 1;
    transform: scale(1);
    background-color: rgba(255, 255, 255, 0.10);
  }
}

/* Stage number */
.approach-carousel__num {
  display: block;
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--brand-crimson);
  line-height: var(--leading-tight);
  letter-spacing: -.02em;
  margin-bottom: var(--space-s);
}

/* Title */
.approach-carousel__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-on-marine);
  line-height: var(--leading-snug);
  margin: 0;
  margin-bottom: var(--space-s);
}

/* Body */
.approach-carousel__body {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Navigation arrows - flexbox siblings, positioned between track and edge */
.approach-carousel__nav {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-on-marine-soft);
  font-size: var(--text-lg);
  line-height: 1;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .approach-carousel__nav:hover {
    color: var(--text-on-marine);
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
  }
}

/* Tablet - tighter vertical padding */
@media (max-width: 1024px) {
  .approach-carousel__card {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }
}

/* Mobile - stack vertically, hide arrows */
@media (max-width: 768px) {
  .approach-carousel__track {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 0;
  }

  .approach-carousel__card {
    flex: none;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background-color: transparent;
    border-left: none;
    border-right: none;
    padding-top: var(--space-m);
    padding-bottom: var(--space-m);
    opacity: 1;
    transform: none;
  }

  .approach-carousel__card:first-child {
    border-top-color: transparent;
  }

  .approach-carousel__num {
    display: inline;
    font-size: var(--text-xl);
    margin-bottom: 0;
    margin-right: var(--space-2xs);
  }

  .approach-carousel__title {
    display: inline;
    font-size: var(--text-lg);
    margin-left: var(--space-2xs);
  }

  .approach-carousel__body {
    margin-top: var(--space-m);
  }

  /* Hide arrows on mobile */
  .approach-carousel__nav { display: none; }
}
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
}

.privacy-section {
  margin-bottom: var(--space-2xl);
}

.privacy-section:last-child {
  margin-bottom: 0;
}

.privacy-section h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-white);
  margin-bottom: var(--space-s);
  padding-bottom: var(--space-2xs);
  border-bottom: 2px solid var(--color-crimson-accent);
}

.privacy-section h3 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-white);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-2xs);
}

.privacy-section p,
.privacy-section ul {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-s);
}

.privacy-section ul {
  padding-inline-start: var(--space-l);
}

.privacy-section li {
  margin-bottom: var(--space-2xs);
}

.privacy-section a {
  color: var(--color-brand-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =====================================================
   404 PAGE STYLES
   ===================================================== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page__number {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-5xl), 8vw, 6rem);
  font-weight: var(--weight-black);
  color: var(--color-crimson-accent);
  line-height: var(--leading-tight);
  letter-spacing: -.03em;
}

.error-page__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-on-white);
  margin-top: var(--space-m);
  margin-bottom: var(--space-s);
}

.error-page__desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}

/* =====================================================
   PAGE HERO (for sub-pages)
   ===================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--space-3xl) + var(--space-xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, var(--surface-marine) 0%, rgba(27, 61, 110, 0.85) 100%);
  color: var(--text-on-marine);
  overflow: hidden;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-l);
}

.page-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-highlight);
  margin-bottom: var(--space-s);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -.02em;
  margin-bottom: var(--space-s);
}

.page-hero__desc {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-on-marine-soft);
  max-width: 640px;
}

/* =====================================================
   CONTENT SECTION (for article-like page content)
   ===================================================== */
.content-section {
  padding: var(--space-3xl) 0;
}

.content-section--light {
  background: var(--color-surface-light);
}

.content-block {
  max-width: 720px;
  margin: 0 auto;
}

/* =====================================================
   UTILITY: two-column content layout
   ===================================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  /* Stack inline form rows on mobile */
  .enhanced-form .form-row-inline,
  .enhanced-form--light .form-row-inline {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   COOKIE NOTICE - Informational only, not a consent banner
   ===================================================== */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface-marine-deep);
  border-top: 2px solid var(--color-crimson-accent);
  color: var(--text-on-marine);
  padding: var(--space-m) var(--space-l);
  display: none;
}

.cookie-notice.is-visible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  flex-wrap: wrap;
}

.cookie-notice__text {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0;
  color: var(--text-on-marine-soft);
  flex: 1 1 auto;
  min-width: 240px;
}

.cookie-notice__text a {
  color: var(--color-crimson-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: var(--weight-semibold);
}

.cookie-notice__dismiss {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-on-marine);
  padding: var(--space-2xs) var(--space-m);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.cookie-notice__dismiss:hover {
  border-color: var(--color-crimson-accent);
  color: var(--text-on-marine);
}

@media (max-width: 640px) {
  .cookie-notice.is-visible {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-notice__dismiss {
    align-self: flex-end;
  }
}

/* =====================================================
   FOOTER CRIMSON ACCENT - subtle brand echo in connect column
   ===================================================== */
.footer__connect::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 4px;
  width: 32px;
  height: 3px;
  background: var(--color-crimson-accent);
  border-radius: var(--radius-full);
}

.footer__connect {
  position: relative;
}

/* Email icon link */
.footer__email-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--brand-crimson-bright);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__email-icon:hover {
  color: var(--brand-crimson-dark);
}

.footer__email-icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* =====================================================
   CAREERS PAGE STYLES
   ===================================================== */

/* Job detail page metadata pill row - horizontal layout */
.careers-hero-meta {
  display: flex;
  gap: var(--space-2xs);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* -- Active nav indicator for Careers link -- */
.nav__link--active {
  color: var(--text-on-marine);
}
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-crimson-accent);
}

/* -- Metadata pills (job cards, job detail headers) -- */
.careers-meta-pill {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: .04em;
  color: #FFFFFF;
  padding: 2px var(--space-2xs);
  background: var(--brand-crimson);
  border-radius: var(--radius-sm);
}

/* -- Job listing cards on careers landing page -- */
.careers-job-card__meta {
  display: flex;
  gap: var(--space-2xs);
  flex-wrap: wrap;
  align-items: center;
}

/* -- Hiring process timeline -- */
.careers-process {
  position: relative;
}

.careers-process::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-crimson-accent), transparent);
}

.careers-process__step {
  display: flex;
  gap: var(--space-m);
  align-items: flex-start;
  position: relative;
}

.careers-process__num {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-crimson-accent);
  color: var(--text-on-marine);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.careers-process__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-white);
  margin-bottom: var(--space-2xs);
}

.careers-process__body {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  max-width: 480px;
}

/* -- Eligibility section (single panel with divided cells) -- */
.careers-eligibility {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-surface-white);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--color-crimson-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-l);
}

.careers-eligibility__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.careers-eligibility__item + .careers-eligibility__item {
  border-left: 1px solid var(--border-subtle);
  padding-left: var(--space-l);
}

.careers-eligibility__item svg {
  width: 24px;
  height: 24px;
  margin-bottom: var(--space-s);
}

.careers-eligibility__item h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-white);
  margin: 0 0 var(--space-2xs);
}

.careers-eligibility__item p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin: 0;
}

/* -- FAQ Accordion -- */
.careers-faq__item {
  border-bottom: 1px solid var(--border-subtle);
}

.careers-faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-m) calc(var(--space-s) + var(--space-3xs));
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  gap: var(--space-s);
  border-left: 3px solid transparent;
  transition: border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.careers-faq__btn:hover {
  color: var(--color-brand-accent);
  border-left-color: var(--color-crimson-accent);
}

.careers-faq__q {
  flex: 1;
}

.careers-faq__icon {
  flex-shrink: 0;
  margin-left: var(--space-s);
  transition: transform var(--duration-normal) var(--ease-spring),
              color var(--duration-fast) var(--ease-out);
  color: var(--color-text-muted);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .careers-faq__btn:hover .careers-faq__icon {
    color: var(--color-brand-accent);
  }
}

.careers-faq__btn[aria-expanded="true"] {
  border-left-color: var(--color-crimson-accent);
  color: var(--brand-marine-dark);
}

.careers-faq__btn[aria-expanded="true"] .careers-faq__icon {
  transform: rotate(180deg);
  color: var(--color-crimson-accent);
}

.careers-faq__a {
  max-height: 0;
  overflow: hidden;
  padding-left: calc(var(--space-s) + var(--space-3xs));
  padding-right: calc(var(--space-s) + var(--space-3xs));
  transition: max-height var(--duration-slow) var(--ease-out),
              padding-bottom var(--duration-slow) var(--ease-out);
}

/* Crimson accent line extends from button into answer panel when expanded */
.careers-faq__a[aria-hidden="false"] {
  max-height: 500px;
  padding-bottom: var(--space-s);
  border-left: 3px solid var(--color-crimson-accent);
  overflow: visible;
}

/* Elevated button row and answer panel - same visual weight */
.careers-faq__btn[aria-expanded="true"],
.careers-faq__a[aria-hidden="false"] {
  box-shadow: var(--shadow-xs);
}

/* Ensure expanding answers render above subsequent collapsed buttons */
.careers-faq__item { position: relative; }
.careers-faq__btn[aria-expanded="true"],
.careers-faq__a[aria-hidden="false"] { z-index: 2; }

.careers-faq__a p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin-top: 0;
  margin-bottom: var(--space-s);
  max-width: none;
}

.careers-faq__a p:last-child {
  margin-bottom: 0;
}

/* -- Job detail page back link -- */
.career-detail-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-on-marine-soft);
  text-decoration: none;
  margin-bottom: var(--space-xl);
  transition: color var(--duration-fast) var(--ease-out),
              gap var(--duration-fast) var(--ease-spring);
}

.career-detail-back:hover {
  color: var(--text-on-marine);
  gap: var(--space-3xs);
}

/* -- Job detail layout (two-col content + aside) -- */
.career-detail-layout .two-col {
  gap: var(--space-2xl);
  align-items: start;
}

/* -- Application card (sticky on desktop) -- */
.career-apply-card {
  position: sticky;
  top: calc(var(--header-height) + var(--space-l));
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
  .career-apply-card {
    position: relative;
  }
}

.career-apply-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-white);
  margin-bottom: var(--space-m);
  letter-spacing: -.01em;
}

.career-apply-card__submit {
  border-radius: var(--radius-md);
}

/* -- Career form group (for light surfaces) -- */
.career-form .form-group label {
  color: var(--color-text-on-white);
}

.career-form .form-group input:not(.iti__search-input),
.career-form .form-group textarea,
.career-form .form-group select {
  background: var(--surface-white);
  border: 1px solid var(--border-default);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-xs) inset;
}

.career-form .form-group input:not(.iti__search-input):focus,
.career-form .form-group textarea:focus,
.career-form .form-group select:focus {
  background: var(--surface-white);
  border-color: var(--color-crimson-accent);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.career-form .form-group input:not(.iti__search-input)::placeholder,
.career-form .form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.career-form .form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2xs);
  font-weight: var(--weight-light);
}

/* -- File upload input styling -- */
.career-form .form-group input:not(.iti__search-input)[type="file"] {
  padding: var(--space-2xs) var(--space-s);
  cursor: pointer;
}

.career-form .form-group input:not(.iti__search-input)[type="file"]::-webkit-file-upload-button {
  background: var(--color-crimson-accent);
  color: white;
  border: none;
  padding: var(--space-2xs) var(--space-s);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  margin-right: var(--space-s);
}

/* -- Career form error states -- */
.career-form .form-group input:not(.iti__search-input).invalid,
.career-form .form-group textarea.invalid,
.career-form .form-group select.invalid {
  border-color: var(--color-error) !important;
  box-shadow: none !important;
}

.career-form .form-consent label {
  color: var(--color-text-secondary);
  cursor: pointer;
}

.career-form .form-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-crimson-accent);
  cursor: pointer;
}

/* -- Career form submission success -- */
.career-form .form-success {
  text-align: center;
  padding: var(--space-xl) var(--space-m);
}

.career-form .form-success__icon {
  font-size: 3rem;
  color: var(--color-success);
  margin-bottom: var(--space-m);
}

.career-form .form-success__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-on-white);
  margin-bottom: var(--space-s);
}

.career-form .form-success__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* =====================================================
   RESPONSIVE - CAREERS
   ===================================================== */

@media (max-width: 1024px) {
  .career-detail-layout .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .careers-process::before {
    left: 23px;
  }

  /* Career forms use light-surface style fields on small screens */
}

@media (max-width: 768px) {
  /* Stack two-column layout */
  .career-detail-layout .two-col {
    grid-template-columns: 1fr;
  }

  /* Application card goes after content on mobile */
  .career-apply-card {
    position: relative;
    top: auto;
    margin-top: var(--space-xl);
    box-shadow: var(--shadow-md);
  }

  /* Process timeline: remove line, stack vertically */
  .careers-process::before {
    display: none;
  }

  .careers-process__step {
    padding-left: var(--space-l);
    position: relative;
  }

  .careers-process__num {
    position: absolute;
    left: 0;
    top: 0;
  }

  /* Job cards stack fully on mobile */
  .careers-job-card {
    flex-direction: column !important;
    gap: var(--space-m) !important;
    text-align: center;
  }

  .careers-job-card__meta {
    justify-content: center;
  }

  /* FAQ accordion - wider boxes on mobile (reduce horizontal padding from inline styles) */
  .careers-faq {
    max-width: 100% !important;
    padding-left: var(--space-m) !important;
    padding-right: var(--space-m) !important;
  }

  /* Ensure vertical space between title question and expanded answer panel */
  .careers-faq__btn[aria-expanded="true"] {
    margin-bottom: var(--space-m);
  }

  /* FAQ accordion spacing */
  .careers-faq__btn {
    font-size: var(--text-lg);
    padding: var(--space-s) var(--space-m);
  }

  /* Page hero tighter on mobile */
  .career-detail-hero {
    padding-bottom: var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .career-apply-card {
    padding: var(--space-l);
  }

  .careers-faq__btn {
    font-size: var(--text-lg);
    padding: var(--space-s) var(--space-m);
  }

  .careers-faq {
    max-width: 100% !important;
    padding-left: var(--space-m) !important;
    padding-right: var(--space-m) !important;
  }
}

/* =====================================================
   GLOBAL MOBILE OPTIMIZATION (≤768px) - touch-friendly, iOS zoom-safe
   ===================================================== */
@media (max-width: 768px) {
  /* --- Safe-area insets for notched devices + fixed horizontal spacing on mobile --- */
  .header {
    padding-left: var(--space-m) !important;
    padding-right: var(--space-m) !important;
  }

  /* Push hamburger all the way to right edge - auto margin fills remaining space */
  .hamburger {
    flex-shrink: 0;
    margin-left: auto !important;
  }

  /* iOS: prevent input zoom on focus by setting font-size ≥16px */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input:not([type]),
  textarea,
  select,
  .cta-form input {
    font-size: 16px !important;
  }

  /* Minimum touch targets - 44px for all interactive elements */
  .btn {
    min-height: 48px;
    padding-top: var(--space-s);
    padding-bottom: var(--space-s);
  }

  .card__link,
  .card__link--sm,
  .nav__link,
  .footer__links a {
    min-height: 44px;
    padding-top: var(--space-2xs);
    padding-bottom: var(--space-2xs);
  }

  /* Hero tighter spacing on mobile */
  .hero__heading {
    font-size: clamp(var(--text-xl), 5.5vw, var(--text-3xl));
    margin-bottom: var(--space-s);
  }
  .hero__sub {
    font-size: var(--text-sm);
    margin-bottom: var(--space-m);
  }
  .hero__eyebrow { font-size: var(--text-xs); letter-spacing: .12em; }
  /* CTAs: stacked with full-width tap targets */
  .hero__ctas,
  .hero__ctas {
    flex-direction: column;
    gap: var(--space-s);
    align-items: stretch;
  }

  /* Section vertical spacing reduced for mobile scroll density */
  .section { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
  .content-section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  /* Use-case page-hero tighter on mobile */
  .page-hero {
    padding-top: calc(var(--space-2xl) + var(--space-xl));
    padding-bottom: var(--space-2xl);
  }
  .page-hero__title {
    font-size: clamp(var(--text-xl), 5vw, var(--text-3xl));
  }
  .page-hero__desc {
    font-size: var(--text-sm);
  }

  /* Use-case challenge cards */
  .uc-challenge-card {
    padding: var(--space-xl) var(--space-lg) !important;
  }

  /* --- Industry section: collapse 5-col → single column, prevent iOS overflow --- */
  .industries-grid {
    grid-template-columns: 1fr !important;
    max-width: 320px;
    margin: 0 auto;
  }
  .industries-grid > div {
    padding: var(--space-m) var(--space-s) !important;
    border-left-width: 1px !important;
    /* iOS Safari grid cell overflow fix: force cards to fit within container */
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* --- Global iOS Safari grid overflow fix for ALL .cards-grid (about, careers, service pages) --- */
  .cards-grid > * {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* --- About page: What Guides Us pills - stack to single column on mobile (override inline repeat(2,1fr)) --- */
  .about-pillars-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- Careers pages: areas - stack to single column on mobile (override inline repeat(2,1fr)) --- */
  .careers-areas-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- Careers pages: benefits - stack to single column on mobile (override inline repeat(3,1fr)) --- */
  .careers-benefits-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- Careers pages: eligibility panel - stack cells on mobile --- */
  .careers-eligibility {
    grid-template-columns: 1fr;
    padding: var(--space-m);
  }

  .careers-eligibility__item + .careers-eligibility__item {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: var(--space-m);
    padding-top: var(--space-m);
  }

  /* --- About page: Where We Focus - stack to single column on mobile (override inline repeat(2,1fr)) --- */
  .expertise-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- Service pages: stack card grids to single column on mobile (override inline repeat(3,1fr)) --- */
  .scm-cards-grid,
  .analytics-cards-grid,
  .cloud-cards-grid,
  .transform-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- Careers: process timeline - fix number/text overlap on mobile (Safari flex min-width:auto bug) --- */
  .careers-process__step {
    min-width: 0;
    overflow-wrap: break-word;
  }
  .careers-process__title {
    word-break: break-word;
    hyphens: auto;
  }

  /* --- Careers process mobile spacing adjustments --- */
  .careers-process__step {
    padding-left: var(--space-xl) !important;
  }
  .careers-process__num {
    width: 40px !important;
    height: 40px !important;
    font-size: var(--text-sm) !important;
  }

  /* --- Approach section: tighter cards on mobile --- */
  .section--dark > .container > div > div[style*="auto-fit"] {
    gap: var(--space-m);
  }
  .section--dark > .container > div > div[style*="auto-fit"] > div {
    padding: var(--space-m) !important;
  }

  /* Footer single-col stacks */
  .footer__connect {
    text-align: left;
  }
}

/* --- Tablet ≤1024px: industry section collapses to 2-column center layout --- */
@media (max-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-s) !important;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* =====================================================
   SMALL MOBILE (≤480px) - extra density reduction
   ===================================================== */
@media (max-width: 480px) {
  /* Aggressive container padding */
  .container {
    padding-left: var(--space-m);
    padding-right: var(--space-m);
  }

  /* Single column everything */
  .stats-row { grid-template-columns: 1fr !important; }

  /* Hero even tighter on very small screens */
  .hero__content {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  /* CTA section title smaller */
  .cta-section__title { font-size: var(--text-xl) !important; }
}

/* =====================================================
   CLIENT OVERVIEW / PARTNER TRUST BAR
   White logos on dark marine band - mobile responsive
   ===================================================== */

.clients-section {
  background-color: var(--surface-marine);
  padding-top: var(--space-2xl);
  padding-bottom: calc(var(--space-3xl) + var(--space-xl)); /* Extra breathing room before CTA */
}

/* Eyebrow-style label above the clients heading - uppercase, small letter-spaced */
.clients-heading-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: .18em;
  text-align: center;
  margin-bottom: var(--space-s);
}

/* Crimson accent line under the clients heading */
.clients-heading-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--brand-crimson);
  margin: var(--space-s) auto 0;
}

/* Subtitle - smaller, soft white */
.clients-subtitle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  max-width: 480px;
  margin: var(--space-s) auto 0;
}

.clients-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

/* Logo links - anchors styled to match card layout */
.client-logo-link {
  opacity: 0.65;
  transition: opacity 200ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  max-width: 140px;
}

/* Reset any link color on images */
.client-logo-link img {
  height: auto;
  object-fit: contain;
}

/* Hover state - only on the anchor wrapper, not nested images */
.client-logo-link:hover,
.client-logo-card:hover {
  opacity: 1;
}

/* Convert JPEG/RGBA partner logos to pure white using brightness/invert */
.client-logo--white img {
  filter: brightness(0) invert(1);
}

/* Larger treatment for SCLG membership badge */
.client-logo--large {
  max-width: 200px;
}

/* Tablet ≤768px */
@media (max-width: 768px) {
  .clients-section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .clients-grid {
    gap: var(--space-lg);
  }

  .client-logo-card {
    max-width: 120px;
  }
}

/* Small mobile ≤480px: single column, logos smaller */
@media (max-width: 480px) {
  .clients-grid {
    gap: var(--space-lg);
  }

  .client-logo-card {
    max-width: 160px;
  }
}

/* =====================================================
   PERSONAL SECTION - Your Point of Contact
   ===================================================== */

.content-section--personal {
  background-color: var(--color-surface-light);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.content-section--personal .section__desc {
  color: var(--color-text-primary);
}

.personal-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-xl);
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--color-crimson-accent);
}

.personal-card__photo {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.personal-card__photo svg {
  width: 100%;
  height: 100%;
}

.personal-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 768px) {
  .content-section--personal {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .personal-card {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-s);
    text-align: center;
  }

  .personal-card__photo {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .personal-card__name {
    font-size: var(--text-2xl);
  }

  .personal-card__title {
    margin-bottom: var(--space-s);
  }

  .personal-card__bio {
    margin-bottom: var(--space-xl);
  }

  .personal-card__links {
    justify-content: center;
  }
}

/* Desktop button row — flex with gap */
.personal-card__links {
  display: flex;
  gap: var(--space-s);
  align-items: center;
}

/* Decorative radial gradient accent — top-right corner of card */
.personal-card {
  position: relative;
}
.personal-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at top right, rgba(191, 19, 60, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* =====================================================
   PERSONAL CARD - Hero transition strip
   ===================================================== */

/* --- Who We Are section - clean white background --- */
.content-section--who-are {
  position: relative;
  background-color: var(--color-surface-white);
}

/* Push section children above any overlay */
.content-section--who-are > .container {
  position: relative;
  z-index: 1;
}

/* =====================================================
   USE-CASE PAGE COMPONENTS
   Shared across use-case-01, 02, 03 pages.
   ===================================================== */

/* -- Metric cards: elevated with accent border -- */
.uc-metric-card {
    position: relative;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-surface-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--brand-crimson);
    margin-bottom: var(--space-xl);
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.uc-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.uc-metric-card__label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-2xs);
}
.uc-metric-card__value {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--color-text-on-white);
    margin: 0;
    line-height: 1.3;
}

/* -- Tech chips with crimson accent -- */
.uc-chip {
    padding: var(--space-2xs) var(--space-s);
    background: var(--color-crimson-accent);
    border: 1px solid var(--brand-crimson-dark);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: #FFFFFF;
    transition: background 150ms ease, box-shadow 150ms ease;
}
.uc-chip:hover {
    background: var(--brand-crimson-dark);
    box-shadow: var(--shadow-sm);
}

/* -- Impact items: styled mini-cards -- */
.uc-impact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-m);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-subtle);
}
.uc-impact-item:last-child {
    border-bottom: none;
}
.uc-impact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--brand-crimson) 0%, var(--brand-crimson-bright) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(191,19,60,.35);
}
.uc-impact-item p {
    color: var(--color-text-primary) !important;
}

/* -- Solution section divider -- */
.uc-solution p {
    position: relative;
    padding-bottom: var(--space-lg);
}
.uc-solution p:not(:last-child)::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: var(--border-subtle);
    margin-top: var(--space-lg);
}

/* -- Section title centered styling for UC sections -- */
.uc-section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}
.uc-section-header h2 {
    position: relative;
    display: inline-block;
}
.uc-section-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-crimson) 0%, transparent 100%);
    border-radius: var(--radius-full);
    margin: var(--space-s) auto 0;
}

/* -- Page hero title accent (case study specific) -- */
.page-hero__title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-crimson) 0%, transparent 100%);
    border-radius: var(--radius-full);
    margin-top: var(--space-m);
}

/* -- Footer tagline accent (case study specific) -- */
.footer__tagline {
    position: relative;
    padding-left: 16px;
}
.footer__tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--brand-crimson);
    border-radius: var(--radius-full);
}

/* =====================================================
   USE-CASE PAGE HERO OVERLAYS (consolidated from inline styles)
   Each use-case page adds .page-hero--uc1 / .page-hero--uc2 / .page-hero--uc3
   to its <section class="page-hero"> element to select the matching overlay.
   ===================================================== */

.page-hero--uc1 .page-hero__overlay,
.page-hero--uc2 .page-hero__overlay,
.page-hero--uc3 .page-hero__overlay {
    background: linear-gradient(135deg, rgba(0,26,51,.88) 0%, rgba(39,66,110,.82) 50%, rgba(191,19,60,.45) 100%);
}

/* =====================================================
   USE-CASE RESPONSIVE OVERRIDES
   ===================================================== */
@media (max-width: 768px) {
    .uc-metric-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-md) !important;
    }
    .uc-challenge-card {
        padding: var(--space-xl) var(--space-m) !important;
    }
    .uc-impact-item {
        padding: var(--space-m) var(--space-xs) !important;
    }
}

@media (max-width: 480px) {
    .uc-metric-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-md) !important;
    }
}

/* Partner logos - responsive sizing to prevent mobile overlap */
@media (max-width: 768px) {
  .client-logo-link {
    max-width: 96px;
    margin: 0 var(--space-xs);
  }
}

@media (max-width: 480px) {
  .client-logo-link {
    max-width: 72px;
    margin: 0 var(--space-2xs);
  }
  .clients-grid {
    gap: var(--space-sm);
  }
}

/* =====================================================
   LANGUAGE SWITCHER (nav locale toggle)
   Two-link inline component (DE | EN). Active = bold +
   crimson underline, inactive = muted on dark header.
   ===================================================== */

/* Container wraps the two language links + separator */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: #FFFFFFCC;
}

/* Separator between DE | EN — text-based so it stays optically centered with surrounding links */
.lang-switcher-sep {
  display: inline-block;
  opacity: .45;
}

/* Base style for language links (shared across desktop & mobile) */
.nav__link--lang {
  display: inline-block;
  color: #FFFFFF88;
  text-decoration: none;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  padding: 4px 0;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

/* Active language — bold + crimson underline accent */
.nav__link--lang-active {
  font-weight: var(--weight-bold);
  color: var(--text-on-marine);
  text-decoration: none;
}

/* Crimson underline — uses pseudo-element so padding stays consistent across states */
.nav__link--lang-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--color-crimson-accent);
}

/* Inactive language hover (desktop nav bar) */
.nav__link--lang:hover {
  color: #FFFFFFCC;
}

/* Focus state for keyboard navigation — reuses focus-ring token */
.nav__link--lang:focus-visible,
.nav__link--lang-active:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* --- Mobile menu overrides (≤768px) --- */
@media (max-width: 768px) {

  /* Language switcher becomes a full-width block row in mobile nav */
  .nav__list .lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-s) var(--space-l);
    width: 100%;
  }

  /* Mobile language links — touch-friendly tap targets (≥44px) */
  .nav__list .nav__link--lang,
  .nav__list .nav__link--lang-active {
    display: block;
    min-height: 44px;
    padding: var(--space-2xs) var(--space-m);
    font-size: var(--text-base);
  }

  /* Active indicator in mobile (crimson left-bar instead of underline) */
  .nav__list .nav__link--lang-active {
    border-bottom: none;
    padding-bottom: 0;
    padding-left: var(--space-s);
    border-left: 2px solid var(--color-crimson-accent);
  }

  /* Separator visible in mobile */
  .nav__list .lang-switcher-sep {
    background: rgba(255, 255, 255, 0.15);
  }

  /* Inactive link hover (touch devices) — slight brighten */
  .nav__list .nav__link--lang:hover {
    color: #FFFFFFDD;
  }

  /* Keep focus visible on touch + keyboard hybrids */
  .nav__list .nav__link--lang:focus-visible,
  .nav__list .nav__link--lang-active:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
  }
}

/* =====================================================
   CONTACT FORM STYLES (Appended)
   ===================================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

/* Country select - no arrow (uses native styling for emoji display) */
#contact-country {
  appearance: auto !important;
  background-image: none !important;
  padding-right: var(--space-m) !important;
}

/* Phone input - no arrow */
#contact-phone {
  appearance: auto !important;
  background-image: none !important;
}
