/* Code-it company site. No external fonts, scripts or trackers by design. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-card: #ffffff;
  --text: #14213d;
  --text-muted: #4a5874;
  --border: #dde4ef;
  --brand: #0b5cad;
  --brand-strong: #08427d;
  --brand-contrast: #ffffff;
  --accent: #12a37a;
  --hero-from: #0a2a52;
  --hero-to: #0b5cad;
  --hero-text: #ffffff;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 4px 16px rgba(20, 33, 61, 0.06);
  --radius: 12px;
  --max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1420;
    --bg-soft: #121b2b;
    --bg-card: #162134;
    --text: #e6ecf5;
    --text-muted: #a3b1c8;
    --border: #26344d;
    --brand: #5aa6f0;
    --brand-strong: #8cc2f7;
    --brand-contrast: #0d1420;
    --accent: #3ccf9f;
    --hero-from: #0a1a33;
    --hero-to: #11386a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-strong);
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 8px;
  background: var(--bg-card);
  padding: 8px 12px;
  z-index: 10;
}

/* Anchored sections must not hide under the sticky header. */
section[id] {
  scroll-margin-top: 72px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

.site-nav .lang-switch {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Hero */

.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--hero-text);
  padding: 88px 0 96px;
  text-align: center;
}

.hero h1 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lead {
  font-size: 1.2rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
}

.hero .actions {
  justify-content: center;
}

/* Business-card hero: text beside the portrait, portrait above the text on narrow screens. */
.hero-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 340px;
  align-items: center;
  text-align: left;
}

.hero-grid h1,
.hero-grid p.lead {
  margin-left: 0;
  margin-right: 0;
}

.hero-grid .actions {
  justify-content: flex-start;
}

.portrait {
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 4px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-grid .actions {
    justify-content: center;
  }

  .portrait {
    order: -1;
    width: 220px;
    margin: 0 auto;
  }

  .portrait img {
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 50% 20%;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
}

.button-primary {
  background: #ffffff;
  color: #0a2a52;
}

.button-primary:hover {
  color: #0a2a52;
  background: #e8f1fb;
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.button-outline:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.button-brand {
  background: var(--brand);
  color: var(--brand-contrast);
}

.button-brand:hover {
  background: var(--brand-strong);
  color: var(--brand-contrast);
}

.button-brand-outline {
  border-color: var(--brand);
  color: var(--brand);
}

.button-brand-outline:hover {
  border-color: var(--brand-strong);
  color: var(--brand-strong);
}

/* Key figures — overlap the bottom of the hero */

.stats {
  margin-top: -48px;
}

.stats ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stats li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stats strong {
  display: block;
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1.2;
}

/* Sections */

.section {
  padding: 64px 0;
}

.section-soft {
  background: var(--bg-soft);
}

/* Section titles and intros sit centred above full-width content, so wide screens stay balanced. */
.section > .container > h2 {
  text-align: center;
}

.section-intro {
  max-width: 760px;
  color: var(--text-muted);
  margin: 0 auto 40px;
  text-align: center;
}

.section > .container > .actions {
  justify-content: center;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--brand);
  margin-bottom: 14px;
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

.muted {
  color: var(--text-muted);
}

.pair {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.pair > .card h2 {
  font-size: 1.4rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.chips li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.9rem;
  background: var(--bg-card);
}

.section > .container > .chips {
  justify-content: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Client logos. Tiles stay white in dark mode so every logo keeps its own colours readable. */

.logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.logos li {
  width: min(160px, calc(50% - 6px));
  display: grid;
  place-items: center;
  height: 96px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.logos img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.logos li:hover img {
  filter: none;
  opacity: 1;
}

.logos-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 16px 0 0;
}

/* Engagement steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 48px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-contrast);
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* Role list inside a card */

.roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.roles li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 14px 16px;
}

.roles strong {
  display: block;
}

.roles span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Speaker highlight below the training cards */

.speaker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin-top: 20px;
}

.speaker .icon {
  margin-bottom: 0;
}

.speaker h3 {
  margin-top: 8px;
}

.speaker .chips {
  margin-bottom: 0;
}

/* Experience timeline */

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 860px;
  border-left: 2px solid var(--border);
}

.timeline > li {
  position: relative;
  padding: 0 0 28px 28px;
}

.timeline > li:last-child {
  padding-bottom: 0;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--brand);
}

.timeline .period {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.timeline h3 {
  margin: 2px 0 4px;
}

.timeline p {
  margin: 0;
  color: var(--text-muted);
}

.timeline .chips {
  margin: 10px 0 0;
}

.timeline .chips li {
  font-size: 0.8rem;
  padding: 2px 10px;
}

/* Certifications */

.cert-group h3 {
  margin-bottom: 12px;
}

.cert-group .chips {
  margin-bottom: 0;
}

/* Product teaser */

.product {
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.product svg {
  width: 72px;
  height: 72px;
}

.product .actions {
  margin-top: 8px;
}

@media (max-width: 560px) {
  .product {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product svg {
    margin: 0 auto;
  }

  .product .actions {
    justify-content: center;
  }
}

/* Contact */

.contact {
  text-align: center;
}

.contact .actions {
  justify-content: center;
}

/* Long-form pages */

.prose {
  max-width: 760px;
  padding: 48px 16px 64px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}

.prose ul {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 6px;
}

.updated {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 32px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer address {
  font-style: normal;
}

.disclaimer {
  flex-basis: 100%;
  font-size: 0.8rem;
}
