/* ============================================
   wilma. - recyclingsoftware.co.uk
   Shared stylesheet
   ============================================ */

:root {
  --navy-900: #070d18;
  --navy-800: #0a1322;
  --navy-700: #0e1a2e;
  --navy-600: #14233c;
  --card: #101d31;
  --card-border: rgba(45, 212, 191, 0.14);
  --teal: #2dd4bf;
  --teal-bright: #4aeed6;
  --mint: #6ee7c8;
  --text: #eef4f8;
  --text-dim: #9fb3c4;
  --text-faint: #64798c;
  --radius: 14px;
  --maxw: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Wordmark / logo ---------- */
.wordmark {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.wordmark img {
  display: block;
  height: 0.82em; /* sized relative to the font-size set per context */
  width: auto;
}

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-inner .wordmark { font-size: 28px; }
nav.links { display: flex; gap: 32px; align-items: center; }
nav.links a {
  color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s;
}
nav.links a:hover, nav.links a.active { color: #fff; }
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--teal); color: var(--navy-900);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.25);
}
.btn-primary:hover { background: var(--teal-bright); box-shadow: 0 0 36px rgba(45, 212, 191, 0.45); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-lg { padding: 16px 36px; font-size: 17px; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  background:
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(45,212,191,0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(45,212,191,0.06), transparent 60%),
    var(--navy-900);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(45,212,191,0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 40% 45% at 88% 12%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 40% 45% at 88% 12%, black, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 22px 0 20px;
}
.hero h1 .accent { color: var(--teal); }
.hero p.lede { font-size: 19px; color: var(--text-dim); max-width: 540px; margin-bottom: 34px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--teal); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-sub { margin-top: 26px; font-size: 14px; color: var(--text-faint); }

/* ---------- Dashboard mock ---------- */
.dash {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(45,212,191,0.07);
}
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash-head .wordmark { font-size: 18px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 14px;
}
.stat .label { font-size: 11px; color: var(--text-faint); }
.stat .value { font-size: 24px; font-weight: 800; margin: 2px 0; }
.stat .delta { font-size: 11px; color: var(--teal); font-weight: 600; }
.dash-chart {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 14px;
}
.dash-chart .label { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }

/* ---------- Sections ---------- */
section { padding: 90px 0; position: relative; }
section.alt { background: var(--navy-800); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  margin: 16px 0 16px;
}
h2 .accent { color: var(--teal); }
.section-head p { color: var(--text-dim); font-size: 17px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(45,212,191,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 30px rgba(45,212,191,0.08);
}
.card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(45,212,191,0.1);
  border: 1px solid rgba(45,212,191,0.25);
  border-radius: 12px;
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }
.card ul { margin: 12px 0 0 0; padding: 0; list-style: none; }
.card ul li {
  color: var(--text-dim); font-size: 14.5px; padding: 6px 0 6px 24px; position: relative;
}
.card ul li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
a.card { text-decoration: none; color: inherit; display: block; }
.card .link-arrow { color: var(--teal); font-weight: 600; font-size: 14.5px; margin-top: 16px; display: inline-block; }

/* ---------- Pill / badges ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 8px 18px;
  background: rgba(45,212,191,0.07);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 100px;
  font-size: 14px; color: var(--mint); font-weight: 500;
}

/* ---------- Journey / flow ---------- */
.flow { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; counter-reset: step; }
.flow-4 { grid-template-columns: repeat(4, 1fr); }
.flow-step { text-align: center; position: relative; padding: 0 8px; }
.flow-step:not(:last-child)::after {
  content: ''; position: absolute; top: 26px; left: calc(50% + 30px); right: calc(-50% + 30px);
  border-top: 2px dashed rgba(45,212,191,0.3);
}
.flow-step .bubble {
  width: 54px; height: 54px; margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--navy-700);
  border: 1px solid rgba(45,212,191,0.4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(45,212,191,0.12);
}
.flow-step .bubble svg { width: 24px; height: 24px; stroke: var(--teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-step .t { font-size: 13.5px; font-weight: 600; color: var(--text); }
.flow-step .d { font-size: 12px; color: var(--text-faint); }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stats-band .big { font-size: clamp(34px, 4vw, 48px); font-weight: 800; color: var(--teal); letter-spacing: -0.02em; }
.stats-band .cap { color: var(--text-dim); font-size: 15px; margin-top: 4px; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 90px; }
.split h3 { font-size: 26px; font-weight: 800; margin: 14px 0 14px; letter-spacing: -0.01em; }
.split p { color: var(--text-dim); font-size: 16px; }
.split .visual {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.mock-row {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 13px 16px;
  font-size: 14px;
}
.mock-row .tag {
  margin-left: auto; font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(45,212,191,0.14); color: var(--teal);
  white-space: nowrap;
}
.mock-row .dot-ind { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; box-shadow: 0 0 8px var(--teal); }
.mock-row .muted { color: var(--text-faint); }

/* ---------- Brands ---------- */
.brand-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .25s, border-color .25s;
}
.brand-card:hover { transform: translateY(-4px); border-color: rgba(45,212,191,0.4); }
.brand-card .brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.brand-card .brand-name .accent { color: var(--teal); }
.brand-card .brand-url { font-size: 13px; color: var(--teal); font-weight: 600; margin-bottom: 14px; display: block; text-decoration: none; }
.brand-card p { color: var(--text-dim); font-size: 15px; }

/* ---------- Brand logos ---------- */
.brand-logo {
  background: #fff;
  border-radius: 10px;
  height: 62px;
  padding: 12px 18px;
  display: flex; align-items: center;
  margin-bottom: 18px;
}
.brand-logo img { max-height: 34px; max-width: 100%; object-fit: contain; }
.brand-logo .brand-logo-svg { height: 34px; width: auto; max-width: 100%; }

/* ---------- Stock cards ---------- */
.stock-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .25s, border-color .25s;
}
.stock-card:hover { transform: translateY(-4px); border-color: rgba(45,212,191,0.4); }
.stock-card .stock-img {
  background: #fff;
  border-radius: 10px;
  height: 150px;
  margin: -4px 0 6px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.stock-card .stock-img img { width: 100%; height: 100%; object-fit: cover; }
.stock-card .stock-tags { display: flex; gap: 8px; }
.stock-card .stock-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(45,212,191,0.14); color: var(--teal);
}
.stock-card .stock-tag.grade-a { background: rgba(45,212,191,0.2); }
.stock-card .stock-tag.cat { background: rgba(255,255,255,0.07); color: var(--text-dim); }
.stock-card .stock-vehicle { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.stock-card .stock-name { font-size: 15.5px; font-weight: 700; color: var(--text); }
.stock-card .stock-price { font-size: 20px; font-weight: 800; color: var(--teal); }
.stock-card .stock-seller { font-size: 12.5px; color: var(--text-faint); margin-top: auto; }

/* ---------- Partner yards ---------- */
.yards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.yard-chip {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 26px 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16.5px; letter-spacing: 0.01em;
  color: var(--text-dim); text-align: center;
  transition: color .25s, border-color .25s, transform .25s;
}
.yard-chip:hover { color: #fff; border-color: rgba(45,212,191,0.45); transform: translateY(-3px); }

/* ---------- Ecosystem flow ---------- */
.eco-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 34px;
}
.eco-col { display: flex; flex-direction: column; gap: 10px; }
.eco-col .eco-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 4px;
}
.eco-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px; font-weight: 600; color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
}
.eco-chip::after { content: '→'; margin-left: auto; color: var(--teal); font-weight: 700; }
.eco-col.out .eco-chip::after { content: none; }
.eco-col.out .eco-chip::before { content: '→'; color: var(--teal); font-weight: 700; }
.eco-hub {
  text-align: center;
  padding: 26px 30px;
  background: rgba(45,212,191,0.07);
  border: 1px solid rgba(45,212,191,0.35);
  border-radius: 16px;
  box-shadow: 0 0 44px rgba(45,212,191,0.15);
}
.eco-hub .wordmark { font-size: 30px; }
.eco-hub .sub { font-size: 12px; color: var(--text-dim); margin-top: 6px; max-width: 150px; }
@media (max-width: 980px) {
  .eco-flow { grid-template-columns: 1fr; }
  .eco-hub { order: -1; }
  .eco-chip::after, .eco-col.out .eco-chip::before { content: none !important; }
}

/* ---------- Dash extras ---------- */
.dash-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.dash-tab {
  font-size: 11px; font-weight: 600; color: var(--text-faint);
  padding: 5px 11px; border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.dash-tab.active { color: var(--navy-900); background: var(--teal); border-color: var(--teal); }
.dash-feed { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.dash-feed .feed-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px; color: var(--text-dim);
}
.dash-feed .feed-row strong { color: var(--text); font-weight: 600; }
.dash-feed .feed-row .tag {
  margin-left: auto; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 100px;
  background: rgba(45,212,191,0.14); color: var(--teal); white-space: nowrap;
}
.dash-feed .feed-row .tag.warn { background: rgba(249,115,22,0.16); color: #fb923c; }
.dash-feed .feed-row .dot-ind { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; box-shadow: 0 0 6px var(--teal); }

/* ---------- Photo band ---------- */
.photo-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-band figure { margin: 0; position: relative; }
.photo-band img {
  width: 100%; height: 230px; object-fit: cover; display: block;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.09);
}
.photo-band figcaption {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(7,13,24,0.75); backdrop-filter: blur(6px);
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid rgba(45,212,191,0.3);
}
@media (max-width: 980px) { .yards-grid { grid-template-columns: repeat(2, 1fr); } .photo-band { grid-template-columns: 1fr; } }

/* ---------- Quote ---------- */
.quote-band {
  border-left: 3px solid var(--teal);
  padding: 8px 0 8px 34px;
  max-width: 860px;
}
.quote-band .q { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.quote-band .a { margin-top: 14px; color: var(--text-faint); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(45,212,191,0.12), transparent 70%),
    var(--navy-800);
  border-top: 1px solid rgba(45,212,191,0.15);
  text-align: center;
  padding: 100px 0;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); font-size: 18px; max-width: 560px; margin: 0 auto 36px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.field input, .field select, .field textarea {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--text);
  /* 16px minimum stops iOS Safari auto-zooming on focus */
  font-size: 16px;
  font-family: var(--font);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.12);
}
.field textarea { resize: vertical; min-height: 110px; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid .wordmark { font-size: 26px; margin-bottom: 14px; }
.footer-grid p { color: var(--text-faint); font-size: 14px; max-width: 280px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { color: var(--text-dim); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.footer-grid ul a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-faint); font-size: 13.5px;
}
.footer-bottom a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--teal); }

/* ---------- Case studies ---------- */
.cs-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cs-fact {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px 22px;
}
.cs-fact .k {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 6px;
}
.cs-fact .v { font-size: 15.5px; font-weight: 600; color: var(--text); line-height: 1.45; }
.prose { max-width: 780px; }
.prose p { color: var(--text-dim); font-size: 16.5px; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--teal); text-decoration: none; font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.check-list { list-style: none; margin: 6px 0 0; padding: 0; }
.check-list li {
  color: var(--text-dim); font-size: 16px; padding: 8px 0 8px 28px; position: relative;
}
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.cs-card .cs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cs-card .cs-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(45,212,191,0.12); color: var(--teal);
}
.cs-card h3 { font-size: 22px; }
.cs-card .cs-stats { display: flex; gap: 28px; margin-top: 20px; flex-wrap: wrap; }
.cs-card .cs-stat .n { font-size: 24px; font-weight: 800; color: var(--teal); letter-spacing: -0.01em; }
.cs-card .cs-stat .l { font-size: 12.5px; color: var(--text-faint); }

/* ---------- Case study photos ---------- */
.cs-photo { margin: 0; position: relative; }
.cs-photo > img {
  width: 100%; height: auto; display: block;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.cs-photo .logo-badge {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 9px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.cs-photo .logo-badge img { display: block; height: 24px; width: auto; }
.photo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-duo img {
  width: 100%; height: 420px; object-fit: cover; display: block;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.09);
}

@media (max-width: 980px) { .cs-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cs-facts { grid-template-columns: 1fr; } .photo-duo img { height: 280px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(ellipse 60% 70% at 80% 0%, rgba(45,212,191,0.1), transparent 60%),
    var(--navy-900);
}
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 20px 0 18px; }
.page-hero h1 .accent { color: var(--teal); }
.page-hero p.lede { font-size: 18px; color: var(--text-dim); max-width: 640px; }
.page-hero .split { grid-template-columns: 1.15fr 1fr; gap: 56px; }
.page-hero .split h1 { font-size: clamp(30px, 3.6vw, 42px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  /* The full desktop nav needs ~980px to fit, so the hamburger takes over here */
  nav.links {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy-800);
    flex-direction: column; padding: 24px; gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  nav.links.open { display: flex; }
  .hamburger { display: block; }
  /* Group the CTA with the hamburger on the right instead of floating mid-header */
  .nav-cta { margin-left: auto; margin-right: 14px; }
  .hero-grid, .split, .page-hero .split { grid-template-columns: 1fr; gap: 44px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(4, 1fr); row-gap: 34px; }
  .flow-step:nth-child(4)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .split.reverse .visual { order: -1; }
}
@media (max-width: 640px) {
  .nav-cta { padding: 10px 18px; font-size: 14px; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(even)::after { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  section { padding: 64px 0; }
  .hero { padding: 70px 0 60px; }
}
