/* ========================================
   Prompt Dojo - Main Stylesheet
   Japanse zen esthetiek: strak, rustig, veel witruimte
   ======================================== */

/* CSS Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom Properties */
:root {
  /* Kleuren */
  --beige: #EEEBE4;
  --rood: #b22a26;
  --zwartgrijs: #272624;
  --donkerbruin: #434343;
  --heading-color: #5e5e5e;

  /* Typografie */
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --font-serif: var(--font-body); /* Roboto voor consistentie */
  --font-handwritten: 'Caveat', cursive;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 3rem;

  /* Container */
  --container-width: 1200px;
  --container-padding: 2rem;
}

/* Typography */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--zwartgrijs);
  background-color: var(--beige);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--heading-color);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(238, 235, 228, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(39, 38, 36, 0.1);
  box-shadow: 0 2px 8px rgba(39, 38, 36, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Nav hide on scroll */
nav.nav-hidden {
  transform: translateY(-100%);
}

nav.nav-scrolled {
  box-shadow: none;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.nav-logo {
  flex-shrink: 0;
  z-index: 1;
}

.nav-logo img {
  height: 60px;
  width: auto;
  max-width: 200px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--zwartgrijs);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.nav-links a:not(.nav-cta):hover {
  opacity: 1;
  color: var(--rood);
}

/* Actief menu-item */
.nav-links a.active {
  font-weight: 700;
}

.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  background-color: var(--rood);
  color: var(--beige);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-decoration: none;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(178, 42, 38, 0.3);
  color: var(--beige);
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-xl) 0;
  margin-top: 60px;
}

.hero h1 {
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  color: var(--donkerbruin);
}

/* Step Cards (stappenplan) */
.card-step {
  text-align: center;
}

/* Cards in grid: center content */
.grid .card {
  display: flex;
  flex-direction: column;
}

.grid .card .btn {
  margin-top: auto;
  align-self: center;
}

/* Buttons always centered under text */
.card .btn,
.card-step .btn,
section .two-col .btn,
section .container > .btn,
section .container > div > .btn,
.feature-card .btn,
.testimonial-card .btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

/* Buttons in text-centered sections should also be centered */
.text-center .btn,
.section-header + .btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

/* Quote Divider */
.quote-divider {
  padding: var(--spacing-lg) 0;
  text-align: center;
  background-color: var(--beige);
}

.quote-divider blockquote {
  font-family: var(--font-handwritten);
  font-size: 2.25rem;
  font-weight: 400;
  font-style: normal;
  color: var(--rood);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Verborgen secties (ingesteld via editor visibility-dropdown).
   body:not(.edit-mode) zorgt dat de editor ze WEL toont (dimmed via editor.css),
   terwijl de publieke site ze volledig verbergt. */
body:not(.edit-mode) section.editor-section-hidden,
body:not(.edit-mode) .quote-divider.editor-section-hidden {
  display: none;
}

/* Sections */
section {
  padding: var(--spacing-xl) 0;
}

/* Koppen verticaal centreren in sectie-header zone */
section > .container > h2:first-child,
section > .container > .section-header:first-child,
section > .container > .content-narrow:first-child > h2:first-child {
  margin-top: var(--spacing-md);
}

.section-light {
  background-color: var(--beige);
}

.section-accent {
  background-color: #f0ede6;
}

.section-dark {
  background-color: var(--zwartgrijs);
  color: var(--beige);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--beige);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Prevent text overflow in grid items */
.grid > * {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Fixed column widths - prevent layout breaking */
.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  max-width: 100%;
  overflow: hidden;
}

/* Two-col fixed widths */
.two-col > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Prevent buttons from breaking layout */
.btn {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.5);
  padding: var(--spacing-md);
  border-radius: 8px;
  border: 1px solid rgba(39, 38, 36, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-dark .card {
  background: rgba(67, 67, 67, 0.3);
  border-color: rgba(238, 235, 228, 0.1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(39, 38, 36, 0.12);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.card h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--rood);
}

.section-dark .card h4 {
  color: var(--rood);
}

.card p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Feature Cards */
.feature-card {
  text-align: center;
}

.feature-card h3 {
  color: var(--rood);
}

/* Testimonial Cards */
.testimonial-card {
  background: none;
  padding: var(--spacing-md) var(--spacing-sm);
  border: none;
  text-align: center;
}

.testimonial-text {
  font-family: var(--font-handwritten);
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 400;
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
  color: var(--zwartgrijs);
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  color: var(--zwartgrijs);
}

.testimonial-role {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 0.15rem;
  text-align: center;
}

/* ========================================
   TESTIMONIAL CAROUSEL
   ======================================== */
.testimonial-carousel {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding: 0 60px;
}

/* Compactere spacing tussen titel en carousel */
.testimonial-carousel.mt-lg {
  margin-top: var(--spacing-md);
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

/* Desktop standaard: 3 slides tegelijk zichtbaar (33.333% per slide).
   Tablet en mobiel via media queries onderaan dit blok. */
.carousel-slide {
  flex: 0 0 33.3333%;
  min-width: 33.3333%;
  box-sizing: border-box;
  padding: 0 0.5rem;
}

.carousel-slide .testimonial-card {
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(67, 67, 67, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--zwartgrijs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  z-index: 5;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  font-family: var(--font-body);
  padding: 0;
}

.carousel-arrow:hover {
  background: var(--rood);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(67, 67, 67, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot:hover {
  background: rgba(67, 67, 67, 0.55);
}

.carousel-dot.active {
  background: var(--rood);
  transform: scale(1.3);
}

/* Dots op donkere achtergronden */
.section-zwartgrijs .carousel-dot,
.section-donkerbruin .carousel-dot,
.section-bruin .carousel-dot {
  background: rgba(238, 235, 228, 0.3);
}

.section-zwartgrijs .carousel-dot:hover,
.section-donkerbruin .carousel-dot:hover,
.section-bruin .carousel-dot:hover {
  background: rgba(238, 235, 228, 0.55);
}

.section-zwartgrijs .carousel-dot.active,
.section-donkerbruin .carousel-dot.active,
.section-bruin .carousel-dot.active {
  background: var(--beige);
}

/* Tablet: 2 slides tegelijk */
@media (max-width: 900px) {
  .carousel-slide {
    flex: 0 0 50%;
    min-width: 50%;
  }
}

/* Mobiel: 1 slide tegelijk, geen pijlen, smallere padding */
@media (max-width: 600px) {
  .testimonial-carousel {
    padding: 0 16px;
  }
  .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
  .carousel-arrow {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  background-color: var(--rood);
  color: var(--beige);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 300px;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(178, 42, 38, 0.3);
}

/* Secondary button (read more style) */
.btn-secondary {
  background-color: rgba(67, 67, 67, 0.2);
  color: var(--beige);
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
}

.btn-secondary:hover {
  background-color: rgba(67, 67, 67, 0.4);
  box-shadow: 0 4px 12px rgba(67, 67, 67, 0.2);
}

.btn-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  /* Cross-axis (verticale) gap apart instellen voor wanneer knoppen
     naar de volgende regel wrappen — anders lijken ze tegen elkaar te plakken */
  row-gap: 1.25rem;
}

/* Op mobiel: knoppen stacken met ruimere verticale tussenruimte zodat
   ze niet tegen elkaar plakken */
@media (max-width: 600px) {
  .btn-group {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .btn-group .btn {
    text-align: center;
  }
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--rood);
  color: var(--rood);
}

.btn-outline:hover {
  background-color: var(--rood);
  color: var(--beige);
}

.section-dark .btn-outline {
  border-color: var(--beige);
  color: var(--beige);
}

.section-dark .btn-outline:hover {
  background-color: var(--beige);
  color: var(--zwartgrijs);
}

/* Button centering helper */
.btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

/* Center new elements added via editor */
.editor-new-element {
  text-align: center;
}

/* Text elements in card-step should be centered */
.card-step p,
.card-step h2,
.card-step h3,
.card-step h4 {
  text-align: center;
}

/* Lists */
.checkmark-list {
  list-style: none;
  margin: var(--spacing-md) 0;
  padding-left: 0;
}

.checkmark-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

.checkmark-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rood);
  font-weight: bold;
  font-size: 1.2rem;
}

/* FAQ Accordion */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.faq-item {
  border: 1px solid rgba(39, 38, 36, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.section-dark .faq-item {
  background: rgba(67, 67, 67, 0.2);
  border-color: rgba(238, 235, 228, 0.1);
}

.faq-question {
  width: 100%;
  padding: var(--spacing-md);
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 var(--spacing-md) var(--spacing-md);
  line-height: 1.7;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.two-col img {
  border-radius: 8px;
  width: 100%;
}

/* Pricing Box */
.pricing-box {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--rood);
  border-radius: 8px;
  padding: var(--spacing-lg) 5%;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.section-dark .pricing-box {
  background: rgba(67, 67, 67, 0.4);
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--rood);
  margin: var(--spacing-md) 0;
}

.pricing-features {
  list-style: none;
  margin: var(--spacing-md) 0;
  text-align: left;
}

.pricing-features li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: var(--spacing-sm);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rood);
  font-weight: bold;
}

/* Footer - compact, gecentreerd */
footer {
  background-color: var(--beige);
  color: var(--zwartgrijs);
  padding: var(--spacing-md) 0;
  border-top: 1px solid rgba(39, 38, 36, 0.1);
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.footer-mascot {
  height: 80px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand img {
  height: 30px;
  width: auto;
}

.footer-links a {
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--rood);
  opacity: 1;
}

.footer-contact {
  text-align: center;
}

.footer-contact p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-contact a {
  color: var(--rood);
  text-decoration: underline;
}

.footer-bottom {
  font-size: 0.85rem;
  opacity: 0.5;
}

.footer-bottom p {
  margin: 0;
}

/* Footer editable text links - red */
footer [data-editable] a,
footer p a {
  color: var(--rood);
  text-decoration: underline;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Hero-content direct zichtbaar (geen fade-in voor boven-de-vouw) */
.hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ========================================
   ANIMATIES & BEWEGING
   Zen-esthetiek: langzaam, vloeiend, ademend
   ======================================== */

/* Staggered reveal: kinderen verschijnen rustig na elkaar */
.reveal.active > *:nth-child(1) { animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) both; animation-delay: 0s; }
.reveal.active > *:nth-child(2) { animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) both; animation-delay: 0.15s; }
.reveal.active > *:nth-child(3) { animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) both; animation-delay: 0.3s; }
.reveal.active > *:nth-child(4) { animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) both; animation-delay: 0.45s; }
.reveal.active > *:nth-child(5) { animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) both; animation-delay: 0.6s; }

/* Hero heeft geen stagger nodig (direct zichtbaar) */
.hero .reveal.active > * {
  animation: none;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ademende float op hero-afbeelding */
.hero .two-col img,
.hero .img-rounded {
  animation: gentleFloat 8s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Nav-link underline animatie (via ::before om conflict met stempel ::after te voorkomen) */
.nav-links a:not(.nav-cta) {
  position: relative;
}

.nav-links a:not(.nav-cta)::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--rood);
  transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), left 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-links a:not(.nav-cta):hover::before {
  width: 100%;
  left: 0;
}

/* Card hover: langzame lift */
.card {
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.5s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* CTA-knop: glow + scale bij hover (werkt op alle knoppen, ook beige/wit) */
.btn,
.nav-cta {
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(178, 42, 38, 0.25);
}

/* Witte/beige knoppen: subtiele schaduw in hun eigen kleur */
.btn-secondary:hover,
.btn-outline:hover {
  box-shadow: 0 6px 20px rgba(67, 67, 67, 0.15);
}

/* Quote-divider: rustige in-fade van links */
.quote-divider .reveal.active blockquote {
  animation: fadeSlideLeft 1s cubic-bezier(0.25, 0.1, 0.25, 1) both;
  animation-delay: 0.2s;
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Afbeeldingen: zachte zoom bij hover */
.two-col img:not(.hero img),
.img-rounded:not(.hero .img-rounded) {
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.two-col img:not(.hero img):hover,
.img-rounded:not(.hero .img-rounded):hover {
  transform: scale(1.02);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* Inhoudsbreedte helpers */
.content-narrow { max-width: 800px; margin-left: auto; margin-right: auto; text-align: center; }
.content-narrow-sm { max-width: 600px; margin-left: auto; margin-right: auto; text-align: center; }

/* Tekststijlen */
.text-lead { font-size: 1.125rem; line-height: 1.8; }
.heading-accent { color: var(--rood); }
.link-accent { text-decoration: underline; color: var(--rood); }
.card-padded { padding: 2rem 10%; }

/* Lijsten in secties */
section ul, section ol {
  padding-left: 3rem;
  margin: 1rem 0;
  line-height: 1.8;
}

section ul { list-style: disc; }
section ol { list-style: decimal; }

section li {
  margin-bottom: 0.4rem;
  padding-left: 0.5rem;
}

/* Afbeeldingen */
.img-rounded { border-radius: 8px; }
.card-img { width: 100%; border-radius: 8px; margin-bottom: var(--spacing-md); }

/* Prijs weergave */
.price-display { font-size: 2rem; font-family: var(--font-serif); color: var(--rood); margin: var(--spacing-md) 0; }

/* Stapnummers (img-based, vervangbaar via editor) */
.step-number {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-sm);
  object-fit: contain;
}

/* Fallback voor oude div-based step-numbers */
div.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--rood);
  color: var(--beige);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

/* Stapnummer alignment (links/midden/rechts) */
.step-number.step-align-left {
  margin-right: auto;
}

.step-number.step-align-center {
  margin-left: auto;
  margin-right: auto;
}

.step-number.step-align-right {
  margin-left: auto;
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--zwartgrijs);
  color: var(--beige);
  padding: var(--spacing-md);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  min-width: 250px;
}

.cookie-banner p a {
  color: var(--beige);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.cookie-buttons button {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.cookie-buttons button:hover {
  opacity: 0.85;
}

.cookie-accept {
  background: var(--rood);
  color: var(--beige);
}

.cookie-decline {
  background: transparent;
  border: 1px solid var(--beige) !important;
  color: var(--beige);
}

/* DEBUG: Structuur zichtbaar maken - alleen in edit mode */
/* Deze styles worden geactiveerd via body.debug-mode */

body.debug-mode {
  counter-reset: section-counter;
}

body.debug-mode section,
body.debug-mode .quote-divider {
  position: relative;
  counter-increment: section-counter;
}

body.debug-mode section::before,
body.debug-mode .quote-divider::before {
  content: counter(section-counter);
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(128, 0, 200, 0.85);
  color: #fff;
  font-family: 'Roboto Mono', monospace;
  font-size: 18px;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 6px;
  z-index: 100;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Verberg CSS counter als editor section-bar aanwezig is (nummer zit dan in de bar) */
body.edit-mode.debug-mode section::before,
body.edit-mode.debug-mode .quote-divider::before {
  display: none;
}

/* Outline hierarchie: alleen in debug mode */
body.debug-mode section,
body.debug-mode .quote-divider {
  outline: 3px dashed rgba(128, 0, 200, 0.4);
}

body.debug-mode .container {
  outline: 2px dashed rgba(128, 0, 200, 0.25);
}

body.debug-mode .card,
body.debug-mode .grid > *,
body.debug-mode .two-col > *,
body.debug-mode .pricing-box,
body.debug-mode .faq-item,
body.debug-mode .testimonial-card {
  outline: 1px dashed rgba(128, 0, 200, 0.2);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 900px) {
  :root {
    --container-padding: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 2.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--beige);
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid rgba(39, 38, 36, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  /* Voorkom horizontale overflow op tablet */
  .pricing-box,
  .card,
  .card-padded {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Pricing features lijst netjes onder elkaar */
  .pricing-features {
    padding-left: 1.2rem;
  }

  /* Checkmark lijst niet te breed */
  .checkmark-list {
    padding-left: 0;
  }

  /* Testimonial carousel extra padding */
  .testimonial-carousel {
    padding: 0 40px;
  }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 600px) {
  :root {
    --container-padding: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .quote-divider blockquote {
    font-size: 1.5rem;
  }

  .pricing-amount {
    font-size: 2.5rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Voorkom horizontale overflow op mobiel */
  body {
    overflow-x: hidden;
  }

  .container {
    overflow-x: hidden;
  }

  /* Tabellen responsive */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  /* Kaarten met naast-elkaar content: forceer stapeling */
  .card-padded {
    min-width: 0;
  }

  /* Afbeeldingen nooit breder dan scherm */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Nav-CTA op mobiel: zelfde als .btn */
  .nav-cta {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}

/* ========================================
   TESTIMONIALS UITKLAPBAAR
   ======================================== */
.testimonials-extra {
  display: none;
  margin-top: var(--spacing-md);
}

.testimonials-extra.visible {
  display: grid;
}

.testimonials-toggle {
  background: transparent;
  border: 2px solid var(--rood);
  color: var(--rood);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: var(--spacing-md);
  transition: all 0.3s ease;
}

.testimonials-toggle:hover {
  background: var(--rood);
  color: var(--beige);
}

/* ========================================
   ACTIEVE MENU INDICATOR (zegeltje)
   ======================================== */
.nav-links li {
  position: relative;
}

.nav-links a {
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  right: 4px;
  width: 24px;
  height: 24px;
  background-image: url('../images/stempel-menu.webp');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

/* ========================================
   IMAGE SIZE VARIANTS
   ======================================== */
/* Drie image-groottes: klein (33%), normaal (66%), groot (100%) */
.img-size-sm,
.img-small {
  max-width: 33% !important;
  margin: 0 auto;
}

.img-size-md {
  max-width: 66% !important;
  margin: 0 auto;
}

.img-size-lg,
.img-full {
  max-width: 100% !important;
}

/* Afbeelding uitlijning */
.img-align-left {
  display: block;
  width: fit-content;
  margin-left: 0;
  margin-right: auto;
}

.img-align-center {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.img-align-right {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: 0;
}

/* ========================================
   SECTION KLEUREN (voor editor)
   ======================================== */
.section-beige { background-color: var(--beige); }
.section-accent { background-color: #f0ede6; }
.section-rood { background-color: var(--rood); color: var(--beige); }
.section-bruin { background-color: #434343; color: var(--beige); }
.section-zwartgrijs { background-color: var(--zwartgrijs); color: var(--beige); }
.section-donkerbruin { background-color: var(--donkerbruin); color: var(--beige); }
.section-wit { background-color: #ffffff; }

/* Bruin section: subtiele cards met beige tekst */
.section-bruin .card,
.section-bruin .pricing-box {
  background: rgba(255, 255, 255, 0.1);
  color: var(--beige);
  border-color: rgba(238, 235, 228, 0.15);
}

.section-bruin .card h3,
.section-bruin .card h4,
.section-bruin .card p,
.section-bruin .testimonial-card p {
  color: var(--beige);
}

.section-bruin h1,
.section-bruin h2,
.section-bruin h3,
.section-bruin h4 {
  color: var(--beige);
}

.section-bruin .checkmark-list li::before,
.section-bruin .pricing-features li::before {
  color: var(--beige);
}

.section-bruin .btn {
  background-color: var(--beige);
  color: #434343;
}

.section-bruin .btn:hover {
  background-color: #fff;
}

/* Rood section: beige cards met donkere tekst (zelfde patroon als bruin) */
.section-rood .card,
.section-rood .pricing-box {
  background: var(--beige);
  color: #434343;
  border-color: rgba(238, 235, 228, 0.3);
}

.section-rood .card h3,
.section-rood .card h4 {
  color: var(--rood);
}

.section-rood .card p {
  color: #434343;
}

/* Diapositief: lichte tekst op donkere achtergrond */
.section-rood h1, .section-rood h2, .section-rood h3, .section-rood h4,
.section-zwartgrijs h1, .section-zwartgrijs h2, .section-zwartgrijs h3, .section-zwartgrijs h4,
.section-donkerbruin h1, .section-donkerbruin h2, .section-donkerbruin h3, .section-donkerbruin h4 {
  color: var(--beige);
}

.section-bruin p, .section-bruin li, .section-bruin blockquote,
.section-rood p, .section-rood li, .section-rood blockquote,
.section-zwartgrijs p, .section-zwartgrijs li, .section-zwartgrijs blockquote,
.section-donkerbruin p, .section-donkerbruin li, .section-donkerbruin blockquote {
  color: var(--beige);
}

.section-rood .btn, .section-zwartgrijs .btn, .section-donkerbruin .btn {
  background-color: var(--beige);
  color: var(--zwartgrijs);
}

.section-rood .btn:hover, .section-zwartgrijs .btn:hover, .section-donkerbruin .btn:hover {
  background-color: #fff;
}

.section-bruin .btn-secondary, .section-rood .btn-secondary, .section-zwartgrijs .btn-secondary, .section-donkerbruin .btn-secondary {
  background-color: rgba(238, 235, 228, 0.2);
  color: var(--beige);
}

.section-zwartgrijs .card, .section-donkerbruin .card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(238, 235, 228, 0.2);
}

/* Testimonials op donkere secties: beige tekst */
.section-zwartgrijs .testimonial-card,
.section-donkerbruin .testimonial-card,
.section-bruin .testimonial-card {
  background: none;
}

.section-zwartgrijs .testimonial-text,
.section-donkerbruin .testimonial-text,
.section-bruin .testimonial-text {
  color: var(--beige);
}

.section-zwartgrijs .testimonial-author,
.section-donkerbruin .testimonial-author,
.section-bruin .testimonial-author,
.section-zwartgrijs .testimonial-role,
.section-donkerbruin .testimonial-role,
.section-bruin .testimonial-role {
  color: var(--beige);
}

/* Testimonials op rode sectie: donkere tekst */
.section-rood .testimonial-card {
  background: none;
}

.section-rood .testimonial-text,
.section-rood .testimonial-author,
.section-rood .testimonial-role {
  color: #434343;
}

/* Quote-divider kleuren: blockquote moet ook mee kleuren */
.quote-divider.section-bruin,
.quote-divider.section-rood,
.quote-divider.section-zwartgrijs,
.quote-divider.section-donkerbruin {
  color: var(--beige);
}

.quote-divider.section-bruin blockquote,
.quote-divider.section-rood blockquote,
.quote-divider.section-zwartgrijs blockquote,
.quote-divider.section-donkerbruin blockquote {
  color: var(--beige);
}

/* Quote-divider licht/beige: standaard rode tekst behouden */
.quote-divider.section-light blockquote {
  color: var(--rood);
}
