/* Lokale pagina styling - herbruikbaar voor alle steden */

/* Hard guard: voorkom horizontaal scrollen op mobiel */
:root { -webkit-text-size-adjust: 100%; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }

/* Zorg dat media niet uit het scherm groeien */
img, video, svg, canvas { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }

/* Verpakking paddings zodat content niet tegen rand plakt */
.wrap { padding-left: clamp(12px, 4vw, 24px); padding-right: clamp(12px, 4vw, 24px); margin-left: auto; margin-right: auto; }

/* Secties en containers altijd binnen viewport-breedte */
main, section, header, footer, .hero, .section { width: 100%; }

/* Tabellen en brede rijen binnen eigen scroll houders */
table.matrix { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
table.matrix th, table.matrix td { padding: 12px 16px; text-align: left; vertical-align: top; }

.cards, .pricing, .trust, .grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Voorkom 100vw valkuilen die scrollbar toevoegen */
.full-bleed { width: 100%; max-width: 100%; }

/* Buttons en inputs passen binnen klein scherm */
input, select, textarea, button { max-width: 100%; }

/* Safari rubber-band horizontaal uitzetten */
body { overscroll-behavior-x: none; }

/* Desktop: tabel over de volle breedte en vaste kolommen */
@media (min-width: 1024px){
  table.matrix { display: table; table-layout: fixed; }
}

/* Knopstijl voor .cta */
button.cta, a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: #00ffc3;
  color: #000000;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
}
button.cta:hover, a.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
button.cta:active, a.cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
button.cta:focus-visible, a.cta:focus-visible {
  outline: 3px solid #7cb8ff;
  outline-offset: 2px;
}
button.cta:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
@media (max-width: 560px){
  button.cta, a.cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce){
  button.cta, a.cta { transition: none; }
}

/* Floating WhatsApp button */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #00ffc3;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 10000;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.whatsapp-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.whatsapp-fab:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.whatsapp-fab svg { width: 28px; height: 28px; display: block; }
.whatsapp-fab img { width: 28px; height: 28px; display: block; }

/* Visibility rules */
@media (min-width: 768px){
  .whatsapp-fab{ display: none; }
}
@media (max-width: 767.98px){
  /* chat launcher hidden via chat CSS on mobile */
}

/* Lokale SEO styling */
.local-highlight {
  background: linear-gradient(135deg, #00ffc3, #00d4aa);
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Nieuwe layout styling */
.content-section {
  padding: 60px 0;
  display: flex;
  align-items: center;
  min-height: 500px;
}

.content-section:nth-child(odd) {
  background: #f8f9fa;
}

.content-section:nth-child(even) {
  background: linear-gradient(135deg, #333 0%, #00ffc3 30%, #333 100%);
}

/* Groene secties met accent - zwarte tekst voor leesbaarheid */
.content-section:nth-child(even) .text-content h2 {
  color: #000;
  text-shadow: 0 1px 3px rgba(255,255,255,0.3);
}

.content-section:nth-child(even) .text-content p {
  color: #000;
  text-shadow: 0 1px 2px rgba(255,255,255,0.2);
}

.content-section:nth-child(even) .text-content li {
  color: #000;
  text-shadow: 0 1px 2px rgba(255,255,255,0.2);
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-section:nth-child(even) .content-wrapper {
  grid-template-columns: 1fr 1fr;
}

.content-section:nth-child(odd) .content-wrapper {
  grid-template-columns: 1fr 1fr;
}

.text-content {
  padding: 20px;
}

.text-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
  line-height: 1.2;
}

.text-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

.text-content ul {
  list-style: none;
  padding: 0;
}

.text-content li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
  color: #333;
}

.text-content li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00ffc3;
  font-weight: bold;
}

/* Witte vinkjes voor groene achtergrond secties */
.content-section:nth-child(even) .text-content li:before {
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.image-content {
  text-align: center;
}

.image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }

  .content-section:nth-child(even) .content-wrapper {
    grid-template-columns: 1fr;
  }

  .content-section:nth-child(odd) .content-wrapper {
    grid-template-columns: 1fr;
  }

  .text-content h2 {
    font-size: 2rem;
  }

  .text-content p {
    font-size: 1rem;
  }

  .content-section {
    padding: 40px 0;
  }

  .image-content {
    order: -1;
  }

  /* Alle afbeeldingen boven tekst op mobiel */
  .content-section:nth-child(odd) .image-content {
    order: -1;
  }

  .content-section:nth-child(even) .image-content {
    order: -1;
  }
}

/* Extra kleine schermen */
@media (max-width: 480px) {
  .hero-section {
    padding: 60px 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .text-content h2 {
    font-size: 1.8rem;
  }

  .text-content p {
    font-size: 0.95rem;
  }

  .content-section {
    padding: 30px 0;
  }

  .content-wrapper {
    padding: 0 10px;
  }
}

/* Hero section */
.hero-section {
  background: white;
  color: white;
  text-align: center;
  padding: 80px 0;
}

/* Offerte sectie styling */
#contact {
  background: white;
}

#contact .card {
  background: #000;
  color: white;
}

#contact h2 {
  color: #333;
}

#contact .lead {
  color: #666;
}

/* Footer zwart houden */
.footer {
  background: #000;
  color: white;
}

/* Sectie knopjes styling */
.section-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #00ffc3;
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,255,195,0.3);
}

.section-cta:hover {
  background: #00d4aa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,255,195,0.4);
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #00ffc3;
}

.hero-section p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 30px;
  color: white;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }

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