/* ============================================================
   NForza — Shared Design System
   ============================================================
   Used by every page. Page-specific styles stay inline in each
   HTML file. Keep tokens in sync with Figma / design docs.
   ============================================================ */

:root {
  /* Colour palette — matched to logo SVG */
  --orange:        #E75221;  /* red-orange, main brand colour (logo gradient end) */
  --orange-deep:   #C9420E;  /* darker for hover/emphasis */
  --orange-amber:  #EF9303;  /* amber, second logo gradient stop — use sparingly */
  --orange-soft:   #FBE8DC;  /* peach tint for backgrounds */

  --teal:          #3D7181;  /* logo secondary (was green) */
  --teal-bright:   #5A8C9E;  /* lighter teal for accents */
  --teal-soft:     #E1EAEF;  /* soft teal tint for backgrounds */

  --cream:         #FAF7F2;
  --cream-deep:    #F2EDE4;
  --ink:           #16130E;
  --ink-soft:      #2B271F;
  --stone:         #6B6560;
  --fog:           #D9D4CA;

  /* Type */
  --display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'IBM Plex Mono', 'Courier New', monospace;
}

/* Reset + base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Language toggle behaviour — each page sets data-lang on body */
body[data-lang="en"] [data-nl]:not(.inline-lang) { display: none !important; }
body[data-lang="nl"] [data-en]:not(.inline-lang) { display: none !important; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
p  { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }
.mono {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 640px) { .container { padding: 0 1.25rem; } }

/* ============================================================
   Header + navigation
   ============================================================ */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fog);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.125rem 2rem;
  max-width: 1280px; margin: 0 auto;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.15em;
}
.logo::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  margin-left: 0.2em;
  align-self: center;
  margin-bottom: -0.1em;
}
.logo img { height: 36px; width: auto; display: block; }
.logo.has-image::after { display: none; }

.nav-links {
  display: flex; gap: 2rem;
  list-style: none;
  font-size: 0.9375rem;
}
.nav-links > li { position: relative; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--orange);
}

/* Dropdown parent trigger */
.has-dropdown > a,
.has-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.has-dropdown > a::before,
.has-dropdown > button::before {
  /* no-op: keeping specificity hook if needed */
}
.dropdown-caret {
  width: 10px; height: 10px;
  display: inline-block;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  opacity: 0.7;
}
.has-dropdown:hover .dropdown-caret,
.has-dropdown:focus-within .dropdown-caret { transform: rotate(180deg); opacity: 1; }

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 14rem;
  background: var(--cream);
  border: 1px solid var(--fog);
  border-radius: 8px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 12px 30px rgba(22, 19, 14, 0.08), 0 2px 6px rgba(22, 19, 14, 0.04);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 10;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Bridge the small gap between parent and panel so hover doesn't flicker */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 0.75rem;
}
.dropdown li { margin: 0; }
.dropdown a {
  display: block;
  padding: 0.625rem 0.875rem;
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.3;
  transition: background 0.12s, color 0.12s;
}
.dropdown a:hover {
  background: var(--cream-deep);
  color: var(--orange);
}
.dropdown a[aria-current="page"] {
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-weight: 500;
}
.dropdown a[aria-current="page"]::after { display: none; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.lang-toggle {
  font-family: var(--mono);
  font-size: 0.75rem;
  background: none;
  border: 1px solid var(--fog);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  transition: all 0.15s;
}
.lang-toggle:hover { border-color: var(--ink); }

@media (max-width: 900px) { .nav-links { display: none; } }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: all 0.2s;
  cursor: pointer;
}
.btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-1px);
}
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Sections + labels
   ============================================================ */
section { padding: 6rem 0; position: relative; }
@media (max-width: 640px) { section { padding: 4rem 0; } }

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.25rem;
}
.section-head { max-width: 58rem; margin-bottom: 4rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p  { font-size: 1.125rem; max-width: 40em; }

/* ============================================================
   Eyebrow + page hero (pattern used on all subpages)
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 2rem;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--orange-deep);
}

.page-hero {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--orange-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 900px; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 2rem;
  color: var(--ink);
}
.page-hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}
.page-hero-lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  max-width: 46em;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}
.page-hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Two-column prose section (for story / why / meaning blocks)
   Used on /platform and /services/development.
   ============================================================ */
.prose-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; gap: 2rem; } }
.prose-grid h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.1; }
.prose-grid .prose p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}
.prose-grid .prose p:last-child { margin-bottom: 0; }
.prose-grid .prose strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   Feature grid on dark background — principles, values,
   -ilities, etc. Reused on multiple pages.
   ============================================================ */
.dark-section {
  background: var(--ink);
  color: var(--cream);
}
.dark-section h2, .dark-section h3 { color: var(--cream); }
.dark-section p { color: rgba(250, 247, 242, 0.75); }
.dark-section .section-label { color: var(--orange); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(250, 247, 242, 0.12);
  border: 1px solid rgba(250, 247, 242, 0.12);
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--ink);
  padding: 2.25rem 2rem;
  transition: background 0.2s;
}
.feature:hover { background: #1E1A14; }
.feature-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}
.feature h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--cream);
}
.feature h3 em { color: var(--orange); font-style: italic; font-weight: 500; }
.feature p { font-size: 0.9375rem; line-height: 1.55; }

/* ============================================================
   Green section — reused for platform content, "where/how"
   emphasis. Same base for the teal sections.
   ============================================================ */
.teal-section {
  background: var(--teal);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.teal-section::before {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(90, 140, 158, 0.4) 0%, transparent 70%);
}
.teal-section h2, .teal-section h3 { color: var(--cream); }
.teal-section .section-label { color: rgba(250, 247, 242, 0.65); }
.teal-section p { color: rgba(250, 247, 242, 0.8); }
.teal-section h2 em {
  font-style: italic;
  color: var(--orange-soft);
  font-weight: 500;
}

/* ============================================================
   Proof cases (with big years) — used on dev page and anywhere
   long partnerships should shout.
   ============================================================ */
.proof-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 760px) { .proof-cases { grid-template-columns: 1fr; } }
.proof-case {
  background: var(--cream-deep);
  border: 1px solid var(--fog);
  padding: 2rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.proof-case:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.proof-case::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.proof-case:hover::before { transform: scaleX(1); }
.proof-years {
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
}
.proof-years-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1rem;
}
.proof-case h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.proof-case p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.proof-cta { text-align: center; padding-top: 2rem; border-top: 1px solid var(--fog); }
.proof-cta a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s;
}
.proof-cta a:hover { background-size: 100% 1px; }

/* ============================================================
   Mini-case cards — compact card with tag + name + one-liner
   ============================================================ */
.mini-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) { .mini-cases { grid-template-columns: 1fr; } }
.mini-case {
  background: var(--cream-deep);
  border: 1px solid var(--fog);
  padding: 1.75rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.mini-case:hover { border-color: var(--orange); transform: translateY(-2px); }
.mini-case::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.mini-case:hover::before { transform: scaleX(1); }
.mini-case-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.mini-case-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
}
.mini-case h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.mini-case p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ============================================================
   Fit-check — two-column "good fit / less of a fit"
   ============================================================ */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-column {
  padding: 2.5rem;
  background: var(--cream-deep);
  border: 1px solid var(--fog);
}
.fit-column h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--fog);
  display: flex; align-items: center; gap: 0.75rem;
}
.fit-mark {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}
.fit-mark-yes { background: var(--teal-soft); color: var(--teal); }
.fit-mark-no  { background: var(--orange-soft); color: var(--orange-deep); }
.fit-column ul { list-style: none; padding: 0; margin: 0; }
.fit-column li {
  padding: 0.875rem 0;
  border-top: 1px solid var(--fog);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.fit-column li:first-child { border-top: none; padding-top: 0; }

/* ============================================================
   Final CTA — used at end of every page except /contact
   ============================================================ */
.final-cta {
  background: var(--orange);
  color: var(--cream);
  padding: 7rem 0;
}
.final-cta h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
  color: var(--cream);
}
.final-cta h2 em { font-style: italic; font-weight: 500; }
.final-cta p {
  color: rgba(250, 247, 242, 0.9);
  font-size: 1.1875rem;
  max-width: 40em;
  margin-bottom: 2.5rem;
}
.final-cta .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.final-cta .btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.contact-direct {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 247, 242, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.contact-direct a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 247, 242, 0.4);
}
.contact-direct a:hover { border-color: var(--cream); }

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--ink);
  color: rgba(250, 247, 242, 0.7);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
  margin-bottom: 2rem;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } }
footer h5 {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
footer .logo { color: var(--cream); margin-bottom: 1.25rem; }
footer .logo-tag {
  font-size: 0.9375rem;
  color: rgba(250, 247, 242, 0.6);
  max-width: 20em;
  line-height: 1.5;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.75rem; }
footer ul a {
  color: rgba(250, 247, 242, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
}
footer ul a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(250, 247, 242, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}
