/*
Theme Name: Perspectiefhuis – Elandsstraat
Theme URI: https://perspectiefhuis.nl
Author: Perspectiefhuis
Author URI: https://perspectiefhuis.nl
Description: Eigen thema voor de jeugdzorglocatie Elandsstraat 84 in Amsterdam, in de huisstijl van het Perspectiefhuis (rood, wit, zachte roze tinten, Andreaskruisen). Bevat een homepage-template met hero, kerncijfers, begeleiding, zorgcontract en fotogalerij, plus opgemaakte content-pagina's.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: perspectiefhuis
Tags: one-column, custom-menu, custom-logo, featured-images, block-styles, wide-blocks, translation-ready
*/

/* ==========================================================================
   1. Design tokens – huisstijl Perspectiefhuis
   ========================================================================== */
:root {
  --ph-red: #E2001A;
  --ph-red-dark: #B80015;
  --ph-red-soft: #F2545B;
  --ph-pink: #FDE8EA;
  --ph-pink-light: #FFF5F6;
  --ph-ink: #2B2B2B;
  --ph-ink-soft: #55575B;
  --ph-grey: #EFEFEF;
  --ph-grey-light: #F7F7F7;
  --ph-white: #FFFFFF;
  --ph-line: rgba(226, 0, 26, 0.35);

  --ph-font: "Gill Sans", "Gill Sans MT", "Cabin", "Calibri", "Trebuchet MS", sans-serif;
  --ph-radius: 14px;
  --ph-radius-lg: 22px;
  --ph-shadow: 0 10px 30px rgba(43, 43, 43, 0.08);
  --ph-container: 1180px;
  --ph-gutter: clamp(20px, 4vw, 48px);
}

/* ==========================================================================
   2. Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ph-font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ph-ink);
  background: var(--ph-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ph-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ph-red-dark); }
h1, h2, h3, h4 { font-family: var(--ph-font); line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; color: var(--ph-ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 400; }
h3 { font-size: 1.3rem; }
h2 .accent, h1 .accent, .accent { color: var(--ph-red); }
.ph-content h1 strong, .ph-content h2 strong, .wp-block-heading strong { color: var(--ph-red); font-weight: inherit; }
p.ph-kicker { margin: 0 0 12px; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--ph-red); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 8px; }

.ph-container { width: min(var(--ph-container), 100% - 2 * var(--ph-gutter)); margin-inline: auto; }
.ph-section { padding-block: clamp(56px, 8vw, 104px); }
.ph-section--tight { padding-block: clamp(36px, 5vw, 64px); }
.ph-section--pink { background: var(--ph-pink-light); }
.ph-section--grey { background: var(--ph-grey-light); }
.ph-section--red { background: var(--ph-red); color: #fff; }
.ph-section--red h2, .ph-section--red h3, .ph-section--red a { color: #fff; }

.ph-kicker {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ph-red);
  font-weight: 700;
  margin-bottom: 12px;
}
.ph-lead { font-size: 1.2rem; color: var(--ph-ink-soft); max-width: 62ch; }
.ph-center { text-align: center; }
.ph-center .ph-lead { margin-inline: auto; }

/* Knoppen */
.ph-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--ph-red); color: #fff !important;
  font-weight: 600; text-decoration: none; border: 2px solid var(--ph-red);
  transition: background .2s, transform .2s, border-color .2s;
  cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.2;
}
.ph-btn:hover { background: var(--ph-red-dark); border-color: var(--ph-red-dark); transform: translateY(-1px); }
.ph-btn--outline { background: transparent; color: var(--ph-red) !important; }
.ph-btn--outline:hover { background: var(--ph-pink); color: var(--ph-red-dark) !important; }
.ph-btn--white { background: #fff; color: var(--ph-red) !important; border-color: #fff; }
.ph-btn--white:hover { background: var(--ph-pink); border-color: var(--ph-pink); }
.ph-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.7); }
.ph-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.ph-btn svg { width: 18px; height: 18px; }

/* Andreaskruisen (XXX) */
.ph-xxx { display: inline-flex; flex-direction: column; gap: 3px; line-height: 0; }
.ph-xxx svg { width: 18px; height: 18px; fill: var(--ph-red); }
.ph-xxx--white svg { fill: #fff; }
.ph-xxx--row { flex-direction: row; gap: 4px; }
.ph-xxx--row svg { width: 12px; height: 12px; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.ph-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ph-grey);
}
.ph-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.ph-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ph-ink); }
.ph-brand__mark { width: 52px; height: 52px; flex: none; }
.ph-brand__name { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; color: var(--ph-red); text-transform: uppercase; line-height: 1; }
.ph-brand__sub { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ph-ink-soft); margin-top: 5px; font-weight: 600; }
.ph-brand img.custom-logo { height: 52px; width: auto; }

.ph-nav { display: flex; align-items: center; gap: 8px; }
.ph-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ph-nav li { position: relative; }
.ph-nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ph-ink); font-weight: 500; }
.ph-nav a:hover, .ph-nav .current-menu-item > a, .ph-nav .current_page_item > a, .ph-nav .current-menu-ancestor > a { background: var(--ph-pink); color: var(--ph-red); }
.ph-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: var(--ph-radius); box-shadow: var(--ph-shadow); padding: 8px; display: none; flex-direction: column; }
.ph-nav li:hover > .sub-menu, .ph-nav li:focus-within > .sub-menu { display: flex; }
.ph-nav .sub-menu a { border-radius: 8px; }
.ph-nav__cta { margin-left: 8px; }
.ph-nav-toggle { display: none; background: none; border: 2px solid var(--ph-red); border-radius: 999px; padding: 8px 14px; color: var(--ph-red); font-family: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; align-items: center; gap: 8px; }
.ph-nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .ph-nav-toggle { display: inline-flex; }
  .ph-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--ph-grey); box-shadow: var(--ph-shadow); flex-direction: column; align-items: stretch; padding: 12px var(--ph-gutter) 20px; display: none; }
  .ph-nav.is-open { display: flex; }
  .ph-nav ul { flex-direction: column; }
  .ph-nav a { padding: 12px 14px; }
  .ph-nav .sub-menu { position: static; display: flex; box-shadow: none; padding: 0 0 0 16px; }
  .ph-nav__cta { margin: 8px 0 0; }
}

/* ==========================================================================
   4. Hero (rood vlak + foto, zoals de presentatie)
   ========================================================================== */
.ph-hero { position: relative; background: var(--ph-red); color: #fff; overflow: hidden; }
.ph-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: min(78vh, 720px); }
.ph-hero__content { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(48px, 7vw, 96px) var(--ph-gutter) clamp(48px, 7vw, 96px) max(var(--ph-gutter), calc((100vw - var(--ph-container)) / 2)); position: relative; }
.ph-hero__xxx { position: absolute; left: 22px; top: 28px; }
.ph-hero__kicker { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; opacity: .9; }
.ph-hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.3rem, 5vw, 4rem); margin: 0; }
.ph-hero h1 strong { font-weight: 600; }
.ph-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 54ch; margin: 0; border-top: 1px solid rgba(255,255,255,.45); padding-top: 18px; color: rgba(255,255,255,.95); }
.ph-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ph-hero__media { position: relative; min-height: 360px; }
.ph-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; position: absolute; inset: 0; }
.ph-hero__badge { position: absolute; left: -1px; bottom: 32px; background: #fff; color: var(--ph-ink); padding: 14px 22px 14px 20px; border-radius: 0 999px 999px 0; box-shadow: var(--ph-shadow); display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ph-hero__badge svg { width: 26px; height: 26px; }
.ph-hero__badge small { display: block; font-weight: 400; color: var(--ph-ink-soft); font-size: .85rem; }
@media (max-width: 860px) {
  .ph-hero__grid { grid-template-columns: 1fr; }
  .ph-hero__content { padding-left: var(--ph-gutter); padding-top: 100px; }
  .ph-hero__media { min-height: 320px; }
}

/* ==========================================================================
   5. Kerncijfers / feiten
   ========================================================================== */
.ph-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ph-fact { background: #fff; border: 1.5px solid var(--ph-line); border-radius: var(--ph-radius); padding: 22px 22px 20px; display: flex; gap: 16px; align-items: flex-start; }
.ph-fact__icon { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--ph-pink); display: grid; place-items: center; }
.ph-fact__icon svg { width: 28px; height: 28px; stroke: var(--ph-red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-fact strong { display: block; font-size: 1.55rem; line-height: 1.1; color: var(--ph-red); font-weight: 600; }
.ph-fact span { color: var(--ph-ink-soft); font-size: .98rem; }
@media (max-width: 960px) { .ph-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ph-facts { grid-template-columns: 1fr; } }

/* ==========================================================================
   6. Tekst + beeld blokken
   ========================================================================== */
.ph-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.ph-split--reverse > :first-child { order: 2; }
.ph-split__media { position: relative; }
.ph-split__media img { border-radius: var(--ph-radius-lg); box-shadow: var(--ph-shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph-split__media--portrait img { aspect-ratio: 3 / 4; }
.ph-split__media--illu img { box-shadow: none; aspect-ratio: auto; border-radius: 0; object-fit: contain; }
.ph-split__media .ph-sticker { position: absolute; right: -10px; bottom: -14px; background: var(--ph-red); color: #fff; padding: 14px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--ph-shadow); display: flex; align-items: center; gap: 10px; }
.ph-split__media .ph-sticker svg { width: 20px; height: 20px; }
.ph-checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ph-checklist li { display: flex; gap: 12px; align-items: flex-start; }
.ph-checklist li::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ph-red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); background-size: 15px; background-repeat: no-repeat; background-position: center; margin-top: 2px; }
.ph-checklist--soft li::before { background-color: var(--ph-pink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E2001A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
@media (max-width: 860px) { .ph-split { grid-template-columns: 1fr; } .ph-split--reverse > :first-child { order: 0; } }
/* Gutenberg-kolommen met de klasse ph-split */
.wp-block-columns.ph-split { display: grid; gap: clamp(28px, 5vw, 72px); }
.wp-block-columns.ph-split > .wp-block-column { flex: none; width: auto; margin: 0; }
.wp-block-columns.ph-split .wp-block-image { margin: 0; }
.wp-block-columns.ph-split .wp-block-image img { border-radius: var(--ph-radius-lg); box-shadow: var(--ph-shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wp-block-columns.ph-split .ph-split__media--portrait .wp-block-image img { aspect-ratio: 3 / 4; }
.wp-block-columns.ph-split .ph-split__media--illu .wp-block-image img { box-shadow: none; aspect-ratio: auto; border-radius: 0; object-fit: contain; }
.wp-block-quote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--ph-red); background: var(--ph-pink-light); border-radius: 0 var(--ph-radius) var(--ph-radius) 0; font-size: 1.15rem; }
.wp-block-quote p:last-child { margin: 0; }
.wp-block-list.ph-checklist { padding: 0; }

/* ==========================================================================
   7. Kaarten (begeleiding, voorzieningen)
   ========================================================================== */
.ph-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.ph-card { background: #fff; border: 1.5px solid var(--ph-line); border-radius: var(--ph-radius-lg); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s; }
.ph-card:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow); }
.ph-card__icon { width: 62px; height: 62px; border-radius: 50%; background: var(--ph-pink); display: grid; place-items: center; }
.ph-card__icon svg { width: 32px; height: 32px; stroke: var(--ph-red); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ph-card h3 { color: var(--ph-red); text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; font-weight: 700; margin: 4px 0 0; }
.ph-card p { margin: 0; color: var(--ph-ink-soft); }
.ph-card--red { background: var(--ph-red); border-color: var(--ph-red); color: #fff; }
.ph-card--red h3, .ph-card--red p { color: #fff; }
.ph-card--red .ph-card__icon { background: rgba(255,255,255,.18); }
.ph-card--red .ph-card__icon svg { stroke: #fff; }
@media (max-width: 960px) { .ph-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ph-cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   8. Zorgcontract-band en kernboodschap
   ========================================================================== */
.ph-band { background: var(--ph-red); color: #fff; border-radius: var(--ph-radius-lg); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.ph-band h2 { color: #fff; }
.ph-band .ph-lead { color: rgba(255,255,255,.92); }
.ph-band__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ph-band__list li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.ph-band__list svg { flex: none; width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
@media (max-width: 860px) { .ph-band { grid-template-columns: 1fr; } }

.ph-message { display: flex; align-items: center; gap: 18px; background: var(--ph-pink); border-radius: var(--ph-radius-lg); padding: 20px 26px; margin-top: 40px; }
.ph-message__icon { flex: none; width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.ph-message__icon svg { width: 30px; height: 30px; stroke: var(--ph-red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-message p { margin: 0; font-size: 1.15rem; }
.ph-message strong { color: var(--ph-red); }

/* ==========================================================================
   9. Galerij
   ========================================================================== */
.ph-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; margin-top: 36px; }
.ph-gallery figure { margin: 0; position: relative; border-radius: var(--ph-radius); overflow: hidden; background: var(--ph-grey); }
.ph-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ph-gallery figure:hover img { transform: scale(1.04); }
.ph-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; background: linear-gradient(to top, rgba(43,43,43,.75), transparent); color: #fff; font-size: .9rem; font-weight: 600; }
.ph-gallery .is-wide { grid-column: span 2; }
.ph-gallery .is-tall { grid-row: span 2; }
@media (max-width: 860px) { .ph-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 520px) { .ph-gallery { grid-template-columns: 1fr; } .ph-gallery .is-wide { grid-column: auto; } .ph-gallery .is-tall { grid-row: auto; } }

/* ==========================================================================
   10. Stappen (aanmelden) en contact
   ========================================================================== */
.ph-steps { counter-reset: step; list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ph-steps li { background: #fff; border: 1.5px solid var(--ph-line); border-radius: var(--ph-radius); padding: 24px 22px; position: relative; }
.ph-steps li::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--ph-red); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.ph-steps h3 { font-size: 1.05rem; color: var(--ph-red); text-transform: uppercase; letter-spacing: .05em; }
.ph-steps p { margin: 0; color: var(--ph-ink-soft); font-size: .98rem; }
@media (max-width: 960px) { .ph-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ph-steps { grid-template-columns: 1fr; } }

.ph-contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.ph-contact__card { background: #fff; border: 1.5px solid var(--ph-line); border-radius: var(--ph-radius-lg); padding: 30px; }
.ph-contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ph-contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.ph-contact__list svg { flex: none; width: 24px; height: 24px; stroke: var(--ph-red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.ph-contact__list strong { display: block; }
.ph-map { border-radius: var(--ph-radius-lg); overflow: hidden; border: 1.5px solid var(--ph-line); min-height: 320px; background: var(--ph-pink-light); }
.ph-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
@media (max-width: 860px) { .ph-contact { grid-template-columns: 1fr; } }

/* ==========================================================================
   11. Pagina's (page.php) en inhoud
   ========================================================================== */
.ph-page-header { background: var(--ph-pink-light); border-bottom: 1px solid var(--ph-pink); padding: clamp(40px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.ph-page-header__xxx { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); opacity: .9; }
.ph-page-header h1 { margin: 0; }
.ph-page-header .ph-lead { margin: 12px 0 0; }
.ph-page-header--image { padding: 0; background: var(--ph-ink); }
.ph-page-header--image .ph-page-header__media { position: relative; min-height: 340px; }
.ph-page-header--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.ph-page-header--image .ph-page-header__text { position: relative; z-index: 1; padding: clamp(48px, 7vw, 96px) 0; color: #fff; }
.ph-page-header--image h1, .ph-page-header--image .ph-lead { color: #fff; }
.ph-page-header--image .ph-page-header__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,43,43,.75), rgba(43,43,43,.2)); }

.ph-content { max-width: 78ch; }
.ph-content--wide { max-width: none; }
.ph-content h2 { margin-top: 1.6em; }
.ph-content h3 { margin-top: 1.4em; color: var(--ph-red); }
.ph-content ul li, .ph-content ol li { margin-bottom: .35em; }
.ph-content blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--ph-red); background: var(--ph-pink-light); border-radius: 0 var(--ph-radius) var(--ph-radius) 0; font-size: 1.15rem; }
.ph-content blockquote p:last-child { margin: 0; }
.ph-content figure { margin: 1.5em 0; }
.ph-content figure img { border-radius: var(--ph-radius); }
.ph-content figcaption { font-size: .9rem; color: var(--ph-ink-soft); margin-top: 6px; }
.ph-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.ph-content th, .ph-content td { padding: 12px 14px; border-bottom: 1px solid var(--ph-grey); text-align: left; vertical-align: top; }
.ph-content th { color: var(--ph-red); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }
.ph-content .wp-block-image img { border-radius: var(--ph-radius); }
.alignwide { max-width: var(--ph-container); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* Blokstijlen voor de editor (ook via WXR-import) */
.ph-box { border: 1.5px solid var(--ph-line); border-radius: var(--ph-radius-lg); padding: 26px 28px; margin: 1.6em 0; background: #fff; }
.ph-box--pink { background: var(--ph-pink-light); border-color: var(--ph-pink); }
.ph-box--red { background: var(--ph-red); color: #fff; border-color: var(--ph-red); }
.ph-box--red h2, .ph-box--red h3, .ph-box--red a { color: #fff; }
.ph-box > :first-child { margin-top: 0; }
.ph-box > :last-child { margin-bottom: 0; }
.ph-box__title { display: block; background: var(--ph-red); color: #fff; margin: -26px -28px 20px; padding: 12px 28px; border-radius: 20px 20px 0 0; font-weight: 600; }
.ph-iconlist { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 10px; }
.ph-iconlist li { display: flex; gap: 12px; align-items: flex-start; }
.ph-iconlist li::before { content: "•"; color: var(--ph-red); font-size: 1.5em; line-height: 1; margin-top: -2px; }
.ph-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 1.5em 0; }
@media (max-width: 720px) { .ph-grid-2 { grid-template-columns: 1fr; } }

/* Spacing van themablokken binnen pagina-inhoud */
.ph-content > .ph-facts, .ph-content > .ph-split, .ph-content > .ph-cards, .ph-content > .ph-steps, .ph-content > .ph-band, .ph-content > .ph-message, .ph-content > .ph-gallery { margin-block: 48px; }
.ph-content > :first-child { margin-top: 0; }

/* Blog / index */
.ph-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ph-post { background: #fff; border: 1.5px solid var(--ph-line); border-radius: var(--ph-radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.ph-post img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.ph-post__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ph-post__meta { font-size: .85rem; color: var(--ph-ink-soft); }
.ph-post h3 a { color: var(--ph-ink); text-decoration: none; }
.ph-post h3 a:hover { color: var(--ph-red); }
@media (max-width: 960px) { .ph-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ph-posts { grid-template-columns: 1fr; } }
.ph-pagination { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.ph-pagination .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--ph-line); text-decoration: none; }
.ph-pagination .current { background: var(--ph-red); color: #fff; border-color: var(--ph-red); }

/* Formulieren – eigen contactformulier + plugins (CF7/WPForms) */
.ph-form-wrap { margin-top: clamp(40px, 6vw, 72px); border: 1.5px solid var(--ph-line); border-radius: var(--ph-radius-lg); background: #fff; overflow: hidden; }
.ph-form__intro { background: var(--ph-pink-light); border-bottom: 1px solid var(--ph-pink); padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 44px); }
.ph-form__intro h2 { margin: 0 0 .3em; }
.ph-form__intro .ph-lead { margin: 0; }
.ph-form { padding: clamp(22px, 4vw, 44px); }
.ph-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ph-form__roles { border: 0; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.ph-form__roles legend { font-weight: 600; margin-bottom: 10px; width: 100%; }
.ph-form__role { position: relative; cursor: pointer; }
.ph-form__role input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ph-form__role span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ph-line); background: #fff; color: var(--ph-ink); font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.ph-form__role span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ph-red); background: #fff; box-sizing: border-box; }
.ph-form__role input:checked + span { background: var(--ph-red); border-color: var(--ph-red); color: #fff; }
.ph-form__role input:checked + span::before { background: #fff; border-color: #fff; box-shadow: inset 0 0 0 3px var(--ph-red); }
.ph-form__role input:focus-visible + span { outline: 3px solid var(--ph-pink); outline-offset: 2px; }
.ph-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.ph-form__field--full { grid-column: 1 / -1; }
.ph-form label { font-weight: 600; display: block; margin: 0 0 6px; }
.ph-form__req { color: var(--ph-red); }
.ph-form input[type=text], .ph-form input[type=email], .ph-form input[type=tel], .ph-form textarea, .ph-form select,
.ph-content input[type=text], .ph-content input[type=email], .ph-content input[type=tel], .ph-content textarea, .ph-content select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--ph-line); border-radius: 12px; font: inherit; background: #fff; color: var(--ph-ink); transition: border-color .15s, box-shadow .15s;
}
.ph-form input:focus, .ph-form textarea:focus, .ph-content input:focus, .ph-content textarea:focus { outline: none; border-color: var(--ph-red); box-shadow: 0 0 0 4px var(--ph-pink); }
.ph-form input[aria-invalid=true], .ph-form textarea[aria-invalid=true] { border-color: var(--ph-red); background: var(--ph-pink-light); }
.ph-form textarea { resize: vertical; min-height: 150px; }
.ph-form__error { display: block; margin-top: 6px; font-size: .9rem; color: var(--ph-red); font-weight: 600; }
.ph-form__check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.ph-form__check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--ph-red); }
.ph-form__footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.ph-form__hint { font-size: .9rem; color: var(--ph-ink-soft); }
.ph-form__notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--ph-radius); margin: clamp(22px, 4vw, 44px) clamp(22px, 4vw, 44px) 0; }
.ph-form .ph-form__notice { margin: 0 0 22px; }
.ph-form__notice svg { flex: none; width: 28px; height: 28px; border-radius: 50%; padding: 5px; stroke-width: 2.5; }
.ph-form__notice--ok { background: var(--ph-pink-light); border: 1.5px solid var(--ph-line); }
.ph-form__notice--ok svg { background: var(--ph-red); color: #fff; }
.ph-form__notice--error { background: var(--ph-pink); border: 1.5px solid var(--ph-red); }
.ph-form__notice--error svg { background: #fff; color: var(--ph-red); }
.ph-form-wrap > .ph-form__notice + .ph-form { padding-top: 22px; }
.ph-form-wrap > .ph-form__notice--ok { margin-bottom: clamp(22px, 4vw, 44px); }
.wpcf7-submit, .ph-form button[type=submit], .ph-form input[type=submit] { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--ph-red); color: #fff; font-weight: 600; border: 2px solid var(--ph-red); font: inherit; cursor: pointer; }
.wpcf7-submit:hover, .ph-form button[type=submit]:hover { background: var(--ph-red-dark); border-color: var(--ph-red-dark); }
@media (max-width: 640px) { .ph-form__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   12. CTA en footer
   ========================================================================== */
.ph-cta { background: var(--ph-red); color: #fff; }
.ph-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: clamp(36px, 5vw, 56px); }
.ph-cta h2 { color: #fff; margin: 0; font-weight: 300; }
.ph-cta h2 strong { font-weight: 600; }
.ph-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.ph-footer { background: var(--ph-ink); color: rgba(255,255,255,.85); }
.ph-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: clamp(40px, 6vw, 64px); }
.ph-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; margin-bottom: 14px; }
.ph-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.ph-footer a:hover { color: #fff; text-decoration: underline; }
.ph-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ph-footer .ph-brand { color: #fff; margin-bottom: 14px; }
.ph-footer .ph-brand__name { color: #fff; }
.ph-footer .ph-brand__sub { color: rgba(255,255,255,.6); }
.ph-footer__tagline { font-size: 1.05rem; color: rgba(255,255,255,.9); }
.ph-footer__bar { background: var(--ph-red); color: #fff; }
.ph-footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 14px; font-size: .9rem; letter-spacing: .04em; }
.ph-footer__bar-inner .ph-xxx--row { margin-right: 10px; vertical-align: middle; }
@media (max-width: 860px) { .ph-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ph-footer__grid { grid-template-columns: 1fr; } }

/* 404 */
.ph-404 { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.ph-404 h1 { font-size: clamp(3rem, 8vw, 6rem); color: var(--ph-red); font-weight: 300; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
