/* =========================================================
   Samen met Guus — Beschermingsbewind & budgetbeheer
   Guus Schäperclaus. Static recreation. No frameworks, no build step.
   ========================================================= */

:root {
  --teal: #1E7F84;
  --teal-dark: #166065;
  --band: #cdd9d9;
  --grey-box: #ececec;
  --text: #828282;
  --black: #000000;
  --white: #ffffff;
  --wa: #25D366;
  --li: #5b8bbf;
  --fb: #1e2d6b;

  --maxw: 1180px;
  --pad: 24px;
  --header-h: 84px;

  --shadow-card: 0 12px 34px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 2px 14px rgba(0, 0, 0, 0.08);

  --ff-head: "Barlow Condensed", "Open Sans", sans-serif;
  --ff-body: "Open Sans", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--ff-head);
  color: var(--black);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h2 {
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 600;
  color: var(--teal);          /* this site: teal H2 headings */
}

h3 {
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* offset anchored sections for sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.teal-head { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 0;
  padding: 16px 34px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn--teal {
  background: var(--teal);
  color: var(--white);
}
.btn--teal:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.logo img { width: 150px; height: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--black);
  text-transform: none;
  padding: 6px 0;
  position: relative;
  transition: color .2s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width .25s ease;
}
.primary-nav a:hover { color: var(--teal-dark); }
.primary-nav a:hover::after { width: 100%; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("assets/Foto2.png") center 22% / cover no-repeat;
  z-index: 0;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0) 75%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 70px;
  padding-top: 70px;
}
.hero h1 {
  color: var(--white);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(44px, 8vw, 70px);
  margin-bottom: 24px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

/* ---------- Intro teal band ---------- */
.intro-band {
  background: var(--band);
  margin-top: -40px;          /* overlap the bottom of the hero */
  position: relative;
  z-index: 2;
}
.intro-band__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.intro-band__photo {
  margin-top: -70px;          /* lift the portrait up over the hero */
}
.intro-band__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.intro-band__card {
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 30px 34px;
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.check-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 2px;
}
.check-list span { color: var(--text); }

/* ---------- Generic section ---------- */
.section {
  padding: 80px 0;
}
.section--tight { padding-top: 40px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.two-col--top { align-items: start; }
.two-col__media img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
}
.two-col__text h2 { margin-bottom: 0.4em; }

/* "Wat kun je verwachten" block */
.expect-title {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--teal);
}
.expect-box {
  border: 2px solid var(--teal);
  padding: 40px;
  background: var(--white);
}
.expect-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 50px;
}
.expect-grid li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: var(--black);
  font-weight: 600;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
}
.expect-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: #313131;
}
.expect-icon svg { width: 32px; height: 32px; }

/* ---------- Parallax banners ---------- */
.parallax-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}
.parallax-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.parallax-banner > .container { position: relative; z-index: 1; width: 100%; }

.parallax-banner--1 {
  min-height: 340px;
  background-image: url("assets/Foto-7.png");
  text-align: center;
}
.parallax-banner--1 h2 {
  color: var(--white);
  margin: 0;
}

.parallax-banner--2 {
  min-height: 520px;
  background-image: url("assets/12.png");
  padding: 70px 0;
}
.parallax-banner--2::before { background: rgba(0, 0, 0, 0.35); }
.parallax-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  box-shadow: var(--shadow-card);
  padding: 48px;
  max-width: 55%;
}
.parallax-card h2 { color: var(--teal); margin-bottom: 0.6em; }

/* ---------- Grey info band ---------- */
.info-band {
  background: var(--grey-box);
  border-top: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  padding: 50px 0;
  text-align: left;
}
.info-band p { max-width: 900px; margin-left: auto; margin-right: auto; }
.info-band--inset { padding: 40px; }
.info-band--inset p { max-width: none; }

/* ---------- CSS-only tabs (Bewindvoering / Tarieven) ---------- */
.section--tabs { padding-top: 0; }
.tabs-heading { margin-bottom: 24px; }
.tabs { position: relative; }
.tab-radio { position: absolute; opacity: 0; pointer-events: none; }

.tab-labels {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--teal);
}
.tab-label {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--ff-head);
  font-weight: 600;
  text-transform: none;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--teal);
  background: var(--grey-box);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.tab-label:hover { background: #e0e0e0; }

.tab-panel { display: none; padding-top: 30px; }

/* show active panel + style active label */
/* active label: white background, teal text (raised look) */
#tab-bewind:checked ~ .tab-labels .tab-label--bewind,
#tab-tarieven:checked ~ .tab-labels .tab-label--tarieven,
#tab-budget:checked ~ .tab-labels .tab-label--budget,
#tab-budget-tarieven:checked ~ .tab-labels .tab-label--budget-tarieven {
  background: var(--white);
  color: var(--teal);
}
#tab-bewind:checked ~ .tab-panel--bewind { display: block; }
#tab-tarieven:checked ~ .tab-panel--tarieven { display: block; }
#tab-budget:checked ~ .tab-panel--budget { display: block; }
#tab-budget-tarieven:checked ~ .tab-panel--budget-tarieven { display: block; }

.tab-label:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 2px;
}

/* ---------- Tarieven rows (Bewindvoering) ---------- */
.rate-rows { margin: 6px 0 24px; }
.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  gap: 20px;
}
/* alternating zebra bars — both slightly darker than the grey box */
.rate-row:nth-of-type(odd)  { background: #e2e2e2; }
.rate-row:nth-of-type(even) { background: #dadada; }
.rate-label { color: var(--black); }
.rate-value {
  color: var(--black);
  font-weight: 600;
  white-space: nowrap;
}
.rate-subhead {
  font-family: var(--ff-body);
  font-weight: 700;
  color: #313131;
  text-transform: none;
  font-size: 17px;
  margin: 22px 0 10px;
}

/* ---------- Budgetbeheer ---------- */
.budget-pdf { margin-top: 14px; }
.link-teal { color: var(--teal); font-weight: 600; }
.link-teal:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: url("assets/12.png") center / cover no-repeat fixed;
  padding: 80px 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.site-footer .container { position: relative; z-index: 1; }

.footer-panel {
  background: var(--white);
  box-shadow: var(--shadow-card);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 0;
}
/* thin vertical dividers + spacing between the three columns */
.footer-col--contact,
.footer-col--branche {
  border-left: 1px solid #e2e2e2;
  padding-left: 40px;
  margin-left: 40px;
}
.footer-portrait {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 24px;
}
.footer-col h3 { margin-bottom: 0.6em; }
.footer-col--contact p { color: var(--text); }
.footer-col--contact strong { color: var(--black); }

/* email shown as a thin-bordered inline box */
.email-box {
  display: inline-block;
  border: 1px solid #e2e2e2;
  padding: 10px 16px;
  color: var(--teal);
  font-weight: 600;
  margin: 4px 0;
}
.email-box:hover { text-decoration: underline; }

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 0;
  max-width: 320px;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  transition: filter .2s ease, transform .2s ease;
}
.social-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.social-btn svg { width: 22px; height: 22px; flex: 0 0 auto; }
.social-btn--wa { background: var(--wa); }
.social-btn--in { background: var(--li); }
.social-btn--fb { background: var(--fb); }

.footer-col--branche p { color: var(--text); }
.branche-logo { margin: 18px 0; }
.branche-logo--aegis { width: 180px; }
.branche-logo--fti { width: 120px; }
.branche-note { font-size: 14px; margin-bottom: 0.4em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .primary-nav.is-open { max-height: 420px; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .primary-nav li { border-top: 1px solid #f0f0f0; }
  .primary-nav li:first-child { border-top: 0; }
  .primary-nav a {
    display: block;
    padding: 14px var(--pad);
  }
  .primary-nav a::after { display: none; }
}

@media (max-width: 860px) {
  /* parallax → scroll on mobile */
  .parallax-banner,
  .site-footer { background-attachment: scroll; }

  .section { padding: 56px 0; }
  .section--tight { padding-top: 20px; }

  .two-col,
  .two-col--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* keep image after text on mobile for reversed sections */
  .two-col--reverse .two-col__media { order: -1; }
  .two-col__media img { max-height: 360px; }

  .intro-band {
    margin-top: 0;
  }
  .intro-band__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .intro-band__photo {
    margin-top: -90px;
    max-width: 240px;
  }

  .expect-grid { grid-template-columns: 1fr; gap: 24px; }
  .expect-box { padding: 28px; }

  .parallax-card { max-width: 100%; padding: 32px; }
  .parallax-banner--2 { min-height: 0; }

  .tab-label { padding: 12px 20px; font-size: 18px; }

  .footer-panel {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 36px;
  }
  /* stack to one column, drop vertical dividers */
  .footer-col--contact,
  .footer-col--branche {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    border-top: 1px solid #e2e2e2;
    padding-top: 28px;
  }
  .site-footer { padding: 50px 0; }
}

@media (max-width: 480px) {
  :root { --pad: 18px; }
  .hero { min-height: 460px; }
  .footer-panel { padding: 22px; }
  .tab-labels { flex-wrap: wrap; }
}

/* ---------- Motion: respect reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
