/*
Theme Name: Trident
Description: Custom theme for Trident Hydro Jetting Sdn Bhd
Version: 2.6.0
Author: Trident
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  --red:           #d71531;
  --red-dark:      #b01228;
  --red-glow:      rgba(215, 21, 49, 0.18);

  --gold:          #F5A623;
  --gold-dark:     #d98f0f;
  --gold-glow:     rgba(245, 166, 35, 0.25);

  /* Dark palette */
  --bg-deepest:    #050D1A;
  --bg-dark:       #0D1B2E;
  --bg-mid:        #111827;
  --bg-card:       #162032;
  --bg-card-hover: #1E2D45;

  /* Light palette */
  --bg-white:      #ffffff;
  --bg-light:      #eaf1ff;     /* light blue tint */

  /* Text — dark surfaces */
  --text-white:    #FFFFFF;
  --text-light:    #E2EAF4;
  --text-muted:    #7A90AE;
  --text-dark:     #0D1B2E;
  /* Text — light surfaces */
  --text-on-light: #0D1B2E;
  --text-on-light-body: #374151;
  --text-on-light-muted: #6B7280;

  --border:        rgba(255, 255, 255, 0.07);
  --border-light:  rgba(255, 255, 255, 0.12);

  /* ── Surface context — all cards & panels read from these.
     Override inside .bg-white / .bg-light to flip every card
     at once without touching individual component styles.      */
  --surface:              var(--bg-card);
  --surface-hover:        var(--bg-card-hover);
  --surface-border:       rgba(255, 255, 255, 0.07);
  --surface-shadow:       none;
  --surface-hover-shadow: 0 8px 20px rgba(0,0,0,0.175);
  --surface-text-heading: var(--text-light);
  --surface-text-body:    var(--text-muted);
  --surface-separator:    rgba(255, 255, 255, 0.07);
  --surface-icon-bg:      rgba(215, 21, 49, 0.10);
  --surface-icon-border:  rgba(215, 21, 49, 0.20);

  --font-display:  'Roboto Condensed', sans-serif;
  --font-body:     'Source Sans 3', sans-serif;

  --container:     1240px;
  --radius:        6px;
  --radius-lg:     12px;

  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --duration:      0.28s;

  --topbar-h:      34px;
  --header-nav-h:  68px;
  --header-h:      calc(var(--topbar-h) + var(--header-nav-h)); /* 102px total */
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--header-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-body); }
svg { display: block; flex-shrink: 0; }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.section { padding-block: 72px; }
.section-sm { padding-block: 48px; }
.section-lg { padding-block: 100px; }

/* ── Background utility classes ─────────────────────────── */
.bg-deepest { background: var(--bg-deepest); }
.bg-dark    { background: var(--bg-dark); }
.bg-mid     { background: var(--bg-mid); }
.bg-white   { background: var(--bg-white); }
.bg-light   { background: var(--bg-light); }

/* ── Light-surface overrides ──────────────────────────────── *
 *  Override the surface context variables ONCE here.          *
 *  Every card, panel, tab, and separator that reads from      *
 *  --surface* will automatically flip to the light palette — *
 *  no per-component rules needed below.                       */
.bg-white,
.bg-light {
  color: var(--text-on-light-body);
  /* surface context flip */
  --surface:              #ffffff;
  --surface-hover:        #fafcff;
  --surface-border:       rgba(13, 27, 46, 0.10);
  --surface-shadow:       0 1px 6px rgba(13,27,46,0.03);
  --surface-hover-shadow: 0 6px 18px rgba(13,27,46,0.07);
  --surface-text-heading: var(--text-on-light);
  --surface-text-body:    var(--text-on-light-body);
  --surface-separator:    rgba(13, 27, 46, 0.10);
  --surface-icon-bg:      rgba(215, 21, 49, 0.08);
  --surface-icon-border:  rgba(215, 21, 49, 0.18);
}
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4,
.bg-light  h1, .bg-light  h2, .bg-light  h3, .bg-light  h4 {
  color: var(--text-on-light);
}
.bg-white p, .bg-light p { color: var(--text-on-light-body); }
.bg-white .section-lead,
.bg-light  .section-lead { color: var(--text-on-light-muted); }
.bg-white .section-header.centered,
.bg-light  .section-header.centered { border-color: rgba(13,27,46,0.1); }

/* Client strip */
/* client-strip legacy rules removed — replaced by .clients-section */

/* Outline button */
.bg-white .btn-outline,
.bg-light  .btn-outline { border-color: var(--red); color: var(--red); }
.bg-white .btn-outline:hover,
.bg-light  .btn-outline:hover { background: var(--red); color: #fff; }

/* Map embed — remove dark invert on light pages */
.bg-white .map-embed iframe,
.bg-light  .map-embed iframe { filter: none; }

/* ── VIDEO BACKGROUND component ──────────────────────────── */
.section-video {
  position: relative;
  overflow: hidden;
}
.video-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-bg-overlay {
  position: absolute; inset: 0;
}
.section-video > .container { position: relative; z-index: 1; }

/* Stats section with video — light overlay, dark text */
.stats-video {
  border-block: 1px solid rgba(13,27,46,0.08);
}
.stats-video .video-bg-overlay {
  background: rgba(234,241,255,0.88); /* light-blue wash over the video */
}

.why-us-video {
  border-block: 1px solid rgba(13,27,46,0.08);
}
.why-us-video .video-bg-overlay {
  background: rgba(234,241,255,0.92); /* same light-blue wash, slightly more opaque for card legibility */
}
.stats-video .stat-number,
.stats-video .stat-num   { color: var(--red); }
.stats-video .stat-label,
.stats-video .stat-lbl   { color: var(--text-on-light-muted); }
.stats-video .stat-item:not(:last-child)::after {
  background: rgba(13,27,46,0.12);
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-white);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }        /* max 3rem = 48px */
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }    /* max 1.6rem = 25.6px */
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p  { color: var(--text-muted); line-height: 1.8; text-align: justify; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section-header                 { margin-bottom: 40px; }
.section-header.center,
.section-header.centered        { text-align: center; }
.section-header.center .section-lead,
.section-header.centered .section-lead { margin-inline: auto; text-align: center; }
.section-header.centered .eyebrow,
.section-header.center   .eyebrow { display: block; }

.section-title { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 16px; }
.section-lead  { font-size: 1.05rem; color: var(--text-muted); max-width: 620px; line-height: 1.8; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { transition: transform var(--duration) var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-red {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}
.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px var(--red-glow);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

.btn-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-white:hover { background: #fff; color: var(--red); border-color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.82rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
/* Top info bar */
.header-topbar {
  height: var(--topbar-h);
  background: rgba(2, 6, 14, 0.98);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0 18px;
  border-left: 1px solid rgba(255,255,255,0.07);
  line-height: 1;
  white-space: nowrap;
}
.topbar-item:last-child { border-right: 1px solid rgba(255,255,255,0.07); }
.topbar-item svg { color: var(--red); flex-shrink: 0; }
.topbar-item a { color: inherit; transition: color var(--duration) var(--ease); }
.topbar-item a:hover { color: var(--red); }
/* Main nav row */
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(5, 13, 26, 0.94);
}
.header-nav > .container { width: 100%; }
.site-header.scrolled .header-nav {
  background: rgba(5, 13, 26, 0.99);
}
.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

/* Logo */
.site-logo { flex-shrink: 0; display: flex; align-items: center; }
.site-logo img { height: 32px; width: auto; max-width: 140px; object-fit: contain; }
.logo-wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.03em;
  line-height: 1;
}
.logo-wordmark .logo-text { display: flex; flex-direction: column; }
.logo-wordmark span {
  display: block;
  font-size: 0.57rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.logo-mark-svg { flex-shrink: 0; }

/* Nav — wp_nav_menu outputs <nav class="site-nav"> */
.site-nav { flex: 1; display: flex; align-items: center; justify-content: center; }
.main-navigation { flex: 1; display: flex; align-items: center; justify-content: center; } /* alias */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  transition: color var(--duration) var(--ease);
  display: block;
}
.nav-menu a:hover { color: var(--text-white); }
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a { color: var(--red); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}
.nav-toggle span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
  transform-origin: center;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--bg-deepest);
  z-index: 998;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  /* Prevent content from touching edges */
  padding: 0;
}
.mobile-nav.is-open { transform: translateX(0); }

/* Inner wrapper — scrollable padding area */
.mobile-nav-inner {
  padding: 28px 24px 40px;
  display: flex; flex-direction: column;
  flex: 1;
}

/* Nav links */
.mobile-nav-menu { display: flex; flex-direction: column; }
.mobile-nav-menu a,
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-white);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 56px;
  transition: color var(--duration) var(--ease), padding-left var(--duration) var(--ease);
}
.mobile-nav-menu a:hover,
.mobile-nav a:hover      { color: var(--text-white); padding-left: 12px; }
.mobile-nav-cta,
.mobile-nav .btn-wrap    { margin-top: 32px; }
.mobile-nav-cta .btn,
.mobile-nav .btn         { width: 100%; justify-content: center; }

/* =========================================================
   HERO — HOMEPAGE
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  background: var(--bg-deepest);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  /* Left side: dark enough for text legibility — right side: photo shows through */
  background: linear-gradient(100deg, rgba(5,13,26,0.88) 0%, rgba(5,13,26,0.70) 45%, rgba(5,13,26,0.25) 100%);
}
.hero > .container {
  position: relative; z-index: 1;
  padding-block: 100px 90px;
  width: 100%;
}
/* Hero with a right-side image */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
/* Hero full-width (no right image) */
.hero-content { max-width: 760px; }
.hero-title { font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1.04; margin-bottom: 22px; }
.hero-title em { font-style: normal; color: var(--red); }
.hero-body { font-size: 1.05rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 30px; max-width: 580px; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.hero-pill {
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 5px 13px;
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
  transition: all var(--duration) var(--ease);
}
.hero-pill:hover { color: var(--text-white); border-color: var(--red); background: rgba(215,21,49,0.08); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero image */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.hero-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-frame::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(215,21,49,0.12) 0%, transparent 55%);
  z-index: 1;
}
.hero-img-frame::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 56px;
  border-top: 3px solid var(--red);
  border-left: 3px solid var(--red);
  z-index: 2;
}
.hero-badge {
  position: absolute;
  bottom: 28px; left: -28px;
  background: rgba(22, 32, 50, 0.95);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(12px);
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.hero-badge-icon {
  width: 40px; height: 40px;
  background: rgba(215,21,49,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.hero-badge-icon svg { color: var(--red); }
.hero-badge-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.hero-badge-value { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--text-white); line-height: 1.1; margin-top: 2px; }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb-bar {
  background: var(--bg-deepest);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-family: var(--font-body);
}
.breadcrumb-item a {
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
}
.breadcrumb-item a:hover { color: var(--red); }
/* › separator */
.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  margin-inline: 8px;
  color: var(--text-muted);
  opacity: 0.45;
}
.breadcrumb-item--current {
  color: var(--text-light);
  font-weight: 600;
}

/* =========================================================
   INNER PAGE HERO
   ========================================================= */
.inner-hero {
  position: relative;
  padding-block: 80px 70px;
  background: var(--bg-deepest);
  overflow: hidden;
}
/* Compact variant used on Contact + Careers */
.inner-hero--sm { padding-block: 56px 48px; }
.inner-hero-accent {
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--red);
}
.inner-hero .container { position: relative; z-index: 1; }
.inner-hero-bg { position: absolute; inset: 0; }
.inner-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
/* Dark gradient overlay — this is what dims the image, not the img opacity */
.inner-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,13,26,1) 0%, rgba(5,13,26,0.8) 100%);
}
.inner-hero h1 { font-size: clamp(2rem, 4.5vw, 3.8rem); margin-bottom: 18px; max-width: 720px; }
.inner-hero p   { font-size: 1.05rem; max-width: 580px; line-height: 1.8; }

/* =========================================================
   CLIENT STRIP
   ========================================================= */
/* .client-strip replaced by .clients-section / clients-carousel (see above) */

/* =========================================================
   CLIENTS CAROUSEL
   ========================================================= */
.clients-section {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 32px;
  overflow: hidden;
}

.clients-heading {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Clips the overflowing track + fades edges */
.clients-carousel-outer {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent 0%, black 100px,
    black calc(100% - 100px), transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%, black 100px,
    black calc(100% - 100px), transparent 100%
  );
}

/* Single flex track — logos appear TWICE inside so -50%
   translation lands exactly at the start of the duplicate,
   creating a seamless infinite loop with no jump.          */
.clients-track {
  display: flex;
  align-items: center;
  width: max-content;       /* shrink-wraps to actual content */
  animation: clients-marquee linear infinite;
}

.clients-carousel-outer:hover .clients-track {
  animation-play-state: paused;
}

@keyframes clients-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* -50% = exactly one set of logos */
}

/* Fixed 120×120 square cell — matches the 500×500 source canvas.
   object-fit: contain scales every logo the same way so all
   brand marks appear at equal visual weight.               */
.clients-logo-item {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clients-logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Full colour — no filter */
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}

.clients-carousel-outer:hover .clients-logo-item img {
  opacity: 1;
}

/* Empty state */
.clients-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 12px;
}

/* Mobile */
@media (max-width: 768px) {
  .clients-logo-item { width: 84px; height: 84px; margin: 0 16px; }
}

/* Respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; gap: 24px; }
  .clients-carousel-outer { mask-image: none; -webkit-mask-image: none; }
}

/* =========================================================
   CARDS
   ========================================================= */
/* Service card (homepage 2×2) */
.service-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-top: 3px solid var(--red);
  border-left: 3px solid var(--red);
  box-shadow: var(--surface-shadow);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  position: relative; overflow: hidden;
}
.service-card:hover { background: var(--surface-hover); transform: translateY(-4px); box-shadow: var(--surface-hover-shadow); }
.service-card h3 { color: var(--surface-text-heading); }
.service-card p  { color: var(--surface-text-body); }

.card-icon {
  width: 48px; height: 48px;
  background: var(--surface-icon-bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { color: var(--red); }

.service-card h3 { font-size: 1.25rem; }
.service-card p  { font-size: 0.88rem; line-height: 1.78; flex: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; color: var(--red);
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: gap var(--duration) var(--ease);
  margin-top: 4px;
}
.card-link:hover { gap: 10px; }

/* Feature card (Why Choose Us / Careers) */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-top: 3px solid var(--red);
  border-left: 3px solid var(--red);
  box-shadow: var(--surface-shadow);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.feature-card:hover { background: var(--surface-hover); transform: translateY(-3px); box-shadow: var(--surface-hover-shadow); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--surface-text-heading); }
.feature-card p  { font-size: 0.87rem; line-height: 1.78; color: var(--surface-text-body); }

/* Industry card */
.industry-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--surface-shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;           /* clips the image to card corners */
  text-align: center;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--surface-hover-shadow); }

/* Image header */
.industry-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.industry-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.industry-card:hover .industry-card-img img { transform: scale(1.04); }

/* Text body — inherits padding now that there's no top padding needed */
.industry-card h3 {
  font-size: 1.2rem;
  margin: 24px 28px 10px;
  color: var(--surface-text-heading);
}
.industry-card p {
  font-size: 0.87rem;
  line-height: 1.78;
  color: var(--surface-text-body);
  padding: 0 28px 28px;
  margin: 0;
}

/* Keep the SVG icon style in case it's used elsewhere */
.industry-icon {
  width: 64px; height: 64px;
  background: var(--surface-icon-bg);
  border: 1px solid var(--surface-icon-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 24px auto 0;
  transition: background var(--duration) var(--ease);
}
.industry-card:hover .industry-icon { background: rgba(215,21,49,0.18); }
.industry-icon svg { color: var(--red); }

/* =========================================================
   STATS
   ========================================================= */
.stats-section {
  padding-block: 64px;
  border-block: 1px solid var(--border);
  /* default: dark bg — overridden by .stats-video */
  background: var(--bg-mid);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center; padding: 20px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 10%; bottom: 10%;
  width: 1px; background: var(--border);
}
/* HTML uses .stat-number and .stat-label */
.stat-number,
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700; color: var(--red);
  line-height: 1; margin-bottom: 8px; display: block;
}
.stat-label,
.stat-lbl {
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
}

/* Centred button row below a card grid */
.section-action {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  background: var(--red);
  padding-block: 80px;
  position: relative; overflow: hidden;
}
/* Subtle diagonal rule — industrial, not gradient-kitsch */
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 40px,
    rgba(0,0,0,0.06) 40px,
    rgba(0,0,0,0.06) 41px
  );
  pointer-events: none;
}
.cta-banner > .container {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  justify-content: space-between; gap: 48px;
}
.cta-text { flex: 1; }
.cta-banner h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); color: #fff; margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,0.82); font-size: 1rem; max-width: 560px; line-height: 1.75; }
.cta-actions { flex-shrink: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-deepest);
  border-top: 1px solid var(--border);
}
/* HTML uses .footer-grid */
.footer-grid,
.footer-main {
  padding-block: 72px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 56px;
}
/* Logo area inside footer brand col */
.footer-logo { margin-bottom: 18px; }
.footer-logo .logo-wordmark { font-size: 1.3rem; }
.footer-logo img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.footer-tagline { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; max-width: 280px; }
/* HTML uses .footer-social */
.footer-social,
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}
.social-btn:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.social-btn svg { width: 15px; height: 15px; }

.footer-col-title {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-white);
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
/* HTML uses .footer-nav */
.footer-nav,
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a,
.footer-links a {
  font-size: 0.875rem; color: var(--text-muted); padding: 3px 0;
  transition: color var(--duration) var(--ease), padding-left var(--duration) var(--ease);
}
.footer-nav a:hover,
.footer-links a:hover { color: var(--text-white); padding-left: 8px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 16px; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact-icon {
  width: 32px; height: 32px;
  background: rgba(215,21,49,0.1);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.footer-contact-icon svg { color: var(--red); }
/* HTML uses bare <p> inside .footer-contact-item */
.footer-contact-text,
.footer-contact-item > p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; margin: 0; }
.footer-contact-text a,
.footer-contact-item > p a { transition: color var(--duration) var(--ease); }
.footer-contact-text a:hover,
.footer-contact-item > p a:hover { color: var(--red); }

.footer-bar {
  border-top: 1px solid var(--border);
  padding-block: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bar p,
.footer-bar span { font-size: 0.78rem; color: var(--text-muted); }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-text p + p { margin-top: 18px; }
.about-img-wrap {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 3/4;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-img-wrap::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 40%; height: 40%;
  border-bottom: 4px solid var(--red); border-right: 4px solid var(--red);
  border-radius: 0 0 var(--radius-lg) 0;
}

.vision-block {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-left: 4px solid var(--red);
  box-shadow: var(--surface-shadow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 40px 40px 40px 44px;
  margin-bottom: 56px;
}
.vision-block h3 { font-size: 1.5rem; margin-bottom: 14px; color: var(--surface-text-heading); }
.vision-block p  { font-size: 1rem; line-height: 1.8; color: var(--surface-text-body); }

.wwd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wwd-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--text-light); line-height: 1.5;
  transition: background var(--duration) var(--ease);
}
.wwd-item:hover { background: var(--bg-card-hover); }
.wwd-item svg { color: var(--red); flex-shrink: 0; margin-top: 3px; }

.missions-list { display: flex; flex-direction: column; gap: 16px; }
.mission-item {
  display: grid; grid-template-columns: 64px 1fr;
  gap: 24px; align-items: flex-start;
  padding: 28px; background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius);
  box-shadow: var(--surface-shadow);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.mission-item:hover { background: var(--surface-hover); box-shadow: var(--surface-hover-shadow); }
.mission-num {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 700;
  color: var(--red); opacity: 0.35; line-height: 1;
}
.mission-text { font-size: 0.93rem; color: var(--surface-text-body); line-height: 1.8; padding-top: 6px; }
.mission-text h4 { color: var(--surface-text-heading); margin-bottom: 8px; }

/* =========================================================
   SERVICES PAGE
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Home page — 4-up icon service cards */
.home-svc-icon {
  width: 56px; height: 56px;
  background: var(--surface-icon-bg);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--red);
  transition: background var(--duration) var(--ease);
}
.service-card:hover .home-svc-icon { background: rgba(215,21,49,0.16); }
.svc-card {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius);
  box-shadow: var(--surface-shadow);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--surface-hover-shadow); }
.svc-card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.svc-card:hover .svc-card-img img { transform: scale(1.05); }
.svc-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,13,26,0.65) 100%);
}
.svc-card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc-card-body .card-icon { margin-bottom: 4px; }
.svc-card-body h3 { font-size: 1.15rem; color: var(--surface-text-heading); }
.svc-card-body p  { font-size: 0.86rem; line-height: 1.78; flex: 1; color: var(--surface-text-body); }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 60px; align-items: flex-start;
}
.form-card {
  background: var(--surface); border: 1px solid var(--surface-border);
  box-shadow: var(--surface-shadow);
  border-radius: var(--radius-lg); padding: 40px;
}
.form-card h3 { font-size: 1.7rem; margin-bottom: 6px; color: var(--surface-text-heading); }
.form-card .form-sub { font-size: 0.9rem; margin-bottom: 28px; color: var(--surface-text-body); }

.cf7-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.cf7-field label {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--surface-text-body);
}
.cf7-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 0.9rem; color: var(--text-light);
  outline: none;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  border-color: var(--red);
  background: rgba(215,21,49,0.04);
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input[type="submit"] {
  width: 100%; background: var(--red); color: #fff; border: none;
  border-radius: var(--radius); padding: 15px 32px;
  font-family: var(--font-display); font-size: 0.95rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.wpcf7 input[type="submit"]:hover { background: var(--red-dark); transform: translateY(-1px); }

.contact-info-panel { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--surface-shadow);
}
.info-card-title {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--surface-text-body);
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--surface-separator);
}
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.info-row + .info-row { border-top: 1px solid var(--surface-separator); }
.info-icon {
  width: 36px; height: 36px;
  background: var(--surface-icon-bg); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon svg { color: var(--red); }
.info-body { font-size: 0.86rem; color: var(--surface-text-body); line-height: 1.65; }
.info-body strong { display: block; color: var(--surface-text-heading); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; font-family: var(--font-body); }
.info-body a:hover { color: var(--red); }

/* Before / After Slider */
.ba-slider {
  position: relative;
  width: 100%; max-width: 860px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  cursor: col-resize;
  user-select: none;
  touch-action: pan-y;
}
.ba-img {
  display: block; width: 100%;
  height: 420px; object-fit: cover;
  pointer-events: none;
}
.ba-img--before {
  position: absolute; inset: 0;
  clip-path: inset(0 50% 0 0);
}
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  width: 40px; z-index: 10; pointer-events: none;
}
.ba-handle-line {
  flex: 1; width: 2px;
  background: rgba(255,255,255,0.9);
}
.ba-handle-btn {
  display: flex; align-items: center; gap: 2px;
  background: #fff; color: var(--red);
  border-radius: 50px; padding: 6px 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.ba-label {
  position: absolute; bottom: 14px;
  background: rgba(0,0,0,0.45); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
  pointer-events: none; z-index: 5;
  transition: opacity 0.2s;
}
.ba-label--before { left: 14px; }
.ba-label--after  { right: 14px; }
@media (max-width: 600px) {
  .ba-img { height: 240px; }
}

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--surface-border); }
.map-embed iframe { width: 100%; height: 220px; display: block; filter: grayscale(0.4) invert(0.9) hue-rotate(170deg); }
/* =========================================================
   FEATURE ICON — careers / why-us cards use .feature-icon not .card-icon
   ========================================================= */
.feature-icon {
  width: 52px; height: 52px;
  background: var(--surface-icon-bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { color: var(--red); }

/* =========================================================
   WHY CHOOSE US — numbered 2×2 + image layout
   ========================================================= */
.why-us-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}
.why-us-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 32px;
}
.why-us-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-top: 3px solid var(--red);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--surface-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
.why-us-item:hover { box-shadow: var(--surface-hover-shadow); transform: translateY(-3px); }

.why-us-item .feature-icon { margin-bottom: 2px; }
.why-us-item h3 { font-size: 1.05rem; color: var(--surface-text-heading); margin: 0; }
.why-us-item p  { font-size: 0.88rem; line-height: 1.72; color: var(--surface-text-body); }

.why-us-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 8px 32px rgba(13,27,46,0.12);
}
.why-us-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1100px) {
  .why-us-layout { grid-template-columns: 1fr 320px; gap: 48px; }
}
@media (max-width: 900px) {
  .why-us-layout { grid-template-columns: 1fr; }
  .why-us-img    { aspect-ratio: 16/9; max-height: 340px; }
}

/* =========================================================
   CONTACT INFO ITEMS — page-contact.php uses .info-item / .info-icon
   ========================================================= */
.info-item,
.info-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.info-item + .info-item,
.info-item + .info-row,
.info-row  + .info-row  { border-top: 1px solid var(--surface-separator); }
.info-item > p,
.info-row > p           { font-size: 0.86rem; color: var(--surface-text-body); line-height: 1.65; margin: 0; }
.info-item > p a:hover,
.info-row  > p a:hover  { color: var(--red); }
.info-icon {
  width: 36px; height: 36px;
  background: var(--surface-icon-bg); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon svg { color: var(--red); }

/* =========================================================
   WHAT WE DO — .wwd-check is the checkmark span inside .wwd-item
   ========================================================= */
.wwd-check {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  background: var(--surface-icon-bg);
  border-radius: 4px;
  flex-shrink: 0; margin-top: 1px;
}
.wwd-check svg { color: var(--red); }

/* =========================================================
   CAREERS CONTACT NOTE
   ========================================================= */
.careers-contact {
  margin-top: 32px; font-size: 0.9rem; color: var(--surface-text-body);
  border-top: 1px solid var(--surface-separator); padding-top: 24px;
}
.careers-contact a { color: var(--red); }
.careers-contact a:hover { text-decoration: underline; }

/* =========================================================
   FALLBACK FORM (.trident-form) — shown when CF7 not active
   ========================================================= */
.trident-form .cf7-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.trident-form .cf7-field label {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted);
}
.trident-form .req { color: var(--red); }
.trident-form .opt { color: var(--text-muted); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 0.7rem; }
.trident-form input[type="text"],
.trident-form input[type="email"],
.trident-form input[type="tel"],
.trident-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 1rem; /* 16px — prevents iOS Safari auto-zoom on focus */
  color: var(--text-light);
  outline: none;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.trident-form input:focus,
.trident-form textarea:focus {
  border-color: var(--red);
  background: rgba(215,21,49,0.04);
}
.trident-form textarea { min-height: 140px; resize: vertical; }
.trident-form input[type="submit"] {
  width: 100%; background: var(--red); color: #fff; border: none;
  border-radius: var(--radius); padding: 15px 32px;
  font-family: var(--font-display); font-size: 0.95rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
  min-height: 52px; /* touch target */
}
.trident-form input[type="submit"]:hover { background: var(--red-dark); transform: translateY(-1px); }

/* Honeypot — off-screen, zero size, not announced to assistive tech */
.trident-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Submission notices */
/* Form modal popup */
.form-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.form-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}
.form-modal-box {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  padding: 48px 40px 40px;
  max-width: 420px; width: 100%;
  text-align: center;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.form-modal-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-modal-icon--ok  { background: rgba(22,163,74,0.10); color: #15803d; }
.form-modal-icon--err { background: rgba(215,21,49,0.08); color: var(--red); }
.form-modal-title {
  font-size: 1.3rem; font-weight: 700;
  color: var(--surface-text-heading); margin-bottom: 10px;
}
.form-modal-msg {
  font-size: 0.95rem; color: var(--surface-text-body);
  line-height: 1.7; margin-bottom: 28px;
}
.form-modal-close { min-width: 120px; }

.form-notice {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.form-notice--ok  { background: rgba(22,163,74,0.10);  border: 1px solid rgba(22,163,74,0.35); color: #15803d; }
.form-notice--err { background: rgba(215,21,49,0.08); border: 1px solid rgba(215,21,49,0.30); color: var(--red-dark); }
.form-notice a { color: inherit; text-decoration: underline; }

/* Legible inputs when the form sits on a light (white/blue) card */
.bg-white .trident-form input[type="text"],
.bg-white .trident-form input[type="email"],
.bg-white .trident-form input[type="tel"],
.bg-white .trident-form textarea,
.bg-light .trident-form input[type="text"],
.bg-light .trident-form input[type="email"],
.bg-light .trident-form input[type="tel"],
.bg-light .trident-form textarea {
  background: #f6f8fc;
  border-color: rgba(13,27,46,0.15);
  color: var(--text-on-light);
}
.bg-white .trident-form input:focus,
.bg-white .trident-form textarea:focus,
.bg-light .trident-form input:focus,
.bg-light .trident-form textarea:focus {
  background: #fff;
  border-color: var(--red);
}
.bg-white .trident-form .cf7-field label,
.bg-light .trident-form .cf7-field label { color: var(--text-on-light-muted); }

/* Select (Type of Enquiry) — matches the text inputs, with a custom chevron */
.trident-form select {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 13px 44px 13px 16px;
  font-size: 1rem; /* 16px — prevents iOS auto-zoom */
  color: var(--text-light);
  cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A90AE' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}
.trident-form select:focus { border-color: var(--red); }

/* Light-card variant (contact page sits on a white card) */
.bg-white .trident-form select,
.bg-light  .trident-form select {
  background-color: #f6f8fc;
  border-color: rgba(13,27,46,0.15);
  color: var(--text-on-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230D1B2E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.bg-white .trident-form select:focus,
.bg-light  .trident-form select:focus { background-color: #fff; border-color: var(--red); }

/* Muted placeholder until a real category is chosen */
.bg-white .trident-form select:invalid,
.bg-light  .trident-form select:invalid { color: var(--text-on-light-muted); }

/* Fix CF7 inputs — 16px prevents iOS auto-zoom on focus */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea { font-size: 1rem; }

/* =========================================================
   CAREERS PAGE
   ========================================================= */
.tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--surface-separator); margin-bottom: 32px; }
.tab-btn {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--surface-text-body); padding: 14px 28px;
  background: none; border: none; cursor: pointer;
  position: relative; letter-spacing: 0.05em; text-transform: uppercase;
  transition: color var(--duration) var(--ease);
}
.tab-btn::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--red);
  transition: width var(--duration) var(--ease);
}
.tab-btn.active { color: var(--surface-text-heading); }
.tab-btn.active::after { width: 100%; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.job-listing {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--surface-shadow);
  padding: 40px 48px;
}
.job-list {
  list-style: none; padding: 0; margin: 0 0 28px;
}
.job-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--surface-border);
  font-size: 1rem; font-weight: 500;
  color: var(--surface-text-heading);
  display: flex; align-items: center; gap: 10px;
}
.job-list li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
}
.job-list li:first-child { border-top: 1px solid var(--surface-border); }
.job-apply-note {
  font-size: 0.875rem; color: var(--surface-text-body); line-height: 1.75;
}
.job-apply-note a { color: var(--red); text-decoration: none; }
.job-apply-note a:hover { text-decoration: underline; }

.vacancy-empty {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius);
  box-shadow: var(--surface-shadow);
  padding: 56px; text-align: center;
}
.vacancy-empty .empty-icon {
  width: 56px; height: 56px;
  background: var(--surface-icon-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.vacancy-empty .empty-icon svg { color: var(--red); }
.vacancy-empty h4 { font-size: 1.25rem; margin-bottom: 10px; }
.vacancy-empty p { font-size: 0.9rem; max-width: 360px; margin-inline: auto; text-align: center; }

/* =========================================================
   VACANCIES LAYOUT
   ========================================================= */
.vacancies-layout { display: flex; flex-direction: column; gap: 48px; }

.vacancy-section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red);
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--surface-separator);
}
.vacancy-section-label svg { flex-shrink: 0; }

/* =========================================================
   VACANCY CARD
   ========================================================= */
.vacancy-list { display: flex; flex-direction: column; gap: 20px; }

.vacancy-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--surface-shadow);
  padding: 28px 32px;
  display: flex; flex-direction: column; gap: 20px;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.vacancy-card:hover { box-shadow: var(--surface-hover-shadow); transform: translateY(-2px); }

.vacancy-card-header { display: flex; flex-direction: column; gap: 10px; }
.vacancy-card-meta   { display: flex; flex-wrap: wrap; gap: 8px; }

.vacancy-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.vacancy-tag--type  { background: var(--surface-icon-bg); color: var(--red); border: 1px solid var(--surface-icon-border); }
.vacancy-tag--level { background: rgba(13,27,46,0.06); color: var(--surface-text-body); border: 1px solid rgba(13,27,46,0.12); }

.vacancy-card-title { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--surface-text-heading); margin: 0; }

.vacancy-card-body h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--surface-text-body); margin-bottom: 12px; }

.vacancy-requirements { display: flex; flex-direction: column; gap: 8px; }
.vacancy-requirements li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; line-height: 1.6; color: var(--surface-text-body);
}
.vacancy-requirements li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px; margin-top: 2px;
  background: var(--surface-icon-bg);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23d71531' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.vacancy-card-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-separator);
}
.vacancy-deadline {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 600; color: var(--surface-text-body);
}
.vacancy-deadline svg { color: var(--red); flex-shrink: 0; }

/* =========================================================
   GLOBAL MOBILE SAFETY
   ========================================================= */
/* Prevent any element causing horizontal overflow */
* { min-width: 0; }

/* Minimum touch target for all interactive elements */
a, button, [role="button"], input[type="submit"] {
  touch-action: manipulation;
}
.nav-menu a,
.mobile-nav a,
.btn,
.tab-btn,
.card-link,
.social-btn {
  min-height: 44px;
  display: inline-flex; align-items: center;
}
/* nav-menu links are already display:block — override to inline-flex */
.nav-menu li  { display: flex; }
.nav-menu a   { display: flex; align-items: center; }

/* Images never overflow their container */
img, iframe, video, embed, object { max-width: 100%; }

/* =========================================================
   SERVICE DETAIL PAGE
   ========================================================= */

/* ── Overview: 2-column text + image ─────────────────────── */
.svc-page-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.svc-page-intro-text h2 {
  margin-bottom: 20px;
}
.svc-page-intro-text p + p {
  margin-top: 16px;
}
.svc-page-intro-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.svc-page-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

/* ── Highlight strip (4 items below intro text) ───────────── */
.svc-page-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 32px;
}
.svc-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--surface-text-heading);
}
.svc-highlight-item svg {
  flex-shrink: 0;
  color: var(--red);
}

/* ── Systems/Technology cards ─────────────────────────────── */
.svc-systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
/* If the last card is alone on its row (odd total count: 1, 3, 5…)
   span it across both columns at half-width and centre it.          */
.svc-systems-grid > .svc-system-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 14px); /* matches one column width */
  margin-inline: auto;
}
.svc-system-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-top: 3px solid var(--red);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-lg);
  box-shadow: var(--surface-shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--duration) var(--ease);
}
.svc-system-card:hover {
  box-shadow: var(--surface-hover-shadow);
}
.svc-system-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.svc-system-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 3px 10px var(--red-glow);
}
.svc-system-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.svc-system-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--surface-icon-bg);
  border: 1px solid var(--surface-icon-border);
  border-radius: 999px;
  padding: 2px 10px;
  width: fit-content;
}
.svc-system-title h3 {
  color: var(--surface-text-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.25;
  margin: 0;
}
.svc-system-desc {
  color: var(--surface-text-body);
  font-size: 0.93rem;
  line-height: 1.75;
  text-align: justify;
  margin: 0;
}

/* ── Detail block (Ideal For / Key Benefits sub-sections) ─── */
.svc-detail-block {
  border-top: 1px solid var(--surface-separator);
  padding-top: 14px;
}
.svc-detail-block h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

/* Ideal for — tag pills */
.svc-ideal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ideal-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--surface-text-heading);
  background: var(--surface-icon-bg);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 4px 12px;
  line-height: 1.4;
}

/* Benefits checklist */
.svc-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--surface-text-body);
  line-height: 1.55;
  text-align: left;
}
.svc-benefit-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-icon-bg);
  border: 1px solid var(--surface-icon-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-top: 1px;
}

/* ── Gallery ──────────────────────────────────────────────── */
/* ── Static grid (kept for any non-carousel use) ─── */
.svc-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

/* ── Paginated 3×2 gallery (individual service pages) ─ */
.svc-gallery-carousel {
  margin-top: 48px;
}

/* Each page is a 3-col grid — hidden until .is-active */
.gallery-page {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-page.is-active {
  display: grid;
  animation: gallery-fade 0.35s var(--ease);
}
@keyframes gallery-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Individual thumbnail */
.gallery-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--bg-card);
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s var(--ease);
}
.gallery-thumb:hover img { transform: scale(1.05); }

/* Pagination controls (prev · dots · next) */
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.gallery-nav {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--surface-text-body);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.gallery-nav:hover { background: var(--red); border-color: var(--red); color: #fff; }
.gallery-dots { display: flex; gap: 8px; align-items: center; }
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.gallery-dot.is-active { background: var(--red); transform: scale(1.35); }
.bg-white .gallery-dot, .bg-light .gallery-dot { background: rgba(13,27,46,0.18); }
.bg-white .gallery-dot.is-active, .bg-light .gallery-dot.is-active { background: var(--red); }

/* ── Lightbox ───────────────────────────────────────── */
#gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#gallery-lightbox.is-open { display: flex; }
.lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,6,14,0.93);
  cursor: pointer;
}
.lb-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 92vw;
  max-height: 90vh;
}
.lb-img {
  max-width: 78vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lb-close {
  position: fixed;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.lb-close:hover { background: var(--red); border-color: var(--red); }
.lb-prev, .lb-next {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.lb-prev:hover, .lb-next:hover { background: var(--red); border-color: var(--red); }
.lb-counter {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .gallery-page  { grid-template-columns: repeat(2, 1fr); }
  .lb-img        { max-width: 94vw; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
  .lb-content    { gap: 10px; }
}
.svc-gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
}
.svc-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.svc-gallery-item:hover img {
  transform: scale(1.04);
}
.svc-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,13,26,0.80) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.svc-gallery-item:hover .svc-gallery-overlay {
  opacity: 1;
}
.svc-gallery-overlay span {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  line-height: 1.4;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* 5-column stats variant (adds visitor counter to existing 4-stat grids) */
.stats-grid--5 { grid-template-columns: repeat(5, 1fr); }

/* =========================================================
   RESPONSIVE — mobile-first, four breakpoints
   ========================================================= */

/* ── 1100px: wide tablets / small laptops ─────────────── */
@media (max-width: 1100px) {
  .grid-4                        { grid-template-columns: repeat(2, 1fr); }
  .home-services-grid            { grid-template-columns: repeat(2, 1fr); }
  .stats-grid                    { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-item:nth-child(4)::after { display: none; }
  /* 5-col variant: 3 + 2 at this breakpoint, hide all separators */
  .stats-grid--5                 { grid-template-columns: repeat(3, 1fr); }
  .stats-grid--5 .stat-item::after { display: none; }
  .footer-grid, .footer-main     { grid-template-columns: 1fr 1fr; gap: 40px; }
  .services-grid                 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid                     { gap: 48px; }
}

/* ── 900px: tablets ────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid           { grid-template-columns: 1fr; }
  .hero-visual         { display: none; }
  .hero > .container   { padding-block: 60px; }
  .about-intro         { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap      { aspect-ratio: 16/9; max-height: 300px; }
  .services-grid       { grid-template-columns: repeat(2, 1fr); }
  .contact-layout      { grid-template-columns: 1fr; gap: 36px; }
  .wwd-grid            { grid-template-columns: 1fr; }
  .mission-item        { padding: 20px 24px; gap: 16px; }
  .inner-hero          { padding-block: 60px 52px; }
  .inner-hero--sm      { padding-block: 44px 36px; }

  /* Service page */
  .svc-page-intro      { grid-template-columns: 1fr; gap: 40px; }
  .svc-systems-grid    { grid-template-columns: 1fr; }
  .svc-systems-grid > .svc-system-card:last-child:nth-child(odd) { grid-column: auto; max-width: 100%; margin-inline: 0; }
  .svc-gallery         { grid-template-columns: repeat(2, 1fr); }
  .gallery-nav         { width: 36px; height: 36px; }
}

/* ── 768px: phones landscape / small tablets ─────────── */
@media (max-width: 768px) {
  :root {
    --topbar-h:    0px;
    --header-nav-h: 58px;
    --header-h:    58px;
  }
  .header-topbar { display: none; }

  /* Header */
  .nav-toggle, .nav-toggle        { display: flex; }
  .site-nav, .main-navigation     { display: none; }
  .header-cta                     { display: none; }
  .mobile-nav                     { display: flex; }
  .logo-wordmark                  { font-size: 1.15rem; gap: 10px; }
  .logo-mark-svg                  { width: 24px; height: 28px; }
  .site-logo img                  { height: 26px; max-width: 110px; }
  .footer-logo img                { height: 32px; max-width: 130px; }

  /* Container */
  .container                      { padding-inline: 20px; }

  /* Grids */
  .grid-2, .grid-3                { grid-template-columns: 1fr; }
  .home-services-grid             { grid-template-columns: 1fr; }
  .why-us-items                   { grid-template-columns: 1fr; }
  .services-grid                  { grid-template-columns: 1fr; }
  .stats-grid                     { grid-template-columns: repeat(2, 1fr); }
  .stat-item::after               { display: none !important; }
  .cf7-row-2                      { grid-template-columns: 1fr; }

  /* Sections */
  .section                        { padding-block: 64px; }
  .section-sm                     { padding-block: 40px; }
  .section-lg                     { padding-block: 80px; }
  .section-header                 { margin-bottom: 36px; }
  .inner-hero                     { padding-block: 48px 40px; }
  .inner-hero--sm                 { padding-block: 36px 30px; }
  .inner-hero h1                  { font-size: clamp(1.8rem, 7vw, 2.6rem); margin-bottom: 12px; }
  .inner-hero p                   { font-size: 0.95rem; }
  .stats-section                  { padding-block: 48px; }

  /* Cards */
  .service-card                   { padding: 28px 24px; }
  .feature-card                   { padding: 28px 24px; }
  .industry-card                  { padding: 32px 24px; }
  .svc-card-body                  { padding: 24px 20px; }
  .form-card                      { padding: 28px 24px; }

  /* Contact */
  .map-embed iframe               { height: 200px; }

  /* CTA banner */
  .cta-banner                     { padding-block: 56px; }
  .cta-banner > .container        { flex-direction: column; text-align: center; gap: 28px; }
  .cta-banner p                   { margin-inline: auto; }
  .cta-banner .cta-actions        { width: 100%; }
  .cta-banner .btn                { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid, .footer-main      { grid-template-columns: 1fr; gap: 28px; padding-block: 48px 36px; }
  .footer-bar                     { flex-direction: column; text-align: center; gap: 8px; }

  /* Clients carousel mobile overrides handled inside the component block */

  /* Hero */
  .hero-badge                     { display: none; }
  .hero-pills                     { gap: 6px; }
  .hero-body                      { font-size: 0.95rem; }

  /* About */
  .about-text p + p               { margin-top: 14px; }

  /* Service page */
  .svc-page-highlights            { grid-template-columns: 1fr; gap: 10px; }
  .svc-system-card                { padding: 28px 24px; }
  .svc-gallery                    { grid-template-columns: 1fr; gap: 12px; }

  /* Tabs — scrollable on narrow */
  .tab-nav                        { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tab-nav::-webkit-scrollbar     { display: none; }
  .tab-btn                        { white-space: nowrap; }

  /* Before/after slider */
  .ba-img                         { height: 260px; }

  /* Hero */
  .hero-title                     { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-actions                   { flex-direction: column; gap: 12px; }
  .hero-actions .btn              { width: 100%; justify-content: center; }

  /* Careers why-join grid */
  .grid-3                         { grid-template-columns: 1fr; }

  /* Job listing full width on mobile */
  .job-listing                    { padding: 28px 20px; }
}

/* ── 480px: phones portrait ───────────────────────────── */
@media (max-width: 480px) {
  .container                      { padding-inline: 16px; }
  p                               { text-align: justify; }

  /* Hero */
  .hero                           { min-height: auto; }
  .hero > .container              { padding-block: 52px 40px; }
  .hero-actions                   { flex-direction: column; }
  .hero-actions .btn              { width: 100%; justify-content: center; }
  .hero-pills                     { gap: 5px; }
  .hero-pill                      { font-size: 0.7rem; padding: 4px 10px; }

  .site-logo img                  { height: 22px; max-width: 95px; }
  .footer-logo img                { height: 28px; max-width: 110px; }

  /* Sections */
  .section                        { padding-block: 52px; }
  .section-sm                     { padding-block: 32px; }
  .inner-hero--sm                 { padding-block: 32px 26px; }

  /* Typography */
  .section-header                 { margin-bottom: 28px; }
  .section-lead                   { font-size: 0.93rem; }

  /* Stats → single column */
  .stats-grid                     { grid-template-columns: 1fr; }
  .stats-section                  { padding-block: 40px; }
  .stat-item                      { padding: 16px 12px; }
  .stat-number, .stat-num         { font-size: clamp(2.4rem, 10vw, 3.5rem); }

  /* Mission */
  .mission-item                   { grid-template-columns: 1fr; gap: 6px; padding: 18px 16px; }
  .mission-num                    { font-size: 1.8rem; opacity: 0.25; }

  /* Cards */
  .service-card                   { padding: 22px 18px; }
  .feature-card                   { padding: 22px 18px; }
  .industry-card                  { padding: 24px 18px; }
  .svc-card-body                  { padding: 18px 16px; }
  .form-card                      { padding: 20px 16px; }
  .vacancy-empty                  { padding: 36px 16px; }

  /* Footer */
  .footer-grid, .footer-main      { gap: 22px; }

  /* Tabs */
  .tab-btn                        { padding: 12px 18px; font-size: 0.88rem; }

  /* Buttons */
  .btn                            { padding: 13px 24px; font-size: 0.88rem; }
  .btn-sm                         { padding: 10px 18px; font-size: 0.78rem; }
  .social-btn                     { width: 40px; height: 40px; }

  /* About */
  .wwd-item                       { padding: 12px 14px; font-size: 0.85rem; }

  /* Service page */
  .svc-system-card                { padding: 22px 18px; gap: 16px; }
  .svc-system-icon                { width: 44px; height: 44px; }
  .svc-gallery                    { margin-top: 32px; }
  .svc-page-highlights            { margin-top: 24px; }

  /* Contact form */
  .form-card                      { padding: 20px 16px; }
  .form-card h3                   { font-size: 1.3rem; }

  /* Job listing */
  .job-listing                    { padding: 24px 20px; }
  .job-apply-note                 { font-size: 0.82rem; }

  /* Form modal */
  .form-modal-box                 { padding: 32px 20px 24px; }
  .form-modal-title               { font-size: 1.1rem; }

  /* Before/after slider */
  .ba-img                         { height: 200px; }

  /* Why-us layout */
  .why-us-layout                  { gap: 32px; }
  .why-us-img                     { display: none; }

  /* Info cards on contact page */
  .info-card                      { padding: 20px 16px; }

  /* Map */
  .map-embed iframe               { height: 180px; }
}
