/* Team Haas — static site styles.
   Sizes follow the former Divi site; breakpoint 980px = Divi's tablet/phone. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  --purple: #5462bf;
  --text: #666;
  --heading: #333;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font: 400 16px/1.8 "Inter", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--heading); font-weight: 700; line-height: 1; margin: 0; padding-bottom: 10px; }
h1 { font-size: 36px; }
h2 { font-size: 30px; }
p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }
a { color: var(--purple); text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }

/* Content rows are 80% wide, header/footer 90%, both max 1240px */
.wrap { width: 80%; max-width: 1240px; margin: 0 auto; }
.wrap-wide { width: 90%; max-width: 1240px; margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 12px 6px rgba(0,0,0,.1);
  padding: 32px 0;
}
.site-header img { display: block; height: 60px; width: auto; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: #c03fa8 url("img/hero.webp") right center / cover no-repeat;
  padding: clamp(80px, 6vw, 93px) 0 calc(160px + 2vw);
}
.hero h1 { color: #fff; margin-bottom: 30px; }
.hero p { font-size: 20px; line-height: 1.9; }
@media (max-width: 980px) { .hero { padding: 80px 0 190px; } }

.wave-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 100px; pointer-events: none; }
.hero .wave-bottom { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M320 28c320 0 320 84 640 84 160 0 240-21 320-42v70H0V70c80-21 160-42 320-42z'/%3E%3C/svg%3E") bottom / 100% 100px no-repeat; }

/* Welcome card, pulled up over the hero */
.welcome { position: relative; z-index: 2; margin-top: -124px; }
.welcome .card { background: var(--purple); color: #fff; border-radius: 10px; padding: 32px; }
.welcome h2 { color: #fff; }
.welcome p { font-size: 18px; line-height: 2; }
@media (max-width: 980px) { .welcome { margin-top: -128px; } }

/* Providers */
.providers { padding: 88px 0 18px; }
.providers h2 + p, .compare h2 + p { padding-bottom: 0; }
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 2 cards per row, 3rd column empty, as before */
  column-gap: 5.5%; row-gap: 29px;
  margin: 55px 0 0;
}
.provider:nth-child(odd) { grid-column: 1; }
.provider:nth-child(even) { grid-column: 2; }
.provider {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 18px -6px rgba(0,0,0,.3);
}
.provider .logo { text-align: center; margin-bottom: 25px; line-height: 0; }
.provider .logo img { max-height: 75px; width: auto; }
.provider .text { height: 300px; margin-bottom: 16px; }
.provider ul { padding: 0 0 16px 16px; margin: 0; line-height: 26px; }
.provider .price { text-align: center; margin-bottom: 25px; padding: 0; }
.provider .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 25px; }
@media (max-width: 980px) {
  .providers { padding-top: 92px; }
  .provider-grid { grid-template-columns: 1fr; row-gap: 30px; margin-top: 60px; }
  .provider:nth-child(n) { grid-column: 1; }
  .provider:nth-child(3) { margin-top: 31px; } /* Divi's empty column added this gap */
  .provider .actions { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .provider .logo, .provider .price { margin-bottom: 30px; } /* Divi's phone module spacing */
  .providers { padding-bottom: 48px; }
  .provider .text { height: auto; min-height: 300px; }
}

.btn {
  position: relative;
  display: inline-block;
  font: 500 18px/1.7 "Inter", Helvetica, Arial, sans-serif;
  border: 2px solid var(--purple);
  border-radius: 10px;
  padding: .3em 1em;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.btn-primary { background: var(--purple); color: #fff; padding: .3em 2em .3em .7em; }
.btn-primary::after {
  content: ""; position: absolute; right: .75em; top: 50%;
  width: .38em; height: .38em; margin-top: -.19em;
  border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg);
}
.btn-primary:hover { background: #4652a8; border-color: #4652a8; }
.btn-outline { background: transparent; color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }

/* Compare — desktop table (grey, waves) */
.compare {
  position: relative;
  background: #f4f4f4;
  padding: 124px 0 121px;
}
.compare .wave-top { position: absolute; left: 0; right: 0; top: 0; height: 100px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cg fill='%23fff'%3E%3Cpath d='M0 51.76c36.21-2.25 77.57-3.58 126.42-3.58 320 0 320 57 640 57 271.15 0 312.58-40.91 513.58-53.4V0H0z' fill-opacity='.3'/%3E%3Cpath d='M0 24.31c43.46-5.69 94.56-9.25 158.42-9.25 320 0 320 89.24 640 89.24 256.13 0 307.28-57.16 481.58-80V0H0z' fill-opacity='.5'/%3E%3Cpath d='M0 0v3.4C28.2 1.6 59.4.59 94.42.59c320 0 320 84.3 640 84.3 285 0 316.17-66.85 545.58-81.49V0z'/%3E%3C/g%3E%3C/svg%3E") top / 100% 100px no-repeat; }
.compare .wave-bottom { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cpath fill='%235462bf' d='M320 28c320 0 320 84 640 84 160 0 240-21 320-42v70H0V70c80-21 160-42 320-42z'/%3E%3C/svg%3E") bottom / 100% 100px no-repeat; }

.compare-logos { display: grid; grid-template-columns: 27.2% repeat(4, 18.2%); align-items: start; height: 60px; margin-top: 55px; line-height: 0; }
.compare-logos img:nth-child(1) { grid-column: 2; width: 105px; margin-left: 11px; }
.compare-logos img:nth-child(2) { width: 105px; margin-left: 3px; }
.compare-logos img:nth-child(3) { width: 52px; margin-left: 27px; }
.compare-logos img:nth-child(4) { width: 87px; margin-left: 12px; }

.compare-table { width: 100%; border-collapse: collapse; border: 1px solid #eee; color: #444; margin: 0 0 15px; table-layout: fixed; }
.compare-table col:first-child { width: 27.2%; }
.compare-table th, .compare-table td { text-align: left; line-height: 28.8px; padding: 6px 24px; border-top: 1px solid #eee; font-weight: 400; }
.compare-table th { font-weight: 700; }
.note { font-size: 12px; line-height: 28.8px; text-align: justify; padding-top: 16px; }

/* Compare — tablet/phone cards (white, no waves) */
.compare-mobile { display: none; padding: 30px 0 38px; }
.compare-card { background: #f7f7f7; border-radius: 10px; padding: 16px; margin-top: 24px; }
.compare-card:first-of-type { margin-top: 30px; }
.compare-card img { display: block; height: auto; width: 35%; margin-bottom: 16px; }
.compare-card:nth-of-type(3) img { width: 20%; }
.compare-card:nth-of-type(4) img { width: 30%; }
.compare-card table { width: 100%; border-collapse: collapse; color: #444; margin-bottom: 15px; table-layout: fixed; }
.compare-card td { padding: 0 8px 16px 0; vertical-align: top; }
.compare-card tr:last-child td { padding-bottom: 0; }
.compare-mobile .note { font-size: 10px; padding-top: 30px; }

@media (max-width: 980px) {
  .compare { display: none; }
  .compare-mobile { display: block; }
}

/* Contact popup (native popover, no JavaScript) */
.modal {
  width: 50%; max-width: 100%; max-height: 100%;
  margin: auto; padding: 0; border: 0;
  background: #fff; color: var(--text);
  overflow-y: auto;
}
.modal::backdrop { background: rgba(0,0,0,.3); }
.modal-header { display: flex; justify-content: flex-end; padding: 20px; }
.modal-close { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.modal-close::before, .modal-close::after { content: ""; position: absolute; left: 4px; right: 4px; top: 15px; height: 2px; background: #000; transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.modal-body { padding: 20px; }
.modal-inner { width: 80%; margin: 0 auto; }
.modal-inner > p { padding-bottom: 15px; }
@media (max-width: 980px) { .modal { width: 80%; } }

/* Form (Formidable look) */
.frm-field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.frm-label { display: block; font-size: 15px; color: #3f4b5b; padding: 0 0 3px; }
.req { color: #b94a48; font-weight: 700; }
.frm-field input[type=text], .frm-field input[type=email], .frm-field input[type=tel] {
  width: 100%; height: 32px;
  font: 14px/1.3 "Inter", Helvetica, Arial, sans-serif; color: #555;
  padding: 6px 10px;
  border: 1px solid #bfc3c8; border-radius: 4px; background: #fff;
}
.frm-field input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 5px rgba(84,98,191,.6); }
.frm-choice { display: block; font-size: 13px; line-height: 1.3; color: #444; margin: 0 0 10px; }
.frm-choice input { width: 16px; height: 16px; margin: 0 4px 0 0; vertical-align: -3px; accent-color: var(--purple); }
.frm-submit {
  font: 700 15px/normal "Inter", Helvetica, Arial, sans-serif; color: #fff;
  background: var(--purple); border: 1px solid var(--purple); border-radius: 5px;
  padding: 10px 20px; margin: 10px 0;
  box-shadow: 0 1px 1px #eee; cursor: pointer;
}
.frm-submit:hover { background: #4652a8; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Conditional fields, as the old form: contact preference only when a call or visit
   is wanted; phone number only when "Telefoon" is chosen. contact.php applies the same rules. */
.contact-form:not(:has(.wants-contact:checked)) .if-contact,
.contact-form:not(:has(input[name=contactvoorkeur][value=Telefoon]:checked)) .if-phone { display: none; }

/* Plain content pages (privacy, bedankt, 404) */
.page { padding: 82px 0 70px; }
.page h1 { padding-bottom: 55px; }
.page p a { color: #2ea3f2; }
.page .btn-primary { color: #fff; }
.page ul { margin: 0; padding: 0 0 23px 1em; }

/* Footer */
.site-footer { background: var(--purple); color: #fff; padding: 44px 0; }
.site-footer .wrap-wide { display: grid; grid-template-columns: 1fr 1fr; column-gap: 5.5%; }
.site-footer p { padding: 0; }
.site-footer a { color: #eee; }
@media (max-width: 980px) {
  .site-footer { padding: 46px 0; }
  .site-footer .wrap-wide { grid-template-columns: 1fr; row-gap: 30px; }
}
