/* ===========================================================
   KapitaalHuys — stylesheet
   Kleuren afgeleid van het logo: navy + goud
   =========================================================== */

:root {
  --navy:        #262a55;
  --navy-deep:   #1b1e40;
  --navy-soft:   #3a3f70;
  --gold:        #b08a3e;
  --gold-light:  #c9a253;
  --gold-soft:   #e8dcc2;
  --cream:       #f7f4ee;
  --cream-deep:  #efe9df;
  --ink:         #1f2330;
  --muted:       #5b6072;
  --line:        rgba(38, 42, 85, 0.12);
  --white:       #ffffff;
  --maxw:        1160px;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 18px 50px -22px rgba(27, 30, 64, 0.35);
  --shadow-sm:   0 8px 24px -14px rgba(27, 30, 64, 0.3);
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Jost", "Manrope", sans-serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

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

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

.eyebrow {
  display: inline-block;
  font-family: "Jost", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold-light); }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.92em 1.7em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: #2b1f08; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-light); color: #2b1f08; }
.btn--ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(27,30,64,0.5);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height 0.3s var(--ease);
}
.site-header.is-scrolled .nav { height: 70px; }

/* logo */
.logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.logo__word { font-family: "Jost", sans-serif; font-weight: 500; font-size: 1.55rem; letter-spacing: -0.01em; color: var(--navy); }
.logo__word b { font-weight: 500; color: var(--gold); }
.logo__sub { font-family: "Jost", sans-serif; font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--navy-soft); margin-top: 4px; }

.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: "Jost", sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width 0.28s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--gold); }
.nav__cta { margin-left: 0.5rem; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
main { padding-top: 84px; }
[id] { scroll-margin-top: 100px; }
.section { padding: 92px 0; }
.section--tight { padding: 68px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #d9dbe8; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 85% 0%, #2f346a 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding: 130px 0 110px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(176,138,62,0.28), transparent 62%);
}
.hero__inner { position: relative; z-index: 2; max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: 0.6em; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero__lead { font-size: 1.25rem; color: #c8cbe0; max-width: 56ch; margin-bottom: 2.2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { margin-top: 3.2rem; display: flex; flex-wrap: wrap; gap: 2.4rem; }
.hero__meta div { border-left: 2px solid var(--gold); padding-left: 1rem; }
.hero__meta strong { display: block; font-family: "Jost", sans-serif; font-size: 1.7rem; font-weight: 500; color: #fff; }
.hero__meta span { font-size: 0.9rem; color: #b6bad3; }

/* ---------- Pillars / cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--cream); color: var(--gold);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--muted); margin-bottom: 1em; font-size: 1rem; }
.card__link { font-family: "Jost", sans-serif; font-weight: 500; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.4em; }
.card__link .arrow { transition: transform 0.25s var(--ease); }
.card:hover .card__link .arrow { transform: translateX(4px); }
.card--num { counter-increment: step; }
.card__num { font-family: "Jost", sans-serif; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 14px; }

/* ---------- Service detail blocks ---------- */
.service { padding: 80px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.service__media { background: var(--cream); border-radius: var(--radius-lg); padding: 40px; }
.service__tag { font-family:"Jost",sans-serif; font-size:0.78rem; letter-spacing:0.2em; text-transform:uppercase; color:var(--gold); }
.checklist { list-style: none; padding: 0; margin: 1.4em 0 0; }
.checklist li { position: relative; padding: 0 0 0.9em 2em; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23806019' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.tag { font-size: 0.85rem; padding: 0.4em 0.9em; border-radius: 100px; background: var(--cream-deep); color: var(--navy); }

/* ---------- Complementair / partner block ---------- */
.note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--cream);
  padding: 30px 34px;
}
.note h3 { margin-bottom: 0.4em; }
.note p { color: var(--muted); margin: 0; }

/* ---------- Steps (werkwijze) ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); align-items: start; }
.step:first-child { border-top: 0; }
.step__no { counter-increment: step; font-family:"Jost",sans-serif; font-size: 2.4rem; font-weight: 500; color: var(--gold); line-height: 1; }
.step__no::before { content: "0" counter(step); }
.step h3 { margin-bottom: 0.3em; }
.step p { color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120% 120% at 0% 0%, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-radius: var(--radius-lg); padding: 64px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; left:-80px; bottom:-100px; width:380px; height:380px; border-radius:50%; background: radial-gradient(circle, rgba(176,138,62,0.25), transparent 65%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c8cbe0; max-width: 52ch; margin: 0 auto 1.8em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info dt { font-family:"Jost",sans-serif; font-weight:500; color: var(--navy); margin-top: 1.3em; }
.contact-info dd { margin: 0.2em 0 0; color: var(--muted); }
.contact-info a { color: var(--gold); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display:block; font-family:"Jost",sans-serif; font-size:0.9rem; font-weight:500; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 0.85em 1em; font: inherit; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fcfbf8;
  color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176,138,62,0.12); }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.96rem; }
.alert--ok { background: #e7f3ec; color: #1c5a38; border: 1px solid #bcdcc8; }
.alert--err { background: #fbeaea; color: #7a2222; border: 1px solid #e6c2c2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aeb2cd; padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer .logo__word { color: #fff; }
.site-footer .logo__sub { color: #8d92b3; }
.footer-grid p { color: #9094b5; margin-top: 1.1em; max-width: 38ch; }
.footer-col h4 { font-family:"Jost",sans-serif; font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.1em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6em; }
.footer-col a { color: #c2c5dd; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 0.85rem; color: #7e83a6; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--2, .service__grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .service__grid { gap: 32px; }
  /* blur uitzetten: voorkomt dat de fixed-drawer in de header wordt opgesloten */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.96); }
  .nav__toggle { display: block; z-index: 110; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); z-index: 105;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem; padding: 0 40px; background: var(--navy);
    transform: translateX(100%); transition: transform 0.4s var(--ease);
  }
  .nav__links a { color: #fff; font-size: 1.3rem; }
  .nav__links.is-open { transform: none; box-shadow: var(--shadow); }
  .nav__cta { margin: 0.5rem 0 0; }
  .cta-band { padding: 44px 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 110px 0 80px; }
  .card { padding: 30px 26px; }
  .cta-band { padding: 40px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
