/* =========================================================================
   Triloxigen — one page website
   Nav + hero values are ported verbatim from the design handoff
   (Triloxigen.dc.html). Lower sections extend the same brand language.
   ========================================================================= */

:root {
  --ink:        #1A1411;
  --bg:         #ffffff;
  --accent:     #ff4900;
  --hero-bg:    #0F0C0C;

  --muted:      #6B615B;   /* body text on light */
  --surface:    #FAF7F5;   /* light card fill     */
  --line:       rgba(26, 20, 17, 0.10);

  /* hero / dark section text tints (from the design) */
  --d-strong:   #ffffff;
  --d-soft:     #D8CEC6;
  --d-body:     #CABFB6;
  --d-link:     #D6CEC8;

  --maxw:       1120px;
  --radius:     22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

@keyframes triFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal-on-scroll helper (wired up in nav.js) */
.reveal { opacity: 0; }
.reveal.is-in { animation: triFadeUp 0.7s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; animation: none; }
  html { scroll-behavior: auto; }
}

/* =============================== NAV =============================== */
.nav-wrap {
  position: fixed;
  top: 14px;
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 18px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  width: 100%;
  max-width: 920px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px 9px 20px;
  background: rgba(20, 15, 13, 0.80);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.55);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 73, 0, 0.20);
}
.nav-brand__name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  text-decoration: none;
  color: var(--d-link);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #fff; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(255, 73, 0, 0.8);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* =============================== HERO =============================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 86vh;
  padding-top: 92px;
  display: flex;
  align-items: center;
  background: var(--hero-bg);
}
.hero__globe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 10vh 6vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

.hero__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 26px;
  max-width: 14ch;
  text-wrap: balance;
  animation: triFadeUp 0.8s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: 0.05s;
}
.hero__title .accent { color: var(--accent); }

.hero__body {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--d-body);
  max-width: 620px;
  margin: 0 0 38px;
  animation: triFadeUp 0.8s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: 0.15s;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: triFadeUp 0.8s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: 0.25s;
}

/* =============================== EYEBROW =============================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow--dark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--d-soft);
  margin-bottom: 30px;
  animation: triFadeUp 0.8s cubic-bezier(.2,.7,.2,1) both;
}

/* =============================== BUTTONS =============================== */
/* Reset native button chrome where buttons are used as CTAs */
button.btn,
button.nav-cta {
  font-family: inherit;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn__arrow { font-size: 18px; transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--accent {
  color: #fff;
  background: var(--accent);
}
.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(255, 73, 0, 0.7);
}
.btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.30);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* =============================== SECTIONS =============================== */
.section { padding: clamp(72px, 11vw, 132px) 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.section-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}

/* =============================== VISIE / PILLARS =============================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar {
  padding: 34px 30px 38px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 73, 0, 0.35);
  box-shadow: 0 22px 44px -26px rgba(26, 20, 17, 0.35);
}
.pillar__num {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.pillar__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 16px 0 10px;
}
.pillar__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* =============================== STATS =============================== */
.stats {
  background: var(--hero-bg);
  color: #fff;
  padding: clamp(48px, 7vw, 78px) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 8px 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
}
.stat:first-child { border-left: none; }
.stat__value {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.stat__label {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--d-soft);
}

/* =============================== BEDRIJVEN =============================== */
.companies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.company {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.company--wide { grid-column: span 2; }
.company:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 73, 0, 0.35);
  box-shadow: 0 26px 50px -28px rgba(26, 20, 17, 0.4);
}
.company__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.company__logo {
  display: flex;
  align-items: center;
  height: 34px;
}
.company__logo img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
}
.company__tag {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 73, 0, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
}
.company__name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.company__desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 46ch;
}
.company__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.company__link span { transition: transform 0.2s ease; color: var(--accent); }
.company:hover .company__link span { transform: translateX(4px); }

/* =============================== CONTACT =============================== */
.contact {
  background: var(--hero-bg);
  color: #fff;
  padding: clamp(80px, 12vw, 150px) 0;
}
.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 16ch;
  text-wrap: balance;
}
.contact__body {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--d-body);
  max-width: 560px;
  margin: 0 0 36px;
}
.contact__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.contact__email {
  color: var(--d-link);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact__email:hover { color: #fff; border-color: #fff; }

/* =============================== FOOTER =============================== */
.footer {
  background: #0A0808;
  color: var(--d-soft);
  padding: 44px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.nav-brand--footer .nav-brand__name { font-size: 20px; }
.footer__tagline {
  margin: 0;
  font-size: 15px;
  color: var(--d-body);
  flex: 1 1 260px;
}
.footer__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  color: #8A7F78;
}

/* =============================== CONTACT MODAL =============================== */
html.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 12, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade 0.25s ease both;
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg);
  border-radius: 26px;
  padding: 38px 36px 34px;
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.55);
  animation: modalPop 0.32s cubic-bezier(.2,.7,.2,1) both;
}
.modal__close {
  position: absolute;
  top: 16px; right: 18px;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.modal__close:hover {
  color: var(--ink);
  border-color: rgba(255, 73, 0, 0.4);
  transform: rotate(90deg);
}
.modal__title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 4px 0 10px;
}
.modal__lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 42ch;
}
.modal__form { min-height: 40px; }

/* Recolor the injected contact-form widget's submit button to the brand accent.
   The widget sets its colour via an inline style, so !important is required. */
.modal__form button[type="submit"] {
  background: var(--accent) !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.modal__form button[type="submit"]:hover {
  background: #e63f00 !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(255, 73, 0, 0.8);
}

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .modal__backdrop, .modal__dialog { animation: none; }
}

/* =============================== RESPONSIVE =============================== */
@media (max-width: 860px) {
  .companies { grid-template-columns: repeat(2, 1fr); }
  .company--wide { grid-column: span 2; }
  .pillars { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .stat:nth-child(odd) { border-left: none; }
}

@media (max-width: 720px) {
  .nav { position: relative; padding: 9px 10px 9px 18px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    background: rgba(20, 15, 13, 0.94);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    box-shadow: 0 24px 44px -18px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-link { padding: 10px 12px; border-radius: 12px; }
  .nav-link:hover { background: rgba(255, 255, 255, 0.06); }
  .nav-cta { justify-content: center; margin-top: 4px; }
}

@media (max-width: 560px) {
  .companies { grid-template-columns: 1fr; }
  .company--wide { grid-column: span 1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__actions { flex-direction: column; gap: 18px; }
}
