/*
Theme Name: Oudakker Engineering & Consultancy
Description: Custom theme voor oudakker-ec.nl
Author: Erik Oudakker
Version: 1.0.0
Text Domain: oec
*/

/* ── TOKENS ────────────────────────────────── */
:root {
  --navy:    #0A1E48;
  --blue:    #1A3C8E;
  --steel:   #2A72E8;
  --pale:    #D6E8FF;
  --surface: #FFFFFF;
  --ground:  #EBF4FF;
  --border:  #A8C8F0;
  --ink:     #0C1426;
  --muted:   #2C3E6A;
  --radius:  6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy:    #040E24;
    --blue:    #2558CC;
    --steel:   #4A88F0;
    --pale:    #0A1A3C;
    --surface: #0E1C38;
    --ground:  #071230;
    --border:  #1A2E5C;
    --ink:     #E0EAFF;
    --muted:   #8898CC;
  }
}
:root[data-theme="dark"] {
  --navy:    #040E24;
  --blue:    #2558CC;
  --steel:   #4A88F0;
  --pale:    #0A1A3C;
  --surface: #0E1C38;
  --ground:  #071230;
  --border:  #1A2E5C;
  --ink:     #E0EAFF;
  --muted:   #8898CC;
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 2px solid var(--blue);
  padding: 0 2.5rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo-fallback {
  font-family: 'Barlow', sans-serif; font-weight: 800; font-size: 1rem;
  color: var(--blue); letter-spacing: 0.04em; line-height: 1.1;
  display: none;
}
.nav-logo-fallback small { font-weight: 600; font-size: 0.6em; letter-spacing: 0.12em; display: block; color: var(--muted); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.82rem; font-weight: 500;
  color: var(--muted); letter-spacing: 0.04em; transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-sw { display: flex; gap: 3px; }
.lang-btn {
  padding: 3px 8px; border: 1px solid var(--border);
  background: none; cursor: pointer;
  font-size: 0.68rem; font-weight: 700; font-family: 'Barlow', sans-serif;
  color: var(--muted); border-radius: 3px;
  transition: all 0.15s; letter-spacing: 0.08em;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { width: 22px; height: 2px; background: var(--blue); border-radius: 2px; display: block; }

/* ── HERO ───────────────────────────────────── */
#home {
  background: linear-gradient(150deg, #2060D8 0%, #1A3C8E 55%, #122E78 100%);
  padding: 5.5rem 2rem 5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
#home::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
.hero-logo {
  height: 52px; width: auto;
  margin: 0 auto 2.5rem;
  filter: brightness(0) invert(1);
}
.eyebrow-pill {
  display: inline-block;
  font-family: 'Barlow', sans-serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.3rem 1rem; border-radius: 2px;
  margin-bottom: 1.5rem;
}
#home h1 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; text-wrap: balance;
  color: #fff; margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.85);
  max-width: 500px; margin: 0 auto 2.75rem;
  line-height: 1.6;
}
.btn {
  display: inline-block; padding: 0.7rem 1.9rem;
  border-radius: 3px; font-size: 0.86rem; font-weight: 700;
  font-family: 'Barlow', sans-serif; letter-spacing: 0.05em;
  text-decoration: none; transition: all 0.2s;
  border: none; cursor: pointer;
}
.btn-white { background: #fff; color: #0A1E48; }
.btn-white:hover { background: #EBF4FF; transform: translateY(-1px); }
.hero-inner .wp-block-buttons { justify-content: center; }

/* WordPress (classic theme zonder theme.json) wikkelt elk Group-blok in een
   extra .wp-block-group__inner-container div. Die neutraliseren we hier zodat
   onze eigen grid/flex-classes (svc-grid, about-grid, partner-row, ct-layout, ...)
   weer rechtstreeks op hun daadwerkelijke kind-elementen werken. */
.wp-block-group__inner-container { display: contents; }

/* ── SECTIONS ───────────────────────────────── */
section { padding: 5rem 2rem; }
.wrap { max-width: 1080px; margin: 0 auto; }
.sec-hd { margin-bottom: 3rem; }
.eyebrow {
  display: block; font-family: 'Barlow', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 0.55rem;
}
h2 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1.65rem, 3.5vw, 2.3rem);
  font-weight: 800; color: var(--navy);
  text-wrap: balance; letter-spacing: -0.015em;
  line-height: 1.15; margin-bottom: 0.65rem;
}
.sec-sub { font-size: 0.97rem; color: var(--muted); max-width: 520px; }

/* ── SERVICES ───────────────────────────────── */
#diensten { background: var(--ground); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 1.1rem;
}
.svc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.svc-card:hover {
  border-color: var(--steel);
  box-shadow: 0 4px 18px rgba(26,60,142,0.1);
}
.svc-ico {
  width: 44px; height: 44px; border-radius: 9px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.svc-ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 {
  font-family: 'Barlow', sans-serif; font-size: 0.92rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.45rem;
}
.svc-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

/* ── ABOUT ──────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 250px 1fr;
  gap: 3.5rem; align-items: start;
}
.photo-wrap { position: relative; padding: 10px; border: 2px solid var(--border); border-radius: var(--radius); }
.about-photo {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  border-radius: var(--radius);
  display: block;
}
/* WordPress plaatst de className op de <figure> van een blok-afbeelding,
   niet op de <img> zelf — forceer de vormgeving daarom op het echte img-element. */
.photo-wrap .wp-block-image { margin: 0; }
.photo-wrap .wp-block-image img {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  border-radius: var(--radius);
  display: block;
}
.photo-placeholder {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 3/4; border-radius: var(--radius);
  background: var(--pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--steel);
}
.photo-placeholder svg { width: 56px; height: 56px; stroke: var(--steel); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.about-text p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.9rem; }
.skills-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.25rem; margin-top: 1.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.sk {
  font-size: 0.8rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.5rem;
}
.sk::before {
  content: ''; width: 5px; height: 5px;
  background: var(--blue); border-radius: 50%; flex-shrink: 0;
}

/* ── PROJECTS ───────────────────────────────── */
#projecten { background: var(--ground); }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.proj-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  max-width: 700px;
  transition: box-shadow 0.2s;
}
.proj-grid .proj-card { max-width: none; }
.proj-card:hover { box-shadow: 0 6px 28px rgba(26,60,142,0.12); }
.proj-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 1.5rem 1.75rem; color: #fff;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.proj-type {
  font-family: 'Barlow', sans-serif; font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.6; margin-bottom: 0.35rem;
}
.proj-band h3 {
  font-family: 'Barlow', sans-serif; font-size: 1.15rem; font-weight: 800;
}
.proj-year {
  font-family: 'Barlow', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(255,255,255,0.14); border-radius: 3px;
  padding: 0.25rem 0.65rem; flex-shrink: 0; margin-top: 2px;
}
.proj-body { padding: 1.5rem 1.75rem; }
.proj-body p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.6; }
.tech-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.tag {
  font-size: 0.68rem; font-weight: 700; font-family: 'Barlow', sans-serif;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--blue); color: #fff;
  padding: 0.22rem 0.65rem; border-radius: 3px;
}
.proj-link {
  font-size: 0.84rem; font-weight: 600; color: var(--blue);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem;
}
.proj-link:hover { text-decoration: underline; }
.proj-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── PARTNERS ───────────────────────────────── */
.partner-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.partner-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; background: var(--surface);
  display: flex; gap: 1rem; align-items: flex-start;
  transition: border-color 0.2s;
}
.partner-card:hover { border-color: var(--steel); }
.partner-ico {
  width: 44px; height: 44px; border-radius: 9px; background: var(--pale);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.partner-ico svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.partner-loc {
  font-family: 'Barlow', sans-serif; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel); display: block; margin-bottom: 0.3rem;
}
.partner-card h3 {
  font-family: 'Barlow', sans-serif; font-size: 0.95rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.35rem;
}
.partner-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ── CONTACT ────────────────────────────────── */
#contact { background: var(--navy); }
#contact .eyebrow { color: var(--steel); }
#contact h2 { color: #fff; }
#contact .sec-sub { color: rgba(255,255,255,0.5); }
.ct-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; }
.ct-item { display: flex; gap: 1rem; align-items: flex-start; }
.ct-ico {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ct-ico svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ct-label {
  font-family: 'Barlow', sans-serif; font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 0.2rem;
}
.ct-val { font-size: 0.9rem; color: #fff; }
.ct-val a { color: #fff; text-decoration: none; }
.ct-val a:hover { text-decoration: underline; }

/* ── CONTACT FORM (Contact Form 7) ───────────── */
.ct-form .wpcf7-form-control-wrap { display: block; margin-bottom: 1rem; }
.ct-form label { display: block; font-family: 'Barlow', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.4rem; }
.ct-form input[type="text"],
.ct-form input[type="email"],
.ct-form textarea {
  width: 100%; padding: 0.7rem 0.9rem; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.25); background: #fff;
  color: var(--ink); font-family: 'Inter', sans-serif; font-size: 0.88rem;
}
.ct-form input[type="text"]::placeholder,
.ct-form input[type="email"]::placeholder,
.ct-form textarea::placeholder { color: var(--muted); opacity: 0.7; }
.ct-form input:focus, .ct-form textarea:focus { outline: 2px solid var(--steel); outline-offset: 1px; }
/* Voorkomt dat Chrome/Edge autofill (standaard lichtblauw) het contrast weer tenietdoet */
.ct-form input:-webkit-autofill,
.ct-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--ink);
}
.ct-form textarea { min-height: 120px; resize: vertical; }
.ct-form input[type="submit"] {
  background: var(--steel); color: #fff; border: none;
  padding: 0.75rem 2rem; border-radius: 3px; font-size: 0.86rem; font-weight: 700;
  font-family: 'Barlow', sans-serif; letter-spacing: 0.05em; cursor: pointer; transition: background 0.2s;
}
.ct-form input[type="submit"]:hover { background: #3f8bff; }
.ct-form .wpcf7-not-valid-tip { color: #ffb4b4; font-size: 0.78rem; margin-top: 0.3rem; }
.ct-form .wpcf7-response-output { color: #fff; border-color: rgba(255,255,255,0.3) !important; font-size: 0.85rem; margin-top: 1rem; border-radius: 4px; }

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: #050D20;
  color: rgba(255,255,255,0.3);
  text-align: center; padding: 1.2rem 2rem;
  font-size: 0.73rem; letter-spacing: 0.04em;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); border-bottom: 2px solid var(--blue); padding: 1.25rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  section { padding: 3.5rem 1.25rem; }
  #home { padding: 3.5rem 1.25rem 3rem; }
  .about-grid { grid-template-columns: 1fr; }
  .photo-wrap { max-width: 200px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .ct-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}

/* Focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
