/*
Theme Name: Zorgbuurthuis 't Hageltje - Speelse Versie
Theme URI: https://zorgbuurthuis.org
Author: Custom Development
Description: Een warm, speels en uniek thema voor Zorgbuurthuis 't Hageltje met organische vormen, creatieve layouts en veel persoonlijkheid. Versie 2.2 met dropdown menu's en custom image uploads.
Version: 2.3.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hageltje
*/

/*--------------------------------------------------------------
>>> CREATIVE ZORGBUURTHUIS THEME
----------------------------------------------------------------
1.0 CSS Custom Properties
2.0 Base & Reset
3.0 Typography - Bold & Playful
4.0 Organic Shapes & Blobs
5.0 Header - Floating & Clean
6.0 Hero - Big, Bold & Engaging
7.0 Feature Sections - Asymmetric & Overlapping
8.0 Card Components - Organic Shapes
9.0 Photo Displays - Creative Masks
10.0 Buttons - Chunky & Fun
11.0 Footer - Wave Design
12.0 Animations & Interactions
13.0 Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 CSS Custom Properties
--------------------------------------------------------------*/
:root {
  /* Brand Colors - Vibrant & Warm */
  --color-primary: #D87A3A;
  --color-primary-light: #FFB380;
  --color-primary-dark: #B85820;
  
  --color-secondary: #4D5178;
  --color-secondary-light: #7B7DA8;
  --color-secondary-dark: #2A2D4D;
  
  --color-tertiary: #1E5A5A;
  --color-tertiary-light: #3D8A8A;
  --color-tertiary-dark: #0D3535;
  
  /* Accent Colors - Playful */
  --color-accent-yellow: #FFD166;
  --color-accent-pink: #FF9FB2;
  --color-accent-blue: #6FBAFF;
  --color-accent-green: #7FD1AE;
  
  /* Neutrals - Soft & Warm */
  --color-white: #FFFFFF;
  --color-cream: #FFF9F3;
  --color-light: #F5F0EB;
  --color-gray: #C4B8AC;
  --color-dark: #2C2520;
  
  /* Typography - Friendly & Clear */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', var(--font-primary);
  --font-accent: 'Pacifico', cursive; /* For special touches */
  
  /* Font Sizes - Large & Impactful */
  --text-xs: clamp(0.75rem, 0.7rem + 0.3vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.4vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.7vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.25rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.8rem + 2.5vw, 3.5rem);
  --text-4xl: clamp(3rem, 2.2rem + 4vw, 5rem);
  
  /* Spacing - Generous */
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.8vw, 1.25rem);
  --space-md: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  --space-lg: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --space-xl: clamp(3rem, 2rem + 5vw, 6rem);
  --space-2xl: clamp(4rem, 2.5rem + 8vw, 10rem);
  
  /* Border Radius - Organic */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-xl: 60px;
  --radius-blob: 63% 37% 54% 46% / 45% 50% 50% 55%;
  
  /* Shadows - Soft & Elevated */
  --shadow-sm: 0 2px 8px rgba(45, 37, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(45, 37, 32, 0.12);
  --shadow-lg: 0 16px 48px rgba(45, 37, 32, 0.16);
  --shadow-xl: 0 24px 64px rgba(45, 37, 32, 0.2);
  
  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/*--------------------------------------------------------------
2.0 Base & Reset
--------------------------------------------------------------*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-dark);
  background-color: var(--color-cream);
  overflow-x: hidden;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/*--------------------------------------------------------------
3.0 Typography - Bold & Playful
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5, h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-md);
  line-height: 1.75;
}

.lead {
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-secondary);
}

strong {
  font-weight: 700;
  color: var(--color-secondary);
}

.handwriting {
  font-family: var(--font-accent);
  color: var(--color-primary);
  font-weight: 400;
}

/*--------------------------------------------------------------
4.0 Organic Shapes & Blobs
--------------------------------------------------------------*/
.blob {
  border-radius: var(--radius-blob);
  overflow: hidden;
}

.blob-bg {
  position: relative;
  overflow: hidden;
}

.blob-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  opacity: 0.08;
  border-radius: var(--radius-blob);
  animation: blob-float 20s ease-in-out infinite;
}

@keyframes blob-float {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1) rotate(5deg);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9) rotate(-5deg);
  }
}

/* Wavy dividers */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

/*--------------------------------------------------------------
5.0 Header - Floating & Clean
--------------------------------------------------------------*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: var(--color-white);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 70px;
  width: auto;
  transition: transform var(--transition-base);
}

.site-logo:hover img {
  transform: scale(1.05) rotate(-2deg);
}

/* Navigation - Floating Pills with Dropdowns */
.primary-menu {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.primary-menu > li {
  position: relative;
}

.primary-menu li a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-secondary);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  white-space: nowrap;  /* Voorkomt dat tekst wrap */
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-parent > a,
.primary-menu > li:hover > a {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Dropdown indicator */
.primary-menu > li.menu-item-has-children > a::after {
  content: '▾';
  margin-left: var(--space-xs);
  font-size: 0.8em;
  display: inline-block;
  transition: transform var(--transition-base);
  vertical-align: middle;
}

.primary-menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Submenu - Hidden by default */
.primary-menu ul.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Show submenu on hover */
.primary-menu li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Submenu items */
.primary-menu ul.sub-menu li {
  width: 100%;
}

.primary-menu ul.sub-menu li a {
  padding: var(--space-sm) var(--space-md);
  color: var(--color-secondary);
  border-radius: var(--radius-sm);
  display: block;
  white-space: nowrap;
}

.primary-menu ul.sub-menu li a:hover,
.primary-menu ul.sub-menu li.current-menu-item a {
  background: var(--color-light);
  color: var(--color-primary);
  transform: translateX(4px);
}

/* Multi-level dropdowns */
.primary-menu ul.sub-menu li.menu-item-has-children {
  position: relative;
}

.primary-menu ul.sub-menu li.menu-item-has-children > a::after {
  content: '▸';
  position: absolute;
  right: var(--space-md);
}

.primary-menu ul.sub-menu ul.sub-menu {
  top: 0;
  left: calc(100% + 8px);
}

/* Hover effect animation */
.primary-menu ul.sub-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.mobile-menu-toggle:hover {
  background: var(--color-light);
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 10px;
  transition: all var(--transition-base);
}

/*--------------------------------------------------------------
6.0 Hero - Big, Bold & Engaging
--------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 150px;  /* Verhoogd van 120px naar 150px */
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-white) 100%);
  overflow: hidden;
}

/* Decorative blob backgrounds */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  opacity: 0.12;
  border-radius: 43% 57% 44% 56% / 55% 42% 58% 45%;
  animation: blob-morph 15s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--color-tertiary-light), var(--color-tertiary));
  opacity: 0.1;
  border-radius: 57% 43% 56% 44% / 42% 58% 42% 58%;
  animation: blob-morph 18s ease-in-out infinite reverse;
}

@keyframes blob-morph {
  0%, 100% {
    border-radius: 43% 57% 44% 56% / 55% 42% 58% 45%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 57% 43% 66% 34% / 42% 68% 32% 58%;
    transform: rotate(180deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-text h1 {
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.05;
}

.hero-text h1 .accent {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero-text h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--color-accent-yellow);
  opacity: 0.4;
  z-index: -1;
  border-radius: 4px;
}

.hero-text p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  color: var(--color-secondary);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Hero Image - Organic Shape */
.hero-visual {
  position: relative;
  height: 600px;
}

.hero-image-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 42% 58% 55% 45% / 48% 45% 55% 52%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: hero-float 6s ease-in-out infinite;
}

.hero-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes hero-float {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-20px);
  }
}

/* Decorative elements */
.hero-decoration {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  animation: float-decoration 8s ease-in-out infinite;
}

.hero-decoration.dot-1 {
  top: 10%;
  left: 10%;
  background: var(--color-accent-pink);
  opacity: 0.6;
}

.hero-decoration.dot-2 {
  bottom: 15%;
  right: 10%;
  background: var(--color-accent-blue);
  opacity: 0.5;
  width: 80px;
  height: 80px;
  animation-delay: -2s;
}

@keyframes float-decoration {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.1);
  }
}

/*--------------------------------------------------------------
7.0 Feature Sections - Asymmetric & Overlapping
--------------------------------------------------------------*/
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin: var(--space-2xl) 0;
}

.feature-grid.reverse {
  direction: rtl;
}

.feature-grid.reverse > * {
  direction: ltr;
}

.feature-content {
  position: relative;
  z-index: 2;
}

.feature-content h2 {
  margin-bottom: var(--space-lg);
}

.feature-content .tagline {
  font-family: var(--font-accent);
  color: var(--color-primary);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.feature-list {
  margin: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-list-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.feature-list-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--radius-md);
  font-size: var(--text-2xl);
  box-shadow: var(--shadow-sm);
}

/* Feature Image - Creative Masking */
.feature-image-wrap {
  position: relative;
  height: 600px;
}

.feature-image {
  position: absolute;
  width: 520px;
  height: 480px;
  border-radius: 48% 52% 45% 55% / 52% 48% 52% 48%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.feature-image:hover img {
  transform: scale(1.1);
}

/* Accent blob behind image */
.feature-image::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-tertiary));
  opacity: 0.15;
  border-radius: inherit;
  z-index: -1;
  filter: blur(20px);
}

/*--------------------------------------------------------------
8.0 Card Components - Organic Shapes
--------------------------------------------------------------*/
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-tertiary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: 38% 62% 45% 55% / 52% 45% 55% 48%;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
  animation: card-icon-morph 10s ease-in-out infinite;
}

@keyframes card-icon-morph {
  0%, 100% {
    border-radius: 38% 62% 45% 55% / 52% 45% 55% 48%;
  }
  50% {
    border-radius: 62% 38% 55% 45% / 45% 62% 38% 55%;
  }
}

.card h3 {
  color: var(--color-secondary);
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.card p {
  color: var(--color-dark);
  line-height: 1.7;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
9.0 Photo Displays - Creative Masks
--------------------------------------------------------------*/
.photo-collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.photo-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item-1 {
  grid-column: span 7;
  height: 400px;
  border-radius: 52% 48% 45% 55% / 48% 52% 48% 52%;
}

.photo-item-2 {
  grid-column: span 5;
  height: 400px;
  border-radius: var(--radius-xl);
}

.photo-item-3 {
  grid-column: span 4;
  height: 300px;
  border-radius: 45% 55% 52% 48% / 55% 45% 55% 45%;
}

.photo-item-4 {
  grid-column: span 8;
  height: 300px;
  border-radius: var(--radius-xl);
}

/*--------------------------------------------------------------
10.0 Buttons - Chunky & Fun
--------------------------------------------------------------*/
.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.button span {
  position: relative;
  z-index: 1;
}

.button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.button:hover::before {
  opacity: 1;
}

.button:active {
  transform: translateY(-2px) scale(0.98);
}

.button-secondary {
  background: var(--color-secondary);
}

.button-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
}

.button-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.button-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-xl);
}

/*--------------------------------------------------------------
11.0 Footer - Wave Design
--------------------------------------------------------------*/
.site-footer {
  background: var(--color-secondary);
  color: var(--color-white);
  margin-top: var(--space-2xl);
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100"><path fill="%234D5178" d="M0,50 Q300,0 600,50 T1200,50 L1200,100 L0,100 Z"/></svg>');
  background-size: cover;
  background-repeat: no-repeat;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-section h3 {
  color: var(--color-white);
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-base);
  display: inline-block;
}

.footer-section a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/*--------------------------------------------------------------
12.0 Animations & Interactions
--------------------------------------------------------------*/
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-in-up 0.8s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/*--------------------------------------------------------------
13.0 Responsive
--------------------------------------------------------------*/
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .hero-visual {
    height: 400px;
  }
  
  .hero-image-main {
    width: 400px;
    height: 400px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .feature-grid.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  :root {
    --text-4xl: clamp(2.5rem, 8vw, 4rem);
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .primary-menu {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    align-items: stretch;
  }
  
  .primary-menu.active {
    transform: translateX(0);
  }
  
  .primary-menu > li {
    width: 100%;
  }
  
  .primary-menu li a {
    padding: var(--space-md);
    width: 100%;
  }
  
  .primary-menu > li.menu-item-has-children > a {
    padding-right: calc(var(--space-md) * 3);  /* Extra ruimte voor pijltje */
  }
  
  /* Mobile submenu styling */
  .primary-menu ul.sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--color-light);
    margin-top: var(--space-xs);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
    padding: 0 var(--space-sm);
  }
  
  /* Show submenu when parent is active */
  .primary-menu li.menu-open > ul.sub-menu {
    max-height: 500px;
    padding: var(--space-sm);
  }
  
  /* Mobile submenu toggle indicator */
  .primary-menu > li.menu-item-has-children > a::after {
    content: '▾';
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-base);
    display: inline-block;
  }
  
  .primary-menu > li.menu-item-has-children.menu-open > a::after {
    transform: translateY(-50%) rotate(180deg);
  }
  
  /* Nested submenu in mobile */
  .primary-menu ul.sub-menu ul.sub-menu {
    left: 0;
    margin-left: var(--space-md);
  }
  
  .hero {
    min-height: auto;
    padding: var(--space-2xl) 0;
  }
  
  .hero-visual {
    height: 300px;
  }
  
  .hero-image-main {
    width: 280px;
    height: 280px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .photo-collage {
    grid-template-columns: 1fr;
  }
  
  .photo-item-1,
  .photo-item-2,
  .photo-item-3,
  .photo-item-4 {
    grid-column: span 1;
    height: 250px;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .button {
    display: none;
  }
}


/*--------------------------------------------------------------
Content spacing (v2.2.2)
Tekstblokken krijgen ongeveer een witregel ruimte aan de onderkant,
zodat de titel van het volgende blok niet tegen de laatste regel plakt.
--------------------------------------------------------------*/
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > figure,
.entry-content > blockquote,
.entry-content > table,
.entry-content > .wp-block-list,
.entry-content > .wp-block-image,
.entry-content > .wp-block-table,
.entry-content > .wp-block-quote,
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-buttons,
.entry-content > .wp-block-gallery,
.entry-content > .wp-block-media-text {
  margin-bottom: 1.8em; /* = 1 regelhoogte bij line-height 1.8 */
}

.entry-content > p:empty {
  display: none;
}

.entry-content > :last-child {
  margin-bottom: 0;
}


/*--------------------------------------------------------------
Logo & opsommingen (v2.2.3)
--------------------------------------------------------------*/
/* Logo mag niet smaller worden als het menu veel ruimte inneemt */
.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  object-fit: contain;
}

/* Opsommingen in de pagina-inhoud tonen met bullets / nummers */
.entry-content ul {
  list-style: disc;
  padding-left: 1.4em;
}

.entry-content ol {
  list-style: decimal;
  padding-left: 1.6em;
}

.entry-content ul ul {
  list-style: circle;
  margin-bottom: 0;
}

.entry-content li {
  padding-left: 0.2em;
}

.entry-content li::marker {
  color: var(--color-orange, #D77D3E);
}


/*--------------------------------------------------------------
Vier pijlers naast elkaar (v2.2.4)
Vaste kolommen: 1 op telefoon, 2 op tablet, 4 op desktop.
--------------------------------------------------------------*/
.cards-grid--four {
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.cards-grid--four .card {
  padding: var(--space-lg) var(--space-md);
}

@media (min-width: 640px) {
  .cards-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .cards-grid--four {
    grid-template-columns: repeat(4, 1fr);
  }
}


/*--------------------------------------------------------------
Ruimte tussen secties (v2.2.5)
De marges van rasters (kaarten / features) stapelden zich op bovenop
de padding van de sectie. Eerste en laatste element in een sectie
krijgen daarom geen buitenmarge; de sectie-padding bepaalt de ruimte.
--------------------------------------------------------------*/
.section > .container > :first-child {
  margin-top: 0;
}

.section > .container > :last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
Homepage: compactere secties (v2.2.7)
Elke sectie krijgt de helft van de standaard padding, zodat de ruimte
tussen twee secties samen 1x --space-2xl is (max. 160px).
De eerste sectie na de hero houdt de volle ruimte bovenaan.
--------------------------------------------------------------*/
.home .section {
  padding-top: calc(var(--space-2xl) / 2);
  padding-bottom: calc(var(--space-2xl) / 2);
}

.home .hero + .section {
  padding-top: var(--space-2xl);
}

/*--------------------------------------------------------------
Berichtkaarten: langere samenvatting (v2.2.8)
Altijd 4 regels zichtbaar (als het bericht lang genoeg is), netjes afgekapt.
--------------------------------------------------------------*/
.card-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/*--------------------------------------------------------------
Berichtkaarten (v2.2.9)
- 1 / 2 / 3 kolommen
- minder binnenruimte, zodat tekst en knop passen
- "Lees meer" altijd onderaan de kaart, dus overal op dezelfde hoogte
--------------------------------------------------------------*/
.cards-grid--news {
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 700px) {
  .cards-grid--news {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .cards-grid--news {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards-grid--news .card {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg); /* gelijk aan de negatieve marge van de uitgelichte afbeelding */
}

.cards-grid--news .card h3 {
  margin-bottom: var(--space-sm);
}

.cards-grid--news .card-excerpt {
  margin-bottom: var(--space-md);
}

.cards-grid--news .card .button {
  margin-top: auto;
  align-self: flex-start;
  max-width: 100%;
  padding: var(--space-sm) var(--space-md);
  white-space: nowrap;
}

/*--------------------------------------------------------------
Berichtenoverzicht op pagina's, shortcode [berichten] (v2.3.1)
--------------------------------------------------------------*/
.entry-content > .zbh-berichten {
  margin: var(--space-lg) 0;
  font-size: var(--text-base);
  line-height: 1.7;
}

/* Paginakolom is smaller dan de homepage: maximaal 2 kaarten naast elkaar */
@media (min-width: 1100px) {
  .zbh-berichten .cards-grid--news {
    grid-template-columns: repeat(2, 1fr);
  }
}

.zbh-berichten .cards-grid--news {
  margin: 0;
}

.card-date {
  font-size: var(--text-sm);
  color: var(--color-gray);
  margin-bottom: var(--space-xs);
}

.zbh-berichten-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.zbh-berichten-nav .page-numbers {
  padding: 0.4em 0.9em;
  border-radius: 999px;
  border: 2px solid var(--color-tertiary, #D77D3E);
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
}

.zbh-berichten-nav .page-numbers.current,
.zbh-berichten-nav a.page-numbers:hover {
  background: var(--color-tertiary, #D77D3E);
  color: #fff;
}

/*--------------------------------------------------------------
Tekstlinks blauw (in de inhoud van pagina's en berichten)
--------------------------------------------------------------*/
:root {
  --color-link: #2E66B0;
  --color-link-hover: #1D4A85;
}

.entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.zbh-docs__btn):not(.btn):not(.button) {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--transition-base, .2s ease);
}

.entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.zbh-docs__btn):not(.btn):not(.button):hover,
.entry-content a:not(.wp-block-button__link):not(.wp-element-button):not(.zbh-docs__btn):not(.btn):not(.button):focus {
  color: var(--color-link-hover);
  text-decoration-thickness: 2px;
}

/* Footer: link naar contactpagina */
.footer-section .footer-contact-link {
  margin-top: var(--space-sm, .5rem);
  font-weight: 600;
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
