/* ========================================================================
   Dorentum B.V. — site styles
   Palette derived from the Dorentum logo: deep navy + tech-blue gradient.
   Mobile-first; scales up at 640px / 900px breakpoints.
   ======================================================================== */

:root {
  --navy:        #0e2742;
  --navy-2:      #14324f;
  --blue:        #2f6ea4;
  --blue-bright: #4a9fd4;
  --ink:         #1a2b3c;
  --muted:       #5b6b7b;
  --line:        #e3e9ef;
  --bg:          #ffffff;
  --bg-alt:      #f5f8fb;
  --radius:      16px;
  --maxw:        1080px;
  --grad: linear-gradient(120deg, #2f6ea4 0%, #4a9fd4 55%, #6fbce6 100%);
  --shadow: 0 1px 2px rgba(14,39,66,.05), 0 12px 32px -12px rgba(14,39,66,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .6rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand-logo { height: 30px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 4vw, 32px);
  font-weight: 500;
  font-size: .95rem;
}
.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a:hover { color: var(--blue); }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(74,159,212,.18), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  padding: clamp(56px, 12vw, 120px) 0 clamp(56px, 12vw, 110px);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.1rem, 7vw, 4rem);
  font-weight: 700;
  margin: .4rem 0 1.1rem;
}
.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
  max-width: 60ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

/* speed-line motif echoing the logo */
.hero-stream {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .5;
  pointer-events: none;
}
.hero-stream span {
  position: absolute;
  right: -20%;
  height: 3px;
  border-radius: 999px;
  background: var(--grad);
  animation: drift 9s linear infinite;
}
.hero-stream span:nth-child(1) { top: 22%; width: 240px; animation-delay: 0s;   opacity: .7; }
.hero-stream span:nth-child(2) { top: 38%; width: 160px; animation-delay: 1.2s; opacity: .5; }
.hero-stream span:nth-child(3) { top: 55%; width: 320px; animation-delay: 2.1s; opacity: .6; }
.hero-stream span:nth-child(4) { top: 70%; width: 130px; animation-delay: 3.4s; opacity: .4; }
.hero-stream span:nth-child(5) { top: 84%; width: 210px; animation-delay: 4.0s; opacity: .55; }
@keyframes drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-160vw); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stream span { animation: none; }
  html { scroll-behavior: auto; }
}
/* The drifting speed-lines don't read well on narrow screens — hide them. */
@media (max-width: 760px) {
  .hero-stream { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 10vw, 104px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 620px; margin-bottom: clamp(32px, 6vw, 56px); }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
.section-sub { color: var(--muted); margin-top: .8rem; font-size: 1.05rem; }

/* ---------- Project cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}
.card-logo img { width: 100%; height: 100%; object-fit: cover; }
.card-logo--svg {
  display: grid;
  place-items: center;
  padding: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.card-logo--svg img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { font-size: 1.35rem; }
.card-tag {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--blue);
  margin: 4px 0 12px;
}
.card p { color: var(--muted); font-size: .98rem; }
.card-link {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}
.card-link:hover { color: var(--blue); }
.card-link--muted { color: var(--muted); font-weight: 500; }

/* ---------- Over ons ---------- */
.over-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.over-text h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-bottom: 1rem; }
.over-text p { color: var(--muted); margin-bottom: 1rem; max-width: 56ch; }
.over-facts {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.over-facts h3 { font-size: 1.1rem; margin-bottom: 16px; }
.over-facts dl { display: grid; gap: 14px; }
.over-facts dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.over-facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.over-facts dt { color: var(--muted); font-size: .92rem; }
.over-facts dd { font-weight: 600; text-align: right; }

/* ---------- Contact ---------- */
.contact-inner { max-width: 720px; }
.form-slot {
  margin-top: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.form-slot iframe { border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cdd9e4;
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.footer-brand img { height: 26px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { margin-top: 10px; font-size: .92rem; color: #9fb2c4; }
.footer-legal { font-size: .85rem; color: #8499ab; }

/* ---------- Responsive scale-up ---------- */
@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
@media (min-width: 760px) {
  .over-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

/* very small phones: keep nav from crowding the logo */
@media (max-width: 380px) {
  .site-nav { gap: 12px; font-size: .88rem; }
  .nav-cta { padding: 8px 14px; }
  .brand-logo { height: 26px; }
}
