/*
 * 4m Engineering Ltd — bespoke industrial engineering theme
 * Custom properties drive palette, type scale and spacing.
 */

:root {
  /* Surfaces — deep charcoal navy stack */
  --bg-root: #0a0d12;
  --bg-subtle: #0f141c;
  --bg-raised: #141b26;
  --bg-card: #182030;
  --bg-card-hover: #1c2738;

  --border: rgba(232, 237, 244, 0.09);
  --border-strong: rgba(232, 237, 244, 0.14);

  --text: #e9eef5;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  /* Accent — controlled industrial palette */
  --accent: #e8732d;
  --accent-hover: #f0904f;
  --accent-muted: rgba(232, 115, 45, 0.14);
  --steel: #6eb4dc;
  --steel-muted: rgba(110, 180, 220, 0.12);
  --signal: #e8c547;

  --danger: #f87171;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --step--1: clamp(0.875rem, 0.82rem + 0.2vw, 0.9375rem);
  --step-0: clamp(1rem, 0.94rem + 0.25vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1rem + 0.45vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.15rem + 0.85vw, 1.65rem);
  --step-3: clamp(1.65rem, 1.35rem + 1.2vw, 2.15rem);
  --step-4: clamp(2rem, 1.5rem + 1.75vw, 2.85rem);
  --step-5: clamp(2.35rem, 1.65rem + 2.4vw, 3.35rem);

  --space-xs: clamp(0.35rem, 0.3rem + 0.2vw, 0.5rem);
  --space-sm: clamp(0.65rem, 0.55rem + 0.35vw, 0.85rem);
  --space-md: clamp(1rem, 0.85rem + 0.55vw, 1.35rem);
  --space-lg: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  --space-xl: clamp(2rem, 1.5rem + 1.75vw, 3.5rem);
  --space-2xl: clamp(3rem, 2rem + 3vw, 5rem);

  --measure: 65ch;
  --container: min(1140px, calc(100% - var(--space-lg) * 2));

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.28);

  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.22s var(--ease-out);

  --focus-ring: 2px solid var(--steel);
  --focus-offset: 3px;
}

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

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-root);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(110, 180, 220, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(232, 115, 45, 0.06), transparent 45%);
  min-height: 100vh;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: var(--bg-root);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

:focus:not(:focus-visible) {
  outline: none;
}

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

a {
  color: var(--steel);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: rgba(10, 13, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  background: rgba(10, 13, 18, 0.94);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-sm);
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  text-underline: none;
}

.brand:hover {
  color: var(--accent);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.2rem 0;
  border-radius: var(--radius-sm);
  background: transparent;
  text-decoration: none;
  transition: opacity var(--transition);
}

.brand-logo:hover {
  color: inherit;
}

.brand-logo:hover .brand-logo-img {
  filter: brightness(1.12);
}

.brand-logo:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.brand-logo-img {
  display: block;
  height: clamp(34px, 5vw, 44px);
  width: auto;
  max-width: min(320px, 68vw);
  transition: filter var(--transition);
  background: transparent;
}

@media (max-width: 480px) {
  .brand-logo-img {
    max-width: min(280px, 78vw);
    height: clamp(30px, 9vw, 40px);
  }
}

.nav-toggle {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.nav-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: rgba(232, 115, 45, 0.35);
  background: var(--accent-muted);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.35s var(--ease-out),
      opacity 0.25s ease,
      visibility 0.25s;
  }

  .site-nav.is-open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    padding-bottom: var(--space-md);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding-top: var(--space-sm);
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
  }
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.18;
}

h1 {
  font-size: var(--step-5);
  margin: 0 0 var(--space-md);
}

h2 {
  font-size: var(--step-3);
  margin: 0 0 var(--space-md);
}

h3 {
  font-size: var(--step-2);
  margin: 0 0 var(--space-xs);
}

h4 {
  font-size: var(--step-1);
  margin: 0 0 var(--space-xs);
}

p {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: var(--measure);
  margin-bottom: 0;
}

.lead strong {
  color: var(--text);
  font-weight: 600;
}

.text-strong {
  color: var(--text);
}

.section-label {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 var(--space-sm);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.section-head h2 {
  margin-bottom: 0;
  max-width: 18ch;
}

.section-intro {
  max-width: var(--measure);
  margin-bottom: var(--space-lg);
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-root);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg-root);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--steel);
  background: var(--steel-muted);
  color: var(--text);
}

.link-arrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--steel);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-arrow::after {
  content: "→";
  transition: transform var(--transition);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- Hero (home + interior heroes) ---------- */
.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-xl);
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.hero h1 {
  max-width: 14ch;
}

@media (min-width: 721px) {
  .hero h1 {
    max-width: 18ch;
  }
}

.hero-stats {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: var(--space-lg) 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.hero-stat {
  text-align: left;
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--text);
  display: block;
  letter-spacing: -0.02em;
}

.hero-stat span {
  font-size: var(--step--1);
  color: var(--text-faint);
}

/* Home hero photography */
.hero-visual {
  position: relative;
  display: block;
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  min-height: 320px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(10, 13, 18, 0.15) 0%, transparent 45%),
    linear-gradient(transparent 35%, rgba(10, 13, 18, 0.88) 100%);
  pointer-events: none;
}

.hero-visual-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--space-md);
  margin: 0;
  background: none;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.hero-visual-caption strong {
  color: var(--signal);
  font-weight: 600;
}

/* Stock imagery — JPEGs live in assets/img/ (sourced from Unsplash; keep licence terms when replacing) */
.stock-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.stock-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.stock-photo--cinema img {
  aspect-ratio: 21 / 9;
  min-height: 200px;
  max-height: 340px;
}

.stock-photo--landscape img {
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.stock-photo--square img {
  aspect-ratio: 1;
  min-height: 260px;
}

.tile--photo {
  padding: 0;
  overflow: hidden;
}

.tile--photo .tile-photo-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.tile--photo .tile-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile--photo .tile-body {
  padding: var(--space-lg);
}

.page-hero-media {
  margin-top: var(--space-lg);
}

.page-hero-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 180px;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.showcase-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.showcase-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition);
}

.showcase-card:hover {
  border-color: rgba(110, 180, 220, 0.35);
  transform: translateY(-3px);
}

.showcase-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.showcase-card .showcase-body {
  padding: var(--space-md) var(--space-lg);
}

.showcase-card .showcase-body h3 {
  margin-bottom: var(--space-xs);
}

.showcase-card .showcase-body p {
  margin: 0;
  font-size: var(--step--1);
}

.contact-aside-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 260px;
    order: -1;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* Compact page heroes */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, transparent 100%);
}

.page-hero h1 {
  max-width: 20ch;
}

.page-hero .lead {
  max-width: 58ch;
}

/* ---------- Sections ---------- */
main section {
  padding: var(--space-xl) 0;
}

.section-tight {
  padding: var(--space-lg) 0 !important;
}

.surface-band {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}

/* Cards & grids */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), background var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.card h3,
.card h4 {
  color: var(--text);
}

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

.grid-2 {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.icon-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
}

.icon-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.split {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Feature tiles */
.tile {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  transition: border-color var(--transition), transform var(--transition);
}

.tile:hover {
  border-color: rgba(110, 180, 220, 0.35);
  transform: translateY(-2px);
}

.tile-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.tile h3 {
  font-size: var(--step-1);
}

.tile p {
  margin-bottom: 0;
  font-size: var(--step--1);
}

/* Why choose us — home (spacious card grid) */
#why-us {
  padding-block: var(--space-2xl);
}

#why-us .why-us-intro {
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
  max-width: 48rem;
}

#why-us .why-us-intro h2 {
  max-width: none;
  margin-bottom: 0;
}

#why-us .why-us-lead {
  margin: var(--space-lg) 0 0;
  font-size: var(--step-1);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 52ch;
}

#why-us .why-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  #why-us .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  #why-us .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#why-us .why-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  box-shadow: var(--shadow-card);
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

@media (min-width: 640px) {
  #why-us .why-card {
    padding: var(--space-xl);
    gap: var(--space-lg);
  }
}

@media (hover: hover) {
  #why-us .why-card:hover {
    border-color: rgba(110, 180, 220, 0.38);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.38);
  }
}

#why-us .why-card__step {
  display: inline-grid;
  place-items: center;
  align-self: flex-start;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  border: 1px solid rgba(232, 115, 45, 0.28);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1;
  color: var(--accent);
}

@media (min-width: 640px) {
  #why-us .why-card__step {
    width: 3.35rem;
    height: 3.35rem;
    font-size: var(--step-2);
  }
}

#why-us .why-card__body {
  flex: 1;
  min-width: 0;
}

#why-us .why-card__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

#why-us .why-card__text {
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text-muted);
}

/* Sector pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.pill {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-muted);
}

/* Service detail blocks on services page */
.service-block {
  scroll-margin-top: calc(var(--header-h) + var(--space-md));
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-of-type {
  border-bottom: none;
}

.service-block-inner {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: minmax(0, 140px) 1fr;
  align-items: start;
}

.service-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  color: rgba(232, 237, 244, 0.08);
  line-height: 1;
  user-select: none;
}

.service-block h2 {
  margin-bottom: var(--space-sm);
}

@media (max-width: 640px) {
  .service-block-inner {
    grid-template-columns: 1fr;
  }

  .service-index {
    font-size: var(--step-4);
  }
}

/* Placeholder figure for optional photography */
.media-placeholder {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background: linear-gradient(135deg, var(--bg-subtle), var(--bg-raised));
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--text-faint);
  font-size: var(--step--1);
  padding: var(--space-md);
  text-align: center;
}

/* Clients list */
.clients-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.client-chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  padding: var(--space-md);
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
}

.references-clients-head {
  max-width: 62ch;
}

.references-clients-head h2 {
  max-width: none;
}

.client-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.client-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.client-card-logo {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 4rem;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  border: 1px solid var(--border);
}

.client-card-logo img {
  width: auto;
  max-width: min(11rem, 100%);
  height: auto;
  max-height: 2.5rem;
  object-fit: contain;
  object-position: center;
}

.client-card-logo--neutral img {
  max-height: 1.25rem;
}

.client-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--text);
}

.client-card-desc {
  margin: 0;
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.client-card-link-wrap {
  margin: 0;
  margin-top: auto;
  padding-top: var(--space-xs);
}

.client-card-link {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.client-card-link:hover {
  color: var(--text);
}

/* Review boxes */
.review-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.review-box h3 {
  margin-bottom: var(--space-sm);
}

.review-box .placeholder-note {
  font-size: var(--step--1);
  color: var(--text-faint);
}

/* ---------- CTA band ---------- */
.cta-band {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 115, 45, 0.28);
  background: linear-gradient(135deg, var(--accent-muted), rgba(110, 180, 220, 0.06));
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr auto;
  align-items: center;
}

.cta-band h2 {
  margin-bottom: var(--space-xs);
}

.cta-band p {
  margin: 0;
  max-width: 48ch;
}

@media (max-width: 720px) {
  .cta-band {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact form ---------- */
.contact-layout {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 880px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.contact-detail {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.contact-detail:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-detail strong {
  font-family: var(--font-display);
  color: var(--text);
  display: block;
  margin-bottom: var(--space-xs);
}

.contact-detail a {
  font-weight: 600;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--step-0);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-root);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px var(--steel-muted);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: var(--step--1);
  color: var(--text-faint);
  margin-top: var(--space-xs);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-lg);
}

.form-status {
  font-size: var(--step--1);
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.form-status.error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--danger);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--space-xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: var(--step--1);
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1.4fr repeat(2, 1fr);
}

.footer-logo-link {
  display: inline-block;
  padding: 0;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  background: transparent;
  text-decoration: none;
}

.footer-logo-link:hover .footer-logo-img {
  filter: brightness(1.1);
}

.footer-logo-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.footer-logo-img {
  display: block;
  height: clamp(52px, 15vw, 88px);
  width: auto;
  transition: filter var(--transition);
  background: transparent;
}

.footer-grid p,
.footer-grid a {
  color: var(--text-muted);
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-col h4 {
  font-size: var(--step--1);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-tagline {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  max-width: 42rem;
  color: var(--text-faint);
}

.copyright {
  margin-top: var(--space-md);
  font-size: var(--step--1);
  color: var(--text-faint);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
