/* ============================================================
   Nuwona — design tokens
   ============================================================ */
:root {
  --navy: #0d2b52;
  --text-secondary: #41597a;
  --muted: #8298b1;
  --muted-2: #5a7186;
  --blue: #1e6fc4;
  --blue-2: #2b8fd4;
  --blue-3: #1b5fae;
  --cyan: #4bb5d8;
  --teal: #2f8f80;

  --border-1: #dbe6f0;
  --border-2: #c8d8e8;
  --border-3: #e4ecf4;
  --border-teal: #c9e2de;

  --bg-tint: #f4f8fb;
  --white: #fff;

  --gradient-brand: linear-gradient(120deg, #2b8fd4, #2f8f80);
  --gradient-heading: linear-gradient(100deg, #2b8fd4, #2f8f80);

  --radius-card: 12px;
  --radius-section: 16px;
  --radius-btn: 8px;
  --radius-pill: 999px;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  --page-max: 1160px;
  --page-pad: 64px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

img { max-width: 100%; display: block; }

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { color: var(--teal); }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.gradient-word {
  background: var(--gradient-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  min-height: 44px;
  cursor: pointer;
  border: none;
  line-height: 1.2;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(43, 143, 212, 0.25);
}
.btn--primary:hover { color: #fff; opacity: 0.94; }

.btn--secondary {
  color: var(--navy);
  border: 1.5px solid var(--border-2);
  background: transparent;
}
.btn--secondary:hover { color: var(--navy); border-color: var(--blue); }

.btn--nav {
  background: var(--gradient-brand);
  color: #fff;
  padding: 11px 22px;
  font-size: 14px;
}
.btn--nav:hover { color: #fff; opacity: 0.94; }

.btn--small {
  padding: 8px 16px;
  font-size: 13px;
  min-height: 40px;
  color: var(--navy);
  border: 1.5px solid var(--border-2);
  background: transparent;
}
.btn--small:hover { color: var(--navy); border-color: var(--blue); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 56px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-3);
}

.site-header__logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}
.site-header__logo img { height: 40px; width: auto; }

.site-header__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--blue); }
.nav-link[aria-current="page"],
.nav-link[aria-current="location"] {
  color: var(--navy);
  border-bottom-color: var(--blue);
}

.nav-menu { position: relative; }
.nav-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  background: none;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  cursor: pointer;
  font: inherit;
}
.nav-menu__toggle svg {
  width: 10px;
  transition: transform 160ms ease;
}
.nav-menu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-submenu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 14px);
  left: 50%;
  width: 320px;
  padding: 10px;
  border: 1px solid var(--border-1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(13, 43, 82, 0.14);
  transform: translateX(-50%);
}
.nav-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--text-secondary);
  line-height: 1.35;
}
.nav-submenu a:hover,
.nav-submenu a[aria-current="page"] {
  color: var(--blue);
  background: var(--bg-tint);
}
.nav-submenu .nav-submenu__overview {
  margin-bottom: 5px;
  border-bottom: 1px solid var(--border-3);
  border-radius: 7px 7px 0 0;
  font-weight: 600;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid #d4e0ec;
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
  text-decoration: none;
}
.lang-toggle__option {
  padding: 4px 11px;
  color: var(--text-secondary);
  text-decoration: none;
}
.lang-toggle__option--active {
  background: var(--navy);
  color: #fff;
}
a.lang-toggle__option:hover { color: var(--blue); }
a.lang-toggle__option--active:hover { color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-btn);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 88px 0 84px;
  overflow: clip;
}
.hero--page { padding: 72px 0 48px; }

.hero__motif {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  opacity: 0.5;
}

.hero__inner {
  position: relative;
}

.kicker {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 18px;
}

.hero__title {
  font-weight: 700;
  font-size: 64px;
  line-height: 1.08;
  max-width: 17ch;
}
.hero__title--page { font-size: 56px; max-width: none; }

.hero__subhead {
  font-size: 17.5px;
  line-height: 1.7;
  max-width: 54ch;
  margin-top: 26px;
  color: var(--text-secondary);
}
.hero__subhead--page { font-size: 17px; max-width: 58ch; margin-top: 24px; }

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ============================================================
   Sections & headings
   ============================================================ */
.section { padding: 64px 0; }
.section--tint { background: var(--bg-tint); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.section-head__link {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.section-title { font-weight: 700; font-size: 34px; }
.section-title--sub { font-size: 32px; margin-bottom: 12px; }

.section-lead {
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 0 28px;
}

/* ============================================================
   Pillars grid (home)
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.pillar {
  background: #fff;
  padding: 36px 40px;
  display: flex;
  gap: 22px;
}
.pillar__index {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
}
.pillar__title { font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.pillar__desc { margin: 0; font-size: 14.5px; color: var(--text-secondary); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.card__title { font-family: var(--font-heading); font-weight: 600; font-size: 19px; margin: 0; }
.card__desc { margin: 0; font-size: 14px; color: var(--text-secondary); flex: 1; }
.card__link { font-size: 14px; font-weight: 600; color: var(--blue); }

.card--highlight {
  background: linear-gradient(120deg, rgba(43, 143, 212, 0.08), rgba(47, 143, 128, 0.08));
  border-color: var(--border-teal);
}
.card--highlight .card__tag { color: var(--teal); }
.card--highlight .card__link { color: var(--teal); }

.badge {
  font-family: var(--font-body);
  font-size: 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  color: var(--text-secondary);
  font-weight: 500;
  vertical-align: middle;
  margin-left: 6px;
}

.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
}
.icon-chip svg { width: 20px; height: 20px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
/* ============================================================
   Dark CTA band
   ============================================================ */
.cta-dark {
  background: var(--navy);
  padding: 64px 0;
  position: relative;
  overflow: clip;
}
.cta-dark--section {
  border-radius: var(--radius-section);
  padding: 48px 56px;
}
.cta-dark__glow-a {
  position: absolute;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43, 143, 212, 0.35), transparent);
}
.cta-dark__glow-b {
  position: absolute;
  left: -100px;
  bottom: -180px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 143, 128, 0.3), transparent);
}
.cta-dark__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  color: #fff;
  position: relative;
}
.cta-dark__body { flex: 1; min-width: 320px; }
.cta-dark__title { font-weight: 700; font-size: 28px; }
.cta-dark--section .cta-dark__title { font-size: 26px; }
.cta-dark__desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 12px;
  max-width: 52ch;
}

/* ============================================================
   Tinted band (in-house software)
   ============================================================ */
.tinted-band {
  background: var(--bg-tint);
  border-radius: var(--radius-section);
  padding: 48px 56px;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  padding-bottom: 72px;
  align-items: start;
}

.contact-form {
  background: var(--bg-tint);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-section);
  padding: 44px 48px;
}
.contact-form__title { font-weight: 700; font-size: 24px; margin-bottom: 28px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { margin-top: 18px; }

label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

input, textarea {
  font: inherit;
  font-size: 14px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, textarea:focus-visible { border-color: var(--blue); outline: none; }

.form-success {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--teal);
  font-weight: 600;
}
.form-error {
  margin: 20px 0 0;
  font-size: 14px;
  color: #c0392b;
  font-weight: 600;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-side { display: flex; flex-direction: column; gap: 32px; }
.contact-side__title { font-weight: 600; font-size: 19px; margin-bottom: 10px; }
.contact-side__text { font-size: 14.5px; line-height: 24px; color: var(--text-secondary); margin: 0; }
.contact-side__text strong { color: var(--navy); }

.note-box {
  background: linear-gradient(120deg, rgba(43, 143, 212, 0.08), rgba(47, 143, 128, 0.08));
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-card);
  padding: 22px 26px;
}
.note-box p { font-size: 14px; line-height: 24px; margin: 0; color: var(--text-secondary); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  font-size: 13px;
  line-height: 22px;
  color: var(--muted-2);
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.site-footer img { height: 36px; width: auto; margin-bottom: 12px; }
.site-footer strong { color: var(--navy); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  :root { --page-pad: 40px; }
  .site-header { padding: 18px 24px; }
}

@media (max-width: 900px) {
  .hero__motif { display: none; }
  .hero__title { font-size: 44px; }
  .hero__title--page { font-size: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sub-grid-2 { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --page-pad: 24px; }

  .site-header { flex-wrap: nowrap; padding: 14px 20px; position: relative; }
  .site-header__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-3);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 24px 28px;
    z-index: 20;
  }
  .site-header__links.is-open { display: flex; }
  .nav-menu { width: 100%; }
  .nav-menu__toggle { width: 100%; justify-content: space-between; }
  .nav-submenu {
    position: static;
    width: 100%;
    margin-top: 10px;
    padding: 6px 0 4px 12px;
    border: 0;
    border-left: 2px solid var(--border-2);
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .nav-toggle { display: inline-flex; }
  .btn--nav { padding: 9px 16px; font-size: 13px; }

  .hero { padding: 56px 0 48px; }
  .hero--page { padding: 48px 0 32px; }
  .hero__title { font-size: 34px; }
  .hero__title--page { font-size: 32px; }
  .hero__subhead { font-size: 16px; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head__link { margin-left: 0; }

  .cta-dark__inner { text-align: left; }
  .cta-dark--section { padding: 32px 28px; }
  .tinted-band { padding: 32px 24px; }

  .contact-form { padding: 28px 24px; }
  .form-grid { grid-template-columns: 1fr; }

  .site-footer { gap: 32px; padding: 32px 0 40px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 28px; }
  .hero__title--page { font-size: 26px; }
}

/* Services share the existing typography, cards and brand palette. */
.service-section { padding-top: 40px; padding-bottom: 40px; }
.service-heading { margin-bottom: 28px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; }
.service-card .card__link { margin-top: auto; }
.service-back { display: inline-block; margin: 20px 0; }
.service-deliverables { padding-left: 22px; margin: 24px 0 32px; color: var(--text-secondary); }
.service-deliverables li + li { margin-top: 12px; }
.service-crosslink { margin-bottom: 32px; }
.page-footer { padding-top: 24px; padding-bottom: 56px; }
.pillar .card__link { display: inline-block; margin-top: 16px; }
.pillars > .pillar:last-child:nth-child(odd),
.service-grid > .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.site-footer > div { min-width: 0; }

@media (min-width: 761px) and (max-width: 1100px) {
  .site-header { flex-wrap: wrap; gap: 16px; }
  .site-header__links { flex-wrap: wrap; gap: 18px; }
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 28px 24px; }
  .service-section { padding-top: 28px; padding-bottom: 28px; }
}

/* Service scope: grouped cards with a checklist of offerings. */
.group-card__desc { font-size: 14px; color: var(--text-secondary); }
.group-card--wide { grid-column: 1 / -1; }
.check-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-3);
  display: grid;
  gap: 14px;
}
.group-card--wide .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.check-list li {
  position: relative;
  padding-left: 28px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='9' cy='9' r='8' stroke='%232b8fd4' stroke-width='1.4'/%3E%3Cpath d='m5.6 9.2 2.2 2.2 4.6-4.8' stroke='%232f8f80' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.check-list__title { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.4; color: var(--navy); }
.check-list__desc { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--muted-2); }

/* Service scope: two-column offer list (databases). */
.offer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.offer {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-1);
  color: inherit;
}
.offer__body { flex: 1; }
.offer__title { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 19px; color: var(--navy); }
.offer__desc { display: block; margin-top: 6px; font-size: 14.5px; color: var(--text-secondary); }
.offer__arrow { width: 18px; height: 18px; flex-shrink: 0; margin-top: 30px; color: var(--blue); transition: transform 160ms ease; }
.offer:hover .offer__title { color: var(--blue); }
.offer:hover .offer__arrow { transform: translateX(3px); }

/* Certifications */
.cert-group {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  padding: 22px 24px;
}
.cert-group__title { font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 13px;
  line-height: 1.3;
  padding: 5px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  background: var(--bg-tint);
  color: var(--text-secondary);
}

@media (max-width: 760px) {
  .group-card--wide .check-list, .offer-list { grid-template-columns: 1fr; }
  .offer { padding: 20px 0; }
  .offer__arrow { margin-top: 4px; }
  .site-header__logo img { height: 34px; }
}
