/*
 * Design tokens and components converted from the eSoftArena homepage
 * design handoff (design_handoff_esoftarena_home/README.md), 2026-09-14.
 * Fidelity: high -- colors, spacing, radii, shadows, type scale below are
 * transcribed directly from that spec, not approximated.
 */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-var.woff2') format('woff2-variations'), url('../fonts/ibm-plex-sans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600.woff2') format('woff2');
}

/* Metric-matched fallback for IBM Plex Sans, so text doesn't re-wrap when
   the web font swaps in (on production this caused CLS 0.14 on the case
   study description). Values measured in Chrome against Arial, 2026-09-28:
   Plex is 0.87% wider at regular weight and 1.46% narrower at bold, with
   ascent 1.02em / descent 0.27em. Overrides are divided by size-adjust. */
@font-face {
  font-family: 'IBM Plex Sans Fallback';
  font-weight: 100 500;
  src: local('Arial'), local('ArialMT');
  size-adjust: 100.87%;
  ascent-override: 101.12%;
  descent-override: 26.77%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Sans Fallback';
  font-weight: 600 900;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 98.54%;
  ascent-override: 103.51%;
  descent-override: 27.40%;
  line-gap-override: 0%;
}

:root {
  /* Color */
  --c-brand: #0F6EB2;
  --c-brand-dark: #0C5F9C;
  --c-navy: #0A4A79;
  --c-navy-ink: #06344F;
  --c-cyan: #18A8E0;
  --c-cyan-hover: #4FC0EA;
  --c-cyan-light: #9FDCF7;
  --c-ink: #123044;
  --c-ink-muted: #5A6B7C;
  --c-nav-ink: #4A5F72;
  --c-chip-ink: #0B5C93;
  --c-tint: #F2F9FD;
  --c-tint-2: #F8FBFE;
  --c-pill-tint: #EAF5FC;
  --c-border: #E4EDF4;
  --c-border-strong: #D3E3EF;
  --c-divider: #DCE7F0;
  --c-divider-light: #EDF3F8;
  --c-track: #E7EFF6;
  --c-error: #B42318;
  --c-success-bg: #E8F6EE;
  --c-success-border: #B8E3C9;
  --c-success-ink: #14612F;
  --c-white: #FFFFFF;

  /* Type */
  --font-sans: 'IBM Plex Sans', 'IBM Plex Sans Fallback', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Spacing / layout */
  --container-max: 1240px;
  --container-pad: clamp(20px, 4vw, 48px);
  --band-pad: clamp(52px, 7vw, 92px);
  --band-pad-tight: clamp(48px, 6vw, 84px);

  /* Radius */
  --r-sm: 6px;
  --r-md: 9px;
  --r-lg: 14px;
  --r-xl: 16px;
  --r-xxl: 18px;
  --r-pill: 99px;

  /* Shadow */
  --shadow-soft: 0 12px 28px rgba(18,48,68,0.06);
  --shadow-card: 0 14px 32px rgba(18,48,68,0.07);
  --shadow-photo: 0 20px 44px rgba(18,48,68,0.12);
  --shadow-photo-lg: 0 24px 50px rgba(18,48,68,0.16);
  --shadow-inverted: 0 16px 34px rgba(15,110,178,0.28);
  --shadow-on-blue-sm: 0 18px 40px rgba(6,42,72,0.28);
  --shadow-on-blue-lg: 0 26px 60px rgba(6,42,72,0.36);
}

/* Reset */
html, body { margin: 0; padding: 0; }
body {
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote, ul, li { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; }
::selection { background: var(--c-cyan); color: var(--c-navy-ink); }

@keyframes esa-fill { from { transform: scaleX(0.04); } to { transform: scaleX(1); } }
@keyframes esa-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* Project detail (single-project.php -- not part of the original design
   handoff, built to match the established visual language) */
.project-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--c-ink-muted); }
.project-meta-row .divider { color: var(--c-border-strong); }
.project-hero-figure { margin: 0; border-radius: var(--r-xxl); overflow: hidden; box-shadow: var(--shadow-photo-lg); }
.project-hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }

/* Project screenshot card -- these are full-page portrait captures, not
   16:9 photography, so object-fit:contain keeps the whole screenshot
   legible instead of cropping most of it away. */
.project-image-card {
  margin: 0;
  border-radius: var(--r-xxl);
  overflow: hidden;
  background: var(--c-tint);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-photo-lg);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.project-image-card img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Click-to-enlarge lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 42, 72, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__image { max-width: 100%; max-height: 90vh; border-radius: var(--r-lg); box-shadow: var(--shadow-photo-lg); }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }
.project-narrative { display: flex; flex-direction: column; gap: 12px; }
.project-narrative__block {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding-block: 32px;
  border-top: 1px solid var(--c-border);
}
.project-narrative__block:first-child { border-top: 0; padding-top: 0; }
.project-narrative__block:last-child { padding-bottom: 0; }
.project-narrative__badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--c-pill-tint);
  color: var(--c-brand);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}
.project-narrative__block h2 { margin-bottom: 14px; }
.project-narrative__block p { font-size: 16px; line-height: 1.75; color: var(--c-ink-muted); max-width: 68ch; }

@media (max-width: 560px) {
  .project-narrative__block { grid-template-columns: 1fr; gap: 12px; }
}

/* Breadcrumb */
.breadcrumb-link { font-size: 13px; color: var(--c-ink-muted); }
.breadcrumb-link:hover { color: var(--c-brand); }
.breadcrumb-sep { font-size: 13px; color: var(--c-border-strong); margin: 0 6px; }
.breadcrumb-current { font-size: 13px; color: var(--c-ink); font-weight: 500; }

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}
.band { padding-block: var(--band-pad); }
.band--tight { padding-block: var(--band-pad-tight); }
.band--tint { background: var(--c-tint); }
.band--border-top { border-top: 1px solid var(--c-border); }
.band--border-bottom { border-bottom: 1px solid var(--c-border); }

.eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--c-pill-tint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-brand);
}
.eyebrow--outlined { background: var(--c-white); border: 1px solid var(--c-border-strong); }
.eyebrow--on-blue { background: rgba(6,52,88,0.62); border: 1px solid rgba(255,255,255,0.4); color: var(--c-white); }

h1, h2, h3 { text-wrap: pretty; }
.h1 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; }
.h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.h3-section { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -0.015em; }
.lead { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; }
.body-copy { font-size: 15px; line-height: 1.65; color: var(--c-ink-muted); text-wrap: pretty; }
.tagline-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
.label-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding-inline: 20px;
  border-radius: var(--r-pill);
  border: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn--lg { height: 46px; padding-inline: 24px; }
.btn--primary { background: var(--c-brand); color: var(--c-white); }
.btn--primary:hover { background: var(--c-brand-dark); }
.btn--secondary { background: var(--c-cyan); color: var(--c-navy-ink); }
.btn--secondary:hover { background: var(--c-cyan-hover); }
.btn--outline { background: var(--c-white); color: var(--c-ink); border: 1px solid var(--c-white); }
.btn--outline:hover { background: var(--c-pill-tint); }

/* Header */
.site-header { background: var(--c-white); border-bottom: 1px solid var(--c-border); position: relative; }
.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding-block: 12px;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { display: block; width: 152px; height: 42px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font-size: 14px; font-weight: 500; color: var(--c-nav-ink); }
.site-nav a:hover { color: var(--c-brand); }
.site-header__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.phone-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border-strong);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-brand);
}
.phone-pill:hover { border-color: var(--c-brand); color: var(--c-brand); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-strong);
  background: var(--c-white);
  cursor: pointer;
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    order: 3;
    padding-block: 8px 4px;
    border-top: 1px solid var(--c-border);
    margin-top: 12px;
  }
  .site-nav a { padding: 8px 4px; width: 100%; }
  .site-header--nav-open .site-nav { display: flex; }
}

/* Hero + contact scrim bands */
.scrim-band {
  position: relative;
  background-color: var(--c-brand);
  background-size: cover;
  background-position: center;
  color: var(--c-white);
}
.scrim-band--hero { background-image: linear-gradient(rgba(13,98,160,0.93),rgba(10,74,124,0.95)), url('../img/code-blue.webp'); }
.scrim-band--contact { background-color: var(--c-brand-dark); background-image: linear-gradient(rgba(12,95,156,0.94),rgba(9,72,120,0.96)), url('../img/desk-dark.webp'); }

.hero-grid, .contact-grid, .services-grid, .about-grid, .capability-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-grid, .contact-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); padding-block: var(--band-pad-tight); }
.contact-grid { align-items: start; gap: clamp(28px, 4vw, 52px); }
.hero-grid { gap: clamp(32px, 5vw, 56px); }

.hero-copy { display: flex; flex-direction: column; gap: 22px; animation: esa-rise 0.6s ease-out both; }
.hero-copy .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media { position: relative; display: flex; flex-direction: column; gap: 14px; }
.hero-media__shot { border-radius: var(--r-xl); overflow: hidden; background: var(--c-white); box-shadow: var(--shadow-on-blue-lg); margin: 0; }
.hero-media__shot img { display: block; width: 100%; height: auto; aspect-ratio: 1200/720; object-fit: cover; }

.lighthouse-card {
  align-self: flex-start;
  min-width: min(100%, 300px);
  border-radius: var(--r-lg);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-on-blue-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.lighthouse-card__caption { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-muted); }
.lighthouse-card__caption strong { color: var(--c-brand); font-weight: 500; }
.lighthouse-track { height: 8px; border-radius: var(--r-pill); background: var(--c-track); overflow: hidden; }
.lighthouse-fill { height: 100%; width: 98%; background: var(--c-cyan); border-radius: var(--r-pill); transform-origin: left; animation: esa-fill 1.3s cubic-bezier(.2,.8,.2,1) .3s both; }
.lighthouse-metrics { display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: var(--font-mono); font-size: 13px; color: var(--c-ink); }
.lighthouse-metrics strong { color: var(--c-brand); }

/* Stats strip */
.stats-strip { display: flex; flex-wrap: wrap; }
.stats-strip__cell { flex: 1 1 150px; padding: 26px 20px; border-left: 1px solid var(--c-divider); display: flex; flex-direction: column; gap: 4px; }
.stats-strip__cell:first-child { border-left: 0; padding-left: 0; }
.stats-strip__value { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; letter-spacing: -0.015em; color: var(--c-brand); }
.stats-strip__label { font-size: 13px; color: var(--c-ink-muted); }

/* Services */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
/* Full-width pages (the /services/ archive): the homepage's 150px minimum
   is sized for a half-width column and would squeeze six cards into one
   row here. */
.service-cards--wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-cards--wide .service-card { padding: 26px; gap: 10px; }
.service-cards--wide .service-card__title { font-size: 18px; }
.service-cards--wide .service-card__body { font-size: 14px; }
.service-card__more { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--c-brand); }
.service-card--featured .service-card__more { color: var(--c-white); }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-soft);
}
.service-card:hover { border-color: var(--c-brand); }
.service-card--featured { background: var(--c-brand); border-color: var(--c-brand); box-shadow: var(--shadow-inverted); color: var(--c-white); }
.service-card--featured:hover { background: var(--c-brand-dark); }
.service-card--featured .service-card__body { color: var(--c-white); }
.service-card__badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: var(--c-pill-tint);
  color: var(--c-brand);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.service-card--featured .service-card__badge { background: var(--c-navy); color: var(--c-white); }
.service-card__title { font-size: 15px; font-weight: 600; }
.service-card__body { font-size: 13px; line-height: 1.55; color: var(--c-ink-muted); }
.services-copy { display: flex; flex-direction: column; gap: 18px; }
.services-copy .btn { align-self: flex-start; }

/* About */
.about-checklist { display: flex; flex-direction: column; gap: 10px; }
.about-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--c-ink); }
.about-checklist .check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-cyan);
  color: var(--c-navy-ink);
  font-size: 12px;
  font-weight: 700;
}
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-figure { position: relative; padding: 14px; margin: 0; }
.about-figure__decor { position: absolute; right: -30px; top: -30px; width: 200px; height: 200px; border-radius: 50%; background: rgba(24,168,224,0.16); pointer-events: none; }
.about-figure img { position: relative; display: block; width: 100%; height: auto; border-radius: var(--r-xxl); box-shadow: var(--shadow-photo-lg); aspect-ratio: 4/3; object-fit: cover; }

/* Capability */
.capability-header { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.capability-header .body-copy { max-width: 60ch; }
.capability-rows { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }
.capability-row { gap: clamp(24px, 4vw, 52px); }
.capability-row figure { margin: 0; border-radius: var(--r-xxl); overflow: hidden; border: 1px solid var(--c-border); box-shadow: var(--shadow-photo); }
.capability-row img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.capability-row--reverse .capability-list { order: 1; }
.capability-row--reverse figure { order: 2; }
.capability-list { display: flex; flex-direction: column; gap: 14px; }
.capability-list ul { display: flex; flex-direction: column; gap: 12px; }
.capability-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--c-ink); }
.capability-list .check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: var(--r-sm);
  background: var(--c-pill-tint);
  color: var(--c-brand);
  font-size: 12px;
  font-weight: 700;
}

/* Work */
.work-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.work-header-left { display: flex; flex-direction: column; gap: 12px; }
.work-link { font-size: 14px; font-weight: 600; color: var(--c-brand); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-white);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.work-card:hover { border-color: var(--c-brand); }
.work-card__media {
  position: relative;
  height: 180px;
  background-color: var(--c-brand);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 28px);
}
.work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.work-card__monogram {
  position: absolute;
  left: 16px;
  bottom: 14px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  padding-inline: 12px;
  border-radius: var(--r-md);
  background: rgba(10,60,100,0.82);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-white);
}
.work-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.work-card__title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.work-card__subtitle { font-size: 13px; color: var(--c-ink-muted); }
.work-card__metric {
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-pill-tint);
  color: var(--c-chip-ink);
  font-family: var(--font-mono);
  font-size: 12px;
}
.work-metric-note { font-size: 12px; color: var(--c-ink-muted); font-family: var(--font-mono); }

/* Tech chips */
.tech-chips-wrap { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.tech-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.tech-chip { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-tint-2); font-size: 13px; font-weight: 500; color: var(--c-ink); }

/* Clients / testimonials */
.clients-header { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}
.testimonial-card__badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-md); background: var(--c-pill-tint); color: var(--c-brand); font-size: 22px; font-weight: 700; line-height: 1; }
.testimonial-card__quote { font-size: 15px; line-height: 1.65; color: var(--c-ink); text-wrap: pretty; }
.testimonial-card__footer { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--c-divider-light); display: flex; flex-direction: column; gap: 2px; }
.testimonial-card__name { font-size: 14px; font-weight: 600; }
.testimonial-card__role { font-size: 13px; color: var(--c-ink-muted); }

/* Contact */
.contact-copy { display: flex; flex-direction: column; gap: 18px; }
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.3);
}
.contact-details__cell { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.contact-details__cell .label-mono { color: var(--c-white); }
.contact-details__cell span:last-child { font-size: 14px; line-height: 1.6; color: var(--c-white); }
.contact-details__cell .mono-value { font-family: var(--font-mono); }

.form-card {
  border-radius: var(--r-xxl);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-on-blue-lg);
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-card__header h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: var(--c-ink); }
.form-card__header p { font-size: 13px; line-height: 1.55; color: var(--c-ink-muted); margin-top: 6px; }
.required-mark { color: var(--c-error); }

.wpcf7-form, .contact-form-fallback { display: flex; flex-direction: column; gap: 14px; }
.form-row-2up { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.wpcf7-form label, .contact-form-fallback label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c-ink); }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.contact-form-fallback input,
.contact-form-fallback select {
  width: 100%;
  height: 44px;
  padding-inline: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-strong);
  background: var(--c-white);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--c-ink);
}
.wpcf7-form textarea, .contact-form-fallback textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-strong);
  background: var(--c-white);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-ink);
  resize: vertical;
}
.wpcf7-not-valid-tip { color: var(--c-error); font-size: 12px; margin-top: 4px; }
.wpcf7-form-control.wpcf7-not-valid { border-color: var(--c-error); }

/* Real Turnstile widget (normal size is 300x65) -- min-height reserves
   the space so the form doesn't jump when the widget loads (CLS). */
.form-captcha { min-height: 65px; }

/* The parts of CF7's stylesheet we still need, since it's dequeued
   (inc/performance.php). The live region must be visually hidden, not
   display:none, or screen readers lose it -- and if it isn't hidden at
   all, the success message paints twice (playbook §6). */
.wpcf7 .screen-reader-response {
  position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; word-wrap: normal !important;
}
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output,
.wpcf7-response-output:empty { display: none; }
.wpcf7-form-control-wrap { position: relative; }
.wpcf7-not-valid-tip { display: block; }
.wpcf7 [inert] { opacity: 0.5; }
.wpcf7 .wpcf7-submit:disabled { cursor: not-allowed; }
.wpcf7 input[type="email"], .wpcf7 input[type="tel"] { direction: ltr; }
.wpcf7-spinner {
  visibility: hidden; display: inline-block; width: 20px; height: 20px; margin: 0 4px;
  border: 2px solid var(--c-border-strong); border-top-color: var(--c-brand); border-radius: 50%;
  animation: esa-spin 0.8s linear infinite;
}
form.submitting .wpcf7-spinner { visibility: visible; }
@keyframes esa-spin { to { transform: rotate(360deg); } }

.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-strong);
  background: var(--c-tint-2);
}
.captcha-row__check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  border: 2px solid var(--c-brand);
  background: var(--c-white);
  color: var(--c-brand);
  font-size: 14px;
  font-weight: 700;
}
.captcha-row__text { flex: 1 1 auto; font-size: 13px; line-height: 1.45; color: var(--c-ink); }
.captcha-row__text small { display: block; font-size: 11px; color: var(--c-ink-muted); }
.captcha-row__privacy { flex: 0 0 auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-ink-muted); }

.wpcf7-response-output {
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: var(--r-md) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
form.sent .wpcf7-response-output,
form.wpcf7-mail-sent-ok .wpcf7-response-output {
  background: var(--c-success-bg) !important;
  border: 1px solid var(--c-success-border) !important;
  color: var(--c-success-ink) !important;
}
form.invalid .wpcf7-response-output,
form.wpcf7-validation-errors .wpcf7-response-output,
form.wpcf7-mail-failed .wpcf7-response-output {
  background: #FDECEA !important;
  border: 1px solid #F4C7C1 !important;
  color: var(--c-error) !important;
}

.form-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form-submit-row .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding-inline: 24px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-brand);
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.form-submit-row .wpcf7-submit:hover { background: var(--c-brand-dark); }
.form-submit-row .form-submit-alt { font-size: 12px; color: var(--c-ink-muted); }
.form-submit-row .form-submit-alt a { color: var(--c-brand); font-weight: 600; }

/* Footer */
.site-footer { background: var(--c-navy); color: var(--c-white); }
.site-footer a { color: var(--c-white); }
.site-footer a:hover { color: var(--c-cyan-light); }
.site-footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(40px, 5vw, 64px) 0 28px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__logo-plate { align-self: flex-start; display: inline-flex; padding: 6px 10px; border-radius: var(--r-sm); background: var(--c-white); }
.site-footer__logo-plate img { display: block; width: 152px; height: 42px; }
.site-footer__brand p { font-size: 14px; line-height: 1.6; max-width: 34ch; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { font-size: 14px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.25); }
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 28px;
}
.site-footer__bottom-inner span { font-size: 13px; }
