/* =====================================================================
   SRIVEN ENGINEERING WORKS LLP - MAIN STYLESHEET
   ---------------------------------------------------------------------
   One stylesheet shared by every page.

   CONTENTS
   1.  Design tokens (CSS variables)  ← change colours / fonts here
   2.  Reset & base
   3.  Typography helpers
   4.  Layout (container, sections, grids)
   5.  Components
       5.1  Buttons
       5.2  Section headings & eyebrows
       5.3  Top utility bar
       5.4  Header & navigation (desktop + mobile slide-in panel)
       5.5  Footer
       5.6  Floating WhatsApp / call buttons
       5.7  Image fallback (shown until real photos are added)
       5.8  Cards, checklists, tables, info boxes, badges
   6.  Pages
       6.1  Home - hero carousel
       6.2  Home - trust strip, intro collage, services, process,
            featured project, gallery, compliance band, CTA band
       6.3  Inner page hero + breadcrumb
       6.4  About
       6.5  Services (zig-zag rows)
       6.6  Projects (filter + lightbox)
       6.7  Quality & Testing
       6.8  Compliance
       6.9  Contact (cards, form, map)
   7.  Animations (scroll reveal, keyframes, reduced motion)
   8.  Media queries (mobile-first: 576 / 768 / 1024 / 1280px)
   ===================================================================== */


/* =====================================================================
   1. DESIGN TOKENS
   ===================================================================== */
:root {
  /* Brand colours (taken from the company posters) */
  --navy: #0B2E6B;          /* primary */
  --navy-dark: #061A40;     /* deep backgrounds, footer */
  --navy-mid: #123C85;      /* hover states on navy */
  --yellow: #FFC20E;        /* accent - use on dark backgrounds or as decoration */
  --yellow-dark: #E5A800;   /* hover on yellow */
  --orange: #F07A1A;        /* pipeline accent - use sparingly, decoration only */
  --light: #F4F7FB;         /* light section background */
  --text: #1A2433;          /* body text */
  --muted: #4F5B6E;         /* secondary text (AA on white and --light) */
  --white: #FFFFFF;
  --border: #DCE3EE;
  --success: #1E7D4F;
  --error: #B42318;

  /* Typography */
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing & sizing */
  --container: 1240px;
  --gutter: 14px;
  --section-y: 42px;
  --header-h: 68px;
  --topbar-h: 40px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(6, 26, 64, 0.08);
  --shadow-md: 0 12px 32px rgba(6, 26, 64, 0.14);
  --shadow-lg: 0 24px 60px rgba(6, 26, 64, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Reusable blueprint grid pattern (used on navy sections) */
  --blueprint:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  --blueprint-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;

  /* Faint navy grid for light sections */
  --blueprint-light:
    linear-gradient(rgba(11, 46, 107, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 46, 107, 0.05) 1px, transparent 1px);
  --blueprint-light-size: 32px 32px, 32px 32px;
}


/* =====================================================================
   2. RESET & BASE
   ===================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img,
svg,
video,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Focus ring on yellow backgrounds needs a dark colour */
.on-yellow :focus-visible,
.btn--primary:focus-visible {
  outline-color: var(--navy-dark);
}

::selection {
  background: var(--yellow);
  color: var(--navy-dark);
}

/* Hide content visually but keep it for screen readers */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* "Skip to content" link for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--yellow);
  color: var(--navy-dark);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* SVG icon sprite (inline, hidden) */
.svg-sprite {
  display: none;
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }
.icon--xl { width: 48px; height: 48px; }


/* =====================================================================
   3. TYPOGRAPHY HELPERS
   ===================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy-dark);
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.9rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.55rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 700; }
h4 { font-size: 1.12rem; font-weight: 700; }

/* Heading that should look like a sub-heading (e.g. an h2 inside a list of services) */
.h3 { font-size: clamp(1.35rem, 3vw, 2.2rem); font-weight: 800; overflow-wrap: break-word; }

p {
  overflow-wrap: break-word;
}

p + p {
  margin-top: 0.85em;
}

.lead {
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  color: var(--muted);
  line-height: 1.6;
}

.text-yellow { color: var(--yellow); }
.text-center { text-align: center; }

/* Highlight a word in a heading with the brand yellow (on dark backgrounds) */
.hl {
  color: var(--yellow);
}

/* Highlight on light backgrounds: navy text with a yellow marker underline */
.hl-mark {
  background: linear-gradient(transparent 62%, rgba(255, 194, 14, 0.75) 62%);
  padding: 0 0.08em;
}


/* =====================================================================
   4. LAYOUT
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--light {
  background: var(--light);
}

.section--tight {
  padding-block: 28px;
}

.section--flush-top {
  padding-top: 14px;
}

.section--grid-light {
  background-color: var(--white);
  background-image: var(--blueprint-light);
  background-size: var(--blueprint-light-size);
}

/* Navy section with blueprint grid */
.section--navy {
  background-color: var(--navy);
  background-image: var(--blueprint);
  background-size: var(--blueprint-size);
  color: rgba(255, 255, 255, 0.86);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--navy .lead {
  color: rgba(255, 255, 255, 0.8);
}

.section--dark {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.86);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

/* Angled section dividers (signature motif). Extra padding compensates
   for the clipped corners so content never gets cut off. */
.angle-both {
  clip-path: polygon(0 0, 100% 20px, 100% 100%, 0 calc(100% - 20px));
  padding-block: calc(var(--section-y) + 20px);
}

.angle-top {
  clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--section-y) + 20px);
}

.angle-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%);
  padding-bottom: calc(var(--section-y) + 20px);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.split {
  display: grid;
  gap: 24px;
  align-items: center;
}

.stack > * + * {
  margin-top: 0.75rem;
}

.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.75rem; }


/* =====================================================================
   5. COMPONENTS
   ===================================================================== */

/* ---------- 5.1 Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(4px);
}

/* Yellow button - main call to action */
.btn--primary {
  background: var(--yellow);
  color: var(--navy-dark);
}

.btn--primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 194, 14, 0.35);
}

/* Navy button */
.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* White outline (for dark backgrounds) */
.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
  background: transparent;
}

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

/* Navy outline (for light / yellow backgrounds) */
.btn--outline-navy {
  border-color: var(--navy-dark);
  color: var(--navy-dark);
  background: transparent;
}

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

.btn--sm {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 1rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Text link with arrow ("Learn more →") */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}

.link-arrow .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(5px);
}

.section--navy .link-arrow,
.section--dark .link-arrow {
  color: var(--yellow);
}


/* ---------- 5.2 Section headings & eyebrows ---------- */
/* Small uppercase label above a heading */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Two small diagonal yellow slashes before the label */
.eyebrow::before {
  content: "";
  width: 18px;
  height: 12px;
  background: linear-gradient(115deg,
    transparent 0 20%, var(--yellow) 20% 45%,
    transparent 45% 60%, var(--yellow) 60% 85%, transparent 85%);
}

.section--navy .eyebrow,
.section--dark .eyebrow,
.page-hero .eyebrow {
  color: var(--yellow);
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head .lead {
  margin-top: 10px;
}

/* Thin yellow underline accent under headings */
.heading-line {
  position: relative;
  padding-bottom: 12px;
}

.heading-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--yellow);
  box-shadow: 64px 0 0 -0px rgba(255, 194, 14, 0.35);
}

.section-head--center .heading-line::after {
  left: 50%;
  transform: translateX(-50%);
  box-shadow: none;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.section-head-row .section-head {
  margin-bottom: 0;
}


/* ---------- 5.3 Top utility bar ---------- */
.topbar {
  position: relative;
  display: none; /* shown from 768px up (see media queries) */
  height: var(--topbar-h);
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.84rem;
  overflow: hidden;
  transition: height 0.35s var(--ease), opacity 0.35s var(--ease);
}

/* Yellow diagonal accent on the left of the bar */
.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 120px;
  background: linear-gradient(115deg,
    var(--yellow) 0 55%, transparent 55% 62%,
    var(--yellow) 62% 70%, transparent 70%);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.topbar__tagline {
  padding-left: 110px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  white-space: nowrap;
}

.topbar__list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.topbar__list a:hover {
  color: var(--yellow);
}

.topbar__list .icon {
  width: 15px;
  height: 15px;
  color: var(--yellow);
}

.topbar__sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
}


/* ---------- 5.4 Header & navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
}

.navbar {
  position: relative;
  height: var(--header-h);
  /* Solid navy on mobile/tablet so text & controls never collide with hero content */
  background: rgba(6, 26, 64, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

/* Header after scrolling: solid navy with shadow, utility bar collapses */
.site-header.is-scrolled .navbar {
  background: var(--navy);
  box-shadow: 0 8px 30px rgba(6, 26, 64, 0.35);
}

.site-header.is-scrolled .topbar {
  height: 0;
  opacity: 0;
}

/* Logo (built with HTML/CSS so it stays crisp; swap for an <img> if preferred) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

/* White badge holding the SEW logo image (keeps its dark text readable on navy) */
.logo__badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 52px;
  padding: 3px 4px;
  background: var(--white);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 4px 14px rgba(6, 26, 64, 0.25);
  flex-shrink: 0;
}

.logo__badge img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.logo__badge--lg {
  width: 68px;
  height: 76px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.logo__name {
  font-family: var(--font-head);
  font-size: clamp(0.92rem, 3.8vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo__tagline {
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  white-space: nowrap;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__quote {
  display: none; /* shown from 576px */
}

/* Hamburger button */
.nav-toggle {
  position: relative;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; width: 14px; }

.nav-toggle[aria-expanded="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy-dark);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  width: 22px;
  transform: translateY(-7px) rotate(-45deg);
}

/* Main navigation - on mobile it is a slide-in panel positioned cleanly below header */
.main-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  z-index: 110;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  padding: 20px 24px 32px;
  background-color: var(--navy-dark);
  background-image: var(--blueprint);
  background-size: var(--blueprint-size);
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.35s;
}

.main-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

/* Yellow accent stripe at the top of the mobile panel */
.main-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(115deg, var(--yellow) 0 16px, transparent 16px 26px);
}

.main-nav__list {
  display: flex;
  flex-direction: column;
}

.main-nav__link {
  position: relative;
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transition: color 0.2s, padding-left 0.3s var(--ease);
}

.main-nav__link:hover,
.main-nav__link.is-active {
  color: var(--yellow);
  padding-left: 10px;
}

.main-nav__extra {
  margin-top: auto;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.main-nav__extra .btn {
  width: 100%;
  margin-bottom: 20px;
}

.main-nav__extra a:not(.btn) {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: inherit;
  text-decoration: none;
}

.main-nav__extra .icon {
  width: 16px;
  height: 16px;
  color: var(--yellow);
}

/* Dark backdrop behind the mobile panel */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 26, 64, 0.6);
  opacity: 0;
  visibility: hidden;
  touch-action: none;
  transition: opacity 0.35s, visibility 0s linear 0.35s;
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s, visibility 0s;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

body.nav-open .float-btn {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: scale(0.8);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}


/* ---------- 5.5 Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* Yellow stripe divider across the top of the footer */
.footer-stripe {
  height: 10px;
  background:
    repeating-linear-gradient(115deg, var(--yellow) 0 22px, var(--navy-dark) 22px 34px);
}

.footer-main {
  display: grid;
  gap: 24px;
  padding-block: 36px 28px;
}

.footer-col h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  color: var(--white);
}

.footer-col h3::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-top: 6px;
  background: var(--yellow);
}

.footer-about p {
  margin-top: 10px;
  max-width: 340px;
  font-size: 0.9rem;
}

.footer-values {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.footer-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--yellow);
  transform: skewX(-20deg);
}

.footer-links a:hover {
  color: var(--yellow);
  transform: translateX(4px);
}

.footer-contact li {
  display: flex;
  gap: 10px;
}

.footer-contact li + li {
  margin-top: 10px;
}

.footer-contact .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--yellow);
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 16px;
  padding-bottom: 76px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom__tag {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}


/* ---------- 5.6 Floating WhatsApp / call buttons ---------- */
.float-btn {
  position: fixed;
  bottom: 16px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(6, 26, 64, 0.3);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.05);
}

.float-btn .icon {
  width: 24px;
  height: 24px;
}

.float-whatsapp {
  right: 14px;
  background: #1FAF54;
  color: var(--white);
}

/* Gentle pulse ring to draw attention */
.float-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #1FAF54;
  animation: pulse-ring 2.4s var(--ease) infinite;
}

.float-call {
  left: 14px;
  background: var(--yellow);
  color: var(--navy-dark);
}


/* ---------- 5.7 Image fallback ----------
   Every photo sits inside a ".media" box. Until the real photo is added,
   the box shows a navy blueprint pattern instead of a broken-image icon
   (main.js adds .img-missing to images that fail to load). */
.media {
  position: relative;
  isolation: isolate; /* keeps the image's z-index inside this box, so overlays placed after it still cover it */
  overflow: hidden;
  background-color: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(6, 26, 64, 0.2), rgba(6, 26, 64, 0.65)),
    var(--blueprint);
  background-size: 100% 100%, var(--blueprint-size);
}

.media img {
  position: relative;
  z-index: 1; /* sits above the placeholder label */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Label shown on the placeholder pattern, taken from data-label="" */
.media[data-label]::before {
  content: attr(data-label);
  position: absolute;
  inset: auto 16px 16px 16px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

img.img-missing {
  opacity: 0;
}


/* ---------- 5.8 Cards, checklists, tables, info boxes, badges ---------- */
.card {
  position: relative;
  height: 100%;
  padding: 22px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}

/* Yellow bottom border that grows in on hover */
.card--hover::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

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

.card--hover:hover::after {
  transform: scaleX(1);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

/* Square icon tile with a yellow corner */
.icon-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  transition: background-color 0.3s, color 0.3s;
}

.icon-tile .icon {
  width: 26px;
  height: 26px;
}

.icon-tile::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.card--hover:hover .icon-tile {
  background: var(--yellow);
  color: var(--navy-dark);
}

/* Dark card (used on navy sections) */
.card--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.card--dark p {
  color: rgba(255, 255, 255, 0.78);
}

.card--dark .icon-tile {
  background: var(--yellow);
  color: var(--navy-dark);
}

.card--dark.card--hover:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 194, 14, 0.4);
}

.card--dark.card--hover:hover .icon-tile {
  background: var(--white);
}

/* Checklist with yellow tick boxes */
.checklist {
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  background: var(--yellow);
  border-radius: 3px;
}

/* Tick drawn with borders */
.checklist li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--navy-dark);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.checklist--2col {
  grid-template-columns: 1fr;
}

/* Data / specification table */
.spec-table {
  width: 100%;
  font-size: 0.88rem;
  background: var(--white);
}

.spec-table th,
.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.spec-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--yellow);
}

.spec-table tbody th {
  width: 36%;
  font-weight: 600;
  color: var(--navy-dark);
  background: var(--light);
}

.spec-table tbody tr:hover td,
.spec-table tbody tr:hover th {
  background: #EAF0F8;
}

/* Wrap tables so they scroll sideways on small screens instead of breaking layout */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Info / disclaimer box */
.info-box {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 16px 14px;
  background: #FFF8E1;
  border: 1px solid #F3D97A;
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  color: #3D3418;
}

.info-box .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--navy);
}

.info-box__title {
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-dark);
}

/* Small badge, e.g. "Placeholder – client to approve" */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--placeholder {
  background: #FFF1C2;
  color: #6A4E00;
  border: 1px dashed #C99A00;
}

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

/* Editable placeholder text - clearly marked for the client */
.placeholder-text {
  border-left: 3px dashed #C99A00;
  padding-left: 14px;
}


/* =====================================================================
   6. PAGES
   ===================================================================== */

/* ---------- 6.1 Home - hero carousel ---------- */
.hero-carousel {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 500px;
  overflow: hidden;
  background: var(--navy-dark);
  color: var(--white);
}

.carousel__track {
  position: absolute;
  inset: 0;
}

/* Each slide is stacked on top of the others; only .is-active is visible */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s;
}

.slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s var(--ease), visibility 0s;
}

/* The slide that is fading out stays visible underneath */
.slide.is-leaving {
  z-index: 1;
  visibility: visible;
}

.slide__media {
  position: absolute;
  inset: 0;
}

.slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 60% 50%;
  will-change: transform;
}

/* Slow Ken Burns zoom on the visible slide */
.slide.is-active .slide__media img,
.slide.is-leaving .slide__media img {
  animation: kenburns 9s linear forwards;
}

.slide:nth-child(even) .slide__media img {
  transform-origin: 30% 60%;
}

/* Navy gradient overlay (dark on the left, where the text sits) */
.slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 26, 64, 0.94) 0%, rgba(6, 26, 64, 0.78) 38%, rgba(11, 46, 107, 0.35) 70%, rgba(11, 46, 107, 0.15) 100%),
    linear-gradient(0deg, rgba(6, 26, 64, 0.8) 0%, rgba(6, 26, 64, 0) 35%);
}

.slide__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-top: calc(var(--header-h) + 10px);
  padding-bottom: 68px;
}

.slide__inner {
  max-width: 760px;
}

/* Text elements start hidden and slide up, one after another */
.slide__label,
.slide__title,
.slide__text,
.slide__actions {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.slide.is-active .slide__label,
.slide.is-active .slide__title,
.slide.is-active .slide__text,
.slide.is-active .slide__actions {
  opacity: 1;
  transform: translateY(0);
}

.slide.is-active .slide__label   { transition-delay: 0.35s; }
.slide.is-active .slide__title   { transition-delay: 0.5s; }
.slide.is-active .slide__text    { transition-delay: 0.68s; }
.slide.is-active .slide__actions { transition-delay: 0.85s; }

.slide__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}

.slide__label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--yellow);
}

.slide__title {
  max-width: 17ch;
  font-size: clamp(1.85rem, 5.8vw, 4.8rem);
  line-height: 1.02;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.slide__text {
  max-width: 560px;
  margin-top: 10px;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.slide__actions {
  margin-top: 18px;
  gap: 10px;
}

/* Controls bar (bottom-left): prev, counter, next, dots, pause */
.carousel__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 5;
}

.carousel__controls-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px 12px;
}

.carousel__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: rgba(6, 26, 64, 0.55);
  color: var(--white);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
  flex-shrink: 0;
}

.carousel__btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy-dark);
}

.carousel__btn .icon {
  width: 18px;
  height: 18px;
}

.carousel__counter {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  min-width: 52px;
  text-align: center;
  flex-shrink: 0;
}

.carousel__counter strong {
  font-size: 1.25rem;
  color: var(--white);
}

.carousel__dots {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

/* 24px tap target with a smaller visible bar inside */
.carousel__dot {
  position: relative;
  width: 22px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.carousel__dot::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.3s, transform 0.3s;
}

.carousel__dot:hover::before {
  background: rgba(255, 255, 255, 0.85);
}

.carousel__dot[aria-current="true"]::before {
  background: var(--yellow);
  transform: scaleY(1.6);
}

/* Progress bar along the very bottom */
.carousel__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
}

.carousel__progress-bar {
  height: 100%;
  width: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
}

/* Yellow diagonal slash shapes in the bottom-right corner */
.hero-slash {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: clamp(140px, 30vw, 480px);
  height: clamp(70px, 11vw, 160px);
  background: linear-gradient(118deg,
    transparent 0 34%,
    var(--yellow) 34% 46%,
    transparent 46% 53%,
    var(--yellow) 53% 59%,
    transparent 59% 65%,
    var(--yellow) 65% 100%);
  pointer-events: none;
}

/* Scroll hint (desktop only) */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 40px;
  z-index: 5;
  display: none;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  transform: translateX(-50%);
}

.scroll-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--yellow);
  animation: scroll-hint 1.8s var(--ease) infinite;
}


/* ---------- 6.2 Home sections ---------- */

/* Trust strip (4 badges under the hero) */
.trust-strip {
  position: relative;
  z-index: 3;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
}

.trust-item:nth-last-child(-n+2) {
  border-bottom: 0;
}

.trust-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.trust-item__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--light);
  border-radius: 50%;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--yellow);
}

.trust-item__icon .icon {
  width: 20px;
  height: 20px;
}

.trust-item__title {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy-dark);
  line-height: 1.15;
}

.trust-item__text {
  display: none;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Intro image collage (overlapping photos + yellow frame offset) */
.collage {
  position: relative;
  padding: 0 10% 14% 0;
}

.collage__main {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Yellow frame offset behind the main photo */
.collage::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  width: 55%;
  height: 55%;
  border: 4px solid var(--yellow);
  border-radius: var(--radius);
}

.collage__secondary {
  position: absolute !important;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 54%;
  aspect-ratio: 4 / 3;
  border: 4px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.collage__badge {
  position: absolute;
  left: 0;
  bottom: 4%;
  z-index: 3;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--yellow);
  box-shadow: var(--shadow-md);
}

.collage__badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--yellow);
}

.collage__badge span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intro-points {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.intro-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.intro-point .icon {
  margin-top: 2px;
  color: var(--navy);
}

.intro-point strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-dark);
}

.intro-point span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Service preview cards */
.service-card {
  display: flex;
  flex-direction: column;
}

.service-card__num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border);
  transition: -webkit-text-stroke-color 0.3s;
}

.service-card:hover .service-card__num {
  -webkit-text-stroke-color: var(--yellow);
}

.service-card p {
  flex-grow: 1;
}

.service-card .link-arrow {
  margin-top: 22px;
}

/* Make the whole card clickable via the "Learn more" link */
.service-card .link-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Process timeline */
.process {
  --progress: 0; /* set by main.js as you scroll (0 → 1) */
  position: relative;
}

.process__list {
  display: grid;
  gap: 0;
}

/* Track + animated fill (vertical on mobile, horizontal on desktop) */
.process__track {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 21px;
  width: 4px;
  background: var(--border);
}

.process__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--yellow), var(--orange));
  transform: scaleY(var(--progress));
  transform-origin: top;
}

.process__step {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding-bottom: 20px;
}

.process__step:last-child {
  padding-bottom: 0;
}

.process__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--white);
  border: 2.5px solid var(--border);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--muted);
  transition: background-color 0.4s, border-color 0.4s, color 0.4s, transform 0.4s var(--ease);
}

.process__step.is-reached .process__dot {
  background: var(--navy);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: scale(1.06);
}

.process__body {
  padding-top: 6px;
}

.process__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--navy-dark);
}

.process__text {
  margin-top: 3px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Featured project banner */
.featured {
  position: relative;
  overflow: hidden;
}

.featured__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Yellow corner slash over the featured photo */
.featured__media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 22%;
  background: linear-gradient(118deg,
    transparent 0 40%, var(--yellow) 40% 55%,
    transparent 55% 63%, var(--yellow) 63% 100%);
}

.featured__client {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 194, 14, 0.5);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--yellow);
}

.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.counter {
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--yellow);
}

.counter__value {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
}

.counter__unit {
  margin-left: 3px;
  font-size: 0.55em;
  color: var(--yellow);
}

.counter__label {
  margin-top: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.2;
}

/* Projects gallery (masonry-style grid) */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 200px;
  gap: 12px;
}

/* Portrait photo tile: on mobile 1 column, normal height */
.gallery__item--tall {
  grid-row: span 1;
}

.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery__item img {
  transition: transform 0.9s var(--ease);
}

.gallery__item:hover img,
.gallery__item:focus-within img {
  transform: scale(1.08);
}

.gallery__item a {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 40px 16px 14px;
  background: linear-gradient(0deg, rgba(6, 26, 64, 0.95) 0%, rgba(6, 26, 64, 0) 100%);
  color: var(--white);
  transition: transform 0.5s var(--ease);
}

.gallery__caption strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.gallery__caption span {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* Compliance highlight band */
.compliance-band {
  padding-block: 36px;
}

.compliance-band__inner {
  display: grid;
  gap: 18px;
  align-items: center;
}

.compliance-band__shield {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: var(--yellow);
  color: var(--navy-dark);
  clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
}

.compliance-band__shield .icon {
  width: 30px;
  height: 30px;
}

.compliance-band__items {
  display: grid;
  gap: 10px;
}

.compliance-band__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}

.compliance-band__item::before {
  content: "";
  width: 5px;
  height: 22px;
  flex-shrink: 0;
  background: var(--yellow);
  transform: skewX(-18deg);
}

/* CTA band (yellow, diagonal edges) */
.cta-band {
  position: relative;
  padding-block: 44px;
  background: var(--yellow);
  color: var(--navy-dark);
  clip-path: polygon(0 20px, 100% 0, 100% calc(100% - 20px), 0 100%);
  margin-block: -1px;
  overflow: hidden;
  z-index: 1;
}

/* Faint navy diagonal stripes on the right */
.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -10%;
  width: 45%;
  background: repeating-linear-gradient(118deg,
    rgba(6, 26, 64, 0.08) 0 26px, transparent 26px 52px);
}

.cta-band__inner {
  position: relative;
  display: grid;
  gap: 18px;
  align-items: center;
}

.cta-band h2 {
  max-width: 18ch;
  color: var(--navy-dark);
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
}

.cta-band p {
  margin-top: 8px;
  max-width: 560px;
  font-size: 0.98rem;
  color: #2A2410;
}

.cta-band .btn-group {
  align-items: center;
  gap: 10px;
}

/* When the CTA band is the last section before the footer, tuck the footer
   underneath its angled bottom edge so no white gap shows */
main:has(> .cta-band:last-child) + .site-footer {
  margin-top: -20px;
  padding-top: 20px;
}


/* ---------- 6.3 Inner page hero ---------- */
.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 48px;
  background: var(--navy-dark);
  color: var(--white);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%);
}

.page-hero .eyebrow {
  margin-bottom: 12px;
}

.page-hero__media {
  position: absolute !important;
  inset: 0;
}

.page-hero__media img {
  animation: kenburns 14s linear forwards;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 26, 64, 0.96) 0%, rgba(11, 46, 107, 0.82) 50%, rgba(11, 46, 107, 0.45) 100%),
    var(--blueprint);
  background-size: 100% 100%, var(--blueprint-size);
}

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

.page-hero h1 {
  max-width: 16ch;
  color: var(--white);
  font-size: clamp(1.9rem, 5.5vw, 4rem);
}

.page-hero__text {
  max-width: 620px;
  margin-top: 10px;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
}

/* Yellow diagonal slashes bottom-right of inner page heroes
   (sits just above the angled bottom edge so it is never clipped) */
.page-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 24px;
  z-index: 2;
  width: clamp(100px, 20vw, 340px);
  height: 40px;
  background: linear-gradient(118deg,
    transparent 0 30%, var(--yellow) 30% 44%,
    transparent 44% 52%, var(--yellow) 52% 60%,
    transparent 60% 68%, var(--yellow) 68% 100%);
}

.breadcrumb ol {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb li + li::before {
  content: "";
  width: 7px;
  height: 7px;
  border: solid var(--yellow);
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--yellow);
}


/* ---------- 6.4 About ---------- */
.about-media {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Portrait photo in the About intro */
.about-media--tall {
  aspect-ratio: 4 / 5;
  max-height: 340px;
}

.framed {
  position: relative;
}

/* Yellow frame offset behind an image (reusable) */
.framed::before {
  content: "";
  position: absolute;
  inset: 10px -8px -8px 10px;
  border: 4px solid var(--yellow);
  border-radius: var(--radius);
}

.framed--left::before {
  inset: 10px 10px -8px -8px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.about-stat {
  padding: 12px 14px;
  background: var(--light);
  border-left: 3px solid var(--yellow);
}

.about-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--navy-dark);
}

.about-stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Vision & Mission cards */
.vm-card {
  position: relative;
  padding: 24px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.vm-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 70px;
  height: 70px;
  background: linear-gradient(225deg, var(--yellow) 0 30%, transparent 30%);
  opacity: 0.9;
}

.vm-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.vm-card__head .icon-tile {
  margin-bottom: 0;
}

.vm-card .badge {
  margin-bottom: 12px;
}

/* Values strip */
.values-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 24px;
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-dark);
}

.values-strip li {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.values-strip li + li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--yellow);
  transform: rotate(45deg);
}

/* Team cards */
.team-card {
  display: grid;
  gap: 16px;
  padding: 20px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-card__photo {
  position: relative;
  width: 140px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  border-bottom: 5px solid var(--yellow);
}

/* Initials shown until a real photo is added */
.team-card__photo::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--yellow);
}

.team-card__photo img {
  position: relative;
  z-index: 1;
}

.team-card__name {
  font-size: 1.7rem;
}

.team-card__role {
  margin-top: 6px;
}

.team-card__contact {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}


/* ---------- 6.5 Services (zig-zag rows) ---------- */
.service-nav {
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 8px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.service-nav::-webkit-scrollbar {
  display: none;
}

.service-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy-dark);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.service-nav a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.service-nav span {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy);
}

.service-nav a:hover span {
  color: var(--yellow);
}

.service-row {
  display: grid;
  gap: 18px;
  align-items: center;
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-row__media-wrap {
  position: relative;
}

.service-row__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.service-row__media img {
  transition: transform 1s var(--ease);
}

/* Portrait photo in a service row */
.service-row__media-wrap--tall .service-row__media {
  aspect-ratio: 16 / 10;
  max-height: 260px;
}

.service-row:hover .service-row__media img {
  transform: scale(1.05);
}

/* Big service number badge on the image */
.service-row__num {
  position: absolute;
  top: -12px;
  left: -6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--yellow);
  color: var(--navy-dark);
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.service-row__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.service-row__head .icon-tile {
  margin-bottom: 0;
}

.service-row__desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 16px;
}


/* ---------- 6.6 Projects (filter + lightbox) ---------- */
.filter-bar {
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 40px;
  padding: 6px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-dark);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.filter-btn:hover {
  border-color: var(--navy);
}

.filter-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--yellow);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, opacity 0.4s;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.project-card.is-hidden {
  display: none;
}

/* Entry animation after filtering (the long selector beats the scroll-reveal one) */
.project-card.is-filtering-in,
.js .project-card.is-filtering-in[data-reveal].is-visible {
  animation: card-in 0.5s var(--ease-out) both;
}

.project-card__media {
  aspect-ratio: 16 / 11;
}

.project-card__media img {
  transition: transform 0.9s var(--ease);
}

.project-card:hover .project-card__media img {
  transform: scale(1.07);
}

/* "View" icon that appears on hover */
.project-card__zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--yellow);
  color: var(--navy-dark);
  border-radius: 50%;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

.project-card:hover .project-card__zoom,
.project-card:focus-within .project-card__zoom {
  transform: scale(1);
  opacity: 1;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 18px 16px;
  border-bottom: 4px solid transparent;
  transition: border-color 0.4s;
}

.project-card:hover .project-card__body {
  border-color: var(--yellow);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  padding: 3px 8px;
  background: var(--light);
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.project-card__title {
  font-size: 1.25rem;
}

.project-card__summary {
  margin-top: 6px;
  flex-grow: 1;
  font-size: 0.9rem;
  color: var(--muted);
}

/* The "View details" button stretches over the whole card */
.project-card__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  align-self: flex-start;
}

.project-card__open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.project-card__open .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.project-card:hover .project-card__open .icon {
  transform: translateX(5px);
}

/* Hidden details that main.js copies into the lightbox */
.project-card__details {
  display: none;
}

.projects-empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

/* Lightbox (native <dialog>) */
.lightbox {
  position: relative;
  width: calc(100% - 16px);
  max-height: calc(100% - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.lightbox[open] {
  display: flex;
  animation: lightbox-in 0.4s var(--ease-out);
}

.lightbox::backdrop {
  background: rgba(6, 26, 64, 0.85);
}

.lightbox__inner {
  display: grid;
  width: 100%;
  overflow-y: auto;
}

.lightbox__media {
  aspect-ratio: 4 / 3;
  min-height: 180px;
  max-height: 240px;
  background: var(--navy-dark);
}

/* Show the whole photo in the lightbox (portrait photos are not cropped) */
.lightbox__media img {
  object-fit: contain;
}

.lightbox__content {
  padding: 20px 16px 24px;
}

.lightbox__title {
  margin: 6px 0 10px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  padding-right: 36px;
}

.lightbox__body p {
  color: var(--muted);
  margin-bottom: 14px;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  transition: background-color 0.25s, color 0.25s, transform 0.25s;
}

.lightbox__close:hover {
  background: var(--yellow);
  color: var(--navy-dark);
  transform: rotate(90deg);
}

body.lightbox-open {
  overflow: hidden;
}

body.lightbox-open .float-btn {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}


/* ---------- 6.7 Quality & Testing ---------- */
.stage-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.stage-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-dark);
}

.stage-list span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--yellow);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
}

.test-card {
  display: grid;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.test-card + .test-card {
  margin-top: 18px;
}

.test-card__media {
  position: relative;
  min-height: 200px;
  max-height: 240px;
}

.test-card__label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  background: var(--yellow);
  color: var(--navy-dark);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.test-card__body {
  padding: 20px 16px;
}

.test-card__body h3 {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  margin-bottom: 10px;
}

.test-card__body > p:not(.note) {
  color: var(--muted);
}

.test-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.test-fact {
  padding: 6px 12px;
  background: var(--light);
  border-left: 3px solid var(--yellow);
  font-size: 0.85rem;
}

.test-fact strong {
  color: var(--navy-dark);
}

/* Numbered steps (holiday detector procedure) */
.steps {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  counter-reset: steps;
}

.steps li {
  position: relative;
  padding: 10px 12px 10px 48px;
  background: var(--light);
  border-radius: var(--radius);
  counter-increment: steps;
  font-size: 0.9rem;
}

.steps li::before {
  content: counter(steps);
  position: absolute;
  left: 10px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  background: var(--navy);
  color: var(--yellow);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
}

.result-pass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  background: #E3F4EA;
  border-radius: 999px;
  color: var(--success);
  font-weight: 600;
  font-size: 0.85rem;
}

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.note .icon {
  color: var(--yellow);
  margin-top: 1px;
}

/* Safety cards */
.safety-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.safety-card .icon-tile {
  margin-bottom: 0;
}

.safety-card h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}


/* ---------- 6.8 Compliance ---------- */
.shield-graphic {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 240px;
  margin-inline: auto;
  background-color: var(--navy);
  background-image: var(--blueprint);
  background-size: var(--blueprint-size);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  color: var(--yellow);
  overflow: hidden;
}

.shield-graphic .icon {
  width: 46%;
  height: 46%;
  stroke-width: 1.2;
}

.shield-graphic::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 18%;
  background: linear-gradient(118deg,
    transparent 0 40%, var(--yellow) 40% 55%,
    transparent 55% 63%, var(--yellow) 63% 100%);
}

.shield-graphic__label {
  position: absolute;
  left: 14px;
  top: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rule-chip {
  padding: 6px 12px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.rule-chip--outline {
  background: transparent;
  color: var(--navy-dark);
  box-shadow: inset 0 0 0 2px var(--navy);
}

.standards-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.standard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.standard__code {
  min-width: 95px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--yellow);
}

.standard__desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}


/* ---------- 6.9 Contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-card .icon-tile {
  margin-bottom: 12px;
}

.contact-card h3,
.contact-card .h3 {
  margin-bottom: 6px;
}

.contact-card p + p {
  margin-top: 0;
}

.contact-card__role {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.contact-card__divider {
  margin: 10px 0;
  border: 0;
  border-top: 1px dashed var(--border);
}

.contact-card a {
  color: var(--navy-dark);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.contact-layout {
  display: grid;
  gap: 24px;
}

.form-card {
  padding: 22px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 5px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.req {
  color: var(--error);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-field select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #B9C6D9;
}

/* Styled focus state */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 194, 14, 0.45);
}

/* Error state - only after the user has interacted or tried to submit */
.form-field input:user-invalid,
.form-field select:user-invalid,
.form-field textarea:user-invalid,
.was-validated .form-field input:invalid,
.was-validated .form-field select:invalid,
.was-validated .form-field textarea:invalid {
  border-color: var(--error);
  background-color: #FFF5F4;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.form-actions .btn {
  width: 100%;
  justify-content: center;
}

.form-actions .form-hint {
  flex: 1 1 220px;
}

.form-success {
  display: none;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  background: #E8F6EE;
  border: 1px solid #A8DCBD;
  border-left: 5px solid var(--success);
  border-radius: var(--radius);
  color: #12452C;
}

.form-success.is-visible {
  display: flex;
  animation: card-in 0.5s var(--ease-out);
}

.form-success .icon {
  color: var(--success);
}

.form-success strong {
  display: block;
  margin-bottom: 2px;
}

.contact-aside {
  display: grid;
  gap: 14px;
  align-content: start;
}

.aside-card {
  padding: 22px 18px;
  background-color: var(--navy);
  background-image: var(--blueprint);
  background-size: var(--blueprint-size);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
}

.aside-card h3 {
  color: var(--white);
  margin-bottom: 10px;
}

.aside-card .checklist li::before {
  background: var(--yellow);
}

/* Google Maps placeholder */
.map-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px 16px;
  background-color: #E9EEF6;
  background-image:
    linear-gradient(rgba(11, 46, 107, 0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(11, 46, 107, 0.08) 2px, transparent 2px),
    linear-gradient(rgba(11, 46, 107, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 46, 107, 0.04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  border-radius: var(--radius);
  text-align: center;
  overflow: hidden;
}

.map-placeholder__pin {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: var(--navy);
  color: var(--yellow);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow-md);
  animation: pin-bounce 2.4s var(--ease) infinite;
}

.map-placeholder__pin .icon {
  transform: rotate(45deg);
  width: 24px;
  height: 24px;
}

.map-placeholder h3 {
  margin-bottom: 8px;
}

.map-placeholder p {
  max-width: 440px;
  margin-inline: auto;
  color: var(--muted);
}

.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: var(--radius);
}


/* =====================================================================
   7. ANIMATIONS
   ===================================================================== */

/* Scroll reveal - elements with data-reveal start hidden (only when JS runs;
   the "js" class is added in each page's <head>). main.js adds .is-visible
   when the element scrolls into view.
   Uses the separate "translate" / "scale" properties so it never clashes
   with hover effects that use "transform". */
.js [data-reveal] {
  opacity: 0;
}

.js [data-reveal].is-visible {
  animation: reveal-fade-up 0.9s var(--ease-out) var(--reveal-delay, 0s) both;
}

.js [data-reveal="slide-left"].is-visible  { animation-name: reveal-slide-left; }
.js [data-reveal="slide-right"].is-visible { animation-name: reveal-slide-right; }
.js [data-reveal="zoom"].is-visible        { animation-name: reveal-zoom; }

@keyframes reveal-fade-up {
  from { opacity: 0; translate: 0 40px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes reveal-slide-left {
  from { opacity: 0; translate: -60px 0; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes reveal-slide-right {
  from { opacity: 0; translate: 60px 0; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes reveal-zoom {
  from { opacity: 0; scale: 0.92; }
  to   { opacity: 1; scale: 1; }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.14); }
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  80%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes scroll-hint {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes lightbox-in {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@keyframes pin-bounce {
  0%, 100% { transform: rotate(-45deg) translate(0, 0); }
  50%      { transform: rotate(-45deg) translate(6px, -6px); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .slide.is-active .slide__media img,
  .slide.is-leaving .slide__media img,
  .page-hero__media img {
    animation: none !important;
  }

  .js [data-reveal],
  .js [data-reveal].is-visible {
    opacity: 1;
    animation: none !important;
  }
}


/* =====================================================================
   8. MEDIA QUERIES (mobile-first)
   ===================================================================== */

/* ---------- Mobile refinements (< 480px) ---------- */
@media (max-width: 480px) {
  .navbar__inner {
    gap: 8px;
  }

  .logo__badge {
    width: 40px;
    height: 46px;
    padding: 2px 3px;
  }

  .logo__name {
    font-size: clamp(0.92rem, 4vw, 1.05rem);
  }

  .logo__tagline {
    font-size: 0.62rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  /* Carousel dots are hidden on narrow screens to prevent controls clipping */
  .carousel__dots {
    display: none !important;
  }

  .footer-about .logo {
    flex-wrap: wrap;
  }

  .footer-about .logo__name {
    white-space: normal;
  }
}

/* Prevent iOS Safari form input auto-zoom on mobile */
@media (max-width: 767px) {
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
  }
}

/* ---------- ≥ 576px (large phones) ---------- */
@media (min-width: 576px) {
  :root {
    --gutter: 20px;
    --section-y: 54px;
  }

  .main-nav {
    width: 360px;
    max-width: 88vw;
  }

  .navbar__quote {
    display: inline-flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .checklist--2col {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
  }

  .counters {
    grid-template-columns: repeat(3, 1fr);
  }

  .counter {
    padding: 16px 14px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: dense; /* fill gaps left by tall/wide tiles */
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-card {
    grid-template-columns: 140px 1fr;
    align-items: center;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-field--full {
    grid-column: 1 / -1;
  }

  .form-card {
    padding: 32px 28px;
  }

  .form-actions .btn {
    width: auto;
  }

  .stage-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stage-list li {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .stage-list span {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .test-card + .test-card {
    margin-top: 24px;
  }

  .test-card__body {
    padding: 28px 24px;
  }

  .test-facts {
    gap: 10px;
    margin: 16px 0;
  }

  .shield-graphic {
    max-width: 320px;
  }

  .standards-list {
    gap: 12px;
  }

  .standard {
    padding: 16px 18px;
  }

  .map-placeholder {
    min-height: 300px;
    padding: 32px 20px;
  }

  .map-embed iframe {
    min-height: 300px;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head-row {
    margin-bottom: 30px;
  }

  .split {
    gap: 36px;
  }

  .service-row {
    padding-block: 36px;
    gap: 24px;
  }
}

/* ---------- ≥ 768px (tablets) ---------- */
@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --section-y: 76px;
    --header-h: 80px;
  }

  .section--tight {
    padding-block: calc(var(--section-y) * 0.65);
  }

  .section-head {
    margin-bottom: 36px;
  }

  .section-head-row {
    margin-bottom: 36px;
    gap: 24px;
  }

  .topbar {
    display: block;
  }

  .float-call {
    display: none; /* click-to-call button is for mobile only */
  }

  .angle-both {
    clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 calc(100% - 50px));
    padding-block: calc(var(--section-y) + 50px);
  }

  .angle-top {
    clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
    padding-top: calc(var(--section-y) + 50px);
  }

  .cta-band {
    padding-block: 84px;
    clip-path: polygon(0 45px, 100% 0, 100% calc(100% - 45px), 0 100%);
  }

  main:has(> .cta-band:last-child) + .site-footer {
    margin-top: -45px;
    padding-top: 45px;
  }

  .page-hero {
    min-height: 380px;
    padding-top: calc(var(--header-h) + var(--topbar-h, 40px) + 36px);
    padding-bottom: 76px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 0 100%);
  }

  .page-hero::after {
    bottom: 50px;
    height: 60px;
  }

  .trust-strip__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 20px;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }

  .trust-item:last-child {
    border-right: 0;
  }

  .trust-item__text {
    display: block;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    padding-block: 52px 36px;
    gap: 36px;
  }

  .footer-bottom__inner {
    padding-bottom: 0;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .compliance-band__inner {
    grid-template-columns: auto 1fr auto;
    gap: 40px;
  }

  .compliance-band__items {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 28px;
  }

  .test-card {
    grid-template-columns: 5fr 7fr;
  }

  .test-card:nth-child(even) .test-card__media {
    order: 2;
  }

  .test-card + .test-card {
    margin-top: 32px;
  }

  .test-card__media {
    min-height: 260px;
    max-height: none;
  }

  .test-card__label {
    top: 18px;
    left: 18px;
    padding: 6px 14px;
    font-size: 0.88rem;
  }

  .test-card__body {
    padding: 36px 32px;
  }

  .shield-graphic {
    max-width: 380px;
  }

  .shield-graphic__label {
    left: 20px;
    top: 20px;
    font-size: 0.9rem;
  }

  .rule-chips {
    gap: 10px;
    margin-top: 24px;
  }

  .service-row {
    padding-block: 48px;
    gap: 36px;
  }

  .service-row__num {
    width: 68px;
    height: 68px;
    font-size: 2.2rem;
  }

  .service-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .filter-bar {
    flex-wrap: wrap;
    overflow-x: visible;
    margin-bottom: 36px;
  }

  .about-media--tall {
    max-height: 460px;
  }

  .framed::before {
    inset: 16px -14px -14px 16px;
  }

  .standards-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    gap: 36px;
  }

  .aside-card {
    padding: 28px 24px;
  }

  .map-placeholder {
    min-height: 380px;
    padding: 40px 24px;
  }

  .map-placeholder__pin {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
  }

  .map-placeholder__pin .icon {
    width: 30px;
    height: 30px;
  }

  .map-embed iframe {
    min-height: 380px;
  }

  .stage-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .lightbox__inner {
    grid-template-columns: 1fr 1fr;
  }

  .lightbox__media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .lightbox__content {
    padding: 40px 36px;
  }

  .scroll-hint {
    display: block;
  }

  .carousel__controls {
    bottom: 36px;
  }
}

/* ---------- ≥ 1024px (small laptops) ---------- */
@media (min-width: 1024px) {
  :root {
    --section-y: 88px;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .split--wide-left {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
  }

  .split--wide-right {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
  }

  .footer-main {
    grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1.7fr 1fr;
    align-items: start;
  }

  .cta-band {
    padding-block: 96px;
  }

  .cta-band__inner {
    grid-template-columns: 1.4fr auto;
    gap: 48px;
  }

  /* Services zig-zag: image and text side by side, alternating */
  .service-row {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding-block: 64px;
  }

  .service-row:nth-child(even) .service-row__media-wrap {
    order: 2;
  }

  .about-media--tall {
    max-height: 540px;
  }

  .framed::before {
    inset: 20px -18px -18px 20px;
  }

  /* Process timeline becomes horizontal */
  .process__list {
    grid-template-columns: repeat(var(--steps, 7), 1fr);
    gap: 16px;
  }

  .process__track {
    top: 27px;
    bottom: auto;
    left: calc(100% / (var(--steps, 7) * 2));
    right: calc(100% / (var(--steps, 7) * 2));
    width: auto;
    height: 4px;
  }

  .process__fill {
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    transform: scaleX(var(--progress));
    transform-origin: left;
  }

  .process__step {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding-bottom: 0;
    text-align: center;
  }

  .process__body {
    padding-top: 0;
  }

  .process__title {
    font-size: 1.2rem;
  }

  .stage-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .lightbox__inner {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* ---------- ≥ 1280px (desktops) ---------- */
@media (min-width: 1280px) {
  :root {
    --section-y: 96px;
    --header-h: 84px;
  }

  .split {
    gap: 64px;
  }

  .service-row {
    gap: 64px;
    padding-block: 72px;
  }

  /* Desktop navigation: inline links instead of the slide-in panel */
  .nav-toggle,
  .nav-backdrop {
    display: none;
  }

  .navbar {
    background: linear-gradient(180deg, rgba(6, 26, 64, 0.75), rgba(6, 26, 64, 0));
    border-bottom: 0;
  }

  .site-header.is-scrolled .navbar {
    background: var(--navy);
    border-bottom: 0;
  }

  .main-nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .main-nav::before,
  .main-nav__extra {
    display: none;
  }

  .main-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .main-nav__link {
    padding: 10px 12px;
    border-bottom: 0;
    font-size: 1.08rem;
    letter-spacing: 0.06em;
    color: var(--white);
  }

  /* Yellow underline that grows on hover / marks the current page */
  .main-nav__link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
  }

  .main-nav__link:hover,
  .main-nav__link.is-active {
    padding-left: 12px;
    color: var(--white);
  }

  .main-nav__link:hover::after,
  .main-nav__link.is-active::after {
    transform: scaleX(1);
  }

  .navbar__inner {
    gap: 28px;
  }

  .navbar__actions {
    gap: 20px;
  }

  .slide__content {
    padding-bottom: 140px;
  }

  .service-row__num {
    left: -24px;
  }
}


/* =====================================================================
   9. CLIENT STRIP (home page) — infinite horizontal slider
   Two rows slide in opposite directions. Pauses on hover / keyboard focus.
   Speed: change the animation duration on .marquee__track.
   ===================================================================== */
.clients {
  overflow: hidden;
}

.clients__rows {
  display: grid;
  gap: 18px;
}

.marquee {
  overflow: hidden;
  /* Soft fade at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-left 70s linear infinite;
}

.marquee--right .marquee__track {
  animation-name: marquee-right;
  animation-duration: 80s;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  flex-shrink: 0;
  gap: 18px;
  padding: 0 9px;
  margin: 0;
  list-style: none;
}

/* One client "card" (text wordmark; swap for an <img> logo if you have one) */
.marquee__item {
  display: grid;
  place-items: center;
  min-width: 190px;
  height: 84px;
  padding: 10px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom: 3px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: #5B6779;
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

/* Client logo inside its card: capped height and width so tall and wide logos look balanced */
.marquee__item img {
  width: auto;
  height: auto;
  max-height: 58px;
  max-width: 160px;
  object-fit: contain;
}

.marquee__item:hover {
  color: var(--navy);
  border-bottom-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Reduced motion: no sliding; rows become swipeable/scrollable and the
   duplicate list is hidden */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee__track {
    animation: none !important;
    width: auto;
  }

  .marquee__group[aria-hidden="true"] {
    display: none;
  }
}

@media (min-width: 768px) {
  .marquee__item {
    min-width: 220px;
    height: 92px;
  }
}



/* =====================================================================
   10. BROCHURE CONTENT ADDITIONS
   ===================================================================== */

/* Compact bullet list inside cards (project control framework) */
.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.mini-list li {
  position: relative;
  padding-left: 18px;
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 3px;
  background: var(--yellow);
  transform: skewX(-20deg);
}

/* NDT method chips (UT / RT / DPT / MPT) */
.ndt-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ndt-chips li {
  padding: 8px 10px;
  background: var(--light);
  border-left: 3px solid var(--yellow);
  border-radius: 3px;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted);
  word-break: break-word;
}

.ndt-chips strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-dark);
}

/* Test card without a photo */
.test-card--text {
  grid-template-columns: 1fr !important;
  border-top: 4px solid var(--yellow);
}

.test-card__label--inline {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
}

/* Icon panel used in a service row when there is no photo yet */
.service-graphic {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  aspect-ratio: 16 / 10;
  min-height: 190px;
  background-color: var(--navy);
  background-image:
    radial-gradient(circle at 50% 45%, rgba(255, 194, 14, 0.14), transparent 55%),
    var(--blueprint);
  background-size: 100% 100%, var(--blueprint-size);
  color: var(--yellow);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-graphic .icon {
  width: 34%;
  height: auto;
  aspect-ratio: 1;
  stroke-width: 1.1;
}

.service-graphic__label {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* Diagonal yellow slashes in the corner of the icon panel */
.service-graphic::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  height: 16%;
  background: linear-gradient(118deg,
    transparent 0 40%, var(--yellow) 40% 55%,
    transparent 55% 63%, var(--yellow) 63% 100%);
}
