/* ============================================================
   Specs BV – style.css
   Simple, calm, fast. No framework.
   ============================================================ */

/* ── Custom properties ────────────────────────────────────── */
:root {
  --blue:        #3B6EA0;
  --blue-dark:   #2C5280;
  --blue-xlight: #EBF3FB;
  --bg:          #FFFFFF;
  --text:        #1E2B3A;
  --text-muted:  #4A5C6E;
  --border:      #D4E2F0;
  --radius:      8px;
  --max-w:       1100px;
  --gap:         1.5rem;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }

/* ── Fonts (self-hosted) ──────────────────────────────────── */
@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/OpenSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/OpenSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section { padding-block: 4rem; }
.section--alt { background: var(--blue-xlight); }
.section-intro { color: var(--text-muted); margin-bottom: 2rem; max-width: 60ch; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.nav-logo:hover { text-decoration: none; opacity: 0.9; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue-dark) !important; text-decoration: none !important; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding-block: 5rem;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero-text { flex: 1; }
.hero-text h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 50ch;
}
.btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--blue) !important;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none !important;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.9; }
.hero-svg { flex-shrink: 0; width: 260px; opacity: 0.95; }

/* ── Diensten cards ───────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
}
.card {
  background: var(--blue-xlight);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--blue);
}
.card h3 { color: var(--blue); font-size: 1.1rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Sectoren ─────────────────────────────────────────────── */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
}
.sector {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sector-icon {
  width: 36px;
  height: 36px;
  color: var(--blue);
}
.sector h3 { font-size: 1rem; color: var(--text); }
.sector p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ── Team ─────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
}
.team-card {
  background: var(--blue-xlight);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.team-name {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 0.15rem;
}
.team-bio { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.team-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}
.team-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.team-links a:hover { color: var(--blue-dark); }
.team-github {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.team-github a { color: var(--blue); font-weight: 600; }

/* ── QA track record ──────────────────────────────────────── */
.qa-inner {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}
.qa-text { flex: 1; }
.qa-text h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
.qa-text ul { margin-bottom: 0.5rem; }
.qa-text li { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.25rem; }
.qa-text a { color: var(--blue); }
.qa-svg { flex-shrink: 0; width: 200px; opacity: 0.85; align-self: center; }

/* ── Klanten ──────────────────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.client-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.client-card:hover {
  box-shadow: 0 4px 16px rgba(59, 110, 160, 0.15);
  border-color: var(--blue);
  text-decoration: none;
}
.client-logo {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--blue-xlight);
}
.client-logo img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  object-fit: contain;
}
.client-name {
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { margin-top: 2rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 1.25rem;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item dt {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.faq-item dd {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-left: 0;
  line-height: 1.6;
}

/* ── Footer / Contact ─────────────────────────────────────── */
.site-footer {
  background: var(--blue-dark);
  color: #fff;
  padding-block: 4rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}
.footer-cta h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  max-width: 22ch;
  margin-bottom: 0.5rem;
}
.footer-cta p { color: rgba(255,255,255,0.75); }
.footer-contact { font-style: normal; }
.footer-contact p { margin-bottom: 0.4rem; color: rgba(255,255,255,0.85); }
.footer-contact a { color: rgba(255,255,255,0.9); text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-legal a { color: rgba(255,255,255,0.6); }
.footer-legal a:hover { color: rgba(255,255,255,0.85); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding-block: 3rem; }

  /* Nav */
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .nav-links li:not(:last-child) { display: none; }

  /* Hero */
  .hero { padding-block: 3.5rem; }
  .hero-inner { flex-direction: column-reverse; gap: 2rem; }
  .hero-svg { width: 180px; align-self: center; }
  .hero-sub { max-width: 100%; }

  /* QA */
  .qa-inner { flex-direction: column; }
  .qa-svg { width: 150px; align-self: center; }

  /* Clients */
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
