/* ============================================================
   Ynvest Fund | subpage styles (Helder)
   Loaded after styles.css. Compact teal page-hero, breadcrumb,
   sub-navigation, prose, spec tables, FAQ, contact.
   Subpages force the header into a known state via the dark
   page-hero (white header chrome works over it).
   ============================================================ */

/* page padding under the fixed header */
.page-hero {
  position: relative;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(95,189,209,0.16) 0%, transparent 60%),
    linear-gradient(150deg, #074152 0%, #05333f 100%);
  color: #fff;
  padding-top: clamp(104px, 13vh, 140px);
  padding-bottom: clamp(34px, 4.5vw, 52px);
  border-bottom: 1px solid rgba(143,212,227,0.22);
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(143,212,227,0.5), transparent);
}
.page-hero .wrap { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.62); flex-wrap: wrap; }
.breadcrumb span, .breadcrumb a { white-space: nowrap; }
.breadcrumb a { color: rgba(255,255,255,0.62); transition: color .2s; }
.breadcrumb a:hover { color: #8fd4e3; }
.breadcrumb .sep { color: rgba(255,255,255,0.35); }
.page-hero .eyebrow { color: #8fd4e3; margin-top: 18px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 600; color: #fff;
  font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.025em;
  margin-top: 14px; max-width: 16ch; text-wrap: balance;
}
.page-hero .intro { margin-top: 18px; max-width: 56ch; color: rgba(255,255,255,0.84); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; }

/* sub-navigation strip for "De Obligatie" cluster */
.subnav { position: sticky; top: 70px; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; font-size: 14px; color: var(--muted); padding: 16px 16px; position: relative; white-space: nowrap;
  transition: color .2s;
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--accent); }
.subnav a[aria-current="page"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--accent); }

/* editorial two-column: small label left, prose right (fills width) */
.editorial { display: grid; grid-template-columns: 0.34fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.editorial-aside { position: sticky; top: 96px; }
.editorial-aside .eyebrow { color: var(--accent); }
.editorial .prose { max-width: none; }

/* prose */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 22px; }
.prose p { color: var(--ink-soft); line-height: 1.7; }
.prose h3 { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); margin-top: 44px; }
.prose h3 + p { margin-top: 14px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul.ticks { display: flex; flex-direction: column; gap: 12px; }
.prose ul.ticks li { position: relative; padding-left: 30px; color: var(--ink-soft); line-height: 1.55; }
.prose ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 9px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* two-column content (prose + aside) */
.content-grid { display: grid; grid-template-columns: 1.55fr 0.9fr; gap: clamp(34px, 5vw, 72px); align-items: start; }
.aside-card { background: var(--card-bg); color: var(--card-ink); border-radius: var(--radius); padding: 32px 30px; position: sticky; top: 96px; }
.aside-card h4 { font-family: var(--serif); font-size: 21px; color: var(--card-ink); }
.aside-card .rows { margin-top: 20px; display: flex; flex-direction: column; }
.aside-card .row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--card-line); font-size: 15px; }
.aside-card .row:first-child { border-top: none; }
.aside-card .row .k { color: var(--card-muted); }
.aside-card .row .v { font-weight: 600; color: var(--card-ink); text-align: right; }
.aside-card .btn { margin-top: 24px; width: 100%; justify-content: center; }
.aside-card .btn-primary { background: #fff; color: var(--accent); }
.aside-card .btn-primary:hover { background: #eaf3f5; }

/* spec table */
.spec { border-top: 1px solid var(--line); }
.spec .row { display: grid; grid-template-columns: 0.5fr 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.spec .row .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec .row .v { color: var(--ink); font-size: 17px; line-height: 1.5; }
.spec .row .v strong { font-weight: 600; }

/* numbered risk / list cards */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; background: var(--surface); }
.info-card .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.info-card h4 { font-family: var(--serif); font-size: 21px; margin-top: 12px; }
.info-card p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin-top: 10px; }

/* FAQ / accordion */
.faq { border-top: 1px solid var(--line); max-width: 80ch; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 2vw, 22px); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: none; width: 26px; height: 26px; position: relative; }
.faq summary .ic::before, .faq summary .ic::after { content: ""; position: absolute; background: var(--accent); transition: transform .25s ease; }
.faq summary .ic::before { left: 0; right: 0; top: 12px; height: 2px; }
.faq summary .ic::after { top: 0; bottom: 0; left: 12px; width: 2px; }
.faq details[open] summary .ic::after { transform: scaleY(0); }
.faq details p { color: var(--ink-soft); line-height: 1.7; padding: 0 0 24px; max-width: 68ch; }

/* contact split */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info .blk h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-info .blk p, .contact-info .blk a { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.contact-info .blk a { color: var(--accent); }

/* request form: intent toggle + consent + success */
.intent { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); margin-bottom: 26px; }
.intent button {
  -webkit-appearance: none; appearance: none; cursor: pointer; border: none; background: transparent;
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 11px 20px; border-radius: var(--radius); transition: background .2s, color .2s; white-space: nowrap;
}
.intent button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.field.afspraak-only { display: none; }
form[data-intent="afspraak"] .field.afspraak-only { display: flex; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 22px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.consent label { font-size: 14px; color: var(--muted); line-height: 1.5; }
.consent label a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.form-success {
  display: none; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--bg-2); border-radius: var(--radius); padding: 26px 28px;
}
.form-success h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 8px; }
.form-success p { color: var(--ink-soft); line-height: 1.6; }
form.sent { display: none; }
form.sent + .form-success { display: block; }

@media (max-width: 920px) {
  .content-grid, .contact-grid, .cards-2 { grid-template-columns: 1fr; }
  .editorial { grid-template-columns: 1fr; gap: 8px; }
  .editorial-aside { position: static; }
  .aside-card { position: static; }
  .subnav { top: 56px; }
  .spec .row { grid-template-columns: 1fr; gap: 6px; }
}
