/* ==========================================================================
   Aegis Consultancy BV — Stylesheet
   Donker thema | Grijs #8C8C8C + Blauw #1E3A8A + witte tekst
   ========================================================================== */

:root {
  --color-blue: #1E3A8A;
  --color-blue-light: #2f50b5;
  --color-blue-dark: #16296a;
  --color-gray: #8C8C8C;
  --color-gray-light: #b3b3b3;
  --color-bg: #0e1117;
  --color-bg-alt: #161b24;
  --color-surface: #1c2230;
  --color-surface-2: #232b3a;
  --color-border: #2c3444;
  --color-text: #ffffff;
  --color-text-muted: #c5cad3;
  --color-text-dim: #8C8C8C;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-blue: 0 8px 28px rgba(30, 58, 138, 0.35);
  --maxw: 1180px;
  --transition: 200ms ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 17px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: var(--color-gray-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #ffffff;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

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

section { position: relative; }

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

.text-blue { color: var(--color-blue-light); }
.text-gray { color: var(--color-gray); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-blue-light);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--color-blue-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-gray);
  background: var(--color-surface);
  color: #fff;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

.brand:hover { color: #fff; }

.brand .logo {
  width: auto;
  height: 40px;
  flex-shrink: 0;
}

.footer-brand .logo {
  height: 52px;
}

.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-gray);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: var(--color-surface);
}

.nav-cta { margin-left: 10px; }

/* ---------- Services dropdown ---------- */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown[data-open="true"] .nav-dropdown-toggle {
  color: #fff;
  background: var(--color-surface);
}

.nav-dropdown-toggle .caret {
  font-size: 0.7em;
  transition: transform var(--transition);
}

.nav-dropdown[data-open="true"] .nav-dropdown-toggle .caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  padding: 8px;
  display: none;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown[data-open="true"] .nav-dropdown-menu {
  display: block;
}

.nav-links .nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  color: #1c2230;
}

.nav-links .nav-dropdown-menu a:hover,
.nav-links .nav-dropdown-menu a.active {
  background: #eef1f7;
  color: var(--color-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(70px, 12vw, 130px) 0 clamp(60px, 9vw, 100px);
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(30, 58, 138, 0.4), transparent 60%),
    radial-gradient(800px 400px at 0% 20%, rgba(140, 140, 140, 0.12), transparent 55%);
}

.hero-inner {
  max-width: 760px;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero .lead {
  margin-bottom: 34px;
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 48px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  color: var(--color-gray);
  font-size: 0.9rem;
}

.hero-trust strong {
  display: block;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(60px, 9vw, 100px) 0;
}

.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 50px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 { margin-bottom: 16px; }

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-blue);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
  margin-bottom: 20px;
}

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

.card h3 { margin-bottom: 10px; color: #fff; }

.card p { font-size: 0.98rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--color-blue-light);
}

.card-link:hover { gap: 10px; color: var(--color-blue-light); }

/* Product card (links to product pages) */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--color-gray);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

/* ---------- Feature list ---------- */
.feature-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--color-text-muted);
}

.feature-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.25);
  border: 1px solid var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.feature-list .check svg { width: 12px; height: 12px; stroke: var(--color-blue-light); }

/* ---------- Product page layout ---------- */
.product-hero {
  padding: clamp(60px, 9vw, 100px) 0 clamp(40px, 6vw, 70px);
  background:
    radial-gradient(900px 460px at 85% -20%, rgba(30, 58, 138, 0.38), transparent 60%);
}

.product-hero .lead { margin-top: 18px; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.split.reverse { grid-template-columns: 0.9fr 1.1fr; }

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.panel h3 { margin-bottom: 18px; }

.stat-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: #fff;
}

.stat span { color: var(--color-gray); font-size: 0.9rem; }

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.step {
  display: flex;
  gap: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-blue);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h4 { margin-bottom: 4px; color: #fff; }
.step p { font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-blue-dark), var(--color-blue));
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-blue);
}

.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 26px; }
.cta-band .btn-primary { background: #fff; color: var(--color-blue-dark); }
.cta-band .btn-primary:hover { background: #f0f0f0; }

/* ---------- Contact / Forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info .info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
}

.contact-info .info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info .info-item .icon svg { width: 20px; height: 20px; stroke: var(--color-blue-light); }
.contact-info h4 { margin-bottom: 2px; }
.contact-info a { color: var(--color-text-muted); }
.contact-info a:hover { color: #fff; }

.company-details-title {
  margin-top: 34px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.company-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  font-size: 0.92rem;
}

.company-details dt {
  color: var(--color-gray);
  font-weight: 500;
}

.company-details dd {
  margin: 0;
  color: var(--color-text-muted);
}

.form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
}

.field label .req { color: var(--color-blue-light); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input::placeholder,
.field textarea::placeholder { color: #6a7180; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-blue-light);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.3);
}

.field textarea { resize: vertical; min-height: 130px; }

.field.error input,
.field.error select,
.field.error textarea {
  border-color: #ef4444;
}

.field-error {
  display: none;
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 6px;
}

.field.error .field-error { display: block; }

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

.form-consent input { width: auto; margin-top: 4px; }

.form button[type="submit"] { width: 100%; justify-content: center; }

.form-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--color-gray);
  text-align: center;
}

/* Form status banner */
.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.form-status.show { display: block; }

.form-status.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #86efac;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 0.94rem; color: var(--color-text-muted); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-gray);
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px 24px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  /* Services dropdown inline binnen het mobiele menu */
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
  }
  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 4px 0 4px 10px;
    box-shadow: none;
  }
  /* Op mobiel niet op hover/focus openen, alleen via klik (data-open) */
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown[data-open="true"] .nav-dropdown-menu {
    display: block;
  }
}

@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 24px; }
  .form, .panel { padding: 24px; }
  .hero-trust { gap: 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
