/* Codesigma — site stylesheet
   Corporate light theme: white and cool-grey sections, deep navy for text and bands,
   one blue for actions and links. Single typeface (IBM Plex Sans). */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0a2342;        /* bands, footer */
  --navy-2: #133a68;      /* borders and hovers on navy */
  --ink: #0f1f35;         /* headings */
  --text: #2f3d52;        /* body copy */
  --muted: #56657a;       /* secondary copy (≈6:1 on white) */
  --blue: #1d5bd6;        /* primary action / links (≈5.8:1 on white) */
  --blue-dark: #1648ad;
  --blue-tint: #eaf1fd;
  --surface: #f4f6fa;     /* alternate section background */
  --white: #ffffff;
  --line: #dde3ec;
  --on-navy: #ffffff;
  --on-navy-muted: #b8c5d9;
  --ok: #1a7f4b;

  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --h1: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem);
  --h2: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem);
  --h3: 1.125rem;

  --wrap: 75rem;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 31, 53, 0.06), 0 8px 24px rgba(15, 31, 53, 0.06);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: var(--h1); font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: var(--h2); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: var(--h3); font-weight: 600; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--blue); color: var(--white); padding: 10px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; color: var(--white); }

.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font: 600 0.975rem/1.2 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--blue-tint); color: var(--navy); }
.btn svg { width: 16px; height: 16px; }

/* ---------- header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--white);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy); text-decoration: none;
  font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em;
}
.brand:hover { color: var(--navy); }
.brand svg { width: 30px; height: 34px; flex: none; }
.brand b { color: var(--blue); font-weight: 700; }
.brand small { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em; color: var(--muted); margin-top: -2px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 6px;
}
.nav a:hover { color: var(--blue); background: var(--surface); }
.nav a.btn { margin-left: 12px; color: var(--white); padding: 10px 18px; }
.nav a.btn:hover { background: var(--blue-dark); color: var(--white); }

.menu-btn {
  display: none; background: var(--white); border: 1px solid var(--line); color: var(--ink);
  border-radius: 6px; padding: 8px 14px; font: 500 0.9rem var(--font); cursor: pointer;
}

@media (max-width: 900px) {
  .has-js .menu-btn { display: inline-block; }
  .has-js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px));
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .has-js .nav.open { display: flex; }
  .has-js .nav a.btn { margin: 8px 0 0; }
  html:not(.has-js) .site-header .wrap { flex-wrap: wrap; padding-block: 10px; }
  html:not(.has-js) .nav { flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero h1 { margin-top: 14px; }
.hero .lede { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; padding: 0; list-style: none;
  font-size: 0.925rem; color: var(--text);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

.offer {
  background: var(--navy); color: var(--on-navy);
  border-radius: 10px; padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 20px 40px -20px rgba(10, 35, 66, 0.45);
  min-width: 0;
}
.offer h2 { color: var(--on-navy); font-size: 1.15rem; }
.offer > p { color: var(--on-navy-muted); font-size: 0.925rem; margin-top: 6px; }
.offer ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; }
.offer li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-block: 14px; border-top: 1px solid var(--navy-2); }
.offer li:first-child { border-top: 0; padding-top: 4px; }
.offer .ico {
  width: 36px; height: 36px; border-radius: 8px; background: var(--navy-2);
  display: grid; place-items: center; color: #8fb4ff;
}
.offer .ico svg { width: 20px; height: 20px; }
.offer strong { display: block; color: var(--on-navy); font-weight: 600; font-size: 0.975rem; }
.offer span { display: block; color: var(--on-navy-muted); font-size: 0.875rem; line-height: 1.5; margin-top: 2px; }

@media (max-width: 920px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* standards strip */
.standards { border-bottom: 1px solid var(--line); background: var(--white); }
.standards .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-block: 22px; }
.standards p { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.standards ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
.standards li { font-weight: 600; color: var(--ink); font-size: 0.95rem; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 8vw, 104px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 52px); }
.head h2 { margin-top: 10px; }
.head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* services */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; display: grid; align-content: start; gap: 12px; min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: #c3d2ea; box-shadow: var(--shadow); }
.card .ico {
  width: 44px; height: 44px; border-radius: 8px; background: var(--blue-tint); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 6px;
}
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card ul { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; font-size: 0.9rem; }
.card li { position: relative; padding-left: 22px; }
.card li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 10px; height: 6px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* industries */
.industries {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  list-style: none; margin: 0; padding: 0; background: var(--white); border-radius: var(--radius); overflow: hidden;
}
.industries li { padding: 26px 26px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.industries p { color: var(--muted); font-size: 0.925rem; margin-top: 8px; }
@media (max-width: 900px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .industries { grid-template-columns: minmax(0, 1fr); } }

/* why */
.why { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.why .head { margin-bottom: 0; }
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 36px; }
.why-list div { min-width: 0; }
.why-list h3 { display: flex; align-items: center; gap: 10px; }
.why-list h3 svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.why-list p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
@media (max-width: 900px) { .why { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .why-list { grid-template-columns: minmax(0, 1fr); } }

/* process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: step; position: relative; }
.process::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--line);
}
.process li { counter-increment: step; position: relative; min-width: 0; }
.process li::before {
  content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue); color: var(--blue);
  font-weight: 600; position: relative; margin-bottom: 18px;
}
.process p { color: var(--muted); font-size: 0.925rem; margin-top: 6px; }
@media (max-width: 1000px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .process li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding-bottom: 26px; }
  .process li::before { grid-row: span 2; margin: 0; }
  .process li:last-child { padding-bottom: 0; }
}

/* technologies */
.tech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tech div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; min-width: 0; }
.tech h3 { font-size: 1rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tech ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.95rem; }
@media (max-width: 960px) { .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tech { grid-template-columns: minmax(0, 1fr); } }

/* compliance */
.frameworks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.frameworks li { border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 22px 22px 24px; background: var(--white); min-width: 0; }
.frameworks strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.frameworks span { display: block; color: var(--muted); font-size: 0.925rem; margin-top: 6px; }
.fineprint { margin-top: 20px; color: var(--muted); font-size: 0.85rem; max-width: 52rem; }
@media (max-width: 960px) { .frameworks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .frameworks { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.cta { background: var(--navy); color: var(--on-navy); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: clamp(48px, 6vw, 72px); }
.cta h2 { color: var(--on-navy); }
.cta p { color: var(--on-navy-muted); margin-top: 10px; max-width: 40rem; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact .head { margin-bottom: 0; }
.details { margin: 32px 0 0; display: grid; gap: 22px; }
.details > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.details .ico { width: 40px; height: 40px; border-radius: 8px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.details .ico svg { width: 20px; height: 20px; }
.details dt { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.details dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.details address { font-style: normal; }

.form {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; box-shadow: var(--shadow);
}
.form h3 { font-size: 1.2rem; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--white);
  border: 1px solid #c9d2df; border-radius: 6px; padding: 11px 12px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(29, 91, 214, 0.25); outline-offset: 0; border-color: var(--blue); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-note { font-size: 0.85rem; color: var(--muted); flex: 1 1 16rem; }
.form-status { font-size: 0.9rem; color: var(--ok); }
.form-status:empty { display: none; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: 0.925rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; padding-block: 56px 28px; }
.site-footer .brand { color: var(--on-navy); }
.site-footer .brand b { color: #8fb4ff; }
.site-footer .brand small { color: var(--on-navy-muted); }
.site-footer .about { margin-top: 14px; max-width: 22rem; }
.site-footer h3 { color: var(--on-navy); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-navy); text-decoration: underline; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--navy-2); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.85rem; }
.legal span:first-child { margin-right: auto; }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .wrap > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } .legal span:first-child { margin-right: 0; } }

/* ---------- simple pages (privacy, 404) ---------- */
.page { padding-block: clamp(48px, 7vw, 88px); }
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(40px, 6vw, 64px); }
.page-head h1 { font-size: var(--h2); margin-top: 10px; }
.prose { max-width: 44rem; display: grid; gap: 16px; }
.prose h2 { font-size: 1.2rem; margin-top: 18px; }
.prose p, .prose li { color: var(--text); }
