/* ==========================================================================
   Workflow Solutions — global stylesheet
   Navy & gold, serif headings, square edges, ruled grids.
   ========================================================================== */

:root {
  --brand: #12284a;
  --brand-600: #1f3d6b;
  --brand-2: #2c5a96;
  --brand-50: #eaeef5;
  --on-brand: #ffffff;
  --accent: #0f8577;            /* teal for lines and icons */
  --accent-ink: #0b6b61;        /* teal that is readable as text on light backgrounds */
  --accent-50: #e2f3f0;
  --accent-solid: #0d7a6f;      /* backgrounds that carry white text */
  --on-accent: #ffffff;
  --accent-on-ink: #4fd1c0;     /* teal for text and lines on the dark navy panels */
  --ink: #0b1a33;               /* always-dark navy for hero, footer and panels */
  --on-ink: #ffffff;
  --on-ink-2: rgba(255, 255, 255, .72);
  --ink-line: rgba(255, 255, 255, .12);

  --bg: #fafbfc;
  --bg-soft: #f1f4f7;
  --surface: #ffffff;
  --surface-2: #edf1f5;
  --text: #0f1a2e;
  --text-2: #4b5568;
  --text-3: #7d8597;
  --border: #e1e6ec;

  --shadow-sm: 0 1px 2px rgba(15, 26, 46, .06);
  --shadow: 0 18px 40px -24px rgba(15, 26, 46, .35);
  --shadow-lg: 0 30px 60px -30px rgba(15, 26, 46, .45);

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1240px;
  --header-h: 78px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #b9cdee;
    --brand-600: #d6e2f6;
    --brand-2: #6d93cf;
    --brand-50: #17253d;
    --on-brand: #0a1426;
    --accent: #3cc7b6;
    --accent-ink: #5fd6c6;
    --accent-50: #0f2a2a;
    --accent-solid: #0f8577;
    --ink: #060d1a;
    --bg: #0a1120;
    --bg-soft: #0e1729;
    --surface: #121d31;
    --surface-2: #18253c;
    --text: #ecf0f6;
    --text-2: #aab4c5;
    --text-3: #7b8699;
    --border: #243249;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #b9cdee;
  --brand-600: #d6e2f6;
  --brand-2: #6d93cf;
  --brand-50: #17253d;
  --on-brand: #0a1426;
  --accent: #3cc7b6;
  --accent-ink: #5fd6c6;
  --accent-50: #0f2a2a;
  --accent-solid: #0f8577;
  --ink: #060d1a;
  --bg: #0a1120;
  --bg-soft: #0e1729;
  --surface: #121d31;
  --surface-2: #18253c;
  --text: #ecf0f6;
  --text-2: #aab4c5;
  --text-3: #7b8699;
  --border: #243249;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.012em; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.08; letter-spacing: -.018em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1rem; color: var(--text-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-solid); color: var(--on-accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 8px; color: #fff; }

.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }

/* Section heading: title block left, intro right, ruled underneath */
.section-head {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px 64px; align-items: end;
  margin: 0 0 clamp(40px, 5vw, 64px); padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--border);
}
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head p { margin: 0; font-size: 1.075rem; }
.section-head--solo { grid-template-columns: 1fr; }
.section-head--solo h2 { max-width: 22ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--accent); flex: none; }

/* Highlighted heading words */
.text-gradient { color: var(--accent-ink); }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--brand); --_fg: var(--on-brand); --_bd: var(--_bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--radius-sm); border: 1.5px solid var(--_bd);
  background: var(--_bg); color: var(--_fg);
  font: 600 .95rem/1 var(--font-sans); letter-spacing: .01em; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { color: var(--_fg); background: color-mix(in srgb, var(--_bg) 86%, #000); border-color: color-mix(in srgb, var(--_bd) 86%, #000); }
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--accent { --_bg: var(--accent-solid); --_fg: var(--on-accent); }
.btn--ghost { --_bg: transparent; --_fg: var(--text); --_bd: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--light { --_bg: #fff; --_fg: #0b1a33; }
.btn--outline-light { --_bg: transparent; --_fg: #fff; --_bd: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: #fff; color: #0b1a33; border-color: #fff; }
.btn--block { width: 100%; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--text); border-bottom: 1.5px solid var(--accent); padding-bottom: 3px; }
.link:hover { color: var(--accent-ink); }
.link svg { width: 16px; height: 16px; transition: transform .2s; }
.link:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: var(--on-ink-2); font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--on-ink-2); }
.topbar__links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.topbar a { color: var(--on-ink-2); display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; color: var(--accent-on-ink); }
@media (max-width: 700px) { .topbar__note { display: none; } .topbar__inner { justify-content: center; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(11, 26, 51, .35); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.015em; }
.brand__text small { font-family: var(--font-sans); font-size: .62rem; font-weight: 700; letter-spacing: .32em; color: var(--accent-ink); text-transform: uppercase; margin-top: 5px; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; display: block; padding: 10px 16px;
  color: var(--text-2); font-weight: 600; font-size: .95rem; transition: color .2s;
}
.nav__links a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__actions .btn { padding: 13px 20px; font-size: .9rem; }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent;
  color: var(--text); cursor: pointer; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

.menu-toggle { display: none; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .3s, background .3s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .nav__actions .btn { display: none; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: var(--surface); border-bottom: 3px solid var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  .nav__links li + li { border-top: 1px solid var(--border); }
  .nav__links a { padding: 16px 4px; font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--accent-ink); }
  .nav__links .nav__cta { border-top: 0; margin-top: 12px; }
  .nav__links .nav__cta a { background: var(--accent-solid); color: var(--on-accent); text-align: center; border-radius: var(--radius-sm); }
  .menu-open .nav__links { transform: none; opacity: 1; visibility: visible; }
}
@media (min-width: 901px) { .nav__cta { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 60% 70% at 85% 10%, #1f3d6b 0%, transparent 60%), var(--ink);
  color: var(--on-ink); padding: clamp(56px, 7vw, 96px) 0 0;
}
.hero h1 { color: #fff; }
.hero .text-gradient, .page-hero .text-gradient { color: var(--accent-on-ink); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--accent-on-ink); }
.hero .eyebrow::before, .page-hero .eyebrow::before { background: var(--accent-on-ink); }
.hero__flow { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; z-index: -1; pointer-events: none; }
.hero__flow path { fill: none; stroke: var(--accent-on-ink); stroke-width: 1.2; opacity: .28; vector-effect: non-scaling-stroke; }
.hero__flow path:nth-child(2) { opacity: .18; }
.hero__flow path:nth-child(3) { opacity: .1; }

.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 560px; margin-bottom: 36px; color: var(--on-ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 0; }
.hero__checks li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: rgba(255,255,255,.85); font-size: .95rem; }
.hero__checks svg { width: 18px; height: 18px; color: var(--accent-on-ink); flex: none; }

.hero__visual { position: relative; padding: 0 22px 22px 0; }
.hero__frame { position: relative; }
.hero__frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--accent-on-ink); border-radius: 16px; opacity: .7; }
.hero__frame img { position: relative; border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; filter: saturate(.9); }

.hero__strip {
  list-style: none; margin: clamp(56px, 7vw, 88px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-line);
}
.hero__strip li { display: flex; align-items: center; gap: 16px; padding: 28px 24px 32px 0; color: var(--on-ink-2); font-size: .92rem; }
.hero__strip li + li { padding-left: 28px; border-left: 1px solid var(--ink-line); }
.hero__strip strong { display: block; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 2px; }
.hero__strip a { color: var(--on-ink-2); display: inline-flex; align-items: center; gap: 6px; }
.hero__strip a:hover { color: var(--accent-on-ink); }
.hero__strip a svg { width: 14px; height: 14px; }
.hero__strip-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 1px solid rgba(79, 209, 192, .45); border-radius: 10px; color: var(--accent-on-ink); }
.hero__strip-icon svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 100%; }
  .hero__frame img { aspect-ratio: 4 / 3; object-position: center 30%; }
  .hero__strip { grid-template-columns: 1fr; }
  .hero__strip li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink-line); }
  .hero__strip li { padding: 20px 0; }
}

/* ---------- Marquee (gold band) ---------- */
.marquee { background: var(--accent-solid); color: var(--on-accent); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: scroll 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 12px; font-weight: 700; white-space: nowrap; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.marquee__item::after { content: ""; width: 7px; height: 7px; background: currentColor; opacity: .6; border-radius: 2px; transform: rotate(45deg); margin: 0 40px; }
.marquee__item svg { width: 18px; height: 18px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Grids & generic cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.card p:last-child { margin-bottom: 0; }

.icon-badge { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 10px; border: 1px solid var(--border); color: var(--brand); background: var(--surface); }
.icon-badge svg { width: 24px; height: 24px; stroke-width: 1.6; }
.icon-badge--accent { color: var(--accent-ink); background: var(--accent-50); border-color: transparent; }

/* ---------- Service cards (ruled grid) ---------- */
.svc-grid { display: grid; gap: 22px; }
.svc-grid--4 { grid-template-columns: repeat(4, 1fr); }
.svc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.svc-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .svc-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .svc-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid--4, .svc-grid--3, .svc-grid--2 { grid-template-columns: 1fr; } }

.svc-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s ease, transform .3s ease; }
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.svc-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; z-index: 2; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card__media { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface-2); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover .svc-card__media img { transform: scale(1.05); }
.svc-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.svc-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.svc-card__num { font-family: var(--font-display); font-weight: 800; font-size: .95rem; letter-spacing: .04em; color: var(--accent-ink); }
.svc-card__icon { color: var(--text-3); }
.svc-card__icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.svc-card h3 { font-size: 1.3rem; margin-bottom: .45em; }
.svc-card h3 a { color: var(--text); }
.svc-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-card p { font-size: .95rem; }
.svc-card__more { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.svc-card__arrow { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: background .25s, border-color .25s, color .25s; }
.svc-card__arrow svg { width: 17px; height: 17px; }
.svc-card:hover .svc-card__arrow { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--on-accent); }

/* Blog post cards reuse these */
.service-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.service-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-card__img img { transform: scale(1.05); }
.service-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.service-card .link { margin-top: auto; align-self: flex-start; }

/* ---------- Features (ruled cells) ---------- */
.grid.features { gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.features .card { border: 0; border-radius: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: transparent; padding: clamp(28px, 3vw, 40px); transition: background .3s ease; }
.features .card:hover { background: var(--surface); }
.features .card h3 { font-size: 1.25rem; }

/* Numbered process: timeline with serif numerals */
.grid.process { gap: 32px; border: 0; border-radius: 0; overflow: visible; counter-reset: step; }
.process .card { border: 0; border-top: 2px solid var(--border); padding: 28px 0 0; background: transparent; }
.process .card:hover { background: transparent; }
.process .card::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: -.02em; line-height: 1; color: var(--accent-ink); margin-bottom: 18px;
}
.process .card::after { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--accent); }
.process .icon-badge { display: none; }

/* ---------- Split / image stack ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.img-stack { position: relative; padding: 0 26px 26px 0; }
.img-stack::before { content: ""; position: absolute; top: 26px; left: 26px; right: 0; bottom: 0; border: 2px solid var(--accent); border-radius: 16px; opacity: .55; }
.img-stack__main { position: relative; z-index: 1; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3.4; background: var(--surface-2); }
.img-stack__main img, .img-stack__sub img { width: 100%; height: 100%; object-fit: cover; }
.img-stack__sub { position: absolute; z-index: 2; left: -18px; bottom: -10px; width: 38%; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); border: 6px solid var(--bg); background: var(--surface-2); }
.section--soft .img-stack__sub { border-color: var(--bg-soft); }
.img-stack__badge {
  position: absolute; z-index: 2; top: 28px; right: 0; max-width: 240px;
  background: var(--ink); color: #fff; padding: 18px 22px; border-radius: 10px; border-left: 3px solid var(--accent-on-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.25;
}
.img-stack__badge small { display: block; font-family: var(--font-sans); font-weight: 400; color: var(--on-ink-2); margin-top: 6px; font-size: .82rem; }
@media (max-width: 600px) { .img-stack__sub { left: 0; } .img-stack__badge { top: 16px; padding: 14px 16px; font-size: 1rem; } }

.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; }
.check-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.check-list li:first-child { border-top: 1px solid var(--border); }
.check-list .tick { flex: none; width: 24px; height: 24px; display: grid; place-items: center; color: var(--accent-ink); border: 1.5px solid var(--accent); border-radius: 6px; margin-top: 2px; }
.check-list .tick svg { width: 14px; height: 14px; stroke-width: 3; }
.check-list strong { display: block; color: var(--text); }
.check-list span { color: var(--text-2); font-size: .95rem; }

/* ---------- Service page ---------- */
.service-layout { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.service-layout__intro { font-size: 1.15rem; color: var(--text); }
.service-layout__aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; }
.service-layout__img { aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--surface-2); }
.service-layout__img img { width: 100%; height: 100%; object-fit: cover; }
.service-layout__body { margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--border); }
.aside-cta { background: var(--ink); color: #fff; padding: 32px; border-top: 3px solid var(--accent-on-ink); }
.aside-cta h3 { color: #fff; font-size: 1.4rem; }
.aside-cta p { color: var(--on-ink-2); }
.aside-cta__mail { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--on-ink-2); font-size: .92rem; }
.aside-cta__mail:hover { color: var(--accent-on-ink); }
.aside-cta__mail svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .service-layout { grid-template-columns: 1fr; } .service-layout__aside { position: static; } }

.feature-list { list-style: none; padding: 0; margin: 28px 0 0; }
.feature-list li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 20px 0; border-top: 1px solid var(--border); }
.feature-list li:last-child { border-bottom: 1px solid var(--border); }
.feature-list__num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--accent-ink); line-height: 1.3; }
.feature-list strong { display: block; color: var(--text); font-size: 1.05rem; }
.feature-list span { color: var(--text-2); }

/* ---------- Tabs (services page): vertical menu ---------- */
[data-tabs] { display: grid; grid-template-columns: 270px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.tabs__list { display: flex; flex-direction: column; position: sticky; top: calc(var(--header-h) + 28px); border-left: 1px solid var(--border); }
.tabs__btn {
  text-align: left; border: 0; border-left: 3px solid transparent; margin-left: -2px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: transparent; color: var(--text-2); font: 600 1rem var(--font-sans);
  padding: 15px 20px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn[aria-selected="true"] { color: var(--text); border-left-color: var(--accent); background: linear-gradient(90deg, var(--accent-50), transparent); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fadeUp .45s ease; }
.tabs__panel .split { grid-template-columns: 1fr; gap: 36px; }
.tabs__panel .img-stack__main { aspect-ratio: 16 / 8; }
@media (max-width: 900px) {
  [data-tabs] { grid-template-columns: 1fr; }
  .tabs__list { position: static; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--border); scrollbar-width: none; }
  .tabs__btn { white-space: nowrap; border-left: 0; margin: 0 0 -1px; border-bottom: 3px solid transparent; padding: 12px 16px; }
  .tabs__btn[aria-selected="true"] { border-bottom-color: var(--accent); background: none; }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-layout__head { position: sticky; top: calc(var(--header-h) + 28px); }
.faq-layout__head h2 { max-width: 12ch; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout__head { position: static; } }
.faq { max-width: 860px; margin: 0 auto; width: 100%; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq__num { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--accent-ink); }
.faq__q { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.4; letter-spacing: -.01em; }
.faq summary .plus { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); display: grid; place-items: center; transition: transform .3s, background .3s, border-color .3s; }
.faq summary .plus svg { width: 16px; height: 16px; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--accent-solid); border-color: var(--accent-solid); color: var(--on-accent); }
.faq details > div { padding: 0 52px 24px 56px; }

/* ---------- CTA band (gold) ---------- */
.cta-band {
  position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px);
  background: linear-gradient(120deg, #0d7a6f 0%, #0e5d66 50%, #12284a 100%); color: #fff; border-radius: 16px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 38%; background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 14px); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 1.075rem; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: #fff; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band__actions { justify-content: flex-start; } .cta-band::after { width: 100%; opacity: .5; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 112px) 0 clamp(56px, 7vw, 96px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%234fd1c0' stroke-width='1.2'%3E%3Cpath opacity='.35' d='M0 250 C 200 170 320 300 520 210 S 760 120 800 150'/%3E%3Cpath opacity='.2' d='M0 280 C 220 200 340 330 540 240 S 770 160 800 190'/%3E%3C/g%3E%3C/svg%3E") right bottom / 70% 100% no-repeat,
    radial-gradient(ellipse 50% 80% at 90% 0%, #1f3d6b 0%, transparent 65%),
    var(--ink);
  color: #fff;
}
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { max-width: 640px; margin: 0; font-size: 1.12rem; color: var(--on-ink-2); }
.page-hero .hero__bg { display: none; }
.page-hero .post-meta { color: var(--on-ink-2); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--on-ink-2); margin: 0 0 28px; list-style: none; padding: 0; }
.breadcrumb a { color: var(--on-ink-2); }
.breadcrumb a:hover { color: var(--accent-on-ink); }
.breadcrumb [aria-current] { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--accent-on-ink); }
/* Content directly under a dark page hero always gets breathing room */
.page-hero + .section, .page-hero + .section[style] { padding-top: clamp(56px, 7vw, 96px) !important; }
.hero__bg { display: none; }
.page-hero .btn { --_bg: var(--accent-solid); --_fg: var(--on-accent); --_bd: var(--accent-solid); }
.page-hero .btn--ghost { --_bg: transparent; --_fg: #fff; --_bd: rgba(255,255,255,.5); }
.page-hero .btn--ghost:hover { background: #fff; color: #0b1a33; border-color: #fff; }
.page-hero .hero__ctas { justify-content: flex-start !important; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-left: 3px solid var(--accent); }
.info-card .icon-badge { margin: 0; flex: none; width: 46px; height: 46px; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.info-card p { margin: 0; overflow-wrap: anywhere; }
.info-stack { display: grid; gap: 14px; }

.form-card { padding: clamp(28px, 4vw, 48px); }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; color: var(--text); }
.field label .req { color: #d64045; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: 500 1rem var(--font-sans);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #d64045; }
.field .error { display: none; color: #d64045; font-size: .85rem; margin-top: 6px; font-weight: 600; }
.field.has-error .error { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.consent.has-error { color: #d64045; }
.form-status { display: none; padding: 14px 18px; font-weight: 600; border-radius: var(--radius-sm); }
.form-status.is-success { display: block; background: color-mix(in srgb, #19a974 14%, transparent); color: #128a5e; border-left: 3px solid #19a974; }
:root[data-theme="dark"] .form-status.is-success { color: #4fd6a1; }

.map { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); aspect-ratio: 16 / 7; background: var(--surface-2); filter: grayscale(.4); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- Legal / prose ---------- */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose .placeholder { background: var(--accent-50); border: 1px dashed var(--accent); color: var(--text); padding: 2px 8px; border-radius: 6px; font-weight: 600; font-size: .95em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0; }
.legal-table th, .legal-table td { text-align: left; padding: 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { width: 38%; color: var(--text); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.legal-table td { color: var(--text-2); }
@media (max-width: 600px) { .legal-table th, .legal-table td { display: block; width: 100%; padding: 8px 0; } .legal-table th { border: 0; padding-top: 18px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-2); padding: clamp(56px, 7vw, 88px) 0 28px; border-top: 4px solid var(--accent-solid); }
.site-footer h4 { color: var(--accent-on-ink); font-family: var(--font-sans); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer a { color: var(--on-ink-2); }
.site-footer a:hover { color: #fff; }
.site-footer p { color: var(--on-ink-2); }
.footer-lead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--ink-line); }
.footer-lead__title { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.018em; font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.1; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand .brand__text small { color: var(--accent-on-ink); }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 5px; color: var(--accent-on-ink); }
.footer-bottom { border-top: 1px solid var(--ink-line); margin-top: 56px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
.footer-bottom ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

/* ---------- Floating utilities ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: var(--radius-sm);
  border: 0; background: var(--accent-solid); color: var(--on-accent); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 110; background: var(--accent); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   CMS additions
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.section-more { margin: 40px 0 0; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Rich text from the editor */
.rte > :last-child { margin-bottom: 0; }
.rte h2 { font-size: 1.6rem; margin-top: 1.8em; }
.rte h3 { margin-top: 1.6em; }
.rte > h2:first-child, .rte > h3:first-child { margin-top: 0; }
.rte ul, .rte ol { color: var(--text-2); padding-left: 1.3em; margin: 0 0 1rem; }
.rte li { margin-bottom: .45em; }
.rte li::marker { color: var(--accent-ink); font-weight: 700; }
.rte li strong { color: var(--text); }
.rte a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.rte img { height: auto; margin: 1.5em 0; border-radius: var(--radius); }
.rte blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.rte table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.rte th, .rte td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.legal-table td p { margin: 0; }

/* Form states */
.form-status.is-error { display: block; background: color-mix(in srgb, #d64045 12%, transparent); color: #b8343a; border-left: 3px solid #d64045; }
:root[data-theme="dark"] .form-status.is-error { color: #ff8a8d; }
.form-card > .form-status { margin-bottom: 18px; }
.info-card__address { font-style: normal; color: var(--text-2); }

/* Blog */
.post-card .service-card__img { display: block; }
.post-card__title { font-size: 1.3rem; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--accent-ink); }
.post-meta { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.post-hero .post-meta { margin-top: 12px; color: var(--accent-on-ink); }
.post-figure { margin: 0 0 48px; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; background: var(--surface-2); }
.post-figure img { width: 100%; height: 100%; object-fit: cover; }
.post-body { font-size: 1.1rem; }
.post-share { display: flex; align-items: center; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-weight: 700; color: var(--text-2); }
.post-share a { width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); }
.post-share a:hover { border-color: var(--accent); color: var(--accent-ink); }
.post-share svg { width: 18px; height: 18px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 48px; flex-wrap: wrap; }
.pagination__info { font-weight: 600; color: var(--text-3); }
.empty-state { text-align: center; max-width: 560px; margin: 0 auto; }
.empty-state .icon-badge { margin: 0 auto 20px; }

/* Footer social */
.footer-social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.footer-social a { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--ink-line); display: grid; place-items: center; }
.footer-social a:hover { border-color: var(--accent-on-ink); color: var(--accent-on-ink); }
.footer-social svg { width: 17px; height: 17px; }

/* Draft preview notice (only visible to logged-in editors) */
.cms-preview-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 120; background: var(--accent-solid); color: var(--on-accent); font-weight: 700; font-size: .9rem; padding: 10px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
