/* ==========================================================================
   Profaz Maju Niaga — Stylesheet
   Palette and typography sampled from the live site (WordPress/Astra/Elementor):
     #161f3a  brand navy   (dominant colour, 83 uses in live CSS)
     #046bd2  accent blue  (Astra global colour 0)
     #045cb4  accent blue hover
     #a0a0ae  muted text
     Manrope  brand typeface
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --navy-900: #0d1428;
  --navy-800: #161f3a;   /* brand navy */
  --navy-700: #1e2a4d;
  --navy-600: #2b3a63;

  --blue-600: #045cb4;
  --blue-500: #046bd2;   /* accent */
  --blue-400: #3a8ce0;
  --blue-50:  #eaf2fc;

  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-400: #94a3b8;
  --slate-200: #cbd5e1;
  --slate-100: #e2e8f0;

  --ink: #161f3a;
  --ink-muted: #5b6478;
  --muted: #a0a0ae;
  --surface: #ffffff;
  --surface-alt: #f9fafb;
  --line: #e2e8f0;

  --font-base: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(22, 31, 58, 0.08);
  --shadow-md: 0 6px 22px rgba(22, 31, 58, 0.10);
  --shadow-lg: 0 18px 48px rgba(22, 31, 58, 0.16);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* The header's backdrop-filter makes the closed mobile nav drawer (translated off
   to the right) widen the page, letting phones scroll sideways. clip (unlike
   hidden) stops that without breaking the sticky header. */
html, body { overflow-x: clip; }

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

p { text-align: justify; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--navy-800);
}

/* --- Layout helpers ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 92px 0; }
.section--alt { background: var(--surface-alt); }
.section--dark { background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--blue-600) 100%); color: var(--slate-200); }
.section--tight { padding: 60px 0; }

.section-head { max-width: 730px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--blue-500);
}
.section--dark .eyebrow { color: var(--blue-400); }
.section--dark .eyebrow::before { background: var(--blue-400); }

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 16px;
}
.section--dark .section-head h2 { color: #fff; }

.section-head p { font-size: 1.05rem; color: var(--ink-muted); }
.section--dark .section-head p { color: var(--slate-200); }
.section-head--center .eyebrow { justify-content: center; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.btn--primary { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.btn--primary:hover { background: var(--blue-600); border-color: var(--blue-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--slate-200); }
.btn--outline:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.btn__arrow { transition: transform 0.22s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* --- Top utility bar ---------------------------------------------------- */
.topbar {
  background: var(--navy-800);
  color: var(--slate-200);
  font-size: 0.85rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 44px;
}
.topbar__contact { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.topbar__contact a:hover { color: var(--blue-400); }
.topbar__social { display: flex; gap: 14px; }
.topbar__social a { opacity: 0.8; transition: opacity 0.2s, color 0.2s; }
.topbar__social a:hover { opacity: 1; color: var(--blue-400); }

.topbar__portals { display: flex; gap: 10px; }
.topbar__portals a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--slate-200);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.topbar__portals a:hover { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }

/* --- Header / nav ------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow-md); background: rgba(255, 255, 255, 0.82); }

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 84px;
  transition: min-height 0.25s var(--ease);
}
.header.is-stuck .wrap { min-height: 60px; }

.logo { flex-shrink: 0; display: block; }
.logo img { height: 52px; width: auto; transition: height 0.25s var(--ease); }
.header.is-stuck .logo img { height: 38px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 13px;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy-800);
  border-radius: var(--radius);
  transition: color 0.2s, padding 0.25s var(--ease);
  white-space: nowrap;
}
.header.is-stuck .nav__link { padding-top: 8px; padding-bottom: 8px; }
.nav__link:hover { color: var(--blue-500); }
.nav__item.is-active > .nav__link { color: var(--blue-500); }
.nav__item.is-active > .nav__link::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 2px;
  background: var(--blue-500);
}

.nav__caret {
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
.nav__item:hover .nav__caret { transform: rotate(225deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 252px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}
.nav__item:hover .dropdown,
.nav__item:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-700);
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  transition: all 0.18s var(--ease);
}
.dropdown a:hover {
  background: var(--blue-50);
  border-left-color: var(--blue-500);
  color: var(--blue-500);
  padding-left: 18px;
}

/* Flyout dropdown: "Our Product" lists sectors only; hovering a sector
   reveals its own sub-category panel to the side, one at a time. */
.dropdown--flyout {
  min-width: 270px;
  padding: 8px;
}
.dropdown__item { position: relative; }
.dropdown__link {
  position: relative;
  display: block;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-800);
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  transition: all 0.18s var(--ease);
}
/* The sector stays highlighted while its panel is open, with an arrow
   on its right edge pointing at the panel. */
.dropdown__item:hover > .dropdown__link,
.dropdown__item:focus-within > .dropdown__link {
  background: var(--blue-50);
  border-left-color: var(--blue-500);
  color: var(--blue-500);
  padding-left: 20px;
}
.dropdown__link::after {
  content: "";
  position: absolute; right: -16px; top: 50%;
  width: 12px; height: 12px;
  border-left: 2.5px solid var(--blue-500);
  border-bottom: 2.5px solid var(--blue-500);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}
.dropdown__item:hover > .dropdown__link::after,
.dropdown__item:focus-within > .dropdown__link::after { opacity: 1; }
.dropdown__panel {
  position: absolute;
  top: -8px;
  left: calc(100% + 18px);
  min-width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.dropdown__item:hover .dropdown__panel,
.dropdown__item:focus-within .dropdown__panel {
  opacity: 1; visibility: visible; transform: translateX(0);
}
/* Invisible bridge over the gap so the panel stays open on the way across. */
.dropdown__panel::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -20px; width: 20px;
}
.dropdown__sub {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid; gap: 14px;
}
.dropdown__sub li {
  position: relative;
  padding-left: 16px;
  line-height: 1.45;
}
.dropdown__sub li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--navy-800);
}
.dropdown__sub span {
  display: block;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--slate-700);
  background: none;
  border-left: none;
  border-radius: 0;
}

.header__cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy-800); position: relative; transition: background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--navy-800); transition: transform 0.25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 640px;
  margin-top: -84px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy-800);
}
.hero--split {
  background: linear-gradient(135deg, #ffffff 0%, #ced6e3 100%);
  color: var(--navy-800);
}
.hero.hero--split h1 { color: var(--navy-800); }
.hero.hero--split h1 em { color: var(--blue-600); }
.hero--split .hero__lead { color: var(--slate-700); }
.hero--split .hero__stats { border-top-color: rgba(22,31,58,0.12); }
.hero--split .hero__stat-label { color: rgba(22,31,58,0.65); }
.hero--split .btn--ghost { color: var(--navy-800); border-color: rgba(22,31,58,0.3); }
.hero--split .btn--ghost:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.hero--split h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }

/* Homepage hero: text and logo share a grid inside the content column, so the
   logo always sits beside the text at any width; stats run full-width below.
   On narrow screens it collapses to one column with the logo as a faint backdrop. */
.hero__layout {
  --hero-logo-size: 500px;
  --hero-logo-gap: clamp(56px, 9vw, 160px);
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  column-gap: var(--hero-logo-gap);
  align-items: center;
}
.hero__layout .hero__stats { grid-column: 1 / -1; }
/* The logo is placed, not stretched: it sits a fixed gap to the right of the text
   at a fixed size, and may extend past the content column into the page margin.
   It only shrinks when the window is too narrow to fit it (16px from the edge).
   Tweak --hero-logo-size / --hero-logo-gap to move or resize it. */
.hero__logo {
  justify-self: start;
  width: min(var(--hero-logo-size), calc(100% + max(0px, (100vw - var(--wrap)) / 2) - 16px));
  max-width: none;   /* override the global img max-width so it can extend past its column */
  pointer-events: none;
}
@media (max-width: 1000px) {
  .hero__layout { grid-template-columns: minmax(0, 1fr); }
  .hero__logo {
    position: absolute; z-index: -1;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 85%; max-width: 640px;
    opacity: 0.12;
  }
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(22,31,58,0.95) 0%, rgba(22,31,58,0.82) 48%, rgba(22,31,58,0.45) 100%);
  z-index: 1;
}
.hero--split::after { content: none; }
.hero .wrap { position: relative; z-index: 2; padding-block: 86px; padding-top: 170px; }
.hero__inner { max-width: 730px; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: #fff;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--blue-400); }

.hero__lead { font-size: 1.13rem; color: rgba(255,255,255,0.85); max-width: 570px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__sub { font-size: 1.22rem; font-weight: 700; line-height: 1.45; color: var(--navy-800); max-width: 570px; margin-bottom: 18px; text-align: left; }
.hero__copy p { font-size: 1.02rem; color: var(--slate-700); max-width: 570px; margin-bottom: 12px; }
.hero__tagline { margin-top: 20px; max-width: 730px; font-size: 0.98rem; font-weight: 700; color: var(--blue-600); text-align: left; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
  margin-top: 60px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 730px;
}
.hero__stat-num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--blue-400); line-height: 1; }
.hero__stat-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-top: 9px; display: block; }

/* --- Page banner (interior pages) --------------------------------------- */
.banner {
  position: relative;
  margin-top: -84px;
  padding: 168px 0 84px;
  color: #fff;
  overflow: hidden;
  background: var(--navy-800);
}
.banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(22,31,58,0.70) 0%, rgba(22,31,58,0.40) 100%);
}
.banner .wrap { position: relative; z-index: 2; }
.banner h1 { font-size: clamp(2rem, 5vw, 3.1rem); color: #fff; margin-bottom: 12px; }
.banner p { color: rgba(255,255,255,0.85); max-width: 640px; }

.crumbs { display: flex; gap: 10px; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.crumbs a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
.crumbs a:hover { color: var(--blue-400); }

/* Sector page hero — title and intro copy overlaid directly on the full-bleed photo,
   mirroring the live site's two-column treatment instead of a separate banner + section. */
.banner--intro { padding: 194px 0 88px; }
.banner--intro::after {
  background:
    linear-gradient(105deg, rgba(22,31,58,0.70) 0%, rgba(22,31,58,0.40) 100%),
    linear-gradient(to bottom, transparent 55%, var(--navy-800) 100%);
}
.banner__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; align-items: start; }
.banner--intro .eyebrow, .banner--intro .eyebrow::before { color: var(--blue-400); }
.banner--intro .eyebrow::before { background: var(--blue-400); }
.banner__grid h1 { margin-bottom: 0; }
.banner__grid p { color: rgba(255,255,255,0.88); max-width: 48ch; }
@media (max-width: 860px) {
  .banner__grid { grid-template-columns: 1fr; gap: 22px; }
}

/* --- Category cards -----------------------------------------------------
   Matches the live site: photo-led, sitting directly on the navy section
   with no card background or border. */
.cat-carousel { position: relative; }
.cat-grid {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  margin: 0 -4px;
  padding-left: 4px; padding-right: 4px;
  scrollbar-width: none;
}
.cat-grid::-webkit-scrollbar { display: none; }

.cat-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 270px;
  scroll-snap-align: start;
  background: none;
  border: 0;
  padding: 0;
}

.cat-carousel__arrow {
  position: absolute; top: 108px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s;
}
.cat-carousel__arrow:hover { background: var(--blue-500); border-color: var(--blue-500); }
.cat-carousel__arrow--prev { left: -60px; }
.cat-carousel__arrow--next { right: -60px; }
@media (max-width: 900px) { .cat-carousel__arrow { display: none; } }

/* Light-background variant, used for the News & Blogs carousel */
.cat-carousel--news .cat-carousel__arrow {
  top: 92px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy-800);
  box-shadow: var(--shadow-md);
}
.cat-carousel--news .cat-carousel__arrow:hover { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }

.cat-card__media {
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.cat-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.cat-card:hover .cat-card__media img { transform: scale(1.06); }

.cat-card h3 { font-size: 1.45rem; color: #fff; margin-bottom: 16px; }
.cat-card p { color: rgba(255,255,255,0.62); font-size: 0.95rem; margin-bottom: 18px; flex-grow: 1; }

.cat-card__link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.9rem; font-weight: 700;
  color: var(--blue-400);
  transition: gap 0.2s var(--ease), color 0.2s;
}
.cat-card__link:hover { gap: 12px; color: #fff; }

/* Lead paragraph above the category grid */
.cat-intro {
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  max-width: 1050px;
  margin-bottom: 62px;
}
.cat-intro strong { font-weight: 800; }

@media (max-width: 620px)  { .cat-card { flex-basis: 230px; } }

/* Homepage sectors: all six visible at once instead of a sideways strip */
.cat-grid--static {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 34px;
  overflow: visible;
  scroll-snap-type: none;
  margin: 0; padding: 0;
}
.cat-grid--static .cat-card { flex: none; }
@media (max-width: 900px) { .cat-grid--static { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cat-grid--static { grid-template-columns: 1fr; gap: 44px; } }

/* --- Split content (image + text) --------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.split__media--doc { display: flex; align-items: center; justify-content: center; background: var(--surface-alt); padding: 24px; }
.split__media--doc img { width: auto; max-width: 100%; height: auto; max-height: 560px; aspect-ratio: auto; object-fit: contain; box-shadow: none; }

.split__body h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 18px; }
.split__body p { color: var(--ink-muted); margin-bottom: 16px; }
.split__body .split__sub { font-size: 1.1rem; font-weight: 700; color: var(--navy-800); text-align: left; margin-bottom: 20px; }
.split__body .btn { margin-top: 12px; }
.section--dark .split__body h2 { color: #fff; }
.section--dark .split__body p { color: var(--slate-200); }

/* Badge (ISO cert) */
.badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 22px;
  background: var(--blue-50);
  border-left: 3px solid var(--blue-500);
  border-radius: var(--radius);
  margin: 8px 0 22px;
}
.badge strong { display: block; font-size: 1.05rem; font-weight: 800; color: var(--navy-800); }
.badge span span { font-size: 0.88rem; color: var(--ink-muted); display: block; }
/* Credentials column (About > Quality Commitment): equal-width badges, stacked */
.badge-stack { display: grid; gap: 16px; max-width: 480px; justify-self: end; width: 100%; }
.badge-stack .badge { display: flex; margin: 0; padding: 20px 24px; }
@media (max-width: 768px) { .badge-stack { justify-self: stretch; max-width: none; } }

/* --- Video ---------------------------------------------------------------- */
.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: var(--navy-900);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Click-to-load poster (keeps the page offline-friendly until clicked) */
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(13,20,40,0.45);
  border: 0; cursor: pointer;
  transition: background 0.25s var(--ease);
}
.video-play:hover { background: rgba(13,20,40,0.25); }
.video-play__btn {
  width: 78px; height: 78px;
  display: grid; place-items: center;
  background: var(--blue-500);
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(4,107,210,0.5);
  transition: transform 0.25s var(--ease);
}
.video-play:hover .video-play__btn { transform: scale(1.08); }

/* --- Value / VMV cards -------------------------------------------------- */
.vmv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.vmv-card {
  padding: 36px 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.vmv-card:hover { background: rgba(255,255,255,0.09); border-color: var(--blue-500); transform: translateY(-4px); }
.vmv-card__num { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-400); display: block; margin-bottom: 12px; }
.vmv-card h3 { font-size: 1.35rem; color: #fff; margin-bottom: 12px; }
.vmv-card p { color: var(--slate-200); font-size: 0.96rem; }

.values-list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin-top: 28px; }
.values-list li {
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff;
  transition: all 0.22s var(--ease);
}
.values-list li:hover { background: var(--blue-500); border-color: var(--blue-500); }

/* --- Vision / Mission / Values timeline + feature photo ------------------ */
.vmv-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.vmv-timeline h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.3rem); line-height: 1.25; margin-bottom: 40px; max-width: 460px; }

.vmv-list { list-style: none; margin: 0; padding: 0; }
.vmv-item { display: grid; grid-template-columns: 40px 1fr; gap: 20px; position: relative; padding-bottom: 34px; }
.vmv-item:last-child { padding-bottom: 0; }
.vmv-item::before {
  content: "";
  position: absolute;
  left: 19px; top: 40px; bottom: 6px;
  width: 1px;
  border-left: 1px dashed rgba(255,255,255,0.25);
}
.vmv-item:last-child::before { display: none; }
.vmv-item__icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-500);
  color: #fff;
  z-index: 1;
}
.vmv-item__icon--light { background: #fff; color: var(--blue-500); }
.vmv-item__body h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.vmv-item__body p { color: var(--slate-200); font-size: 0.93rem; line-height: 1.6; margin: 0; }

.vmv-feature p { color: var(--slate-200); font-size: 0.98rem; line-height: 1.7; margin-bottom: 24px; }
.vmv-feature__media img { width: 100%; border-radius: var(--radius-lg); display: block; }

/* --- Client crests ------------------------------------------------------
   Matches the live site: copy on the left, a 3 x 2 crest grid on the right,
   with no card background, border or shadow behind the crests. */
.clients { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: center; }

.clients__body h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 20px;
  max-width: 12ch;
}
.clients__body p { color: var(--slate-700); }

/* Twisted-cord frame, echoing the laurel-wreath braid on the agency crests
   shown inside it. Outer layer paints the "rope" (a repeating diagonal
   gradient standing in for twisted strands); the inner layer insets far
   enough to reveal it as an even border. */
.rope-frame {
  padding: 7px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    135deg,
    #c9a227 0px, #c9a227 4px,
    #8a6a14 4px 6px,
    #f2da8a 6px 10px,
    #8a6a14 10px 12px
  );
}
.rope-frame__inner {
  background: #fff;
  border-radius: 1px;
  padding: 44px 40px;
}

.client-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 46px 26px; }

.client-card {
  background: none;
  border: 0;
  padding: 0;
  text-align: center;
  flex: 0 0 calc((100% - 2 * 26px) / 3);
}
.client-card img {
  width: 100%;
  max-width: 132px;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 18px;
  transition: transform 0.25s var(--ease);
}
.client-card:hover img { transform: scale(1.06); }
.client-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--navy-800);
}

@media (max-width: 1024px) {
  .clients { grid-template-columns: 1fr; gap: 46px; }
  .clients__body h2 { max-width: none; }
}
@media (max-width: 560px) {
  .client-grid { gap: 34px 18px; }
  .client-card { flex-basis: calc((100% - 18px) / 2); }
}

/* --- Partner logo grid -------------------------------------------------- */
/* Flex rather than grid so a part-filled last row sits centred.
   Column counts match the old auto-fill minmax(180px, 1fr) breakpoints. */
.partner-grid { --cols: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.partner-tile {
  flex: 0 0 calc((100% - (var(--cols) - 1) * 18px) / var(--cols));
  aspect-ratio: 3 / 2;
  display: grid; place-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.partner-tile img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s var(--ease);
}
.partner-tile:hover { border-color: var(--blue-500); box-shadow: var(--shadow-md); transform: translateY(-3px); }
@media (max-width: 1019px) { .partner-grid { --cols: 4; } }
@media (max-width: 821px)  { .partner-grid { --cols: 3; } }
@media (max-width: 623px)  { .partner-grid { --cols: 2; } }

/* --- News cards --------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.news-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card[data-desc] { cursor: pointer; }
.news-card__media { overflow: hidden; }
.news-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.4s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex-grow: 1; }
.news-card__date { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 10px; }
.news-card h3 { font-size: 1.18rem; margin-bottom: 12px; line-height: 1.35; }
.news-card p { font-size: 0.93rem; color: var(--ink-muted); margin-bottom: 18px; flex-grow: 1; }

/* Horizontal-scroll variant used for the homepage's News & Blogs preview
   (the full News & Blogs page keeps the regular wrapping grid above). */
.news-grid--carousel {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  margin: 0 -4px;
  padding-left: 4px; padding-right: 4px;
  scrollbar-width: none;
}
.news-grid--carousel::-webkit-scrollbar { display: none; }
.news-grid--carousel .news-card { flex: 0 0 320px; scroll-snap-align: start; }
@media (max-width: 620px) { .news-grid--carousel .news-card { flex-basis: 270px; } }

/* Auto-scrolling marquee: replaces the manual carousel above for the
   homepage News & Blogs preview. The track is duplicated once in JS so
   translating it exactly -50% loops seamlessly. */
.news-marquee { position: relative; overflow: hidden; }
.news-marquee::before, .news-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none;
}
.news-marquee::before { left: 0; background: linear-gradient(to right, var(--surface-alt), transparent); }
.news-marquee::after { right: 0; background: linear-gradient(to left, var(--surface-alt), transparent); }

.news-marquee__track { display: flex; gap: 26px; width: max-content; animation: news-marquee 60s linear infinite; }
.news-marquee:hover .news-marquee__track { animation-play-state: paused; }
.news-marquee__track .news-card { flex: 0 0 320px; }
.news-marquee__track .news-card[aria-hidden="true"] { pointer-events: none; }

@keyframes news-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 620px) { .news-marquee__track .news-card { flex-basis: 270px; } }

@media (prefers-reduced-motion: reduce) {
  .news-marquee__track { animation: none; overflow-x: auto; }
}

/* --- CTA band ----------------------------------------------------------- */
.cta-band { position: relative; padding: 80px 0; background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--blue-600) 100%); color: #fff; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(13,20,40,0.95) 0%, rgba(22,31,58,0.9) 65%, rgba(4,92,180,0.75) 100%);
}
.cta-band .wrap {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 540px; }

/* --- Contact page ------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 58px; align-items: start; }

.info-list { list-style: none; padding: 0; display: grid; gap: 26px; }
.info-item { display: flex; gap: 18px; }
.info-item__icon {
  flex-shrink: 0; width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--navy-800); color: #fff;
  border-radius: var(--radius);
}
.info-item h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.info-item p, .info-item a { color: var(--navy-800); font-weight: 600; }
.info-item a:hover { color: var(--blue-500); }

.form-card {
  padding: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field label { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-800); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.14);
}
.field textarea { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
  padding: 14px 18px;
  background: var(--surface-alt);
  border-left: 3px solid var(--slate-400);
  border-radius: var(--radius);
}

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 21 / 9; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- Product detail sections -------------------------------------------- */
.spec-list { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 8px; }
.spec-list li { display: flex; align-items: flex-start; gap: 13px; color: var(--ink-muted); font-size: 0.96rem; }
.spec-list li::before {
  content: ""; flex-shrink: 0;
  width: 7px; height: 7px; margin-top: 10px;
  background: var(--blue-500);
  transform: rotate(45deg);
}
.banner .spec-list li, .section--dark .spec-list li { color: rgba(255,255,255,0.85); }
.banner .spec-list li::before, .section--dark .spec-list li::before { background: var(--blue-400); }

/* Platform tags — e.g. the aircraft a sector supports */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
  padding: 7px 16px;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.section--alt .tag, .section--dark .tag, .banner .tag { background: rgba(255,255,255,0.14); color: #fff; }
/* Tag lists on the light grey band keep the normal light-blue tags. */
.section--light-tags .tag { background: var(--blue-50); color: var(--blue-600); }

/* Platform photo row — real labeled photos in place of text pills, e.g. aircraft types */
.platform-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.platform-row__item { flex: 1 1 130px; max-width: 150px; text-align: center; }
.platform-row__item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  margin-bottom: 8px;
}
.platform-row__item span { display: block; font-size: 0.8rem; font-weight: 700; color: var(--navy-800); line-height: 1.3; }
.banner .platform-row__item span, .section--dark .platform-row__item span { color: #fff; }
.banner .platform-row__item img, .section--dark .platform-row__item img { border-color: rgba(255,255,255,0.3); }

/* Platform strip — the photo row on its own solid band directly under the hero,
   matching the live site's structure (photos sit on flat colour, not on the busy photo) */
.platform-strip { padding: 44px 0 52px; }
.platform-strip .platform-row { margin-top: 0; justify-content: center; }

/* Sub-category breakdown grid — a fuller equipment taxonomy within one sector */
.subcat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.subcat-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.subcat-card:hover { border-color: var(--blue-500); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.subcat-card h4 { font-size: 1.05rem; font-weight: 800; color: var(--navy-800); margin-bottom: 8px; }
.subcat-card p { font-size: 0.87rem; color: var(--ink-muted); margin-bottom: 12px; line-height: 1.55; }
.subcat-card ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.subcat-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--ink-muted); line-height: 1.4; }
.subcat-card li::before {
  content: ""; flex-shrink: 0;
  width: 6px; height: 6px; margin-top: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

@media (max-width: 1024px) {
  .subcat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .subcat-grid { grid-template-columns: 1fr; }
}

/* --- Vertical tabs (sector sub-category breakdown) ----------------------
   Mirrors the live site's pattern: an icon+label switcher down one side,
   the matching panel of item cards on the other. */
.section:has(> .wrap > .vtabs) { padding-top: 24px; }
.vtabs { margin-top: 4px; }

.vtabs__nav { display: flex; flex-wrap: nowrap; justify-content: center; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.vtabs__nav::-webkit-scrollbar { display: none; }
.vtabs__nav.is-overflowing { justify-content: flex-start; }

/* Wraps the tab row with left/right buttons instead of a visible scrollbar,
   shown only once the tabs are too wide for the row (see main.js). */
.cat-carousel--vtabs { margin-bottom: 32px; }
.cat-carousel--vtabs .vtabs__nav { margin-bottom: 0; }
.cat-carousel--vtabs .cat-carousel__arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy-800);
  box-shadow: var(--shadow-md);
}
.cat-carousel--vtabs .cat-carousel__arrow:hover { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.cat-carousel--vtabs .cat-carousel__arrow--prev { left: -14px; }
.cat-carousel--vtabs .cat-carousel__arrow--next { right: -14px; }
.cat-carousel--vtabs:not(:has(.vtabs__nav.is-overflowing)) .cat-carousel__arrow { display: none; }
@media (max-width: 900px) {
  .cat-carousel--vtabs .cat-carousel__arrow { display: none; }
}
.vtabs__tab {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border: 0; border-bottom: 3px solid transparent;
  border-radius: var(--radius) var(--radius) 0 0;
  background: transparent;
  font-family: var(--font-base); font-size: 0.92rem; font-weight: 700;
  color: var(--ink-muted); text-align: left; line-height: 1.35;
  cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.vtabs__tab svg { flex-shrink: 0; color: var(--blue-500); }
.vtabs__tab:hover { background: var(--blue-50); color: var(--navy-800); }
.vtabs__tab.is-active { background: var(--blue-50); border-bottom-color: var(--blue-500); color: var(--navy-800); }

.vtabs__panel { display: none; }
.vtabs__panel.is-active { display: block; animation: vtabsFade 0.45s var(--ease); }
@keyframes vtabsFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.vtabs__panel.is-active .vtabs__item h4 { animation: vtabsFadeText 0.45s var(--ease) 0.1s both; }
@keyframes vtabsFadeText { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.vtabs__desc { color: var(--ink-muted); max-width: 62ch; margin-bottom: 26px; }

.vtabs__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 200px)); justify-content: center; gap: 22px; }
.vtabs__item { text-align: center; }
.vtabs__item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: var(--radius-lg); margin-bottom: 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.vtabs__item { position: relative; cursor: zoom-in; }
.vtabs__item:hover img { border-color: var(--blue-400); box-shadow: var(--shadow-md); }
.vtabs__item::after {
  content: "More Details \2192";
  position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(to top, rgba(13,20,40,0.6) 0%, rgba(13,20,40,0.15) 45%, transparent 70%);
  color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  opacity: 0; transition: opacity 0.2s var(--ease);
  pointer-events: none;
}
.vtabs__item:hover::after { opacity: 1; }
.vtabs__item h4 { font-size: 0.88rem; font-weight: 700; color: var(--navy-800); line-height: 1.4; }

/* --- Product image lightbox --------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(13, 20, 40, 0.72); backdrop-filter: blur(4px); }
.lightbox__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 1160px; width: 100%;
  max-height: 92vh;
  display: grid; grid-template-columns: 1.3fr 1fr;
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s var(--ease);
}
.lightbox.is-open .lightbox__dialog { transform: none; }
.lightbox__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(13,20,40,0.06);
  font-size: 1.3rem; line-height: 1; color: var(--navy-800);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox__close:hover { background: rgba(13,20,40,0.12); }
.lightbox__media { position: relative; background: var(--surface-alt); aspect-ratio: 1; max-height: 78vh; }
.lightbox__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 0;
  background: rgba(13,20,40,0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox__nav:hover { background: var(--blue-500); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__body { padding: 48px 44px; overflow-y: auto; }
.lightbox__body h3 { font-size: 1.6rem; margin-bottom: 16px; }
.lightbox__body p { color: var(--ink-muted); line-height: 1.75; font-size: 1.02rem; }
.lightbox__body p + p { margin-top: 10px; }
.lightbox__body h4 { font-size: 1.05rem; margin: 24px 0 8px; color: var(--navy-800); }
.lightbox__body h4:first-of-type { margin-top: 8px; }

.lightbox.is-open .lightbox__body h3 { animation: lightboxTextIn 0.45s var(--ease) 0.15s both; }
.lightbox.is-open .lightbox__body p  { animation: lightboxTextIn 0.45s var(--ease) 0.25s both; }
@keyframes lightboxTextIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .lightbox__dialog { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .lightbox__body { padding: 28px 24px; }
}

/* News blog popups: same fixed box size for every article (short or long),
   with the text scrolling inside rather than the box growing to fit content. */
.lightbox--news .lightbox__dialog { height: 78vh; }
.lightbox--news .lightbox__media { height: 100%; aspect-ratio: auto; max-height: none; }
.lightbox--news .lightbox__body { height: 100%; }
@media (max-width: 700px) {
  .lightbox--news .lightbox__dialog { height: auto; }
  .lightbox--news .lightbox__media { height: auto; aspect-ratio: 4 / 3; }
  .lightbox--news .lightbox__body { height: auto; }
}

.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.anchor-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 9px;
  font-size: 0.87rem; font-weight: 700;
  color: var(--navy-800);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: all 0.2s var(--ease);
}
.anchor-nav a img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }
.anchor-nav a:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* --- Static product list with partner logos (no tabs, no click) ---------- */
.product-logos { display: flex; gap: 40px; align-items: flex-start; }
.product-logos__nav { display: flex; flex-direction: column; gap: 14px; flex: 0 0 300px; scroll-margin-top: 110px; }
.product-logos__box {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 0;
  scroll-margin-top: 110px;
}
.product-logos__box svg { flex-shrink: 0; color: var(--navy-800); }
/* Same lettering as the category names on the other sector pages (.product-group__title). */
.product-logos__box span { font-size: 1.25rem; font-weight: 700; color: var(--navy-800); line-height: 1.45; font-style: italic; }
.product-logos__items { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 200px)); justify-content: start; gap: 22px; align-content: start; }
.product-logos__item { text-align: left; }
.product-logos__item img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: contain;
  background: #fff; border: 2px solid #000; border-radius: var(--radius-lg);
  padding: 18px; margin-bottom: 14px;
}
.product-logos__item h4 { font-size: 0.88rem; font-weight: 700; color: var(--navy-800); line-height: 1.4; }

.product-logos__items--fancy { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.product-logos__item--fancy {
  padding: 36px 24px;
  border: 2px solid #000;
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.product-logos__item--fancy:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* ICT cards with a screenshot of the system on top and its name below, no box around them. */
.product-logos__item--shot { padding: 0; display: flex; flex-direction: column; border: 0; border-radius: 0; background: none; }
.product-logos__item--shot:hover { box-shadow: none; }
.product-logos__item--shot img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center;
  padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--navy-900);
  transition: box-shadow 0.25s var(--ease);
}
.product-logos__item--shot:hover img { box-shadow: var(--shadow-lg); }
/* ICT software cards: icon tile (Lucide icons, ISC licence) in place of a screenshot. */
.ict-icon {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 55%, var(--blue-600) 100%);
  transition: box-shadow 0.25s var(--ease);
}
.ict-icon svg { width: 64px; height: 64px; stroke-width: 1.6; }
.product-logos__item--shot:hover .ict-icon { box-shadow: var(--shadow-lg); }
.product-logos__item--shot h4 { font-size: 1.15rem; padding: 16px 8px 0; }
/* ICT splits its range into Software and Hardware, one block above the other. */
.ict-group { scroll-margin-top: 110px; }
.ict-group + .ict-group { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.ict-group__title { font-size: 1.6rem; font-weight: 800; color: var(--navy-800); margin-bottom: 28px; }
/* auto-fill keeps a lone card at normal width instead of stretching across the row. */
.ict-group .product-logos__items--fancy { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product-logos__item--fancy h4 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  background: linear-gradient(120deg, var(--navy-800) 0%, var(--blue-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.01em;
}

@media (max-width: 820px) {
  .product-logos { flex-direction: column; }
  .product-logos__nav { flex-basis: auto; width: 100%; }
}

/* Product logos grouped under their category: name on the left, logos beside it. */
.product-group {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px;
  padding: 36px 0; border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.product-group:first-child { padding-top: 0; border-top: 0; }
.product-group:last-child { padding-bottom: 0; }
.product-group__title { font-size: 1.25rem; font-weight: 700; color: var(--navy-800); line-height: 1.45; font-style: italic; }
.product-group__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 200px)); gap: 22px; }
.product-group__empty { color: var(--slate-500); font-size: 0.92rem; }
/* Aviation shows its logos without the bordered box. */
.product-groups--plain .product-logos__item img { border: 0; border-radius: 0; margin-bottom: 0; padding: 0; }
.product-groups--plain .product-group__items { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
/* Category name sits level with the middle of its logo row. */
.product-groups--plain .product-group { align-items: center; }
/* A group with no category name: logos use the full width. */
.product-group--solo { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 820px) {
  .product-group { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 28px 0; }
  .product-group__items { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
  .product-groups--plain .product-group__items { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .product-groups--plain .product-group { align-items: start; }
}

/* --- Footer ------------------------------------------------------------- */
.footer { background: var(--navy-800); color: var(--slate-200); padding: 72px 0 0; }
/* Same navy as the ICT projects band, so mark the seam where they meet. */
.ict-projects + .footer { border-top: 1px solid rgba(255,255,255,0.12); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 46px; padding-bottom: 54px; }
.footer h4 { font-size: 1rem; color: #fff; margin-bottom: 20px; }
.footer p { font-size: 0.93rem; color: rgba(255,255,255,0.65); }
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer ul a { font-size: 0.93rem; color: rgba(255,255,255,0.8); transition: color 0.2s, padding-left 0.2s; }
.footer ul a:hover { color: var(--blue-400); padding-left: 5px; }

.footer__logo { margin-bottom: 20px; display: block; }
.footer__logo img { height: 72px; width: auto; }

/* Logo centred in the first footer column, across and down. */
.footer__brand { display: flex; justify-content: center; align-items: center; padding-bottom: 70px; }
.footer__brand .footer__logo { margin-bottom: 0; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
}
.footer__bottom a { color: rgba(255,255,255,0.6); }
.footer__bottom a:hover { color: var(--blue-400); }
.footer__bottom-sep {
  display: inline-block;
  width: 1px;
  height: 13px;
  background: rgba(255,255,255,0.35);
  vertical-align: middle;
  font-size: 0;
  line-height: 0;
  margin: 0 14px;
}

/* --- Scroll-reveal ------------------------------------------------------
   Mirrors the five entrance effects the live site uses (fadeIn, fadeInDown,
   fadeInUp, fadeInLeft, fadeInRight). Travel distance is deliberately smaller
   than animate.css's full-height translate — same read, no layout lurch. */
.reveal {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal--up    { transform: translate3d(0,  35px, 0); }
.reveal--down  { transform: translate3d(0, -35px, 0); }
.reveal--left  { transform: translate3d(-40px, 0, 0); }
.reveal--right { transform: translate3d( 40px, 0, 0); }

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --- ICT Projects section -------------------------------------------------- */
.ict-projects { background: var(--navy-800); padding: 88px 0; color: #fff; }

.ict-projects__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.ict-projects__head .eyebrow { color: #4f9dff; }
.ict-projects__head h2 {
  font-size: 2.1rem;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.2;
}
.ict-projects__head p {
  color: #a7b0c8;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.ict-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.ict-projects__card {
  background: #161f3a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ict-projects__card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.ict-projects__card-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ict-projects__tag {
  display: inline-block;
  align-self: flex-start;
  color: #4f9dff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ict-projects__card h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.ict-projects__card p {
  color: #b7bfd4;
  font-size: 0.91rem;
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
}

.ict-projects__explore {
  display: inline-block;
  color: #4f9dff;
  font-size: 0.84rem;
  font-weight: 700;
  transition: color 0.2s var(--ease);
}
.ict-projects__explore:hover { color: #77b3ff; }

.ict-projects__note {
  text-align: center;
  color: #7e88a3;
  font-size: 0.81rem;
  margin: 0;
}

@media (max-width: 900px) {
  .ict-projects__grid { grid-template-columns: 1fr; }
}

/* Drop the compositor hint once the element has settled */
.reveal.is-settled { will-change: auto; }

/* --- Background parallax -------------------------------------------------
   The background image is taller than its container and drifts as the
   section crosses the viewport, so no edge is ever exposed. */
.hero__bg,
.banner__bg,
.cta-band__bg {
  height: 126%;
  top: -13%;
}
.has-parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  /* Reset the parallax overhang so nothing sits off-centre when motion is off */
  .hero__bg, .banner__bg, .cta-band__bg { height: 100%; top: 0; transform: none !important; }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__link { padding: 12px 10px; font-size: 0.88rem; }
  .header__cta { display: none; }
}

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { padding-bottom: 0; }
  .split { gap: 44px; }
  .contact-layout { grid-template-columns: 1fr; gap: 46px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(340px, 84vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 90px 20px 30px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    z-index: 99;
  }
  .nav.is-open { transform: translateX(0); }

  .nav__link { padding: 14px 12px; font-size: 0.95rem; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .nav__item.is-active > .nav__link::after { display: none; }
  .nav__item.is-expanded .nav__caret { transform: rotate(225deg); }

  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 4px 0 8px 14px;
    display: none;
  }
  .nav__item.is-expanded .dropdown { display: block; }
  .nav__item:hover .dropdown { opacity: 1; visibility: visible; }

  .dropdown--flyout {
    min-width: 0;
    padding: 4px 0 8px 0;
    max-height: 55vh;
    overflow-y: auto;
  }
  .dropdown__panel {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none;
    padding: 0 0 4px 14px;
  }
  .dropdown__sub { padding-bottom: 10px; gap: 6px; }
  .dropdown__link::after, .dropdown__panel::before { display: none; }

  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(13, 20, 40, 0.55);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
    z-index: 98;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { min-height: auto; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .vmv-split { grid-template-columns: 1fr; gap: 40px; }
  .topbar__contact { gap: 14px; font-size: 0.8rem; }
  .topbar__social { display: none; }
  .topbar__portals { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .logo img { height: 44px; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .topbar__contact a span { display: none; }
}
