/* ============================================
   Property Manager — Landing Page CSS
   Thema: Goud & Donkerblauw
   LETTERTYPES: Playfair Display + Lato
   worden geladen via wp_enqueue_style in functions.php
   — NIET via @import hier, want dat is trager.
   ============================================ */

:root {
  --goud:        #C9A84C;
  --goud-licht:  #E8C96A;
  --goud-donker: #A07830;
  --blauw:       #0D1B3E;
  --blauw-mid:   #1A2E5A;
  --blauw-licht: #243B72;
  --wit:         #FFFFFF;
  --licht-grijs: #F7F6F2;
  --tekst:       #1A1A2E;
  --tekst-zacht: #4A4A6A;
  --radius:      8px;
  --schaduw:     0 8px 40px rgba(13,27,62,0.10);
  --schaduw-zwaar: 0 16px 60px rgba(13,27,62,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--tekst);
  background: var(--wit);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAFIE ── */
/*
   Selectors zijn bewust specifieker dan de Kadence-stijlen
   (bijv. .pm-hero h1 i.p.v. gewoon h1) zodat onze stijlen
   altijd winnen zonder !important te misbruiken.
   Kadence gebruikt globale h1/h2/h3 — wij scopen alles
   binnen .pm-hero, .pm-sectie en .pm-cta.
   Uitzondering: text-transform en font-family krijgen wel
   !important omdat Kadence die via inline global-styles zet.
*/
.pm-hero h1,
.pm-sectie h2,
.pm-sectie h3,
.pm-cta h2 {
  font-family: 'Playfair Display', serif !important;
  line-height: 1.2 !important;
  color: var(--blauw) !important;
  text-transform: none !important; /* Kadence zet h2 in uppercase — dit zet het terug */
}

.pm-hero h1   { font-size: clamp(2.4rem, 5vw, 3.8rem) !important;   font-weight: 700 !important; }
.pm-sectie h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important; font-weight: 600 !important; }
.pm-sectie h3 { font-size: 1.25rem !important;                       font-weight: 600 !important; }
.pm-cta h2    { font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important; font-weight: 600 !important;
                color: var(--wit) !important; }

/* Donkere secties: titels wit */
.pm-sectie-donker h2,
.pm-sectie-donker h3 { color: var(--wit) !important; }

/* Hero h1 wit met gouden accent op het woord "Eindelijk" */
.pm-hero h1      { color: var(--wit) !important; }
.pm-hero h1 span { color: var(--goud-licht) !important; }

/* Paragrafen scoped zodat Kadence body-stijlen niet interfereren */
.pm-container p { margin-bottom: 1.1rem; color: var(--tekst-zacht); }
.pm-container p:last-child { margin-bottom: 0; }

/* ── CONTAINER ── */
.pm-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── GOUDLIJN ACCENT ── */
.pm-goudlijn {
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--goud), var(--goud-licht));
  border-radius: 2px;
  margin-bottom: 1.4rem;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.pm-hero {
  background: linear-gradient(140deg, var(--blauw) 0%, var(--blauw-mid) 55%, var(--blauw-licht) 100%);
  padding: 110px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(201,168,76,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(201,168,76,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.pm-hero h1 {
  color: var(--wit);
  margin-bottom: 1.2rem;
  position: relative;
}

.pm-hero h1 span {
  color: var(--goud-licht);
}

.pm-hero-sub {
  font-size: 1.5rem;
color: #ffffff !important;
  max-width: 640px;
  margin: 0 auto 2.6rem;
  font-weight: 300;
  line-height: 1.7;
  position: relative;
}

.pm-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--goud) 0%, var(--goud-licht) 100%);
  color: var(--blauw);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 16px 42px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(201,168,76,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.pm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.45);
}

/* ══════════════════════════════════════
   SECTIES ALGEMEEN
══════════════════════════════════════ */
.pm-sectie {
  padding: 96px 0;
}

.pm-sectie-licht {
  background: var(--licht-grijs);
}

.pm-sectie-donker {
  background: var(--blauw);
}

.pm-sectie h2 {
  margin-bottom: 1.4rem;
}

.pm-sectie-donker h2,
.pm-sectie-donker h3,
.pm-sectie-donker p {
  color: var(--wit);
}
.pm-sectie-donker p {
  color: rgba(255,255,255,0.75);
}
.pm-sectie-donker .pm-goudlijn {
  /* inherits */
}

/* ══════════════════════════════════════
   PROBLEEM — twee kolommen op breed
══════════════════════════════════════ */
.pm-probleem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 72px;
  align-items: start;
  margin-top: 12px;
}

.pm-probleem-blok p {
  font-size: 1.05rem;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .pm-probleem-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ══════════════════════════════════════
   PIJN — QUOTE STIJL
══════════════════════════════════════ */
.pm-pijn-quote {
  border-left: 4px solid var(--goud);
  padding: 10px 0 10px 28px;
  margin: 36px 0;
}
.pm-pijn-quote p {
  font-size: 1.12rem;
  font-style: italic;
  color: var(--tekst);
  line-height: 1.75;
}

/* ══════════════════════════════════════
   OPLOSSING — icoon-kaartjes
══════════════════════════════════════ */
.pm-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}

.pm-feature-kaart {
  background: var(--wit);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--schaduw);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.pm-feature-kaart:hover {
  box-shadow: var(--schaduw-zwaar);
  transform: translateY(-4px);
}

.pm-feature-icoon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--goud) 0%, var(--goud-licht) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.pm-feature-kaart h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.pm-feature-kaart p {
  font-size: 0.93rem;
  line-height: 1.65;
}

@media (max-width: 820px) {
  .pm-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pm-feature-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   VOORDELEN — CHECKLIST
══════════════════════════════════════ */
.pm-voordelen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
  margin-top: 44px;
}

.pm-voordeel-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pm-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--goud) 0%, var(--goud-licht) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.pm-check svg {
  width: 13px;
  height: 13px;
  stroke: var(--blauw);
  stroke-width: 3;
  fill: none;
}

.pm-voordeel-item span {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .pm-voordelen-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   CTA
══════════════════════════════════════ */
.pm-cta {
  background: linear-gradient(135deg, var(--blauw) 0%, var(--blauw-mid) 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pm-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(201,168,76,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.pm-cta h2 {
  color: var(--wit);
  margin-bottom: 1.1rem;
  position: relative;
}

.pm-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2.4rem;
  position: relative;
}

.pm-cta-contact {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
}

.pm-cta-contact a {
  color: var(--goud-licht);
  text-decoration: none;
}
.pm-cta-contact a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   RESPONSIVE TWEAKS
══════════════════════════════════════ */
@media (max-width: 600px) {
  .pm-hero { padding: 72px 0 60px; }
  .pm-sectie { padding: 64px 0; }
  .pm-cta    { padding: 72px 0; }
}

/* ══════════════════════════════════════
   SCROLL ANIMATIES — IntersectionObserver
   Elementen starten onzichtbaar en
   animeren in zodra ze in beeld komen.
══════════════════════════════════════ */

/* Basis: alles dat moet animeren begint verborgen */
.pm-fade-up,
.pm-fade-left,
.pm-fade-right,
.pm-fade-in,
.pm-stagger > * {
  opacity: 0;
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-property: opacity, transform;
}

.pm-fade-up      { transform: translateY(40px); }
.pm-fade-left    { transform: translateX(-36px); }
.pm-fade-right   { transform: translateX(36px); }
.pm-fade-in      { transform: scale(0.97); }
.pm-stagger > *  { transform: translateY(32px); }

/* Zichtbaar zodra .is-visible wordt toegevoegd */
.pm-fade-up.is-visible,
.pm-fade-left.is-visible,
.pm-fade-right.is-visible,
.pm-fade-in.is-visible,
.pm-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

/* Stagger: elk kind krijgt een klein vertraging */
.pm-stagger.is-visible > *:nth-child(1)  { transition-delay: 0.00s; }
.pm-stagger.is-visible > *:nth-child(2)  { transition-delay: 0.10s; }
.pm-stagger.is-visible > *:nth-child(3)  { transition-delay: 0.20s; }
.pm-stagger.is-visible > *:nth-child(4)  { transition-delay: 0.30s; }
.pm-stagger.is-visible > *:nth-child(5)  { transition-delay: 0.40s; }
.pm-stagger.is-visible > *:nth-child(6)  { transition-delay: 0.50s; }
.pm-stagger.is-visible > *:nth-child(7)  { transition-delay: 0.60s; }
.pm-stagger.is-visible > *:nth-child(8)  { transition-delay: 0.70s; }

/* Hero animaties bij laden pagina */
@keyframes pm-hero-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.pm-hero h1       { animation: pm-hero-in 0.8s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.pm-hero-sub      { animation: pm-hero-in 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s both; }
.pm-hero .pm-btn  { animation: pm-hero-in 0.8s cubic-bezier(0.22,1,0.36,1) 0.5s both; }

/* Goudlijn groeit in breedte */
.pm-goudlijn {
  width: 0;
  transition: width 0.7s cubic-bezier(0.22,1,0.36,1);
}
.pm-goudlijn.is-visible {
  width: 56px;
}

/* Respect voor reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .pm-fade-up, .pm-fade-left, .pm-fade-right,
  .pm-fade-in, .pm-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pm-hero h1, .pm-hero-sub, .pm-hero .pm-btn {
    animation: none !important;
  }
  .pm-goudlijn { width: 56px !important; transition: none !important; }
}