/* ============================================================
   Van Duuren IT Consultancy — public site styles
   Palette: deep navy + confident blue accent. Light & dark.
   ============================================================ */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', var(--font-sans);

  --navy-900: #0b1f33;
  --navy-800: #0f2740;
  --navy-700: #16324f;

  --bg: #ffffff;
  --surface: #f4f7fb;
  --surface-2: #eef2f8;
  --text: #16202c;
  --text-muted: #5a6b7b;
  --border: #e0e7ef;

  /* Dutch flag (red / white / blue) + official Dutch orange, used subtly */
  --accent: #21468b;              /* vlagblauw — primary accent */
  --accent-strong: #17356a;
  --accent-soft: rgba(33, 70, 139, 0.10);
  --nl-red: #ae1c28;              /* vlagrood — sparingly (stripe, required *) */
  --nl-orange: #e4761b;           /* Nederlands oranje — warm accent */
  --nl-orange-strong: #bf5f11;    /* darker orange for accessible text on white */

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 64, 0.06), 0 2px 8px rgba(15, 39, 64, 0.05);
  --shadow-md: 0 6px 24px rgba(15, 39, 64, 0.10);
  --maxw: 1120px;
  --gap: clamp(1rem, 3vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1622;
    --surface: #10202f;
    --surface-2: #142838;
    --text: #e8eef5;
    --text-muted: #9db0c2;
    --border: #22384b;
    --accent: #6ea3e6;
    --accent-strong: #93bcf0;
    --accent-soft: rgba(110, 163, 230, 0.14);
    --nl-red: #e2636d;
    --nl-orange: #f0985a;
    --nl-orange-strong: #f0985a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.01em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.container-narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* Subtle Dutch-flag tricolor accent at the very top of the page */
.nl-stripe {
  height: 4px; width: 100%;
  background: linear-gradient(90deg,
    var(--nl-red) 0 33.333%,
    #ffffff 33.333% 66.666%,
    var(--accent) 66.666% 100%);
  box-shadow: inset 0 -1px 0 rgba(15, 39, 64, 0.10);
}
@media (prefers-color-scheme: dark) {
  .nl-stripe { background: linear-gradient(90deg, #ae1c28 0 33.333%, #ffffff 33.333% 66.666%, #21468b 66.666% 100%); box-shadow: none; }
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; font-weight: 600; font-size: 0.98rem;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 42px; width: auto; }
@media (max-width: 820px) { .brand-logo { height: 34px; } }
@media (max-width: 380px) { .brand-logo { height: 30px; } }

.site-nav { margin-left: auto; }
.nav-list {
  display: flex; align-items: center; gap: 0.35rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  color: var(--text); font-weight: 500; font-size: 0.95rem;
  padding: 0.5rem 0.8rem; border-radius: 8px;
}
.nav-list a:hover { background: var(--surface-2); text-decoration: none; color: var(--accent); }
.nav-cta { color: var(--accent) !important; }
.nav-cta:hover { background: var(--accent-soft) !important; }

.lang-switch { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 999px; }
.lang-switch a {
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  padding: 0.3rem 0.6rem; border-radius: 999px; line-height: 1;
}
.lang-switch a:hover { text-decoration: none; color: var(--text); }
.lang-switch a.is-active { background: var(--bg); color: var(--accent); box-shadow: var(--shadow-sm); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 78% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  z-index: -1;
}
.hero-inner { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); max-width: 820px; }
.eyebrow, .section-eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--nl-orange-strong); margin: 0 0 0.9rem;
}
.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem); margin: 0 0 1.1rem;
  color: var(--text);
}
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--text-muted); margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem);
  list-style: none; margin: 0; padding: 1.7rem 0 0; border-top: 1px solid var(--border);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--text); line-height: 1; }
.hero-stats span { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.35rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--surface); }
.section-eyebrow { margin-bottom: 0.6rem; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 0.8rem; color: var(--text); }
.section-lead { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; margin: 0 0 2.4rem; }
.muted { color: var(--text-muted); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Expertise cards */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.section-alt .card { background: var(--bg); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; color: var(--accent);
  background: var(--accent-soft); margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.18rem; margin: 0 0 0.5rem; color: var(--text); }
.card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

/* Services */
.service {
  padding: 1.6rem 1.6rem 1.6rem 1.7rem; border-left: 3px solid var(--accent);
  background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm); position: relative;
}
.service-no { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.service h3 { font-size: 1.18rem; margin: 0.35rem 0 0.5rem; color: var(--text); }
.service p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

/* Projects */
.projects-grid { margin-top: 0.5rem; }
.project-card { overflow: hidden; }
.project-card-media {
  display: block; margin: -1.7rem -1.7rem 1.3rem;
  aspect-ratio: 16 / 10; background: var(--surface-2);
}
.project-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-image {
  margin: 0 0 1.9rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
}
.project-image img { width: 100%; height: auto; display: block; }
.project-card {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s, border-color 0.18s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.project-card h3 { font-size: 1.25rem; margin: 0 0 0.6rem; }
.project-card h3 a { color: var(--text); }
.project-card h3 a:hover { color: var(--accent); text-decoration: none; }
.project-card-body p { color: var(--text-muted); margin: 0 0 1.4rem; }
.project-card-foot { display: flex; flex-direction: column; gap: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.tags li {
  font-size: 0.78rem; font-weight: 500; color: var(--accent-strong);
  background: var(--accent-soft); padding: 0.28rem 0.7rem; border-radius: 999px;
}
@media (prefers-color-scheme: dark) { .tags li { color: var(--accent-strong); } }
.tags-lg li { font-size: 0.85rem; padding: 0.35rem 0.85rem; }
.link-arrow { font-weight: 600; font-size: 0.95rem; }
.link-arrow span { transition: transform 0.15s ease; display: inline-block; }
.link-arrow:hover { text-decoration: none; color: var(--nl-orange-strong); }
.link-arrow:hover span { transform: translateX(3px); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding: 0 0 2rem 2.4rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--accent);
}
.timeline-period { font-size: 0.82rem; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.timeline-item h3 { font-size: 1.15rem; margin: 0.2rem 0 0.4rem; color: var(--text); }
.timeline-item p { margin: 0; color: var(--text-muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }
.about-media { display: flex; justify-content: center; }
.about-photo {
  width: 232px; height: 232px; border-radius: 50%;
  object-fit: cover; object-position: center;
  border: 5px solid var(--bg);
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow-md);
}
.about-monogram {
  width: 200px; height: 200px; border-radius: 28px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; color: #fff;
  background: linear-gradient(145deg, var(--navy-700), var(--accent));
  box-shadow: var(--shadow-md);
}
.about-content p { color: var(--text-muted); }
.about-content .section-title { margin-bottom: 1.2rem; }
.skills-label { font-weight: 600; color: var(--text); margin: 1.7rem 0 0.7rem; font-size: 0.95rem; }
.skills-tags { margin-bottom: 1.7rem; }
.cv-download { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.cv-label { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.88rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-aside { display: flex; flex-direction: column; gap: 1rem; }
.contact-panel { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.contact-name { font-weight: 700; font-family: var(--font-display); margin: 0 0 1.2rem; color: var(--text); }
.contact-details { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.05rem; }
.contact-details li { display: flex; flex-direction: column; gap: 0.15rem; }
.contact-details .contact-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.contact-details .contact-value { font-weight: 600; color: var(--text); line-height: 1.5; }
a.contact-value:hover { color: var(--accent); text-decoration: none; }
.contact-card {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 1.2rem 1.3rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--text);
}
.contact-card:hover { text-decoration: none; border-color: var(--accent); }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.contact-value { font-weight: 600; color: var(--text); }

/* Form */
.contact-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.req { color: var(--nl-red); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 0.75rem 0.9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg);
}
.field textarea { resize: vertical; min-height: 120px; }
.field.has-error input, .field.has-error textarea { border-color: #d9534f; }
.field-error { display: block; color: #d9534f; font-size: 0.85rem; margin-top: 0.35rem; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-weight: 500; }
.form-status[data-state="success"] { display: block; background: rgba(46, 160, 90, 0.12); color: #1c7a44; border: 1px solid rgba(46, 160, 90, 0.3); }
.form-status[data-state="error"] { display: block; background: rgba(217, 83, 79, 0.12); color: #b23b37; border: 1px solid rgba(217, 83, 79, 0.3); }
@media (prefers-color-scheme: dark) {
  .form-status[data-state="success"] { color: #6ee7a0; }
  .form-status[data-state="error"] { color: #f19b98; }
}

/* Project detail */
.project-detail { padding-top: clamp(2.2rem, 6vw, 3.5rem); }
.link-back, .link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; }
.link-back { font-weight: 600; color: var(--text-muted); margin-bottom: 1.6rem; }
.link-back:hover { color: var(--accent); text-decoration: none; }
.project-header { border-bottom: 1px solid var(--border); padding-bottom: 1.8rem; margin-bottom: 1.8rem; }
.project-title { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0 0 0.8rem; color: var(--text); }
.project-summary { font-size: 1.15rem; color: var(--text-muted); margin: 0 0 1.2rem; }
.prose p { color: var(--text); margin: 0 0 1.15rem; }
.project-links { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }
.project-cta { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }

.error-section { padding: clamp(4rem, 12vw, 7rem) 0; }
.error-code { font-family: var(--font-display); font-size: clamp(3rem, 12vw, 5rem); font-weight: 700; color: var(--accent); margin: 0; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c7d4e2; padding: 3rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center; }
.footer-brand-block { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-brand { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.05rem; }
.footer-tagline { font-size: 0.85rem; color: #8ba1b8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { color: #c7d4e2; font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }
.footer-meta { display: flex; flex-direction: column; gap: 0.25rem; text-align: right; font-size: 0.88rem; }
.footer-meta a { color: #c7d4e2; }
.footer-meta a:hover { color: #fff; }

/* ---------- Mobile nav ---------- */
@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; margin-left: auto; padding: 9px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { margin-left: 0; }
  .nav-list {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 0.6rem clamp(1.1rem, 4vw, 2rem) 1.2rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { padding: 0.85rem 0.5rem; border-radius: 8px; }
  .header-inner { flex-wrap: wrap; position: relative; }
}
