/* ---------------------------------------------------------------------------
   Opmaak voor de inhoud ónder de paginakop. Bewust klein gehouden: een paar
   bouwstenen die je op elke pagina kunt combineren.
   --------------------------------------------------------------------------- */

.sc-section {
  --sc-primary: #1b2246;
  --sc-accent: #56cfbd;
  --sc-muted: rgba(27, 34, 70, 0.72);
  --sc-max: 1680px;
  --sc-gutter: clamp(20px, 5.4vw, 96px);

  padding: clamp(56px, 7vw, 110px) var(--sc-gutter);
  color: var(--sc-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.sc-section-tint {
  background: #f4fbf8;
}

.sc-section-inner {
  width: min(100%, var(--sc-max));
  margin: 0 auto;
}

/* --- Lopende tekst ------------------------------------------------------- */

.sc-prose {
  max-width: 68ch;
}

.sc-prose h2 {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.sc-prose h3 {
  margin: 44px 0 12px;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sc-prose p,
.sc-prose li {
  color: var(--sc-muted);
  font-size: clamp(1rem, 1.15vw, 1.14rem);
  line-height: 1.68;
  font-weight: 450;
}

.sc-prose p {
  margin: 0 0 18px;
}

.sc-prose ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.sc-prose li {
  margin-bottom: 10px;
}

.sc-prose a {
  color: #0d7f70;
  font-weight: 600;
}

/* --- Kaartenraster ------------------------------------------------------- */

.sc-section-head {
  max-width: 62ch;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.sc-section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.sc-section-head p {
  margin: 18px 0 0;
  color: var(--sc-muted);
  font-size: clamp(1rem, 1.15vw, 1.14rem);
  line-height: 1.65;
  font-weight: 450;
}

.sc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.sc-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid rgba(27, 34, 70, 0.1);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(27, 34, 70, 0.07);
}

.sc-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 1.45vw, 1.32rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  /* Lange samenstellingen als "Expertisegebieden" mogen afbreken. */
  hyphens: auto;
  overflow-wrap: break-word;
}

.sc-card p {
  margin: 0;
  color: var(--sc-muted);
  font-size: clamp(0.96rem, 1.1vw, 1.06rem);
  line-height: 1.6;
  font-weight: 450;
}

/* Bijtitel ónder een kaarttitel, bijv. het bijschrift van een dienst.
   Let op: nooit labels bóven titels zetten (zie CLAUDE.md). */
.sc-card .sc-card-sub {
  margin: -6px 0 12px;
  color: #0d7f70;
  font-size: 0.92rem;
  font-weight: 700;
}

.sc-card-link {
  /* auto duwt de link naar de onderkant, zodat ze in een rij kaarten met
     verschillende tekstlengtes toch op één lijn staan. */
  margin-top: auto;
  padding-top: 20px;
  color: #0d7f70;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.sc-card-link::after {
  content: " →";
}

.sc-card-link:hover,
.sc-card-link:focus-visible {
  text-decoration: underline;
}

/* --- Afsluitend blok met oproep ------------------------------------------ */

.sc-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(32px, 4vw, 60px);
  border-radius: 30px;
  background: #1b2246;
  color: #ffffff;
}

.sc-cta h2 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.sc-cta p {
  max-width: 52ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.6;
}

.sc-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 10px;
  background: #56cfbd;
  color: #1b2246;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.025em;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.sc-btn-ghost {
  background: transparent;
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.34);
}

.sc-btn::after {
  content: "→";
  font-size: 1.35rem;
  line-height: 0;
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

.sc-btn:hover,
.sc-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  outline: none;
}

.sc-btn-ghost:hover,
.sc-btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.sc-btn:hover::after,
.sc-btn:focus-visible::after {
  transform: translate(4px, -1px);
}

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

/* --- Teamkaarten met foto (bijv. kwaliteitsteam) ------------------------- */

.sc-team-foto {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 20px;
}

/* Opdrachtkaarten op de dienstpagina's: de verkenner op Alle diensten linkt
   ernaar (#id); de gekozen kaart licht even op. */
.sc-card-doel {
  scroll-margin-top: 120px;
}

.sc-card-doel:target {
  box-shadow: 0 0 0 3px var(--sc-accent), 0 18px 44px rgba(27, 34, 70, 0.12);
}

/* Licht vlak dat direct onder de (schuine) paginakop doorloopt, zonder witte
   strook ertussen (zoals de werkwijze op "Hoe wij werken"). Zet de klasse
   sc-section-doorloop op de eerste sectie van de pagina. */
main > .sc-section-doorloop:first-child {
  position: relative;
  z-index: 0;
  margin-top: calc(-7vw - 40px);
  padding-top: calc(7vw + 40px + clamp(40px, 5vw, 80px));
}

.sc-page-hero:has(+ main > .sc-section-doorloop:first-child) {
  position: relative;
  z-index: 1;
}

/* --- Rij logo's (bijv. trainingspartners op Kwaliteitsteam) --------------- */

.sc-logo-rij-titel {
  margin: clamp(40px, 5vw, 64px) 0 20px;
  font-size: clamp(1.1rem, 1.45vw, 1.32rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sc-logo-rij {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-logo-rij li {
  display: grid;
  place-items: center;
  height: 104px;
  padding: 22px 28px;
  border: 1px solid rgba(27, 34, 70, 0.1);
  border-radius: 20px;
  background: #ffffff;
}

.sc-logo-rij img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}
