/* Flexis Ltd - site styles
   Layout idea: white pages drawn in the logo's own language. A grey outline that
   runs into a straight baseline, teal for the brand, one orange dot for action. */
:root {
  color-scheme: light;
  --ink: #0c2b36;
  --ink-soft: #17414f;
  --teal: #1ab3a9;
  --teal-deep: #0b7f78;
  --orange: #f7941d;
  --cloud: #55595a;
  --slate: #46575d;
  --mist: #f1f6f6;
  --line: #d5e1e2;
  --paper: #ffffff;
  --font-display: "Red Hat Display", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Red Hat Text", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Red Hat Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--teal-deep); }
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--mist { background: var(--mist); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.lede { font-size: 1.16rem; max-width: 60ch; }
.measure { max-width: 62ch; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep);
}
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--cloud); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: #ffa63a; transform: translateY(-1px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--small { padding: 10px 18px; font-size: 0.94rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-family: var(--font-display); font-weight: 600; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px; font-family: var(--font-display); font-weight: 700; color: var(--ink); cursor: pointer; }

.hero { padding: 72px 0 84px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--teal-deep); }
.hero-map { width: 100%; height: auto; display: block; }
.hero-map .wire { fill: none; stroke: var(--cloud); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-map .cloud { fill: var(--paper); stroke: var(--cloud); stroke-width: 6; stroke-linejoin: round; }
.hero-map .node { fill: var(--paper); stroke: var(--line); stroke-width: 2; }
.hero-map .node-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; fill: var(--ink); }
.hero-map .node-sub { font-family: var(--font-mono); font-size: 10.5px; fill: var(--slate); letter-spacing: .04em; }
.hero-map .core-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; fill: var(--teal-deep); }
.hero-map .pulse { fill: var(--orange); }
.page-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 26px 24px 26px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.08rem; }
.fact span { font-size: 0.95rem; }

.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; border-top: 5px solid var(--teal);
}
.card .icon { width: 46px; height: 46px; stroke: var(--cloud); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card .icon .dot { fill: var(--orange); stroke: none; }
.card a { margin-top: auto; font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.card a:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; }
.reason { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 3px solid var(--cloud); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 8px; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-weight: 500; color: var(--teal-deep); font-size: 0.9rem;
  padding-bottom: 12px; border-bottom: 3px solid var(--line);
}

.cta-band { background: var(--ink); color: #cfe1e3; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: var(--paper); }
.cta-band .btn--ghost { border-color: var(--paper); color: var(--paper); }
.cta-band .btn--ghost:hover { background: var(--paper); color: var(--ink); }

.service { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: start; padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-of-type { border-bottom: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--teal); }
.checks strong { color: var(--ink); font-family: var(--font-display); display: block; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--font-mono); font-size: 0.78rem; padding: 5px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-soft); border: 1px solid var(--line); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; }

.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 0.96rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid #b9c9cb; border-radius: 10px; padding: 13px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(26,179,169,.35); border-color: var(--teal-deep); }
.field .error { color: #a3341c; font-size: 0.9rem; min-height: 0; }
.field .error:empty { display: none; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.form-note { font-size: 0.92rem; }
.ready { display: none; gap: 16px; flex-direction: column; background: var(--mist); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--radius); padding: 26px; }
.ready.is-on { display: flex; }
.ready pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 0.86rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-height: 220px; overflow: auto; }
.details { background: var(--mist); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.details dl { margin: 0; display: grid; gap: 18px; }
.details dt { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); }
.details dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.details dd a { color: inherit; text-decoration: none; }
.details dd a:hover { text-decoration: underline; }

.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 0.96rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: 54px; width: auto; align-self: flex-start; }
.footer-grid h3 { font-size: 0.8rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid .num { font-variant-numeric: tabular-nums; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.86rem; }

@media (max-width: 920px) {
  .hero .wrap, .split, .service, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 56px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 24px 24px; }
  .nav.is-open { display: flex; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 18px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .reasons, .steps, .field-pair, .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .hero-map .pulse { display: none; }
}
