/* ==========================================================================
   KOBU Technics — huisstijl
   Navy #0A3C68 · Goud #F3C239→#E8A729 · Grijs #8A939E · Lichtblauwgrijs #B9C6D4
   Font: Montserrat (400/500/700/800)
   ========================================================================== */

:root {
  /* merkkleuren (vast, in beide thema's) */
  --navy: #0A3C68;
  --gold: #F3C239;
  --gold-dark: #E8A729;
  --grad-gold: linear-gradient(180deg, #F3C239 0%, #E8A729 100%);
  --grey: #8A939E;
  --blue-grey: #B9C6D4;
  --white: #FFFFFF;

  /* thema-tokens — licht (standaard) */
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-alt: #F3F7FB;
  --surface: #FFFFFF;
  --border: #DFE7F0;
  --heading: var(--navy);
  --text: #0A3C68;
  --text-soft: rgba(10, 60, 104, 0.78);
  --text-muted: var(--grey);
  --icon-tile: #F3F7FB;
  --icon-line: var(--navy);
  --navy-edge: transparent;
  --shadow: 0 10px 30px rgba(10, 60, 104, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 60, 104, 0.14);
  --when-light: block;
  --when-dark: none;

  --radius: 14px;
  --header-h: 76px;
}

/*
 * Donker thema. Twee identieke blokken: het eerste volgt de systeemvoorkeur
 * (tenzij de bezoeker expliciet licht koos), het tweede de expliciete keuze
 * via de schakelaar (data-theme op <html>, gezet in js/main.js).
 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #071C2F;
    --bg-alt: #0A2440;
    --surface: #0C2A47;
    --border: rgba(255, 255, 255, 0.14);
    --heading: #FFFFFF;
    --text: #DCE6F1;
    --text-soft: #B9C6D4;
    --text-muted: #93A7BC;
    --icon-tile: rgba(255, 255, 255, 0.08);
    --icon-line: #FFFFFF;
    --navy-edge: rgba(255, 255, 255, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --when-light: none;
    --when-dark: block;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071C2F;
  --bg-alt: #0A2440;
  --surface: #0C2A47;
  --border: rgba(255, 255, 255, 0.14);
  --heading: #FFFFFF;
  --text: #DCE6F1;
  --text-soft: #B9C6D4;
  --text-muted: #93A7BC;
  --icon-tile: rgba(255, 255, 255, 0.08);
  --icon-line: #FFFFFF;
  --navy-edge: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --when-light: none;
  --when-dark: block;
}

/* ---------- Reset & basis ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 2px;
}

.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Herbruikbare stijlelementen ---------- */

/* Dunne gouden accentlijn (±14×0.7-verhouding) */
.accent-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--grad-gold);
  margin: 18px auto 0;
}
.accent-line-sm { width: 44px; margin: 14px 0 0; }

/* Gouden voetstrook / accentstrook */
.gold-bar {
  height: 5px;
  background: var(--grad-gold);
}

/* ---------- Knoppen ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease,
              border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--grad-gold);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(232, 167, 41, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 167, 41, 0.45);
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-lg { padding: 15px 32px; font-size: 0.9rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand img {
  width: auto;
  height: 52px;
}

/* logowissel: full-colour op licht, diapositief op donker */
.brand-light { display: var(--when-light); }
.brand-dark  { display: var(--when-dark); }

.site-nav { margin-left: auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--heading);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-nav a:not(.btn):hover {
  border-bottom-color: var(--gold-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--heading);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Thema-schakelaar ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--heading);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--gold-dark); }
.theme-toggle .icon-moon { display: var(--when-light); }
.theme-toggle .icon-sun  { display: var(--when-dark); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

/* Ghost-watermerk: circuiticoon op lage dekking, zoals op de banner */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 520px;
  height: 500px;
  background: url("../assets/kobu-icon-ghost.svg") no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
}
.hero::before { left: -150px; transform: translateY(-50%); }
.hero::after  { right: -150px; transform: translateY(-50%) rotate(180deg); }

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 84px 96px;
}

.hero-logo {
  margin: 0 auto;
}
.hero-logo img {
  width: min(560px, 88vw);
  height: auto;
  margin-inline: auto;
}

.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 16px;
  margin: 34px 0 0;
  color: var(--gold);
  font-weight: 500;
  font-size: clamp(0.82rem, 1.8vw, 1.02rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-tagline .dot { color: var(--gold); }

.hero-sub {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--blue-grey);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
}

/* ---------- Secties ---------- */

.section { padding-block: 92px; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.kicker {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1.2;
}

.section-intro {
  margin: 24px auto 0;
  color: var(--text-soft);
}

/* ---------- Diensten ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-gold);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: var(--icon-tile);
  margin-bottom: 22px;
}

/* dienst-iconen: navy lijnen op licht, wit (diapositief) op donker */
.service-icon svg [stroke="#0A3C68"] { stroke: var(--icon-line); }
.service-icon svg [fill="#0A3C68"]   { fill: var(--icon-line); }

.service-card h3 {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--heading);
}

.service-card p {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
}
.service-list li {
  position: relative;
  padding: 5px 0 5px 22px;
}
/* vierkante gouden bullet — bewust géén afgeronde vormen */
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  background: var(--grad-gold);
}

/* ---------- Realisaties (fotogalerij) ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- Lightbox ---------- */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 1100px);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(4, 17, 30, 0.88); }

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(10, 60, 104, 0.72);
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lb-btn:hover { background: var(--navy); color: var(--gold); }

.lb-close { top: 10px; right: 10px; }
.lb-prev  { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Over ons ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text p { margin: 0 0 18px; color: var(--text-soft); }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--heading); }

.founders {
  display: grid;
  gap: 20px;
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
}

.founder-avatar {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold-dark);
  color: var(--white);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-card h3 {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
  color: var(--heading);
}

.founder-role {
  margin: 4px 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 880px;
  margin-inline: auto;
}

/* kaart-stijl zoals de visitekaartjes: navy, ghost-icoon, gouden voetstrook */
.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy-edge);
  border-radius: var(--radius);
  padding: 34px 32px 38px;
  box-shadow: var(--shadow-lg);
}
.contact-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: var(--grad-gold);
}
.contact-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -55px;
  width: 230px;
  height: 221px;
  background: url("../assets/kobu-icon-ghost.svg") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.contact-card h3 {
  margin: 0;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-role {
  margin: 6px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 0;
  font-size: 0.95rem;
}
.contact-list .ci {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}
.contact-list a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.contact-list a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.contact-list span { color: var(--blue-grey); }

/* ---------- Socials ---------- */

.socials {
  margin-top: 56px;
  text-align: center;
}
.socials > p {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.social-link:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.social-link svg { color: var(--gold-dark); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--blue-grey);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-block: 60px 48px;
}

.footer-brand img { width: 230px; }

.footer-tagline {
  margin: 20px 0 0;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: var(--white);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); }

.footer-col h3 {
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-col address {
  font-style: normal;
  margin: 0 0 8px;
}

.footer-meta {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--blue-grey);
}

.footer-col p { margin: 0; }

.footer-col a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 20px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--white); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .nav-toggle { display: flex; }

  .theme-toggle { margin-left: auto; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-open .site-nav { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
  }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a:not(.btn) {
    display: block;
    padding: 14px 0;
    border-bottom: 0;
  }
  .nav-cta { padding-top: 16px; }
  .nav-cta .btn { display: block; text-align: center; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .section { padding-block: 68px; }
  .hero-inner { padding-block: 60px 72px; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  /* 9 foto's: eerste vol breed, daarna 2×4 — raster sluit mooi af */
  .gallery-item:first-child { grid-column: 1 / -1; }
  .gallery-item:first-child img { aspect-ratio: 16 / 10; }

  .brand img { height: 44px; }

  /* tagline op meerdere regels, zonder puntjes */
  .hero-tagline { flex-direction: column; gap: 8px; letter-spacing: 0.18em; }
  .hero-tagline .dot { display: none; }

  .hero::before, .hero::after { width: 340px; height: 327px; }

  .hero-actions .btn-lg { width: 100%; max-width: 320px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
  }
}
