/* Aventix Consulting — technical precision theme */

@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0e1a2b;
  --muted: #4b5a6b;
  --bg: #f3f5f7;
  --white: #ffffff;
  --panel: #f8fafb;
  --line: #d3dbe3;
  --line-strong: #b7c2cd;
  --grid: #e1e7ed;
  --accent: #0b6e99;
  --accent-deep: #08506f;
  --accent-soft: #e8f1f6;
  --ok: #0f7a5c;
  --warn: #9a4a0b;
  --on-ink: #e8edf2;
  --on-ink-muted: #a9b6c3;
  --on-ink-link: #7cc4e4;
  --on-ink-line: #2c3d53;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-h1: clamp(2.25rem, 1.5rem + 2.6vw, 3.375rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);

  --pad-x: clamp(20px, 4.5vw, 64px);
  --pad-y: clamp(48px, 3rem + 1.5vw, 72px);
  --max: 1312px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
code, .mono { font-family: var(--mono); }

h1 { font-size: var(--fs-h1); line-height: 1.06; font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; }

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--pad-y); border-top: 1px solid var(--line); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--on-ink); border-top: 0; }
.blueprint {
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--on-ink); padding: 8px 16px; border-radius: var(--r); z-index: 100; }
.skip-link:focus { top: 12px; }

.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 48px; align-items: end; margin-bottom: 32px; }
.head p { color: var(--muted); font-size: 17px; max-width: 40rem; }
.section--ink .head p { color: var(--on-ink-muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 4px; font: 500 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-deep); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }

.tag { display: inline-block; font-family: var(--mono); font-size: 12px; line-height: 1.4; background: var(--accent-soft); color: var(--accent-deep); padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.check { display: flex; gap: 10px; font-size: 15px; }
.check svg { flex: none; margin-top: 3px; color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav ul a { color: var(--ink); text-decoration: none; }
.site-nav ul a:hover { color: var(--accent); }

/* Hero */
.hero { padding-block: clamp(40px, 2.5rem + 2vw, 64px); border-bottom: 1px solid var(--line); }
.hero .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 72px; align-items: start; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(15, 122, 92, 0.18); }
.hero__lead { font-size: var(--fs-lead); color: var(--muted); max-width: 38rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.regions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding-top: 8px; }
.regions ul { display: flex; flex-wrap: wrap; gap: 8px; }
.regions li { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 2px 10px; color: var(--ink); font-weight: 500; }
.hero__side { display: flex; flex-direction: column; gap: 12px; }
.photo { aspect-ratio: 16 / 9; background: #dfe6ec; border: 1px solid var(--line-strong); border-radius: var(--r); display: flex; align-items: flex-end; padding: 12px 14px; font-size: 13px; color: var(--muted); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.spec { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r); font-size: 14px; }
.spec__title { padding: 9px 14px; border-bottom: 1px solid var(--grid); font-weight: 600; }
.spec div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 7px 14px; border-bottom: 1px solid var(--grid); }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { font-weight: 500; }

/* Audiences */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.audience { border: 1px solid var(--on-ink-line); border-radius: var(--r); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.audience p { color: var(--on-ink-muted); font-size: 15px; flex: 1; }
.audience a { color: var(--on-ink-link); font-weight: 500; font-size: 15px; }

/* Services */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.card__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card p { color: var(--muted); font-size: 15px; }
.card .card__list { font-size: 14px; color: var(--ink); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }

/* Spotlight */
.spotlight { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 48px; align-items: start; }
.spotlight__intro { display: flex; flex-direction: column; gap: 14px; }
.spotlight__intro > p { color: var(--muted); font-size: 17px; }
.steps-v { counter-reset: s; display: flex; flex-direction: column; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.steps-v li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--grid); font-size: 15px; }
.steps-v li:last-child { border-bottom: 0; }
.steps-v li::before { content: counter(s); font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 2px; }
.tiers { display: flex; flex-direction: column; gap: 10px; }
.tiers__note { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tier { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 14px 16px; }
.tier--2 { border-left-color: #e0a15a; }
.tier--3 { border-left-color: #c2410c; }
.tier__day { font-family: var(--mono); font-size: 13px; color: var(--muted); line-height: 1.3; }
.tier__day strong { display: block; font-family: var(--sans); font-size: 22px; color: var(--ink); font-weight: 600; }
.tier p { font-size: 14px; color: var(--muted); }
.tier h3 { font-size: 16px; }
.escalate { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r); font-size: 14px; color: var(--muted); }

/* Dashboard */
.dash-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 40px; align-items: start; }
.dash-wrap__intro { display: flex; flex-direction: column; gap: 14px; }
.dash-wrap__intro > p { color: var(--muted); font-size: 17px; }
.dash-wrap__intro ul { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.dash { background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.dash__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: var(--ink); color: var(--on-ink); font-size: 13px; }
.dash__bar p:first-child { font-weight: 600; }
.dash__bar p:last-child { font-family: var(--mono); font-size: 12px; color: var(--on-ink-muted); }
.dash__body { padding: 16px; display: grid; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi, .panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.kpi__label { font-size: 12px; color: var(--muted); }
.kpi__value { font-size: 22px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi__note { font-size: 12px; margin-top: 4px; color: var(--muted); }
.meter { height: 6px; background: var(--grid); border-radius: 3px; margin-top: 8px; }
.meter span { display: block; width: 72%; height: 6px; background: var(--accent); border-radius: 3px; }
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.panel--wide { grid-column: span 2; }
.panel--tall { grid-row: span 2; }
.panel__title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; display: inline-block; }
.checklist li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--grid); font-size: 13px; }
.checklist li:last-child { border-bottom: 0; }
.checklist b { font-weight: 500; }
.is-done { color: var(--ok); } .is-progress { color: var(--accent); } .is-later { color: var(--muted); }
.ageing { display: flex; height: 22px; border-radius: 3px; overflow: hidden; }
.ageing-key { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.ageing-key b { display: block; font-size: 14px; color: var(--ink); }

/* Flows */
.flows { display: flex; flex-direction: column; gap: 12px; }
.flow { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.flow__name { font-weight: 600; font-size: 17px; }
.flow__desc { font-size: 13px; color: var(--muted); }
.flow ol { display: flex; align-items: stretch; gap: 24px; }
.node { position: relative; flex: 1; border: 1px solid var(--line-strong); border-radius: 4px; padding: 8px 10px; background: var(--panel); }
.node + .node::before { content: ""; position: absolute; left: -20px; top: 50%; width: 16px; height: 1.5px; background: #7a8896; }
.node + .node::after { content: ""; position: absolute; left: -9px; top: calc(50% - 4px); border: 4.5px solid transparent; border-left: 6px solid #7a8896; border-right: 0; }
.node--end { border: 1.5px solid var(--accent); background: var(--accent-soft); }
.node__mod { font-family: var(--mono); font-size: 11px; color: var(--accent-deep); }
.node__step { font-size: 13px; font-weight: 500; line-height: 1.3; }

/* Lifecycle */
.lifecycle { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r); }
.phase { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.phase:first-child { border-left: 0; }
.phase__n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.phase p { color: var(--muted); font-size: 15px; }
.phase__out { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.phase--highlight { background: var(--accent-soft); }
.models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.model { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.model p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 48px; align-items: start; }
.about .photo { aspect-ratio: 1 / 1; }
.about__text { display: flex; flex-direction: column; gap: 14px; }
.about__text > p { color: var(--muted); max-width: 44rem; }
.about__text > p.about__lead { color: var(--ink); font-size: 18px; }
.timeline { margin-top: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--grid); font-size: 15px; }
.timeline li:last-child { border-bottom: 0; }
.timeline time, .timeline .when { font-family: var(--mono); font-size: 13px; color: var(--accent-deep); padding-top: 2px; }
.timeline p { color: var(--muted); font-size: 14px; }

/* Testimonials */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.quote__flag { font-family: var(--mono); font-size: 12px; color: var(--warn); }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.5; flex: 1; }
.quote figcaption { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px 48px; align-items: start; }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.faq details { border-bottom: 1px solid var(--grid); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 16px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 48px; align-items: start; }
.contact__intro { display: flex; flex-direction: column; gap: 14px; }
.contact__intro p { color: var(--muted); font-size: 17px; }
.contact__intro a { font-family: var(--mono); font-size: 15px; }
.form { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 500; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 10px 12px; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--white); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 110, 153, 0.18); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { font-size: 13px; color: #b3261e; }
.field-error:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 14px; cursor: pointer; background: var(--white); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 12px 14px; border-radius: 4px; font-size: 15px; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { background: #e3f1ea; color: var(--ok); }
.form-status[data-state="error"] { background: #f9e5e3; color: #b3261e; }
.form__footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.form__footer small { font-size: 13px; color: var(--muted); max-width: 24rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: 14px; padding-block: 28px 36px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.site-footer a { color: var(--on-ink); }
.site-footer strong { color: var(--on-ink); font-size: 16px; }
.footer__links { display: flex; gap: 24px; }

.mobile-cta { display: none; }

/* Legal page */
.legal { max-width: 46rem; }
.legal h1 { font-size: var(--fs-h2); margin-bottom: 20px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.legal p { margin-bottom: 12px; }
.legal .note { padding: 12px 14px; background: var(--accent-soft); border-left: 3px solid var(--accent); }

/* Responsive */
@media (max-width: 1100px) {
  .site-nav ul { display: none; }
  .lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phase:nth-child(4) { border-left: 0; }
  .phase:nth-child(n+4) { border-top: 1px solid var(--line); }
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .head, .hero .container, .spotlight, .dash-wrap, .about, .faq-wrap, .contact { grid-template-columns: minmax(0, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about .photo { max-width: 360px; }
  .flow ol { flex-direction: column; gap: 18px; }
  .node + .node::before { left: 24px; top: -15px; width: 1.5px; height: 12px; }
  .node + .node::after { left: 20px; top: -8px; border: 4.5px solid transparent; border-top: 6px solid #7a8896; border-bottom: 0; }
}
@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .site-nav .btn { display: none; }
  .cards-3, .kpis, .panels, .lifecycle, .models, .form { grid-template-columns: minmax(0, 1fr); }
  .panel--wide { grid-column: auto; }
  .panel--tall { grid-row: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase { border-left: 0; border-top: 1px solid var(--line); }
  .phase:first-child { border-top: 0; }
  .ageing-key { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .spec div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--pad-x) calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); transition: transform .2s; }
  .mobile-cta .btn { width: 100%; }
  .mobile-cta[data-hidden="true"] { transform: translateY(110%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
