/* ================================================================
   Inhouse Corporate Services: Main Stylesheet
   Look: the existing inhousecorporateservices.com theme, rebuilt.
   Palette (sampled from the live site's Elementor CSS and the logo):
     navy #113768 / deep navy #082E5F, logo blue #0080C8, electric blue #008BF9,
     text #5F6B7A, tint #E8F4FC, footer near-black #0B1522
   Type: Open Sans throughout (700 headings, 600 nav/buttons), as on the live site
   ================================================================ */

/* ---- Fonts (self-hosted, matches the live site: Open Sans throughout) ---- */
@font-face { font-family: 'Open Sans'; src: url('/assets/fonts/open-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('/assets/fonts/open-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('/assets/fonts/open-sans-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---- Variables ---- */
:root {
  --navy:        #113768;
  --navy-2:      #0E2C55;
  --blue:        #0082CB;
  --blue-bright: #1E9BE8;
  --blue-dark:   #006AA8;
  /* Brand electric blue, sampled from the live site (#008BF9 stats band, #278CD4 buttons) and logo (#0080C8).
     #008BF9 is 3.46:1 on white, so it is used for large type and decoration only. White text sits on
     --blue-electric-ink (5.37:1). --blue-light is for highlight words on navy (5.78:1 on #082E5F). */
  --blue-electric:       #008BF9;
  --blue-electric-ink:   #0A6BC4;
  --blue-electric-hover: #0857A3;
  --blue-light:          #4DB1FF;
  --navy-deep:   #082E5F;
  --night:       #0B1522;
  --tint:        #E8F4FC;
  --tint-2:      #F3F8FC;
  --white:       #FFFFFF;
  --text:        #5F6B7A;
  --text-light:  #7A8794;
  --dark:        #1C1E22;
  --border:      #E3EAF1;
  --shadow:      0 10px 30px rgba(17, 55, 104, 0.08);
  --shadow-lg:   0 18px 40px rgba(17, 55, 104, 0.14);
  --max:         1200px;
  --radius:      12px;
  --pill:        999px;
  --heading:     'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body:        'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Legacy aliases still referenced inline in some pages */
  --gold:        #0082CB;
  --gray:        #5F6B7A;
  --navy-3:      #F3F8FC;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -0.025em; }
h2, .h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 700; line-height: 1.2; }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 600; line-height: 1.3; }
/* Two-tone heading device: the brand word in electric blue (large type only, 3.46:1 clears the 3:1 large-text bar) */
.hl { color: var(--blue-electric); }
.band-navy .hl, .band-blue .hl, .page-hero .hl, .hero .hl { color: var(--blue-light); }
.band-blue .hl { color: var(--white); text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.12em; }
p  { color: var(--text); line-height: 1.75; }
p + p { margin-top: 1em; }
strong { color: var(--navy); font-weight: 600; }

/* ---- Eyebrow label ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
section { padding: 5rem 0; }
.section-dark  { background: var(--white); }
.section-mid   { background: var(--tint-2); }
.section-card  { background: var(--tint); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 2em;
  border-radius: var(--pill);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover  { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 130, 203, 0.22); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* --blue-dark on white is 5.8:1 (AA); the brighter blues fall under 4.5:1 for button text */
.btn-primary { background: var(--blue-electric-ink); color: var(--white); border-color: var(--blue-electric-ink); }
.btn-primary:hover { background: var(--blue-electric-hover); border-color: var(--blue-electric-hover); }
.btn-gold    { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-gold:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-outline { background: transparent; color: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline:hover { background: var(--blue-dark); color: var(--white); }
.hero .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.75); }
.hero .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.cta-band .btn-gold { background: var(--white); color: var(--navy); border-color: var(--white); }
.cta-band .btn-gold:hover { background: var(--tint); border-color: var(--tint); }
.cta-band .btn-primary { background: var(--white); color: var(--blue-electric-ink); border-color: var(--white); }
.cta-band .btn-primary:hover { background: var(--tint); border-color: var(--tint); }

/* ---- Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(17, 55, 104, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  gap: 1rem;
}
.nav-logo img {
  height: 2.6rem;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5em 0.9em;
  font-family: var(--heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1F2937;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--blue); }

.nav-cta { margin-left: 0.5rem; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.25s;
  border-radius: 2px;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  padding: 0.75em 1em;
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] { color: var(--blue); background: var(--tint-2); }
.nav-mobile .btn { margin-top: 0.75rem; width: 100%; justify-content: center; color: var(--white); background: var(--blue-bright); }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--blue);
  color: var(--white);
  padding: 0.5em 1em;
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  z-index: 999;
}
.skip-link:focus { top: 0; }

/* ---- Hero (home) ---- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 30, 62, 0.9) 0%, rgba(8, 30, 62, 0.72) 55%, rgba(8, 30, 62, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-content .eyebrow { color: #9CD3F5; }
.hero-content h1 { color: var(--white); margin-bottom: 1.5rem; font-size: clamp(2.7rem, 6.2vw, 4.9rem); line-height: 1.02; letter-spacing: -0.03em; }
.hero-content h1 em {
  font-style: normal;
  color: var(--blue-light);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  position: relative;
  padding: 6rem 0 7rem;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(rgba(8, 46, 95, 0.9), rgba(8, 46, 95, 0.9)),
    url('/assets/images/showcase-header.webp') center / cover no-repeat;
  background-color: var(--navy-deep);
}
.page-hero .container { max-width: 920px; position: relative; z-index: 1; }
.page-hero .breadcrumb {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}
ol.breadcrumb { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
ol.breadcrumb li + li::before { content: '/'; margin-right: 0.5rem; opacity: 0.7; }
.page-hero .breadcrumb a { color: var(--white); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero .eyebrow { color: #9CD3F5; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; font-size: clamp(2.5rem, 5.4vw, 4rem); }
.page-hero .lead,
.page-hero .hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0.5rem auto 0;
}
.page-hero .btn { margin-top: 1.75rem; }

/* ---- Stats row ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--blue-electric);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 0.5em;
}

/* ---- Grid layouts ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }

@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card-img {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 16/9;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card h3, .card h4 { margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; }

/* Pillar / service pillar cards */
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.pillar-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pillar-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.pillar-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.pillar-card:hover .pillar-card-img img { transform: scale(1.04); }
.pillar-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.pillar-card-body h3 { margin-bottom: 0.6rem; font-size: 1.3rem; }
.pillar-card-body p { font-size: 0.925rem; flex: 1; }
.pillar-card-body .btn { margin-top: 1.5rem; align-self: flex-start; }

/* ---- Client logos strip ---- */
/* Full-colour client marks in a bordered grid (the old site's "A Reputation You Can Trust" treatment) */
.logos-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--white);
}
picture { display: contents; }
picture > source { display: none; } /* the reset makes media elements block, which turned each <source> into an empty grid cell */
.logos-strip img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  padding: 1.1rem 1.4rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.logos-strip img:hover { background: var(--tint-2); }
.logos-strip img.logo-square { padding: 0.6rem; } /* near-square marks need more height to read */
.logos-strip picture img { height: 92px; }

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
/* Brand-blue cards, as on the old site. White on --blue-electric-ink is 5.37:1. */
.testimonial-card {
  background: var(--blue-electric-ink);
  border-radius: var(--radius);
  padding: 2.25rem 2rem 2rem;
  position: relative;
  box-shadow: 0 18px 40px rgba(8, 46, 95, 0.22);
}
.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--white);
  line-height: 1;
  position: absolute;
  top: 0.75rem;
  left: 1.5rem;
  opacity: 0.3;
}
.testimonial-body { margin-top: 1.75rem; font-size: 1.02rem; color: var(--white); line-height: 1.7; }
.testimonial-author { margin-top: 1.5rem; font-weight: 700; color: var(--white); font-size: 1rem; font-family: var(--heading); }
.testimonial-role   { font-size: 0.85rem; color: #DCEEFF; margin-top: 0.15rem; }

/* ---- Team cards ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}
.team-card {
  background: var(--tint);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.2s;
}
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.team-card-img {
  aspect-ratio: 1;
  overflow: hidden;
}
.team-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-card-body { padding: 1.25rem 1rem; }
.team-card-body h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.team-card-body .role { font-size: 0.85rem; color: var(--text-light); }

/* ---- Feature / about split ---- */
.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; }

.feature-text {}
.feature-text h2 { margin-bottom: 1rem; }
.feature-text h3 { margin-bottom: 0.25rem; }
.feature-text p  { margin-bottom: 1.25rem; }

/* ---- Guarantee tickets / USP grid ---- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.usp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.usp-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--blue);
  background: var(--tint);
  border-radius: 50%;
  padding: 0.6rem;
}
.usp-card .icon-circle { margin-bottom: 1.1rem; }
.usp-card h4 { margin-bottom: 0.5rem; }
.usp-card p { font-size: 0.925rem; }

/* ---- CTA band ---- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue-electric-ink);
  padding: 5.5rem 0;
  text-align: center;
}
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: url('/assets/images/contours.svg') right center / cover no-repeat; opacity: 0.16; }
.cta-band .eyebrow { color: rgba(255, 255, 255, 0.85); }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p  { color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; max-width: 560px; margin-inline: auto; }

/* ---- Service list (child pages index) ---- */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 960px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-list { grid-template-columns: 1fr; } }
.service-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--blue-electric-ink);
  border: 1px solid var(--blue-electric-ink);
  border-radius: var(--radius);
  font-family: var(--heading);
  font-weight: 600;
  color: var(--white);
  box-shadow: var(--shadow);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.service-link:hover { background: #08559C; border-color: #08559C; color: var(--white); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service-link:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.service-link::after { content: '→'; margin-left: auto; color: var(--white); }

/* ---- Icon bullet list ---- */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.975rem;
  color: var(--text);
}
.check-list li::before {
  content: '';
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  min-width: 1.1em;
  background: var(--blue);
  border-radius: 50%;
  margin-top: 0.3em;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.5 2.5L6 10 2.5 6.5l-1 1L6 12l8.5-8.5z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.5 2.5L6 10 2.5 6.5l-1 1L6 12l8.5-8.5z'/%3E%3C/svg%3E");
}

/* ---- Contact form ---- */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group   { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--navy); font-family: var(--heading); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white);
  border: 1px solid #D5DEE8;
  border-radius: 8px;
  padding: 0.85em 1em;
  color: #1F2937;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 130, 203, 0.15); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-privacy { font-size: 0.8rem; color: var(--text-light); }
.form-privacy a { color: var(--blue); text-decoration: underline; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---- GHL Widget container ---- */
.widget-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---- Careers ---- */
.careers-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  counter-reset: step;
}
.careers-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  counter-increment: step;
}
.step-num {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--blue);
  line-height: 1;
  min-width: 2.5rem;
  text-align: center;
}
.step-body h4 { margin-bottom: 0.35rem; }
.step-body p  { font-size: 0.925rem; }

/* ---- Privacy / Terms prose ---- */
.prose h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 2rem 0 0.75rem; }
.prose h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin: 1.5rem 0 0.5rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.prose ul li { color: var(--text); font-size: 0.975rem; }
.prose a  { color: var(--blue); text-decoration: underline; }
.prose strong { color: var(--navy); }

/* ---- Footer ---- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: #B8C0CC;
  padding: 5rem 0 2rem;
}
.site-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('/assets/images/contours.svg') left bottom / cover no-repeat; opacity: 0.1; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 2.5rem; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: #B8C0CC; max-width: 300px; }
/* Accreditation row: every badge on a white tile so the original artwork keeps its colours and aspect ratio */
.footer-accreditations {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-accreditations .footer-heading { flex: 1 0 100%; margin-bottom: 0; }
.footer-accreditations li { display: flex; }
.footer-accreditations ul { display: contents; }
.footer-accreditations .badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
}
.footer-accreditations img { height: 84px; width: auto; max-width: 100%; margin: 0; }
.footer-accreditations .badge.tall img { height: 132px; }
.footer-accreditations .badge { padding: 0.5rem 0.7rem; }

.footer-heading {
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.9rem;
  color: #B8C0CC;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-contact { font-size: 0.9rem; color: #B8C0CC; }
.footer-contact p { margin-bottom: 0.6rem; color: #B8C0CC; }
.footer-contact a { color: var(--blue-bright); }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact strong { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: #98A2B0; }
.footer-bottom nav { display: flex; gap: 1.25rem; }
.footer-bottom nav a { font-size: 0.8rem; color: #98A2B0; transition: color 0.2s; }
.footer-bottom nav a:hover { color: var(--white); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Accreditation badges ---- */
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.badge-img { height: 56px; width: auto; opacity: 0.9; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-gold   { color: var(--blue); }
.text-blue   { color: var(--blue); }
.text-gray   { color: var(--text); }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mt-5  { margin-top: 2.5rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.mb-5  { margin-bottom: 2.5rem; }
.gap-4 { gap: 2rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
  .hero { min-height: 70vh; }
  .hero-content h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .page-hero { padding: 3.5rem 0 3rem; }
}

/* Secondary button on the blue CTA bands */
.cta-band .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.75); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ================================================================
   Design pass: bands, texture, icons, depth, motion
   ================================================================ */

/* ---- Section rhythm: loud and quiet ---- */
.section-tight { padding: 3rem 0; }
.section-loose { padding: 7rem 0; }
.band-navy, .band-blue, .band-wave { position: relative; isolation: isolate; }
.band-navy { background: var(--navy-deep); color: #D6E4F5; overflow: hidden; }
.band-blue { background: var(--blue-electric-ink); color: var(--white); overflow: hidden; }
/* Contour-line texture: one SVG file, low contrast, pushed behind the content */
.band-navy::before, .band-blue::before, .page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/assets/images/contours.svg') right center / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
}
.page-hero::before { z-index: 0; opacity: 0.12; }
.band-navy h2, .band-navy h3, .band-blue h2, .band-blue h3 { color: var(--white); }
.band-navy .eyebrow, .band-blue .eyebrow { color: var(--blue-light); }
.band-blue .eyebrow { color: var(--white); }
.band-navy p, .band-blue p { color: inherit; }
.band-navy strong, .band-blue strong { color: var(--white); }
.band-navy .check-list li, .band-blue .check-list li { color: #D6E4F5; }
.band-navy .check-list li::before { background: var(--blue-light); }
.band-navy a:not(.btn):not(.card):not(.pillar):not(.service-link), .band-blue a:not(.btn) { text-decoration: underline; text-underline-offset: 0.15em; }
.band-navy .btn-outline, .band-blue .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.75); }
.band-navy .btn-outline:hover, .band-blue .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.band-navy .btn-primary { background: var(--blue-electric-ink); border-color: var(--blue-light); }
.band-navy .btn-primary:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.band-navy .card, .band-navy .usp-card { background: #0D3B78; border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.band-navy .card h3, .band-navy .card h4, .band-navy .usp-card h4 { color: var(--white); }
.band-navy .card p, .band-navy .usp-card p { color: #D6E4F5; }
.band-navy .service-link { background: #0D3B78; border-color: rgba(255, 255, 255, 0.14); color: var(--white); box-shadow: none; }
.band-navy .service-link:hover { background: #0D3B78; border-color: var(--blue-light); color: var(--white); }
.band-navy .service-link:focus-visible { outline-color: var(--white); }
.band-navy .service-link::after { color: var(--blue-light); }
.band-navy .logos-strip { border-color: rgba(255, 255, 255, 0.2); }

/* Soft wave handover: the pseudo-element carries the previous section's colour down into this one */
.wave-top { padding-top: 8rem; }
.wave-top::before, .wave-bottom::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4.5rem;
  background: var(--wave, var(--white));
  -webkit-mask: url('/assets/images/wave.svg') center / 100% 100% no-repeat;
  mask: url('/assets/images/wave.svg') center / 100% 100% no-repeat;
  pointer-events: none;
}
.wave-top::before { top: -1px; z-index: 0; }
.wave-bottom::after { bottom: -1px; transform: scaleY(-1); z-index: 1; }
.band-wave { background: var(--tint); overflow: hidden; }
.band-wave > .container { position: relative; z-index: 1; }
.band-wave::after {
  content: '';
  position: absolute;
  right: -2rem;
  bottom: 0;
  z-index: 0;
  width: min(46rem, 90%);
  aspect-ratio: 640 / 420;
  background: url('/assets/images/building-line.svg') right bottom / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
}
.page-hero.wave-bottom { padding-bottom: 8rem; }
.page-hero:has(+ .section-mid)::after, .page-hero:has(+ .section-mid) { --wave: var(--tint-2); }
.page-hero:has(+ .band-wave) { --wave: var(--tint); }

/* ---- Icons ---- */
.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-electric-ink);
  box-shadow: 0 8px 20px rgba(8, 46, 95, 0.18);
}
.icon-circle .icon { width: 1.75rem; height: 1.75rem; }
.icon-circle.sm { width: 2.25rem; height: 2.25rem; box-shadow: none; }
.icon-circle.sm .icon { width: 1.15rem; height: 1.15rem; }
.icon-circle.tinted { background: var(--tint); box-shadow: none; }

/* ---- Home hero depth: stats band crosses the hero edge ---- */
.hero { padding: 5rem 0 9rem; min-height: 86vh; }
.hero-bg { height: 112%; top: -6%; will-change: transform; }
.stats-wrap { position: relative; z-index: 3; margin-top: -5.5rem; padding: 0; }
.stats-wrap--flow { margin-top: 0; padding: 3.5rem 0; }
.stats-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue-electric-ink);
  border-radius: 18px;
  padding: 2.75rem 2rem;
  box-shadow: 0 24px 50px rgba(8, 46, 95, 0.28);
}
.stats-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('/assets/images/contours.svg') right center / cover no-repeat; opacity: 0.16; }
.stats-band .stats-row { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stats-band .stat-item { display: flex; flex-direction: column; align-items: center; }
.stats-band .icon-circle { margin-bottom: 1rem; }
.stats-band .stat-number { color: var(--white); }
.stats-band .stat-label { color: var(--white); }
@media (max-width: 760px) {
  .stats-band .stats-row { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .stats-band { padding: 2rem 1.25rem; }
  .hero { padding: 4rem 0 8rem; }
}

/* ---- Service pillars ---- */
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #0D3B78;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  color: #D6E4F5;
  transition: transform 0.2s, background 0.2s;
}
.pillar .pillar-card-img { position: relative; overflow: visible; }
.pillar .icon-circle { position: absolute; left: 1.5rem; bottom: -1.9rem; z-index: 2; margin: 0; width: 3.75rem; height: 3.75rem; }
.pillar-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 2.9rem 1.75rem 1.75rem; }
.pillar:hover { transform: translateY(-4px); background: #104684; }
.pillar-num {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 7rem;
  line-height: 1;
  color: var(--white);
  opacity: 0.08;
  pointer-events: none;
}
.pillar h3 { color: var(--white); margin-bottom: 0.75rem; font-size: 1.4rem; }
.pillar p { flex: 1; font-size: 0.95rem; color: #D6E4F5; }
.pillar .more { margin-top: 1.5rem; font-family: var(--heading); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); }
.pillar .more::after { content: ' \2192'; color: var(--blue-light); }

/* Services-page cards: photo with the icon circle crossing its bottom edge */
.pillar-card-img { position: relative; overflow: visible; aspect-ratio: auto; }
.pillar-card-img img { border-radius: 0; }
.pillar-card { overflow: hidden; }
/* One fixed 4:3 frame for every card photo (services page and home pillars) so icons, titles and buttons line up */
.pillar-card-img .img-clip, .pillar .img-clip { position: relative; overflow: hidden; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.pillar-card-img .img-clip img, .pillar .img-clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-link, .service-link:hover { text-decoration: none; }
.pillar-card .icon-circle { position: absolute; left: 1.5rem; bottom: -1.9rem; z-index: 2; background: var(--blue-electric-ink); color: var(--white); width: 3.75rem; height: 3.75rem; }
.pillar-card .pillar-card-body { padding-top: 2.75rem; }
.pillar-card-img { overflow: visible; }
.pull-up { position: relative; z-index: 2; margin-top: -5.5rem; }
.service-group-title { display: flex; align-items: center; gap: 0.85rem; font-size: 1.5rem; margin-bottom: 1.25rem; color: var(--navy); }
.band-navy .service-group-title { color: var(--white); }

/* ---- Trust block: heading beside the logo grid ---- */
.trust { display: grid; grid-template-columns: 1fr 2fr; gap: 3.5rem; align-items: center; }
.trust-text p { margin-top: 1rem; }
.trust .logos-strip, .logos-strip--colour { grid-template-columns: repeat(4, 1fr); }
.logos-strip--colour { max-width: 780px; margin-inline: auto; }
.trust .logos-strip img, .trust .logos-strip picture img, .logos-strip--colour img, .logos-strip--colour picture img { height: auto; aspect-ratio: 16 / 9; padding: 0; object-fit: contain; background: var(--white); }
@media (max-width: 560px) {
  .trust .logos-strip, .logos-strip--colour { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) { .trust { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- Testimonials sit on the pale-blue wave section ---- */
.band-wave .testimonial-card:nth-child(2) { transform: translateY(1.25rem); }
@media (max-width: 760px) { .band-wave .testimonial-card:nth-child(2) { transform: none; } }

/* ---- Cards and tiles pick up the new tokens ---- */
.card, .usp-card, .careers-step { border-color: var(--border); }
.card:hover { border-color: var(--blue-electric-ink); }
.check-list li::before { background: var(--blue-electric-ink); }
.step-num { color: var(--blue-electric); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--blue-electric-ink); }
.page-hero .eyebrow, .hero-content .eyebrow { color: var(--blue-light); }
.band-blue .eyebrow, .cta-band .eyebrow { color: var(--white); }
h1 > .eyebrow { display: block; margin-bottom: 1.1rem; font-size: 0.82rem; line-height: 1.4; letter-spacing: 0.12em; }
.cta-band .eyebrow { opacity: 1; }
.cta-band h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.cta-band p { color: var(--white); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue-electric-ink); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--blue-electric); }
.nav-mobile .btn { background: var(--blue-electric-ink); }
.footer-services li a { display: flex; align-items: center; gap: 0.6rem; }
.footer-services .icon { width: 1.1rem; height: 1.1rem; color: var(--blue-light); }

/* ---- Motion: three effects per page (hero entrance, hero parallax, card rise). Static when reduced. ---- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-rise { from { transform: translateY(26px); } to { transform: none; } }
  @keyframes hero-settle { from { transform: scale(1.06); } to { transform: none; } }
  .hero-content > * { animation: hero-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .hero-content > :nth-child(2) { animation-delay: 0.08s; }
  .hero-content > :nth-child(3) { animation-delay: 0.16s; }
  .hero-content > :nth-child(4) { animation-delay: 0.24s; }
  .hero-bg { animation: hero-settle 1.6s ease-out; }
  /* Rise only: opacity is never touched, so text is fully visible (and contrast-checkable) at all times */
  .reveal-ready [data-reveal] { transform: translateY(22px); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .reveal-ready [data-reveal].revealed { transform: none; }
}

main h2 { margin-bottom: 1rem; }
.cta-band h2, .page-hero h1 { margin-bottom: 1rem; }

/* ---- Small screens ---- */
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-hero.wave-bottom { padding-bottom: 8rem; }
  .page-hero { padding: 4rem 0 6rem; }
  .page-hero.wave-bottom { padding-bottom: 6rem; }
  .wave-top { padding-top: 6rem; }
  .pull-up { margin-top: -3.5rem; }
  .section-loose { padding: 4.5rem 0; }
  .pillar-num { font-size: 5rem; }
  .footer-accreditations img { height: 68px; }
}
