/* =========================================================
   Brazen Investments — style.css
   Institutioneel, rustig. Mobile-first.
   Palet en typografie volgens de projectbrief (sectie 3).
   ========================================================= */

:root {
  /* Kleuren */
  --near-black: #1A1A1A;
  --near-black-soft: #232323;
  --off-white: #F4EFE3;
  --off-white-dim: #d8d2c4;
  --gold: #B8912A;
  --gold-soft: #cda94a;
  --line: rgba(244, 239, 227, 0.12);
  --line-strong: rgba(244, 239, 227, 0.22);

  /* Typografie */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Ritme */
  --container: 1120px;
  --gutter: 1.5rem;
  --section-y: 4.5rem;

  /* Beweging — gedeeld door hero-load én scroll-reveals, zodat de hele
     pagina één rustige cadans heeft. */
  --ease-out-slow: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dur: 0.9s;
  --reveal-shift: 18px;
  --reveal-stagger: 150ms;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--near-black);
  color: var(--off-white);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0; }

/* ---------- Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link:focus {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  width: auto; height: auto;
  clip: auto; margin: 0;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--near-black);
  z-index: 1000;
  border-radius: 2px;
  font-weight: 500;
}

.link {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(205, 169, 74, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.link:hover,
.link:focus-visible { color: var(--off-white); border-color: var(--off-white); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--ghost {
  color: var(--off-white);
  border: 1px solid var(--line-strong);
  background: transparent;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn--solid {
  color: var(--near-black);
  background: var(--gold);
  border: 1px solid var(--gold);
}
.btn--solid:hover,
.btn--solid:focus-visible { background: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.82);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--off-white);
}
.brand__mark {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.nav { display: flex; align-items: center; }

.nav__menu {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0; padding: 0;
}
.nav__menu a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white-dim);
  transition: color 0.2s ease;
}
.nav__menu a:hover,
.nav__menu a:focus-visible { color: var(--gold-soft); }

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__bars,
.nav__bars::before,
.nav__bars::after {
  content: "";
  display: block;
  width: 24px; height: 2px;
  background: var(--off-white);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__bars::before { transform: translateY(-7px); }
.nav__bars::after { transform: translateY(5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 14vh, 9rem) 0 clamp(4rem, 10vh, 7rem);
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(184, 145, 42, 0.10), transparent 60%),
    linear-gradient(180deg, #171717 0%, var(--near-black) 100%);
  border-bottom: 1px solid var(--line);
}

/* Ambient achtergrond-canvas ("gloed + lijnen"): achter de tekst, decoratief. */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Leesbaarheids-scrim tussen canvas en tekst: donkerder aan de tekstzijde
   (links/onder), zodat de kop leesbaar blijft over de gouden gloed. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(26, 26, 26, 0.72) 0%,
      rgba(26, 26, 26, 0.45) 38%,
      rgba(26, 26, 26, 0.10) 68%,
      rgba(26, 26, 26, 0.00) 100%),
    linear-gradient(0deg,
      rgba(26, 26, 26, 0.55) 0%,
      rgba(26, 26, 26, 0.00) 42%);
}

.hero__inner { max-width: 46rem; position: relative; z-index: 2; }
.hero__line { display: block; }

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.9rem);
  font-weight: 500;
}
.hero__lead {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--off-white-dim);
  max-width: 38rem;
}
.hero .btn { margin-top: 2.4rem; }

/* ---------- Secties ---------- */
.section { padding: var(--section-y) 0; border-bottom: 1px solid var(--line); }
.section--alt { background: var(--near-black-soft); }

.section__head { max-width: 44rem; margin-bottom: 3rem; }
.section__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.section__title { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.section__intro {
  margin-top: 1.25rem;
  color: var(--off-white-dim);
  font-size: 1.075rem;
}
.section__note {
  margin-top: 2.5rem;
  color: var(--off-white-dim);
  font-size: 0.98rem;
  max-width: 44rem;
}

/* Tweede deel binnen een sectie (bijv. "Risicobeheer boven alles"). */
.section__part {
  max-width: 44rem;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.section__subtitle {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 1.25rem;
}
.section__part .section__intro { margin-top: 0; }

/* ---------- Pijlers (filosofie) ---------- */
.pillars,
.facts,
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pillar,
.fact {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(244,239,227,0.02), transparent);
}
.pillar__index {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.pillar__title,
.fact__title {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}
.pillar__body,
.fact__body { color: var(--off-white-dim); font-size: 1rem; }

/* ---------- Team ---------- */
.member {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  text-align: left;
}
.member__photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 3px;
  margin-bottom: 1.4rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, #2b2b2b 0%, #1f1f1f 100%);
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
}
.member__photo::after {
  /* subtiele goud-hoek als elegante placeholder-markering */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 120%, rgba(184,145,42,0.14), transparent 70%);
}
.member__initials {
  font-family: var(--serif);
  font-size: 3.2rem;
  color: var(--gold-soft);
  opacity: 0.85;
  position: relative;
}
.member__name { font-size: 1.5rem; }
.member__role {
  color: var(--gold-soft);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0.35rem 0 1rem;
}
.member__bio { color: var(--off-white-dim); font-size: 0.98rem; }

/* ---------- Contact / formulier ---------- */
.contact { max-width: 46rem; }
.form { margin-top: 0.5rem; }
.form__row { margin-bottom: 1.4rem; }
.form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--off-white);
}
.form__optional { color: var(--off-white-dim); text-transform: none; letter-spacing: 0; }

.form__input {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--off-white);
  background: rgba(244, 239, 227, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form__input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(244, 239, 227, 0.06);
}
textarea.form__input { resize: vertical; min-height: 120px; }

.form__honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.form .btn { margin-top: 0.5rem; }

.form__status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form__status--ok { color: var(--gold-soft); }
.form__status--err { color: #e0a3a3; }

.contact__fallback {
  margin-top: 2rem;
  color: var(--off-white-dim);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #141414;
  padding-top: 3.5rem;
  font-size: 0.92rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
}
.footer__brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--off-white);
  margin-bottom: 0.75rem;
}
.footer__meta { color: var(--off-white-dim); line-height: 1.7; margin-bottom: 0.75rem; }

.footer__notice {
  color: var(--off-white);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}
.footer__disclaimer { color: var(--off-white-dim); line-height: 1.6; }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
  color: rgba(244, 239, 227, 0.5);
  font-size: 0.82rem;
}

/* ---------- Reveal-on-scroll (secties) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition:
    opacity var(--reveal-dur) var(--ease-out-slow),
    transform var(--reveal-dur) var(--ease-out-slow);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reveal-bij-laden (hero, gestaffeld) ----------
   Alleen actief wanneer JS aan staat; anders blijft alles zichtbaar. */
.js .reveal-load {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition:
    opacity var(--reveal-dur) var(--ease-out-slow),
    transform var(--reveal-dur) var(--ease-out-slow);
  transition-delay: calc(var(--d, 0) * var(--reveal-stagger));
  will-change: opacity, transform;
}
.hero.is-loaded .reveal-load {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .js .reveal-load {
    opacity: 1;
    transform: none;
    transition: none;
  }
  /* Canvas blijft zichtbaar: JS tekent één statisch frame (geen animatie). */
}

/* =========================================================
   Responsive — tablet & desktop
   ========================================================= */
@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  :root { --section-y: 6rem; }
  .footer__inner { grid-template-columns: 1fr 1.3fr; gap: 3.5rem; }
}

/* ---------- Mobiele nav ---------- */
@media (max-width: 719px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(20, 20, 20, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__menu.is-open { max-height: 320px; }
  .nav__menu li { border-top: 1px solid var(--line); }
  .nav__menu a { display: block; padding: 1rem var(--gutter); }

  @media (prefers-reduced-motion: reduce) {
    .nav__menu { transition: none; }
  }
}
