/* ==========================================================================
   VERTEX — MAIN STYLESHEET
   --------------------------------------------------------------------------
   Mobile-first: base rules target phones; min-width media queries layer on
   larger screens. All values come from tokens.css — no hard-coded colours.

   CONTENTS
     01. Reset & base
     02. Typography
     03. Layout primitives
     04. Buttons
     05. Header & navigation
     06. Footer
     07. Hero & page headers
     08. Cards & grids
     09. Sections (stats, services, why-us, industries, testimonials, CTA)
     10. Forms
     11. Alerts & flash messages
     12. Cookie notice
     13. Utilities
   ========================================================================== */


/* ==========================================================================
   01. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor links land below the sticky header rather than under it. */
  scroll-padding-top: calc(var(--header-height) + var(--sp-4));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Keyboard users must always be able to see where they are (spec §9.4). */
:focus-visible {
  outline: 2px solid var(--c-main);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Jump straight to content — the first thing a screen-reader user hears. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-overlay);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-main);
  color: var(--c-white);
  font-weight: var(--fw-bold);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

/* Visually hidden but announced by screen readers. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   02. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  color: var(--c-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  text-wrap: balance;         /* avoids a lonely word on the last line */
}

h1 { font-size: var(--fs-3xl); font-weight: var(--fw-black); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); }
h3 { font-size: var(--fs-lg);  font-weight: var(--fw-bold); color: var(--c-main); }
h4 { font-size: var(--fs-md);  font-weight: var(--fw-bold); }

p  { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}
a:hover { color: var(--c-link-hover); }

strong { font-weight: var(--fw-bold); color: var(--c-text-strong); }

/* Small uppercase label above a section title (spec §2.2). */
.eyebrow {
  display: block;
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-mid);
}

/* Larger intro paragraph under a heading. */
.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: var(--c-text-muted);
}

.text-on-dark        { color: var(--c-text-on-dark); }
.text-on-dark h1,
.text-on-dark h2,
.text-on-dark h3     { color: var(--c-white); }
.text-on-dark .eyebrow { color: var(--c-light); }
.text-on-dark .lead  { color: rgba(255, 255, 255, 0.85); }


/* ==========================================================================
   03. LAYOUT PRIMITIVES
   ========================================================================== */

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

.section          { padding-block: var(--section-y); }
.section--tight   { padding-block: var(--section-y-tight); }
.section--alt     { background: var(--c-surface-alt); }
.section--soft    { background: var(--gradient-soft); }
.section--dark    { background: var(--c-darkest); }
.section--gradient{ background: var(--gradient-primary); }

/* Centred heading block that introduces a section. */
.section-head {
  max-width: 46rem;
  margin: 0 auto var(--sp-12);
  text-align: center;
}
.section-head p { margin-bottom: 0; }

/* Left-aligned variant for content-heavy pages. */
.section-head--start {
  margin-inline: 0;
  text-align: left;
}


/* ==========================================================================
   04. BUTTONS (spec §2.3)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary — solid Main blue, darkens to Darkest on hover. */
.btn--primary {
  background: var(--c-main);
  border-color: var(--c-main);
  color: var(--c-white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--c-darkest);
  border-color: var(--c-darkest);
  color: var(--c-white);
  box-shadow: var(--shadow);
}

/* Secondary — outlined, light tint fill on hover. */
.btn--secondary {
  background: transparent;
  border-color: var(--c-main);
  color: var(--c-main);
}
.btn--secondary:hover {
  background: var(--c-lightest);
  color: var(--c-darkest);
}

/* On dark or gradient backgrounds — white button, Main blue text. */
.btn--on-dark {
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-main);
}
.btn--on-dark:hover {
  background: var(--c-lightest);
  color: var(--c-darkest);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--c-white);
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--c-white);
  color: var(--c-white);
}

.btn--sm  { padding: 0.625rem 1.25rem; font-size: var(--fs-sm); }
.btn--lg  { padding: 1.0625rem 2.25rem; font-size: var(--fs-md); }
.btn--block { display: flex; width: 100%; }

/* Group of buttons that stacks on narrow screens. */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* Text link with a chevron that nudges right on hover. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: var(--fw-bold);
  text-decoration: none;
}
.link-arrow::after {
  content: '→';
  transition: transform var(--transition);
}
.link-arrow:hover::after { transform: translateX(4px); }


/* ==========================================================================
   05. HEADER & NAVIGATION (spec §4.1)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  min-height: var(--header-height);
}

/* --- Logo ---------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}
/* The full lockup (public header and footer). Height drives the size; the
   width follows the artwork's own 2.97:1 ratio. The rule beats the `img`
   reset's `height: auto` on specificity, so the box stays fixed. */
.logo__image {
  height: 44px;
  width: auto;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: var(--c-white);
  font-weight: var(--fw-black);
  font-size: 1.25rem;
  line-height: 1;
}

/* The square mark (admin screens) carries its own gradient and rounded
   corners, so the tile behind it has to go — otherwise a second gradient
   shows through the artwork's transparent corners. */
.logo__mark--image {
  background: none;
  border-radius: 0;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo__name {
  font-size: 1.375rem;
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-tight);
  color: var(--c-main);
}
.logo__tagline {
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-muted);
}
@media (max-width: 400px) {
  .logo__tagline { display: none; }
  .logo__image { height: 34px; }
}

/* --- Desktop nav --------------------------------------------------------- */
.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--c-text-strong);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition), background-color var(--transition);
}
.nav__link:hover { color: var(--c-main); background: var(--c-lightest); }

/* Current page indicator — a short underline in brand blue. */
.nav__link.is-active { color: var(--c-main); }
.nav__link.is-active::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--sp-3);
  right: var(--sp-3);
  height: 2px;
  background: var(--c-main);
  border-radius: 2px;
}
.nav__item { position: relative; }

/* --- Services dropdown --------------------------------------------------- */
.nav__toggle-icon {
  width: 0.6em;
  height: 0.6em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--transition);
}
.nav__item--has-dropdown[data-open='true'] .nav__toggle-icon {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  z-index: var(--z-dropdown);
  width: min(30rem, 90vw);
  padding: var(--sp-3);
  margin: 0;
  list-style: none;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);

  /* Hidden by default; JS flips data-open. visibility (not display) keeps the
     fade animation and keeps the items out of the tab order while closed. */
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav__item--has-dropdown[data-open='true'] .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown__link {
  display: block;
  padding: var(--sp-3);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color var(--transition);
}
.dropdown__link:hover { background: var(--c-lightest); }

.dropdown__title {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--c-text-strong);
}
.dropdown__desc {
  display: block;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--c-text-muted);
}
.dropdown__footer {
  margin-top: var(--sp-2);
  padding: var(--sp-3);
  border-top: 1px solid var(--c-border);
}

/* --- Header actions & burger --------------------------------------------- */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.site-header__cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;              /* 44px minimum touch target */
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-main);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile drawer ------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: var(--z-overlay);
  padding: var(--sp-6) var(--container-pad) var(--sp-16);
  background: var(--c-white);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition-slow), visibility var(--transition-slow);
}
.mobile-nav[data-open='true'] {
  transform: translateX(0);
  visibility: visible;
}
.mobile-nav__list {
  margin: 0 0 var(--sp-6);
  padding: 0;
  list-style: none;
}
.mobile-nav__link {
  display: block;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--c-text-strong);
  text-decoration: none;
}
.mobile-nav__link.is-active { color: var(--c-main); }

/* Collapsible services group inside the drawer. */
.mobile-nav__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--c-text-strong);
  cursor: pointer;
  list-style: none;
}
.mobile-nav__group summary::-webkit-details-marker { display: none; }
.mobile-nav__group summary::after {
  content: '';
  width: 0.5em; height: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
}
.mobile-nav__group[open] summary::after { transform: rotate(-135deg); }

.mobile-nav__sub {
  margin: 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
  list-style: none;
  background: var(--c-off-white);
}
.mobile-nav__sub a {
  display: block;
  padding: var(--sp-3) 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  text-decoration: none;
}

/* Body scroll lock while the drawer is open. */
body.is-nav-open { overflow: hidden; }

/* --- Desktop breakpoint -------------------------------------------------- */
@media (min-width: 1024px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
  .site-header__cta { display: inline-flex; }
}


/* ==========================================================================
   06. FOOTER (spec §4.11)
   ========================================================================== */

.site-footer {
  background: var(--c-darkest);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-sm);
}

.site-footer__main {
  display: grid;
  gap: var(--sp-10);
  padding-block: var(--sp-16) var(--sp-12);
}
@media (min-width: 640px)  { .site-footer__main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__main { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-12); } }

.site-footer h2,
.site-footer h3 {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-white);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--c-white);
  text-decoration: underline;
}

.site-footer__about p {
  margin-top: var(--sp-5);
  max-width: 34ch;
  line-height: var(--lh-snug);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}

.footer-contact {
  display: grid;
  gap: var(--sp-4);
  margin: 0;
}
.footer-contact dt {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-light);
}
.footer-contact dd {
  margin: var(--sp-1) 0 0;
  line-height: var(--lh-snug);
}

.social-links {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding: 0;
  list-style: none;
}
.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  color: var(--c-white);
  transition: background-color var(--transition), border-color var(--transition);
}
.social-links a:hover {
  background: var(--c-main);
  border-color: var(--c-main);
}
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-xs);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}


/* ==========================================================================
   07. HERO & PAGE HEADERS (spec §4.2)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  color: var(--c-white);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

/* Subtle depth: two soft radial glows over the gradient. Decorative only. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 42rem; height: 42rem;
  top: -18rem; right: -12rem;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 65%);
}
.hero::after {
  width: 32rem; height: 32rem;
  bottom: -16rem; left: -10rem;
  background: radial-gradient(circle, rgba(10,50,82,0.35) 0%, transparent 65%);
}

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

.hero__grid {
  display: grid;
  gap: var(--sp-10);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.15fr 1fr; gap: var(--sp-16); }
}

.hero h1 { color: var(--c-white); }
.hero__lead {
  max-width: 46ch;
  margin-bottom: var(--sp-8);
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: rgba(255, 255, 255, 0.88);
}
.hero .eyebrow { color: var(--c-light); }

/* Small "trusted by" strip under the hero buttons. */
.hero__note {
  margin-top: var(--sp-8);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
}

/* Decorative panel beside the hero copy — a glass card of quick highlights. */
.hero__panel {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(6px);
}
.hero__panel-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}
.hero__panel-item strong {
  display: block;
  color: var(--c-white);
  font-size: var(--fs-base);
}
.hero__panel-item span {
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: rgba(255, 255, 255, 0.8);
}
.hero__panel .icon-tile {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.16);
  color: var(--c-white);
}

/* Inner-page header — same gradient, shorter. */
.page-header {
  background: var(--gradient-primary);
  color: var(--c-white);
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.page-header h1 { color: var(--c-white); margin-bottom: var(--sp-4); }
.page-header__lead {
  max-width: 52ch;
  margin: 0 auto;
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: rgba(255, 255, 255, 0.88);
}
.page-header--start { text-align: left; }
.page-header--start .page-header__lead { margin-inline: 0; }

/* Breadcrumbs */
.breadcrumbs {
  padding-block: var(--sp-4);
  font-size: var(--fs-sm);
  background: var(--c-off-white);
  border-bottom: 1px solid var(--c-border);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--c-text-muted);
}
.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: var(--sp-2);
  color: var(--c-border-strong);
}
.breadcrumbs a { text-decoration: none; }


/* ==========================================================================
   08. CARDS & GRIDS
   ========================================================================== */

/* Auto-fitting grid: columns collapse naturally, no breakpoint juggling. */
.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

/* Base card — white, light border, lifts with a soft blue shadow (spec §2.3). */
.card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--c-light);
}
.card h3 { margin-bottom: var(--sp-3); }
.card p  { margin-bottom: var(--sp-5); color: var(--c-text-muted); line-height: var(--lh-snug); }
.card .link-arrow { margin-top: auto; }

/* Whole-card link: the anchor's ::after covers the card, so the entire tile is
   clickable while the accessible name stays on the real link text. */
.card--linked { position: relative; }
.card--linked .card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* Square gradient tile holding an icon (spec §2.4). */
.icon-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--sp-5);
  border-radius: var(--radius);
  background: var(--gradient-primary);
  color: var(--c-white);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile--soft {
  background: var(--c-lightest);
  color: var(--c-main);
}
.icon-tile--sm { width: 42px; height: 42px; margin-bottom: var(--sp-4); }
.icon-tile--sm svg { width: 21px; height: 21px; }

/* Checklist used for sub-services (spec §5.3). */
.checklist {
  display: grid;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  line-height: var(--lh-snug);
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--c-lightest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314507E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.5 3.5L13 5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Numbered process steps (spec §5.3 §4). */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: var(--sp-12);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--c-light);
}
.steps h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.steps p  { color: var(--c-text-muted); line-height: var(--lh-snug); margin: 0; }

/* Two-column text + media block. */
.split {
  display: grid;
  gap: var(--sp-10);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
  .split--reverse > *:first-child { order: 2; }
}

.media-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-frame img { width: 100%; }

/* Placeholder used until real photography is supplied. */
.media-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: var(--sp-8);
  border-radius: var(--radius-xl);
  background: var(--gradient-soft);
  border: 1px dashed var(--c-light);
  color: var(--c-mid);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}


/* ==========================================================================
   09. SECTIONS
   ========================================================================== */

/* --- Trust bar / stats (spec §4.3) --------------------------------------- */
.stats {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat__value {
  display: block;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: var(--fw-black);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  color: var(--c-main);
}
.stat__label {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--c-text-muted);
}

/* --- Why choose us (spec §4.5) ------------------------------------------- */
.feature {
  display: flex;
  gap: var(--sp-4);
}
.feature__body h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); color: var(--c-text-strong); }
.feature__body p  { margin: 0; color: var(--c-text-muted); line-height: var(--lh-snug); }
.feature .icon-tile { margin-bottom: 0; }

/* --- Industries (spec §4.7) ---------------------------------------------- */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--c-text-strong);
  text-decoration: none;
  transition: all var(--transition);
}
.tag:hover {
  border-color: var(--c-mid);
  background: var(--c-lightest);
  color: var(--c-main);
  transform: translateY(-2px);
}

/* --- Testimonials (spec §4.8) -------------------------------------------- */
.testimonials {
  position: relative;
}
.testimonial-track {
  display: flex;
  gap: var(--sp-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--sp-4);
  /* Hide the scrollbar but keep the scrolling — swipe still works on touch. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  padding: var(--sp-8);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
@media (min-width: 768px)  { .testimonial { flex-basis: calc((100% - var(--sp-6)) / 2); } }
@media (min-width: 1100px) { .testimonial { flex-basis: calc((100% - 2 * var(--sp-6)) / 3); } }

.testimonial__quote {
  flex: 1;
  margin: 0 0 var(--sp-6);
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: var(--c-text-strong);
}
.testimonial__quote::before { content: '“'; }
.testimonial__quote::after  { content: '”'; }

.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-5);
  color: #E8A33D;
}
.testimonial__stars svg { width: 16px; height: 16px; fill: currentColor; }

.testimonial__author { display: flex; align-items: center; gap: var(--sp-4); }
.testimonial__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-lightest);
  color: var(--c-main);
  font-weight: var(--fw-bold);
}
.testimonial__name { display: block; font-weight: var(--fw-bold); color: var(--c-text-strong); }
.testimonial__role { display: block; font-size: var(--fs-sm); color: var(--c-text-muted); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}
.carousel-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: var(--c-white);
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
  color: var(--c-main);
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-btn:hover:not(:disabled) { background: var(--c-main); border-color: var(--c-main); color: var(--c-white); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn svg { width: 18px; height: 18px; }

.carousel-dots { display: flex; gap: var(--sp-2); }
.carousel-dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-border-strong);
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-dot.is-active { background: var(--c-main); width: 24px; border-radius: var(--radius-pill); }

/* --- CTA band (spec §4.10) ----------------------------------------------- */
.cta-band {
  background: var(--c-darkest);
  color: var(--c-white);
  text-align: center;
  padding-block: var(--section-y-tight);
}
.cta-band h2 { color: var(--c-white); max-width: 22ch; margin-inline: auto; }
.cta-band p {
  max-width: 52ch;
  margin: 0 auto var(--sp-8);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-md);
}
.cta-band .btn-group { justify-content: center; }

/* --- Careers teaser (spec §4.9) ------------------------------------------ */
.panel {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  color: var(--c-white);
}
.panel h2 { color: var(--c-white); }
.panel p  { color: rgba(255, 255, 255, 0.85); }
.panel--soft {
  background: var(--c-lightest);
  color: var(--c-text);
  border: 1px solid var(--c-light);
}
.panel--soft h2, .panel--soft h3 { color: var(--c-darkest); }
.panel--soft p { color: var(--c-text); }

/* --- Prose (legal pages, long-form copy) --------------------------------- */
.prose h2 { margin-top: var(--sp-12); font-size: var(--fs-xl); }
.prose h3 { margin-top: var(--sp-8); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 var(--sp-4); padding-left: var(--sp-6); }
.prose li { margin-bottom: var(--sp-2); }
.prose a  { font-weight: var(--fw-bold); }
.prose hr { margin: var(--sp-10) 0; border: 0; border-top: 1px solid var(--c-border); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-6); }
.prose th, .prose td { padding: var(--sp-3); border: 1px solid var(--c-border); text-align: left; }
.prose th { background: var(--c-lightest); font-weight: var(--fw-bold); color: var(--c-text-strong); }

/* Body copy of a centred custom section: held to a readable line length
   rather than running the full width of the container. */
.block-prose { max-width: 46rem; margin-inline: auto; }
.block-prose > :last-child { margin-bottom: 0; }


/* ==========================================================================
   10. FORMS
   ========================================================================== */

.form { display: grid; gap: var(--sp-5); }

.form-row {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: var(--sp-2); }

.field label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--c-text-strong);
}
.field .required { color: var(--c-error); }
.field__hint { font-size: var(--fs-xs); color: var(--c-text-muted); }

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.8125rem var(--sp-4);
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--c-text-strong);
  background: var(--c-white);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input::placeholder,
.textarea::placeholder { color: var(--c-slate-500); }

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--c-mid);
  box-shadow: var(--focus-ring);
}

.textarea { min-height: 9rem; resize: vertical; line-height: var(--lh-snug); }

.select {
  appearance: none;
  padding-right: var(--sp-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236B7F8F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 16px;
}

/* Invalid state — flagged by the server, not just the browser. */
.input.is-invalid,
.textarea.is-invalid,
.select.is-invalid {
  border-color: var(--c-error);
  background: var(--c-error-bg);
}
.field__error {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--c-error);
}

/* File input */
.file-input {
  padding: var(--sp-4);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius);
  background: var(--c-off-white);
  font-size: var(--fs-sm);
  cursor: pointer;
}
.file-input::file-selector-button {
  margin-right: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--c-main);
  color: var(--c-white);
  font-family: inherit;
  font-weight: var(--fw-bold);
  cursor: pointer;
}

/* Checkbox row (consent) */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}
.checkbox input {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--c-main);
}

/* Honeypot — hidden from people, visible to bots. Not display:none, because
   some bots skip those; this is off-screen but still "rendered". */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Contact page layout: form beside the company details. */
.contact-layout {
  display: grid;
  gap: var(--sp-10);
}
@media (min-width: 960px) {
  .contact-layout { grid-template-columns: 1.4fr 1fr; gap: var(--sp-16); align-items: start; }
}

.info-list { display: grid; gap: var(--sp-6); margin: 0; }
.info-item { display: flex; gap: var(--sp-4); }
.info-item dt {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-mid);
}
.info-item dd { margin: var(--sp-1) 0 0; line-height: var(--lh-snug); color: var(--c-text-strong); }
.info-item dd a { text-decoration: none; font-weight: var(--fw-bold); }


/* ==========================================================================
   11. ALERTS & FLASH MESSAGES
   ========================================================================== */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--radius);
  border-left: 4px solid;
  line-height: var(--lh-snug);
}
.alert h3 { margin: 0 0 var(--sp-1); font-size: var(--fs-base); color: inherit; }
.alert p  { margin: 0; }
.alert svg { flex-shrink: 0; width: 22px; height: 22px; }

/* Flash messages shown beside a form after submission. Deliberately larger
   and higher-contrast than a passive notice — this is the only feedback the
   visitor gets that their message was received. */
.flash-stack {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  scroll-margin-top: calc(var(--header-height) + var(--sp-6));
}

.flash-message {
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.flash-message h3 {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-md);
  color: inherit;
}
.flash-message p { font-size: var(--fs-base); }

/* Focus ring is redundant here — JS moves focus purely so screen readers
   announce the message; the colour and icon already carry it visually. */
.flash-message:focus { outline: none; }
.flash-message:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Brief highlight so the message is noticed even on a page that did not scroll. */
@keyframes flash-attention {
  0%   { transform: scale(0.98); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.flash-message { animation: flash-attention 320ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .flash-message { animation: none; }
}

.alert--success { background: var(--c-success-bg); border-color: var(--c-success); color: #145943; }
.alert--error   { background: var(--c-error-bg);   border-color: var(--c-error);   color: #8C1D18; }
.alert--info    { background: var(--c-lightest);   border-color: var(--c-mid);     color: var(--c-darkest); }
.alert--warning { background: var(--c-warning-bg); border-color: var(--c-warning); color: #6B4600; }


/* ==========================================================================
   12. COOKIE NOTICE (spec §6.6 — privacy-friendly default)
   ========================================================================== */

.cookie-notice {
  position: fixed;
  bottom: var(--sp-4);
  left: var(--sp-4);
  right: var(--sp-4);
  z-index: var(--z-cookie);
  max-width: 34rem;
  padding: var(--sp-6);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice h2 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.cookie-notice p  { margin-bottom: var(--sp-5); color: var(--c-text-muted); }
.cookie-notice .btn-group { gap: var(--sp-3); }


/* ==========================================================================
   13. UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: var(--sp-8); }
.center-x { margin-inline: auto; }
.full-width { width: 100%; }

/* Fade-and-rise as elements scroll into view. Applied by JS only when the
   browser supports IntersectionObserver, so content is never stuck hidden. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Empty-state block (e.g. no job openings yet). */
.empty-state {
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
  background: var(--c-off-white);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius-lg);
}
.empty-state .icon-tile { margin-inline: auto; }

/* Error pages */
.error-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-block: var(--section-y);
  text-align: center;
}
.error-page__code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: var(--fw-black);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Print: drop chrome, keep content readable. */
@media print {
  .site-header, .site-footer, .cookie-notice, .btn, .carousel-controls { display: none !important; }
  body { color: #000; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}
