/* ==========================================================================
   Moondream IT LLC — Design System
   Visual language inspired by premium Fexo-class IT templates
   Brand colors from Moondream logo (navy / tech blue)
   ========================================================================== */

:root {
  /* Brand (logo-derived) */
  --color-primary: #0080f8;
  --color-primary-dark: #0068d6;
  --color-primary-soft: rgba(0, 128, 248, 0.1);
  --color-secondary: #0048b8;
  --color-accent: #0080f8;

  --color-navy: #010f34;
  --color-navy-mid: #001a4d;
  --color-navy-deep: #000d2e;
  --color-heading: #010f34;
  --color-text: #5c6370;
  --color-text-muted: #797e88;
  --color-text-light: #9aa1ab;

  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7fa;
  --color-bg-gray: #f8f8f8;
  --color-border: #d8dde1;
  --color-border-soft: #e8ecf0;

  --color-success: #0d9488;
  --color-success-bg: #ecfdf8;
  --color-error: #dc2626;
  --color-error-bg: #fef2f2;

  --gradient-primary: linear-gradient(135deg, #001a4d 0%, #002060 45%, #0048b8 100%);
  --gradient-accent: linear-gradient(135deg, #0068e0 0%, #0080f8 100%);
  --gradient-hero: linear-gradient(145deg, #000818 0%, #000d2e 40%, #001a4d 75%, #002860 100%);
  --gradient-dark: linear-gradient(180deg, #010f34 0%, #000d2e 100%);

  /* Fexo-style font pairing */
  --font-heading: "Ubuntu", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  --fs-3xl: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  --fs-4xl: clamp(2.4rem, 1.5rem + 2.8vw, 3.75rem);
  --fs-hero: clamp(3rem, 2rem + 4.5vw, 5.5rem);
  --fs-tag: clamp(1.75rem, 1.2rem + 2vw, 3.25rem);

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.65;
  --lh-relaxed: 1.8;

  --container-width: 1320px;
  --container-narrow: 800px;
  --container-padding: clamp(1.25rem, 4vw, 2.5rem);

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --space-5xl: 7.5rem;
  --space-section: clamp(5rem, 8vw, 7.5rem);

  /* Fexo-like large radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.875rem;
  --radius-2xl: 1.875rem;
  --radius-pill: 50px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 16px rgba(1, 15, 52, 0.06);
  --shadow-md: 0 10px 40px rgba(1, 15, 52, 0.08);
  --shadow-lg: 0 20px 60px rgba(1, 15, 52, 0.12);
  --shadow-xl: 0 30px 80px rgba(1, 15, 52, 0.16);
  --shadow-btn: 0 10px 30px rgba(0, 128, 248, 0.35);
  --shadow-card: 0 8px 32px rgba(1, 15, 52, 0.07);
  --shadow-card-hover: 0 16px 48px rgba(1, 15, 52, 0.14);
  --shadow-header: 0 4px 24px rgba(1, 15, 52, 0.08);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  --header-height: 108px;
  --header-height-scrolled: 88px;
  --z-header: 1000;
  --z-mobile-nav: 1100;
  --z-skip: 1200;
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: var(--z-skip);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
}
.skip-link:focus { top: var(--space-md); }

/* Typography — Fexo scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  color: var(--color-heading);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-hero); font-weight: var(--fw-medium); }
h2 { font-size: var(--fs-3xl); font-weight: var(--fw-medium); }
h3 { font-size: var(--fs-xl); font-weight: var(--fw-medium); }
h4 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }

.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }

/* Fexo-style section eyebrow / sub-title */
.sub-title,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
  line-height: 1;
}

.sub-title .line,
.eyebrow::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.sub-title.light,
.eyebrow--light {
  color: var(--color-primary);
}

.eyebrow--light::before {
  background: var(--color-primary);
}

.section-title {
  margin-bottom: var(--space-2xl);
}

.section-title h2 {
  margin-bottom: 1rem;
  max-width: 18ch;
}

.section-title p {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: var(--lh-relaxed);
}

.section-title--center {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title--center h2 {
  max-width: 22ch;
  margin-inline: auto;
}

.section-title--center p {
  margin-inline: auto;
}

.section-title--center .sub-title,
.section-title--center .eyebrow {
  justify-content: center;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--wide { max-width: 1440px; }
.container--narrow { max-width: var(--container-narrow); }
.container-fluid {
  width: 100%;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.section {
  padding-block: var(--space-section);
  position: relative;
}

.section--soft { background: var(--color-bg-gray); }
.section--dark {
  background: var(--gradient-dark);
  color: rgba(255, 255, 255, 0.75);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--color-white); }

/* ==========================================================================
   Buttons — Fexo pill style
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem 1.85rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  letter-spacing: 0.015em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}

.btn__icon,
.btn i {
  display: inline-flex;
  transition: transform var(--transition-normal);
}

.btn:hover .btn__icon,
.btn:hover i {
  transform: translateX(4px);
}

.btn--primary,
.theme-btn.style-one {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: 0 12px 32px rgba(1, 15, 52, 0.25);
}

.btn--secondary,
.theme-btn.style-two {
  background: transparent;
  color: var(--color-heading);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--outline-light:hover {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--lg { padding: 1.15rem 2.15rem; font-size: 1.05rem; }
.btn--sm { padding: 0.7rem 1.35rem; font-size: 0.9rem; }
.btn--full { width: 100%; }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ==========================================================================
   Header — Fexo floating style
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: height var(--transition-normal), background var(--transition-normal),
    box-shadow var(--transition-normal), margin var(--transition-normal);
  background: transparent;
  overflow: visible;
}

.site-header.is-scrolled {
  height: var(--header-height-scrolled);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-header);
}

.site-header--solid,
.site-header--solid.is-scrolled {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(1, 15, 52, 0.06);
  border-bottom: 1px solid var(--color-border-soft);
}

.site-header--solid .nav__link,
.site-header.is-scrolled .nav__link {
  color: var(--color-heading);
}

.site-header--solid .nav__link:hover,
.site-header--solid .nav__link.is-active,
.site-header.is-scrolled .nav__link:hover,
.site-header.is-scrolled .nav__link.is-active {
  color: var(--color-primary);
}

.site-header--solid .logo img {
  /* Logo already has white canvas — keep clean on white bar */
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 10;
}

.logo img {
  height: 78px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: height var(--transition-normal);
}

.site-header.is-scrolled .logo img { height: 64px; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__item {
  position: static;
  list-style: none;
}

.nav__item--mega {
  position: static;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: var(--color-white);
  transition: color var(--transition-fast);
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.nav__link:hover,
.nav__link.is-active,
.nav__item--mega.is-open > .nav__link,
.nav__item--mega:hover > .nav__link { color: var(--color-primary); }

.nav__link:hover::after,
.nav__link.is-active::after,
.nav__item--mega.is-open > .nav__link::after,
.nav__item--mega:hover > .nav__link::after { transform: scaleX(1); }

.nav__chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.nav__item--mega.is-open .nav__chevron,
.nav__item--mega:hover .nav__chevron {
  transform: rotate(180deg);
}

.nav__cta { flex-shrink: 0; }

/* ---------- Services mega menu ---------- */
.mega-menu {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) translateY(8px);
  width: min(920px, calc(100vw - 2rem));
  padding-top: 0.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.nav__item--mega.is-open .mega-menu,
.nav__item--mega:hover .mega-menu,
.nav__item--mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Disable pure hover open on touch / small screens handled by JS + media */
@media (hover: none) {
  .nav__item--mega:hover .mega-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .nav__item--mega.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.mega-menu__panel {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 24px 64px rgba(1, 15, 52, 0.14);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
}

.mega-menu__main {
  padding: 1.5rem 1.35rem 1.5rem 1.5rem;
}

.mega-menu__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.85rem;
  padding-left: 0.35rem;
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.mega-menu__link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast);
}

.mega-menu__link:hover,
.mega-menu__link:focus-visible {
  background: #f2f6fc;
  outline: none;
}

.mega-menu__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mega-menu__link:hover .mega-menu__icon {
  background: var(--color-primary);
  color: #fff;
}

.mega-menu__icon svg {
  width: 20px;
  height: 20px;
}

.mega-menu__text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.mega-menu__text span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.mega-menu__aside {
  background: linear-gradient(160deg, #001a4d 0%, #002860 55%, #003080 100%);
  color: #fff;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.mega-menu__aside h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.3;
}

.mega-menu__aside p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.mega-menu__aside .btn {
  align-self: flex-start;
  margin-top: 0.35rem;
}

/* Mobile accordion under Services */
.mobile-nav__group {
  display: flex;
  flex-direction: column;
}

.mobile-nav__parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: var(--fw-medium);
  color: var(--color-heading);
  border-radius: var(--radius-md);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mobile-nav__parent:hover,
.mobile-nav__parent[aria-expanded="true"] {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.mobile-nav__parent .nav__chevron {
  width: 16px;
  height: 16px;
}

.mobile-nav__parent[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}

.mobile-nav__sub {
  display: none;
  flex-direction: column;
  padding: 0.25rem 0 0.5rem 0.75rem;
  gap: 0.15rem;
}

.mobile-nav__group.is-open .mobile-nav__sub {
  display: flex;
}

.mobile-nav__sub a {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  color: var(--color-text);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.mobile-nav__sub a:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  gap: 6px;
  z-index: 20;
  border-radius: var(--radius-md);
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-fast), background var(--transition-fast);
  transform-origin: center;
}

.site-header.is-scrolled .nav-toggle__bar,
.site-header--solid .nav-toggle__bar {
  background: var(--color-navy);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: var(--color-navy); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-nav);
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 15, 52, 0.55);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-nav.is-open .mobile-nav__overlay { opacity: 1; }

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 400px);
  height: 100%;
  background: var(--color-white);
  padding: 2rem 1.75rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-nav__header .logo img { height: 60px; max-width: 220px; }

.mobile-nav__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-navy);
}

.mobile-nav__close:hover { background: var(--color-bg-soft); }

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.mobile-nav__link {
  display: block;
  padding: 0.9rem 1rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: var(--fw-medium);
  color: var(--color-heading);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.mobile-nav__footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Hero — Fexo home-two composition
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 4rem) 0 5rem;
  background: var(--gradient-hero);
  overflow: hidden;
  color: var(--color-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg picture,
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__bg-img {
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}

.hero-image-box picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-images__main picture,
.about-images__float picture,
.choose-images__one picture,
.choose-images__two picture,
.services-panel__media picture,
.cta-banner__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-images__main img,
.about-images__float img,
.choose-images__one img,
.choose-images__two img,
.services-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.68) 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 128, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 128, 248, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 50%, black, transparent);
}

/* Vertical social — Fexo */
.hero-social {
  position: absolute;
  left: 2.5rem;
  top: 42%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.hero-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.hero-social span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-top: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 3rem;
  align-items: end;
  width: 100%;
}

.hero__text { max-width: 720px; }

/* Fexo large tag-line */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-heading);
  font-size: var(--fs-tag);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero__tag::before {
  content: "";
  width: clamp(60px, 8vw, 120px);
  height: 4px;
  background: var(--color-white);
  flex-shrink: 0;
}

.hero h1 {
  color: var(--color-white);
  font-size: var(--fs-hero);
  font-weight: var(--fw-medium);
  margin-bottom: 1.5rem;
  max-width: 12ch;
  line-height: 1.05;
}

.hero h1 .accent {
  color: var(--color-primary);
}

.hero__lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-avatars {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-avatars__stack {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-avatars__stack li {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  margin-left: -14px;
  overflow: hidden;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.hero-avatars__stack li:first-child { margin-left: 0; }

.hero-avatars__text h5 {
  color: var(--color-white);
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
  font-weight: var(--fw-bold);
}

.hero-avatars__text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.hero__award {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 220px;
  line-height: 1.45;
}

/* Hero image box */
.hero__visual {
  position: relative;
  z-index: 2;
}

.hero-image-box {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 15, 52, 0.15);
}

.hero-play button,
.hero-play a {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal), background var(--transition-normal), color var(--transition-normal);
}

.hero-play button:hover,
.hero-play a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.06);
}

.hero-play svg { width: 28px; height: 28px; margin-left: 3px; }

.hero-float-card {
  position: absolute;
  bottom: 1.5rem;
  left: -1.5rem;
  background: var(--color-white);
  border-radius: 20px;
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 240px;
  z-index: 3;
}

.hero-float-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-float-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-heading);
  margin-bottom: 0.15rem;
}

.hero-float-card span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Page hero (inner) — compact banner, photo-forward */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(260px, 36vh, 400px);
  padding: calc(var(--header-height) + 2.25rem) 0 2.75rem;
  background: var(--gradient-hero);
  overflow: hidden;
  color: var(--color-white);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-hero__bg picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.page-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.58;
}

/* Overlay: readable text, still shows photo */
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0, 8, 24, 0.78) 0%,
    rgba(0, 13, 46, 0.62) 48%,
    rgba(0, 26, 77, 0.5) 100%
  );
}

.page-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Real photos inside intro visual */
.intro-visual__main {
  background: none;
}

.intro-visual__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.intro-visual__main .intro-visual__content {
  background: linear-gradient(to top, rgba(0, 13, 46, 0.85) 0%, rgba(0, 13, 46, 0.2) 55%, transparent 100%);
  justify-content: flex-end;
  padding-bottom: 2rem;
}

/* Internal H1: smaller than homepage hero */
.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.65rem);
  line-height: 1.22;
  font-weight: var(--fw-medium);
  margin-bottom: 0.75rem;
  max-width: min(22ch, 100%);
}

.page-hero .eyebrow,
.page-hero .sub-title {
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
}

.page-hero__lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  line-height: 1.65;
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb [aria-current="page"] { color: var(--color-white); }

/* ==========================================================================
   About / Intro — Fexo overlapping images
   ========================================================================== */

.about-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.about-images {
  position: relative;
  min-height: 480px;
}

.about-images__main {
  width: 78%;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  position: relative;
  z-index: 1;
}

.about-images__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-images__float {
  position: absolute;
  right: 0;
  bottom: 8%;
  width: 52%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 6px solid var(--color-white);
  z-index: 2;
  aspect-ratio: 5 / 4;
}

.about-images__float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-images__shape {
  position: absolute;
  top: -20px;
  left: -30px;
  width: 120px;
  height: 120px;
  border-radius: 30px;
  background: var(--color-primary-soft);
  z-index: 0;
}

.about-content .section-title { margin-bottom: 1.5rem; }
.about-content .section-title h2 { max-width: 18ch; }

/* Tabs — Fexo about style */
.about-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0;
}

.about-tab {
  padding: 0.85rem 1.35rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}

.about-tab:hover { color: var(--color-primary); }

.about-tab.is-active,
.about-tab[aria-selected="true"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.about-tab-panel {
  display: none;
}

.about-tab-panel.is-active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.about-tab-panel > p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: var(--color-text);
}

/* Check list — Fexo */
.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
  margin-bottom: 1.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: var(--fw-medium);
  color: var(--color-heading);
  font-size: 0.95rem;
  line-height: 1.4;
}

.check-list li svg,
.check-list li .check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.check-list li .check-icon svg {
  width: 12px;
  height: 12px;
  background: none;
}

/* Help box */
.help-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-gray);
  border-radius: 20px;
  margin-top: 0.5rem;
}

.help-box__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-btn);
}

.help-box__icon svg { width: 26px; height: 26px; }

.help-box span {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.help-box a,
.help-box strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
}

.help-box a:hover { color: var(--color-primary); }

/* ==========================================================================
   Services — Fexo tabbed panel
   ========================================================================== */

.services-tabs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: stretch;
  background: var(--color-white);
  border-radius: 30px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-soft);
}

.services-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.services-nav__btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  font-size: 1rem;
  color: var(--color-heading);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.services-nav__btn:hover {
  background: var(--color-bg-gray);
  color: var(--color-primary);
}

.services-nav__btn.is-active {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.services-nav__num {
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: var(--fw-bold);
}

.services-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1rem 1.25rem 1rem 0.5rem;
}

.services-panel.is-active {
  display: grid;
  animation: fadeIn 0.35s ease;
}

.services-panel__content h3 {
  font-size: 1.65rem;
  margin-bottom: 0.85rem;
}

.services-panel__content > p {
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.services-panel__content .check-list {
  margin-bottom: 1.5rem;
}

.services-panel__media {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-md);
}

.services-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Service cards grid (fallback / listing) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--color-white);
  border-radius: 30px;
  padding: 2.25rem 1.85rem;
  border: 1px solid var(--color-border-soft);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.service-card__number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  transition: background var(--transition-normal), color var(--transition-normal);
}

.service-card:hover .service-card__icon {
  background: var(--color-primary);
  color: white;
}

.service-card__icon svg { width: 30px; height: 30px; }

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
  color: var(--color-heading);
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.service-card__link:hover {
  color: var(--color-primary);
  gap: 0.65rem;
}

.service-card__link svg { width: 16px; height: 16px; }

.service-detail-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  padding: 2.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: 30px;
  transition: box-shadow var(--transition-normal);
}

.service-detail-card:hover { box-shadow: var(--shadow-card-hover); }

.service-detail-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-detail-card__icon svg { width: 34px; height: 34px; }

.service-detail-card h2,
.service-detail-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.service-detail-card p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ==========================================================================
   Services catalog — soft tile grid (services page)
   ========================================================================== */

.services-catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.svc-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
  padding: 1.85rem 1.6rem 1.5rem;
  background: #f2f4f8;
  border-radius: 24px;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    background var(--transition-normal),
    border-color var(--transition-normal);
}

.svc-tile:hover {
  transform: translateY(-5px);
  background: var(--color-white);
  border-color: rgba(0, 128, 248, 0.12);
  box-shadow: 0 18px 48px rgba(1, 15, 52, 0.1);
  color: inherit;
}

.svc-tile:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.svc-tile__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-white);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 14px rgba(1, 15, 52, 0.05);
  transition: background var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal);
}

.svc-tile:hover .svc-tile__icon {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.svc-tile__icon svg {
  width: 26px;
  height: 26px;
}

.svc-tile__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  line-height: 1.3;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.svc-tile__text {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  flex: 1;
}

.svc-tile__arrow {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--color-white);
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  box-shadow: 0 4px 12px rgba(1, 15, 52, 0.06);
  transition:
    background var(--transition-normal),
    color var(--transition-normal),
    transform var(--transition-normal);
}

.svc-tile__arrow svg {
  width: 18px;
  height: 18px;
}

.svc-tile:hover .svc-tile__arrow {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translate(2px, -2px);
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.capability-tag {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  background: var(--color-bg-gray);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-soft);
}

/* ==========================================================================
   Staffing / Choose us — dual image composition
   ========================================================================== */

.choose-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.choose-images {
  position: relative;
  min-height: 460px;
}

.choose-images__one {
  width: 70%;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}

.choose-images__one img,
.choose-images__two img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.choose-images__two {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-xl);
  border: 6px solid var(--color-white);
}

.choose-badge {
  position: absolute;
  left: 55%;
  top: 12%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  border-radius: 24px;
  padding: 1.5rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-btn);
  z-index: 3;
  min-width: 140px;
}

.choose-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.choose-badge span {
  font-size: 0.85rem;
  line-height: 1.35;
  opacity: 0.95;
}

.staffing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.staffing-feature {
  padding: 1.35rem;
  background: var(--color-bg-gray);
  border-radius: 20px;
  border: 1px solid transparent;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.staffing-feature:hover {
  background: var(--color-white);
  border-color: var(--color-border-soft);
  box-shadow: var(--shadow-sm);
}

.staffing-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-white);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.staffing-feature__icon svg { width: 22px; height: 22px; }

.staffing-feature h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.staffing-feature p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.role-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.15rem;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  color: var(--color-heading);
  font-family: var(--font-heading);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.role-chip:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.role-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   Why cards
   ========================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 2.25rem 1.85rem;
  background: var(--color-white);
  border-radius: 30px;
  border: 1px solid var(--color-border-soft);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.why-card__num {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Full-width Why Choose Us banner (glass cards) */
.why-banner {
  padding: 0;
  width: 100%;
  max-width: 100vw;
}

.why-banner__shell {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: clamp(520px, 72vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--container-padding);
  box-shadow: none;
}

.why-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.why-banner__bg picture,
.why-banner__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.why-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.72) 45%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.why-banner__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.why-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.why-banner__eyebrow::before {
  content: "";
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.why-banner__eyebrow::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-left: -0.5rem;
  margin-right: 0.15rem;
}

.why-banner h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  font-weight: var(--fw-medium);
  line-height: 1.15;
  max-width: 14ch;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.why-banner__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.why-glass-card {
  padding: 1.75rem 1.5rem 1.65rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--color-white);
  transition: background var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
}

.why-glass-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}

.why-glass-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.why-glass-card__icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
}

.why-glass-card h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  margin: 0 0 0.65rem;
}

.why-glass-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   Process
   ========================================================================== */

.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-border), var(--color-primary), var(--color-border), transparent);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.5rem;
}

.process-step__num {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.process-step:hover .process-step__num,
.process-step.is-active .process-step__num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-btn);
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Tech / Industries
   ========================================================================== */

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.tech-item {
  padding: 0.95rem 1.65rem;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  transition: all var(--transition-fast);
}

.tech-item:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Legacy simple industry cards (fallback) */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.industry-card {
  padding: 1.75rem 1.25rem 1.5rem;
  background: #f2f4f8;
  border: 1px solid transparent;
  border-radius: 22px;
  text-align: center;
  transition: all var(--transition-normal);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.industry-card:hover {
  transform: translateY(-4px);
  background: var(--color-white);
  box-shadow: 0 16px 40px rgba(1, 15, 52, 0.1);
  border-color: rgba(0, 128, 248, 0.1);
}

.industry-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: var(--color-white);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(1, 15, 52, 0.05);
  transition: all var(--transition-fast);
}

.industry-card:hover .industry-card__icon {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-btn);
}

.industry-card__icon svg { width: 26px; height: 26px; }

.industry-card h3 {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  margin: 0;
}

/* Project-style industry cards (homepage / industries page) */
.industry-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem 1.75rem;
  padding-bottom: 0.5rem;
}

.industry-project {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: visible;
  background: transparent;
}

.industry-project__media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 12px 36px rgba(1, 15, 52, 0.12);
}

.industry-project__media picture,
.industry-project__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-project:hover .industry-project__media img {
  transform: scale(1.05);
}

.industry-project__body {
  position: relative;
  z-index: 2;
  margin: -3.25rem 1rem 0;
  padding: 1.35rem 1.4rem 1.25rem;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(1, 15, 52, 0.1);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.industry-project:hover .industry-project__body {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(1, 15, 52, 0.14);
}

.industry-project__tag {
  display: block;
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
}

.industry-project__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  margin: 0 0 0.9rem;
  line-height: 1.3;
}

.industry-project__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border-soft);
  width: 100%;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.industry-project__link:hover {
  color: var(--color-primary);
  gap: 0.6rem;
}

.industry-project__link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   FAQ — split media + accordion (Fexo-inspired)
   ========================================================================== */

.faq-section {
  background: #eef2f7;
  padding-block: var(--space-section);
  overflow: hidden;
}

.faq-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.faq-media {
  position: relative;
  border-radius: 0 48px 48px 0;
  overflow: visible;
  min-height: 520px;
  margin-left: calc(-1 * var(--container-padding));
  max-width: calc(100% + var(--container-padding));
}

.faq-media__frame {
  position: relative;
  border-radius: 0 40px 40px 0;
  overflow: hidden;
  height: 100%;
  min-height: 560px;
  box-shadow: 0 20px 50px rgba(1, 15, 52, 0.12);
}

.faq-media__frame picture,
.faq-media__frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center top;
}

.faq-help-card {
  position: absolute;
  left: 8%;
  bottom: 8%;
  z-index: 2;
  max-width: 280px;
  padding: 1.35rem 1.5rem;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(1, 15, 52, 0.28);
}

.faq-help-card p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.faq-help-card a {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.faq-help-card a:hover {
  color: #5eb0ff;
}

.faq-content {
  padding: 0.5rem 0 0.5rem 0;
}

.faq-content .faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}

.faq-content .faq-eyebrow::after {
  content: "";
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.faq-content h2 {
  font-size: clamp(1.85rem, 1.3rem + 1.8vw, 2.75rem);
  margin-bottom: 1.75rem;
  max-width: 16ch;
  line-height: 1.15;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.faq-item:hover,
.faq-item.is-open {
  background: var(--color-white);
  border-color: rgba(0, 128, 248, 0.2);
  box-shadow: 0 8px 28px rgba(1, 15, 52, 0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--color-primary); }

.faq-question__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-heading);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  background: none;
  border-radius: 0;
}

.faq-question__icon svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-normal);
}

.faq-item.is-open .faq-question__icon {
  color: var(--color-primary);
  background: none;
}

.faq-item.is-open .faq-question__icon svg { transform: rotate(45deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer__inner { overflow: hidden; }

.faq-answer__inner p {
  padding: 0 1.4rem 1.3rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.no-js .faq-answer { grid-template-rows: 1fr; }

/* ==========================================================================
   Service detail page (modern, homepage-aligned)
   ========================================================================== */

.service-detail {
  overflow: hidden;
}

.service-detail__intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.service-detail__intro .section-title {
  margin-bottom: 1.25rem;
}

.service-detail__intro .section-title h2 {
  max-width: 16ch;
}

.service-detail__lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.service-detail__checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.75rem;
}

.service-detail__checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  color: var(--color-heading);
  line-height: 1.4;
}

.service-detail__checks .check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.service-detail__checks .check-icon svg {
  width: 12px;
  height: 12px;
  background: none;
}

.service-detail__visual {
  position: relative;
}

.service-detail__visual-main {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 50px rgba(1, 15, 52, 0.14);
}

.service-detail__visual-main picture,
.service-detail__visual-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail__visual-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: var(--color-white);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 32px rgba(1, 15, 52, 0.14);
  max-width: 220px;
}

.service-detail__visual-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-heading);
  margin-bottom: 0.2rem;
}

.service-detail__visual-badge span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.service-detail__hero-img {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  max-height: 380px;
  margin-bottom: 0;
  box-shadow: 0 16px 48px rgba(1, 15, 52, 0.12);
}

.service-detail__hero-img picture,
.service-detail__hero-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Capabilities section with service-specific full-width background */
.service-caps-banner {
  position: relative;
  width: 100%;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  overflow: hidden;
  color: var(--color-white);
}

.service-caps-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-caps-banner__bg picture,
.service-caps-banner__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-caps-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.78) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.service-caps-banner .container {
  position: relative;
  z-index: 2;
}

.service-caps-banner .section-title {
  margin-bottom: var(--space-2xl);
}

.service-caps-banner .section-title h2 {
  color: var(--color-white);
  max-width: 18ch;
  margin-inline: auto;
}

.service-caps-banner .section-title p {
  color: rgba(255, 255, 255, 0.72);
}

.service-caps-banner .sub-title {
  color: var(--color-primary);
  justify-content: center;
}

.service-caps-banner .sub-title .line,
.service-caps-banner .sub-title::before {
  background: var(--color-primary);
}

.service-caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-cap {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal);
  height: 100%;
}

.service-cap:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
  box-shadow: none;
}

.service-cap__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.service-cap__icon svg {
  width: 26px;
  height: 26px;
}

.service-cap h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--color-white);
}

.service-cap p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.service-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.service-platforms .tech-item {
  cursor: default;
}

.service-note {
  max-width: 720px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.cta-banner {
  position: relative;
  padding: 6rem 0;
  background: var(--gradient-hero);
  overflow: hidden;
  text-align: center;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.cta-banner .container { position: relative; z-index: 2; }

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
  max-width: 16ch;
  margin-inline: auto;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-banner .btn-group { justify-content: center; }

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-detail__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail__icon svg { width: 24px; height: 24px; }

.contact-detail h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-detail p,
.contact-detail a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-detail a:hover { color: var(--color-primary); }

.contact-placeholder {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 0.15rem;
}

.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: 30px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.form-card h3 {
  margin-bottom: 1.75rem;
  font-size: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--color-heading);
  margin-bottom: 0.45rem;
  font-family: var(--font-heading);
}

.form-group label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1.15rem;
  font-size: 0.95rem;
  color: var(--color-heading);
  background: var(--color-bg-gray);
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  background: var(--color-white);
  border-color: var(--color-border);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 128, 248, 0.12);
  outline: none;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: var(--color-error);
  margin-top: 0.4rem;
}

.form-group.has-error .form-error { display: block; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.form-checkbox.has-error .form-error {
  display: block;
  width: 100%;
  margin-left: calc(18px + 0.65rem);
}

.form-status {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.form-status.is-success {
  display: block;
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.form-status.is-error {
  display: block;
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Careers
   ========================================================================== */

.careers-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-bg-gray);
  border-radius: 30px;
  border: 1px dashed var(--color-border);
}

.careers-empty__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.careers-empty__icon svg { width: 34px; height: 34px; }
.careers-empty h3 { margin-bottom: 0.5rem; }
.careers-empty p {
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  max-width: 420px;
  margin-inline: auto;
}

.job-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--color-bg-gray);
  border-radius: 20px;
}

.job-filters select {
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-white);
  font-size: 0.9rem;
  min-width: 160px;
}

.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: 20px;
  margin-bottom: 1rem;
  transition: box-shadow var(--transition-fast);
}

.job-card:hover { box-shadow: var(--shadow-md); }
.job-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Legal / 404
   ========================================================================== */

.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: var(--fs-2xl); margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-content h3 { font-size: 1.2rem; margin-top: 1.75rem; margin-bottom: 0.65rem; }
.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-updated {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem var(--container-padding);
  background: var(--color-bg-gray);
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.error-page h1 { margin-bottom: 0.75rem; }
.error-page p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-inline: auto;
}

/* ==========================================================================
   Footer — Fexo dark multi-column
   ========================================================================== */

.site-footer {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.65);
  padding-top: 5.5rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo { margin-bottom: 1.35rem; }

.footer-brand .logo img {
  height: 72px;
  max-width: 260px;
  width: auto;
  background: var(--color-white);
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

.footer-col a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover { color: var(--color-primary); }

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================================================
   Clients / placeholders
   ========================================================================== */

.clients-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.client-placeholder {
  width: 150px;
  height: 64px;
  border: 1px dashed var(--color-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
  background: var(--color-bg-gray);
}

/* ==========================================================================
   Utils
   ========================================================================== */

.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;
}

.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* Back-compat aliases used in pages */
.section-header { margin-bottom: var(--space-3xl); }
.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header--center .eyebrow { justify-content: center; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  max-width: 560px;
}
.section-header--center p { margin-inline: auto; }

.intro-grid,
.staffing-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.intro-visual { position: relative; }
.intro-visual__main {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gradient-primary);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.intro-visual__pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.intro-visual__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: white;
}
.intro-visual__badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: white;
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 220px;
}
.intro-visual__badge strong {
  display: block;
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}
.intro-visual__badge span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.intro-content h2 { margin-bottom: 1.25rem; }
.intro-content > p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.pillar-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.pillar-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pillar-item__icon svg { width: 24px; height: 24px; }
.pillar-item h4 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.pillar-item p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
