/* =========================================================
   NGC Automations — huisstijl
   Paper/editorial: cream papier, navy inkt, koraal accent,
   dunne line-art. Fraunces (display) + Spline Sans (body).
   ========================================================= */

:root {
  --paper:      #f3efe6;
  --paper-2:    #ece6d9;
  --paper-3:    #e4ddcc;
  --ink:        #20303a;
  --ink-soft:   #3c4f5a;
  --ink-mute:   #6a7b84;
  --coral:        #e2603f;
  --coral-deep:   #c64b2d;
  --coral-deeper: #a83c22;
  --line:       rgba(32, 48, 58, 0.14);
  --line-soft:  rgba(32, 48, 58, 0.08);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-head:    "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Spline Sans", system-ui, -apple-system, sans-serif;

  --wrap: 1140px;
  --r: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw, 18px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Toetsenbord-focus: zichtbaar en consistent (muisklik blijft schoon via :focus-visible) */
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 3px; border-radius: 5px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--coral); }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--coral); }
p { text-wrap: pretty; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 100px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-primary { background: var(--coral-deep); color: #fff; box-shadow: 0 10px 24px -12px var(--coral-deeper); }
.btn-primary:hover { background: var(--coral-deeper); box-shadow: 0 16px 30px -12px var(--coral-deeper); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { border-color: rgba(243,239,230,0.45); color: var(--paper); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243, 239, 230, 0.82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

/* Logo: echte afbeelding met terugval naar gestapelde NGC-monogram */
.logo { display: inline-flex; align-items: flex-end; gap: 10px; text-decoration: none; }
.logo-img { height: 52px; width: auto; display: block; }
.logo-fallback { display: inline-flex; align-items: flex-end; gap: 10px; }
.logo-fallback[hidden] { display: none; }
.logo-stack { position: relative; display: flex; flex-direction: column; line-height: 0.82; }
.logo-stack i {
  font-family: "Archivo Black", var(--font-head), sans-serif;
  font-style: normal; font-weight: 900;
  font-size: 1.2rem; letter-spacing: 0.01em; color: var(--ink);
  text-transform: uppercase;
}
.logo-stack .logo-dot {
  position: absolute; top: -1px; right: -10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--coral);
}
.logo-word {
  font-family: var(--font-head); font-weight: 500;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-mute); padding-bottom: 4px; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { font-family: var(--font-head); font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color 0.25s; }
.nav a:hover { color: var(--coral); }
.nav .nav-cta { padding: 9px 20px; border: 1.5px solid var(--ink); border-radius: 100px; color: var(--ink); transition: background 0.25s, color 0.25s; }
.nav .nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav .nav-cta:active { transform: scale(0.97); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }

.mobile-nav { display: none; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); }
.mobile-nav a { padding: 14px 24px; font-family: var(--font-head); border-top: 1px solid var(--line-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(70px, 12vh, 140px) 0 clamp(60px, 9vh, 110px); overflow: hidden; }
.hero-art {
  position: absolute; top: 50%; right: -6%; transform: translateY(-50%);
  width: min(620px, 60vw); color: var(--ink); pointer-events: none; z-index: 0;
  opacity: 0.9;
}
.hero-art svg { width: 100%; height: auto; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.eyebrow { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; color: var(--coral-deeper); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); margin-bottom: 26px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-soft); max-width: 38ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-marks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-marks li { font-family: var(--font-head); font-size: 0.85rem; color: var(--ink-soft); position: relative; padding-left: 15px; }
.hero-marks li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vh, 120px) 0; position: relative; }
.section-soft { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--paper); }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vh, 64px); }
.section-index { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--coral-deeper); letter-spacing: 0.1em; display: block; margin-bottom: 14px; }
.section-index.light { color: var(--coral); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 18px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section-dark .section-index { color: var(--coral); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.section .card { background: #fbf9f4; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -28px rgba(32,48,58,0.45); border-color: rgba(226,96,63,0.4); }
.card-feature { border-color: rgba(226,96,63,0.45); box-shadow: 0 14px 36px -26px rgba(226,96,63,0.5); }

.card-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--paper-3); color: var(--coral-deep); display: grid; place-items: center; margin-bottom: 22px; }
.card-feature .card-icon { background: var(--coral); color: #fff; }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.card > p { color: var(--ink-soft); margin-bottom: 18px; }
.card-list { list-style: none; display: grid; gap: 9px; }
.card-list li { position: relative; padding-left: 24px; font-size: 0.96rem; color: var(--ink-soft); }
.card-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 11px; border: 2px solid var(--coral); border-radius: 50%; }

/* ---------- Europa (dark) ---------- */
.europa-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.lede-dark { font-size: 1.15rem; color: rgba(243,239,230,0.78); margin-bottom: 32px; max-width: 46ch; }
.europa-copy h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 18px; }
.facts { display: grid; gap: 18px; }
.facts > div { border-top: 1px solid rgba(243,239,230,0.18); padding-top: 16px; }
.facts dt { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; margin-bottom: 4px; }
.facts dd { color: rgba(243,239,230,0.62); font-size: 0.98rem; }
.europa-art svg { width: 100%; height: auto; max-width: 360px; margin-inline: auto; display: block; }

/* ---------- Pills (expertise) ---------- */
.pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pill { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: #fbf9f4; transition: transform 0.4s var(--ease), border-color 0.3s; }
.pill:hover { transform: translateY(-4px); border-color: rgba(226,96,63,0.4); }
.pill h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 8px; }
.pill p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Over ---------- */
.over-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.over-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 20px; }
.over-copy p { color: var(--ink-soft); margin-bottom: 18px; }
.over-copy .btn { margin-top: 8px; }
.over-card { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 34px; }
.over-card .quote { font-family: var(--font-display); font-style: italic; font-size: 1.45rem; line-height: 1.3; margin-bottom: 24px; }
.over-list { list-style: none; display: grid; gap: 12px; }
.over-list li { position: relative; padding-left: 22px; color: rgba(243,239,230,0.82); font-size: 0.98rem; }
.over-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

/* ---------- Contact ---------- */
.contact-inner { max-width: 720px; text-align: center; margin-inline: auto; }
.contact .section-index { margin-inline: auto; }
.contact h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 20px; }
.contact .lede-dark { margin-inline: auto; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 56px 0 30px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-brand .logo-stack i { color: var(--paper); }
.footer-brand .logo-word { color: rgba(243,239,230,0.55); }
.footer-brand p { color: rgba(243,239,230,0.6); margin-top: 14px; max-width: 30ch; font-size: 0.95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-nav a { font-family: var(--font-head); font-size: 0.95rem; color: rgba(243,239,230,0.78); transition: color 0.25s; }
.footer-nav a:hover { color: var(--coral); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(243,239,230,0.15); font-size: 0.85rem; color: rgba(243,239,230,0.55); }

/* ---------- Reveal animation (JS-gated: zonder JS blijft alles zichtbaar) ---------- */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) {
  .europa-grid, .over-grid { grid-template-columns: 1fr; }
  .europa-art { order: -1; }
  .hero-art { opacity: 0.18; right: -20%; }
}
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-nav[data-open="true"] { display: flex; }
  .footer-bottom { flex-direction: column; }
}
