/*
Theme Name: Finex Solutions
Theme URI: https://finex-solutions.com/
Author: Finex Solutions Inc.
Description: Custom theme for Finex Solutions: CPM and FP&A consulting for Prophix One and Vena.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: finex
*/

/* ---------- Tokens ---------- */
:root {
  --red: #E00000;
  --red-dark: #B00000;
  --red-soft: #FBEAEA;
  --red-on-dark: #FF8A7E;
  --ink: #1B1A1A;
  --text: #4D4844;
  --muted: #6B6662;
  --faint: #6E6A66;
  --line: #ECEAE7;
  --line-strong: #D6D3CF;
  --bg: #FFFFFF;
  --bg-alt: #F5F4F2;
  --dark: #1B1A1A;
  --dark-2: #262424;
  --dark-text: #CFCBC6;
  --dark-muted: #A8A39E;
  --green: #2F6B45;
  --green-soft: #EEF6F0;
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 14px 34px rgba(27, 26, 26, 0.12);
  --wrap: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; color: inherit; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 6px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.section { padding-block: 72px; }
.section--tight { padding-block: 56px; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section--red { background: var(--red); color: #fff; }

.eyebrow { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: var(--red); margin-bottom: 10px; }
.section--dark .eyebrow, .page-hero .eyebrow { color: var(--red-on-dark); }
.h1 { font-size: clamp(38px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -1.6px; }
.h2 { font-size: clamp(30px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -1px; }
.h3 { font-size: 22px; line-height: 1.2; }
.lead { font-size: 18px; color: var(--text); }
.section--dark .lead, .page-hero .lead { color: var(--dark-text); }
.muted { color: var(--muted); }
.accent { color: var(--red); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 32px; }
.section-head > div { max-width: 720px; }
.section-head .lead { margin-top: 12px; }
.link-arrow { font-weight: 600; }
.link-arrow--red { color: var(--red-dark); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1.2 var(--body); padding: 15px 26px; border-radius: 6px; border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { border-color: #5C5856; color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg-alt); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header + mega menu ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 2px solid var(--ink); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.site-logo img { height: 37px; width: auto; }
.nav { display: flex; align-items: center; font-size: 15px; font-weight: 500; }
.nav__item { border-left: 1px solid var(--line-strong); }
.nav__item:last-of-type { border-right: 1px solid var(--line-strong); }
.nav__link, .nav__btn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; color: var(--ink); text-decoration: none; font: inherit; background: none; border: 0; cursor: pointer; }
.nav__btn { font-weight: 600; }
.nav__link:hover, .nav__btn:hover, .nav__link[aria-current="page"] { color: var(--red); }
.nav__cta { margin-left: 16px; background: var(--red); color: #fff; padding: 12px 20px; font-weight: 600; text-decoration: none; }
.nav__cta:hover { background: var(--red-dark); color: #fff; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 12px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

.mega { display: none; position: absolute; left: 0; right: 0; top: calc(100% - 20px); padding-top: 20px; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { display: block; }
.mega__panel { background: #fff; border-top: 1px solid var(--line-strong); border-bottom: 2px solid var(--ink); box-shadow: 0 28px 48px rgba(17, 17, 17, 0.16); }
.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 28px; padding-block: 28px 20px; }
.mega__title { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red-dark); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.mega__link { display: block; padding: 10px 0; border-bottom: 1px solid #EEECE9; text-decoration: none; }
.mega__link strong { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.mega__link span { display: block; font-size: 13px; color: var(--muted); }
.mega__link:hover strong { color: var(--red); }
.mega__feature { display: flex; flex-direction: column; background: var(--ink); color: #fff; text-decoration: none; overflow: hidden; }
.mega__feature img { width: 100%; height: 130px; object-fit: cover; object-position: top left; }
.mega__feature div { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.mega__feature small { font-size: 11px; letter-spacing: 1.5px; color: var(--red-on-dark); font-weight: 700; }
.mega__feature b { font-family: var(--display); font-size: 20px; }
.mega__feature span { font-size: 13px; color: var(--dark-text); }
.mega__feature:hover { color: #fff; }
.mega__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-bottom: 22px; font-size: 14px; }
.mega__foot a { font-weight: 600; }
.badge-new { font-size: 10px; font-weight: 700; letter-spacing: 1px; background: var(--red); color: #fff !important; padding: 2px 6px; border-radius: 3px; }

@media (max-width: 1020px) {
  .nav__toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; border-bottom: 2px solid var(--ink); max-height: calc(100vh - 80px); overflow-y: auto; padding: 8px 24px 20px; }
  .nav.is-open { display: flex; }
  .nav__item, .nav__item:last-of-type { border: 0; border-bottom: 1px solid var(--line); }
  .nav__link, .nav__btn { padding: 14px 0; width: 100%; justify-content: space-between; }
  .nav__cta { margin: 16px 0 0; text-align: center; justify-content: center; display: flex; }
  .has-mega:hover .mega { display: none; }
  .has-mega.is-open .mega { display: block; }
  .mega { position: static; padding-top: 0; }
  .mega__panel { border: 0; box-shadow: none; }
  .mega__panel .container { padding: 0; }
  .mega__grid { grid-template-columns: 1fr; gap: 18px; padding-block: 4px 12px; }
  .mega__feature { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero { background: var(--dark); color: #fff; }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; padding-block: 64px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.hero__kicker::before { content: ""; width: 28px; height: 3px; background: var(--red); }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; max-width: 540px; color: var(--dark-text); }
.hero .btn-row { margin-bottom: 32px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: 400px; object-fit: cover; border-radius: 14px; }
.hero__stat { position: absolute; left: 20px; bottom: 20px; background: #fff; color: var(--ink); border-radius: 10px; padding: 14px 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.hero__stat small { display: block; font-size: 12px; color: var(--muted); }
.hero__stat b { font-family: var(--display); font-size: 22px; }

.cert-badge { display: inline-flex; flex-wrap: wrap; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); max-width: 100%; }
.cert-badge__label { background: var(--red); color: #fff; padding: 12px 18px; display: flex; align-items: center; gap: 10px; }
.cert-badge__label small { display: block; font-size: 11px; letter-spacing: 1.8px; font-weight: 700; opacity: 0.9; }
.cert-badge__label b { display: block; font-family: var(--display); font-size: 17px; line-height: 1.15; }
.cert-badge__label, .cert-badge__logos { flex: 1 1 auto; }
.cert-badge__logos { padding: 12px 22px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.cert-badge__logos img { height: 28px; width: auto; }
.cert-badge__logos i { width: 1px; height: 28px; background: #E3E0DC; }

/* ---------- Clients strip ---------- */
.clients { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.clients__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; padding-block: 22px; }
.clients small { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.clients span { font-family: var(--display); font-weight: 700; font-size: 17px; color: #595959; white-space: nowrap; }
@media (max-width: 1180px) {
  .clients__inner { justify-content: flex-start; gap: 8px 28px; }
  .clients small { flex: 0 0 100%; }
}

/* ---------- Client logo strip (home, about) ---------- */
.logo-strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: 26px 30px; overflow: hidden; }
.logo-strip__label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.logo-strip__viewport { overflow: hidden; position: relative; }
.logo-strip__viewport::before, .logo-strip__viewport::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6%; z-index: 1; pointer-events: none; }
.logo-strip__viewport::before { left: 0; background: linear-gradient(to right, var(--bg-alt), transparent); }
.logo-strip__viewport::after { right: 0; background: linear-gradient(to left, var(--bg-alt), transparent); }
.logo-strip__track { display: flex; align-items: center; width: max-content; list-style: none; margin: 0; padding: 0; animation: logo-strip-scroll 40s linear infinite; -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform; transform: translate3d(0, 0, 0); }
.logo-strip__viewport:hover .logo-strip__track { animation-play-state: paused; }
.logo-strip__track li { flex: 0 0 auto; display: flex; align-items: center; padding-inline: 30px; }
.logo-strip__track img { height: 44px; width: auto; max-width: none; filter: grayscale(1); opacity: 0.7; transition: filter 0.3s ease, opacity 0.3s ease; }
.logo-strip__track img:hover { filter: none; opacity: 1; }
@keyframes logo-strip-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 600px) {
  .logo-strip__track li { padding-inline: 20px; }
  .logo-strip__track img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-strip__viewport::before, .logo-strip__viewport::after { display: none; }
  .logo-strip__track { animation: none; width: auto; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
  .logo-strip__track li[aria-hidden="true"] { display: none; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.svc-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.svc-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--ink); }
.svc-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.svc-card__group { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); }
.svc-card__title { font-family: var(--display); font-weight: 800; font-size: 20px; }
.svc-card__desc { font-size: 15px; color: var(--muted); }
.svc-card__more { font-size: 14px; font-weight: 600; color: var(--red-dark); margin-top: 4px; }
.svc-card--featured { background: var(--red); border-color: var(--red); color: #fff; }
.svc-card--featured:hover { color: #fff; box-shadow: 0 14px 34px rgba(224, 0, 0, 0.3); }
.svc-card--featured .svc-card__group, .svc-card--featured .svc-card__desc { color: #fff; }
.svc-card--featured .svc-card__more { color: #fff; }
.svc-card--featured .icon-box { background: #fff; }

.icon-box { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; }
.icon-box svg { width: 22px; height: 22px; }
.icon-box--sm { width: 36px; height: 36px; border-radius: 9px; }

/* platform cards */
.platform { background: #fff; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; border-top: 4px solid #E8323A; }
.platform--vena { border-top-color: #4A9462; }
.platform__media { height: 220px; overflow: hidden; }
.platform__media img { width: 100%; height: 100%; object-fit: cover; }
.platform__media--vena { background: var(--green-soft); display: flex; align-items: center; justify-content: center; }
.platform__media--vena img { width: auto; height: 200px; object-fit: contain; }
.platform__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.platform__logo { height: 32px; width: auto; align-self: flex-start; }
.platform__body ul { padding-left: 20px; color: var(--text); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; font-size: 15px; }
.feature-box { margin-top: auto; border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 18px; align-items: center; text-decoration: none; }
.feature-box > span:first-child { flex: 1; min-width: 0; }
.feature-box small { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 8px; }
.feature-box b { display: block; font-family: var(--display); font-size: 22px; }
.feature-box em { display: block; font-style: normal; font-size: 14px; }
.feature-box__arrow { font-size: 26px; }
.feature-box--dark { background: var(--ink); color: #fff; }
.feature-box--dark small { background: var(--red); color: #fff; padding: 3px 8px; border-radius: 3px; }
.feature-box--dark em { color: var(--dark-text); }
.feature-box--dark .feature-box__arrow { color: var(--red-on-dark); }
.feature-box--dark:hover { color: #fff; background: #000; }
.feature-box--green { background: var(--green-soft); color: var(--ink); }
.feature-box--green small { color: var(--green); }
.feature-box--green em { color: var(--text); }
.feature-box--green .feature-box__arrow { color: var(--green); }

/* already live */
.already { display: flex; flex-wrap: wrap; gap: 32px; }
.pains { flex: 1 1 280px; min-width: 0; background: var(--bg-alt); border-radius: 14px; padding: 26px 28px; }
.pains h3 { margin-bottom: 6px; }
.pains ul { list-style: none; padding: 0; }
.pains li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #E6E3DF; color: #3D3A38; }
.pains li:last-child { border-bottom: 0; }
.pains li::before { content: "!"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; margin-top: 1px; }
.steps { flex: 3 1 680px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.step-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.step-card__top small { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); }
.step-card p { color: var(--text); font-size: 15px; }
.step-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 13px; }
.pill { background: var(--bg-alt); border-radius: 999px; padding: 4px 10px; color: var(--text); font-weight: 600; font-size: 13px; }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: "✓"; color: var(--red); font-weight: 800; }
.banner-dark { margin-top: 28px; background: var(--ink); color: #fff; border-radius: 14px; padding: 24px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.banner-dark b { font-family: var(--display); font-size: 20px; display: block; }
.banner-dark span { color: var(--dark-text); }

/* partners */
.partners { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.partners__intro { flex: 1 1 360px; min-width: 0; }
.partners__intro .lead { margin: 16px 0 20px; font-size: 17px; }
.partners__grid { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.partner { text-align: center; }
.partner img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto 16px; border: 4px solid #fff; box-shadow: 0 10px 26px rgba(27, 26, 26, 0.12); filter: grayscale(1) contrast(1.05); }
.partner b { display: block; font-family: var(--display); font-size: 20px; }
.partner span { color: var(--red-dark); font-weight: 600; font-size: 15px; }

/* CTA band */
.cta-band__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 56px; }
.cta-band h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.8px; margin-bottom: 6px; }
.cta-band p { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-muted); font-size: 14px; }
.site-footer a { color: var(--dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; padding-block: 48px 32px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.site-footer h3 { color: #fff; font-family: var(--body); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__logo img { height: 34px; width: auto; margin-bottom: 14px; }
.site-footer__badges { display: flex; gap: 10px; margin-top: 16px; }
.site-footer__badges span { background: #fff; border-radius: 6px; padding: 6px 10px; display: flex; }
.site-footer__badges img { height: 18px; width: auto; }
.site-footer__bottom { border-top: 1px solid #3A3634; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--dark); color: #fff; }
.page-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; padding-block: 56px 64px; }
.page-hero--simple .page-hero__grid { grid-template-columns: 1fr; }
.page-hero--simple .page-hero__grid > * { max-width: 820px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { margin-bottom: 28px; max-width: 600px; }
.page-hero__media img { width: 100%; height: 340px; object-fit: cover; border-radius: 14px; }
.page-hero__media--contain { background: #fff; border-radius: 14px; padding: 20px; }
.page-hero__media--contain img { height: 300px; object-fit: contain; }
.crumbs { font-size: 13px; color: var(--dark-muted); margin-bottom: 18px; }
.crumbs a { color: var(--dark-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 6px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; max-width: 560px; }
.facts div { border-top: 2px solid var(--red); padding-top: 10px; }
.facts b { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; }
.facts span { font-size: 13px; color: var(--dark-muted); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: start; }
.split--center { align-items: center; }
.prose p + p { margin-top: 14px; }
.prose p { color: var(--text); font-size: 17px; }
.prose h2 + p, .prose h3 + p { margin-top: 14px; }

.include-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.include { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.include b { font-family: var(--display); font-size: 18px; }
.include p { color: var(--muted); font-size: 15px; }
.section--alt .include { border-color: transparent; }

.process { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; counter-reset: step; }
.process li { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); counter-increment: step; }
.section--alt .process li { border-color: transparent; }
.process li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; margin-bottom: 16px; }
.process b { display: block; font-family: var(--display); font-size: 19px; margin-bottom: 6px; }
.process p { color: var(--muted); font-size: 15px; }

.fit-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.fit-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.fit-list li::before { content: "→"; color: var(--red); font-weight: 800; }

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 40px 22px 0; color: var(--text); }

.callout { border-radius: var(--radius-lg); padding: 32px; }
.callout--red { background: var(--red); color: #fff; }
.callout--red p { color: #fff; }
.placeholder-note { display: inline-block; background: #FFF6D8; color: #6B5300; border: 1px dashed #D9B300; border-radius: 6px; padding: 2px 8px; font-size: 13px; }

/* scorecard + matrix visuals */
.scorecard { background: #fff; border: 1px solid #E3E0DC; box-shadow: 0 24px 60px rgba(27, 26, 26, 0.14); border-radius: 10px; overflow: hidden; }
.scorecard__head { background: var(--ink); color: #fff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.scorecard__head img { height: 22px; width: auto; }
.scorecard__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.bar-row { font-size: 14px; }
.bar-row div:first-child { display: flex; justify-content: space-between; margin-bottom: 6px; }
.bar { height: 10px; background: #EFEDEA; border-radius: 5px; }
.bar i { display: block; height: 10px; border-radius: 5px; }
.bar--warn i { background: #D99A00; }
.bar--risk i { background: var(--red); }
.bar--good i { background: #3F8A5A; }
.st-warn { color: #8A5A00; font-weight: 600; }
.st-risk { color: var(--red-dark); font-weight: 600; }
.st-good { color: #2F6B45; font-weight: 600; }
.matrix { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.matrix th, .matrix td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.matrix th { font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.matrix td + td { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--ink); border-radius: 8px; }

/* industries */
.industry { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px; align-items: center; padding-block: 48px; border-bottom: 1px solid var(--line); }
.industry:last-child { border-bottom: 0; }
.industry img { width: 100%; height: 300px; object-fit: cover; border-radius: 14px; }
.industry h2 { font-size: 30px; margin-bottom: 12px; }
.industry .checks { margin: 18px 0; font-size: 15px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.tile { position: relative; display: block; height: 220px; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; background: var(--dark); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 26, 26, 0) 35%, rgba(27, 26, 26, 0.88) 100%); }
.tile span { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; font-family: var(--display); font-weight: 800; font-size: 20px; }
.tile:hover { color: #fff; }

/* case studies + insights */
.story-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.story-card img { width: 100%; height: 200px; object-fit: cover; }
.story-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; background: var(--bg-alt); border-radius: 999px; padding: 3px 10px; color: var(--text); }
.story-card h3 { font-size: 20px; }
.story-card p { color: var(--muted); font-size: 15px; }
.story-card:hover { color: var(--ink); box-shadow: var(--shadow); }
.post-meta { font-size: 13px; color: var(--muted); }
.entry { max-width: 760px; }
.entry > * + * { margin-top: 18px; }
.entry p, .entry li { font-size: 18px; color: var(--text); line-height: 1.7; }
.entry h2 { font-size: 30px; margin-top: 40px; }
.entry h3 { font-size: 22px; margin-top: 28px; }
.entry img { border-radius: 10px; }
.entry a { color: var(--red-dark); }
.empty-state { background: var(--bg-alt); border-radius: 14px; padding: 40px; text-align: center; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 6px; text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* about / team */
.bio { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-block: 36px; border-bottom: 1px solid var(--line); align-items: start; }
.bio:last-child { border-bottom: 0; }
.bio img { width: 220px; height: 220px; object-fit: cover; object-position: top; border-radius: 14px; filter: grayscale(1) contrast(1.05); }
.bio h3 { font-size: 26px; }
.bio__role { color: var(--red-dark); font-weight: 600; margin: 2px 0 12px; }
.bio__tags { margin-top: 14px; }
@media (max-width: 640px) { .bio { grid-template-columns: 1fr; } .bio img { width: 160px; height: 160px; } }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.value { border-top: 3px solid var(--red); padding-top: 16px; }
.value b { display: block; font-family: var(--display); font-size: 19px; margin-bottom: 6px; }
.value p { color: var(--muted); font-size: 15px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form__full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: 16px/1.4 var(--body); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.form textarea { min-height: 150px; resize: vertical; }
.form__hp { position: absolute; left: -9999px; }
.form-notice { border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; font-weight: 600; }
.form-notice--ok { background: var(--green-soft); color: var(--green); }
.form-notice--err { background: var(--red-soft); color: var(--red-dark); }
.contact-card { background: var(--bg-alt); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-card h3 { font-size: 18px; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--text); }
.contact-card__booking { background: var(--ink); color: #fff; border-radius: 12px; padding: 22px; }
.contact-card__booking p { color: var(--dark-text); margin: 6px 0 14px; }
.contact-card .btn--primary, .contact-card .btn--dark, .contact-card .btn--ghost, .contact-card .btn--primary:hover, .contact-card .btn--dark:hover, .contact-card .btn--ghost:hover { color: #fff; }
.contact-card__booking .btn--ghost { border-color: rgba(255, 255, 255, 0.7); }
.contact-card__booking .btn--ghost:hover { border-color: #fff; }
.contact-card__booking a:not(.btn) { color: #fff; }

/* ---------- Additions (completed site) ---------- */
/* Menu: Team and FAQ added, so tighten link spacing on mid-size screens */
@media (min-width: 1021px) and (max-width: 1180px) {
  .nav__link, .nav__btn { padding-left: 12px; padding-right: 12px; }
  .nav__cta { margin-left: 12px; padding-inline: 16px; }
}

/* Newsletter sign-up row (home, insights, contact) */
.newsletter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.newsletter__text { flex: 1 1 320px; min-width: 0; max-width: 520px; }
.newsletter__text .muted { margin-top: 6px; }
.newsletter__form { position: relative; flex: 1 1 420px; min-width: 0; max-width: 620px; display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter__form input[type="text"], .newsletter__form input[type="email"] { flex: 1 1 180px; min-width: 0; font: 16px/1.4 var(--body); padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); }
.newsletter__form input:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.section--dark .newsletter__text .muted { color: var(--dark-text); }

/* Phones: full-width buttons, nothing wider than the screen */
@media (max-width: 600px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn, .newsletter__form .btn, .banner-dark .btn, .section-head .btn { width: 100%; }
  .cert-badge__logos { padding: 12px 18px; }
  .hero__media img { height: 280px; }
  .faq summary { font-size: 17px; }
}
