/* ==========================================================================
   Sanarise — group corporate site
   Self-contained stylesheet. No external dependencies, no web fonts.
   Dark theme only.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
/* Dark-only. The palette below is the single source of truth. */
:root {
  color-scheme: dark;

  --bg:          #0d1117;
  --bg-alt:      #131b24;
  --surface:     #161f29;
  --ink:         #eef2f6;   /* headings */
  --body:        #b6bfca;   /* paragraph text */
  --muted:       #7c8794;   /* secondary text */
  --line:        #222c37;
  --line-strong: #2c3742;
  --accent:      #57a8d0;   /* interactive / links */
  --accent-deep: #123a52;   /* deep brand blue (band backgrounds) */
  --accent-soft: #16242f;
  --on-accent:   #ffffff;

  --maxw: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Helvetica Neue", sans-serif;

  --step-hero: clamp(2.4rem, 1.4rem + 4.4vw, 4rem);
  --step-h2:   clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem);
  --step-h3:   clamp(1.15rem, 1rem + .6vw, 1.35rem);
  --step-lead: clamp(1.05rem, .98rem + .5vw, 1.28rem);
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

h1, h2, h3 { color: var(--ink); line-height: 1.12; font-weight: 650; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
strong { color: var(--ink); font-weight: 600; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band { background: var(--bg-alt); border-block: 1px solid var(--line); }
.eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--accent); margin: 0 0 1rem;
}
.lead { font-size: var(--step-lead); color: var(--body); max-width: 60ch; }
.measure { max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: .55rem; font-weight: 700; font-size: 1.24rem;
  color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; transform: translateY(-1px); }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--body); font-weight: 500; font-size: .95rem;
  padding: .5rem .8rem; border-radius: var(--radius); display: inline-block;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .75rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .6rem; font-size: 1.05rem; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 8rem); }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 20%, transparent 70%);
          mask-image: radial-gradient(120% 90% at 70% 10%, #000 20%, transparent 70%);
}
.hero-grid line { stroke: var(--line-strong); stroke-width: 1; }
.hero-grid circle { fill: var(--accent); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: var(--step-hero); max-width: 20ch; font-weight: 680; }
.hero .lead { margin-top: 1.4rem; }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* Vision band */
.vision {
  background: var(--accent-deep); color: #eaf2f7; border: 0;
}
.vision .container { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.vision p {
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); line-height: 1.32;
  color: #fff; font-weight: 550; letter-spacing: -.01em; max-width: 28ch; margin: 0;
}
.vision .attr { color: #a8c6d6; font-size: 1rem; margin-top: 1rem; font-weight: 500; letter-spacing: .01em; }

/* ---- Pillars / cards ----------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem 1.75rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.card .num {
  font-variant-numeric: tabular-nums; font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; color: var(--accent);
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
}
.card .num::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--body); font-size: .98rem; }

/* ---- Venture cards ------------------------------------------------------- */
.venture-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
}
.venture-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.venture-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.venture-card .tag {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin-bottom: .8rem;
}
.venture-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.venture-card p { color: var(--body); font-size: .95rem; margin: 0 0 1.4rem; flex: 1 0 auto; }
.venture-card .visit {
  display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start;
  font-weight: 600; font-size: .9rem; color: var(--accent);
}
.venture-card .visit:hover { text-decoration: none; gap: .65rem; }
.venture-card .visit svg { transition: transform .18s ease; }
.venture-card .visit:hover svg { transform: translate(2px, -2px); }

/* Section heading block */
.head-block { max-width: 52ch; margin-bottom: 2.75rem; }
.head-block.center { margin-inline: auto; }

/* ---- Capability blocks (What We Build) ----------------------------------- */
.cap {
  display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line);
  align-items: start;
}
.cap:first-of-type { border-top: 0; }
.cap .cap-label .eyebrow { margin-bottom: .4rem; }
.cap .cap-label h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.cap ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.cap li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; color: var(--body); }
.cap li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px;
  border-radius: 50%; border: 2px solid var(--accent);
}
.cap li strong { color: var(--ink); }
@media (max-width: 760px) { .cap { grid-template-columns: 1fr; gap: 1rem; } }

/* ---- Client wall --------------------------------------------------------- */
.wall {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  margin-top: 1.75rem;
}
.wall span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 1.5rem 1rem; min-height: 92px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--muted); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: color .2s ease, background .2s ease;
}
.wall span:hover { color: var(--ink); background: var(--bg-alt); }
@media (max-width: 900px) { .wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .wall { grid-template-columns: 1fr; } }

/* ---- Timeline / arc ------------------------------------------------------ */
.arc { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.arc li { position: relative; padding: 0 0 2.4rem 2.4rem; border-left: 2px solid var(--line); }
.arc li:last-child { padding-bottom: 0; }
.arc li::before {
  content: ""; position: absolute; left: -8px; top: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--accent);
}
.arc .year { font-weight: 700; color: var(--ink); font-size: .95rem; letter-spacing: .04em; display: block; margin-bottom: .3rem; }
.arc h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.arc p { margin: 0; color: var(--body); }

/* ---- Founder block ------------------------------------------------------- */
.founder { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } }
.quote {
  border-left: 3px solid var(--accent); padding: .4rem 0 .4rem 1.5rem;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); line-height: 1.4;
  color: var(--ink); font-weight: 500; letter-spacing: -.01em;
}
.role-tag {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: .35rem .7rem; border-radius: 100px; margin-bottom: 1rem;
}

/* ---- Partner blocks ------------------------------------------------------ */
.partner { padding-block: 2.5rem; border-top: 1px solid var(--line); display: grid;
  grid-template-columns: 220px 1fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: start; }
.partner:first-of-type { border-top: 0; }
.partner h3 { margin: 0; font-size: 1.5rem; }
.partner .p-kicker { color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: .4rem; }
.partner p { margin: 0; }
@media (max-width: 720px) { .partner { grid-template-columns: 1fr; gap: .75rem; } }

/* ---- Contact / form ------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-mail {
  display: inline-flex; align-items: center; gap: .6rem; font-size: 1.2rem; font-weight: 600;
  color: var(--ink); margin: .5rem 0 1.5rem;
}
.contact-mail a { color: var(--accent); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .75rem .85rem; transition: border-color .18s ease, box-shadow .18s ease;
}
.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) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .25rem; }

/* ---- CTA band ------------------------------------------------------------ */
.cta {
  background: var(--accent-deep); color: #fff; text-align: center; border: 0;
}
.cta h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta p { color: #c9dce7; }
.cta .btn-primary { background: #fff; color: var(--accent-deep); }
.cta .btn-primary:hover { background: #eaf2f7; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: 3rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-brand { max-width: 34ch; }
.footer-brand .brand { margin-bottom: .75rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; margin: 0; }
.footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; font-weight: 600; }
.footer-col a { display: block; color: var(--body); font-size: .95rem; padding: .25rem 0; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  font-size: .85rem; color: var(--muted);
}
.footer-bottom .markets { letter-spacing: .04em; }

/* ---- Utility ------------------------------------------------------------- */
.stack > * + * { margin-top: 1rem; }
.mt-sm { margin-top: 1rem; } .mt-md { margin-top: 2rem; }
.hidden-visually {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Brand logo image ---------------------------------------------------- */
.brand { align-items: center; }
.brand img { height: 30px; width: auto; display: block; }
.footer-brand .brand img { height: 32px; }

/* ---- Metrics strip ------------------------------------------------------- */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.metric { background: var(--surface); padding: 1.9rem 1.25rem; text-align: center; }
.metric .m-value {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); font-weight: 680;
  color: var(--ink); letter-spacing: -.02em; line-height: 1;
}
.metric .m-value small { font-size: .5em; font-weight: 650; color: var(--accent); vertical-align: super; }
.metric .m-label { margin-top: .65rem; font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 720px) { .metrics { grid-template-columns: repeat(2, 1fr); } }

/* ---- Trust badges -------------------------------------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.15rem; border: 1px solid var(--line-strong); border-radius: 100px;
  background: var(--surface); font-weight: 600; font-size: .9rem; color: var(--ink);
}
.badge svg { color: var(--accent); flex: none; }

/* ---- Delivery steps ------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { padding-top: 1.25rem; border-top: 2px solid var(--accent); }
.step .s-num { font-variant-numeric: tabular-nums; font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.step h3 { font-size: 1.15rem; margin: .45rem 0 .4rem; }
.step p { margin: 0; color: var(--body); font-size: .95rem; }

/* ---- Case studies -------------------------------------------------------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 820px) { .cases { grid-template-columns: 1fr; } }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.case .c-tag { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.case h3 { font-size: 1.3rem; margin: .6rem 0 1.1rem; }
.case dl { margin: 0; }
.case dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 1rem; }
.case dd { margin: .3rem 0 0; color: var(--body); font-size: .95rem; }

/* ---- Network statement callout ------------------------------------------- */
.statement { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 1.5rem 1.75rem; border-radius: 0 var(--radius) var(--radius) 0; }
.statement p { margin: 0; font-size: 1.12rem; color: var(--ink); font-weight: 500; line-height: 1.5; }

/* ---- v3: broadened grid, technology partners, arrow links, footer legal --- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .grid-4 { grid-template-columns: 1fr; } }

.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .tech-grid { grid-template-columns: 1fr; } }
.tech-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; background: var(--surface); }
.tech-card h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.tech-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.arrow-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-weight: 600; font-size: .92rem; color: var(--accent); }
.arrow-link:hover { gap: .65rem; text-decoration: none; }

.footer-legal { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-legal p { margin: 0 0 .6rem; color: var(--muted); font-size: .88rem; max-width: 74ch; }
.footer-legal strong { color: var(--body); }
.footer-legal .legal-lines { font-size: .82rem; line-height: 1.7; }

.hq-block { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hq-block .hq-title { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 .75rem; }
.hq-block p { margin: 0 0 .5rem; color: var(--muted); font-size: .92rem; }
.hq-block .legal-lines { line-height: 1.7; }
.hq-block strong { color: var(--ink); }

/* ---- v4: single-column contact ------------------------------------------ */
.contact-single { max-width: 620px; margin-inline: auto; text-align: center; }
.contact-single .lead, .contact-single .measure { margin-inline: auto; }
.contact-single .contact-mail { justify-content: center; }
.contact-single .hq-block { text-align: center; }
