/* PGB Thuis — stylesheet
   Kleuren: #2A7BBF blauw + #4CAF7D groen
   WCAG AA contrast, mobile-first, grote leesbare fonts */

:root {
  --blue: #2A7BBF;
  --blue-dark: #1E5A8F;
  --green: #4CAF7D;
  --green-dark: #2E8055;
  --bg: #F5F8FC;
  --white: #FFFFFF;
  --text: #1E3A52;
  --text-soft: #3A5A75;
  --border: #D6E2EE;
  --shadow: 0 4px 16px rgba(30, 58, 82, 0.08);
  --radius: 10px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--blue-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw + 0.5rem, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2vw + 0.8rem, 2rem); }
h3 { font-size: 1.25rem; }

p, li {
  font-size: 1.05rem;
  margin-bottom: 0.9em;
  max-width: 70ch;
}

ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 1em;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--blue-dark);
  color: var(--white);
  padding: 0.7rem 1rem;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(30, 58, 82, 0.04);
}

.header-top {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.95rem;
}

.header-top .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  justify-content: flex-end;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.header-top a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.header-top a:hover,
.header-top a:focus {
  text-decoration: underline;
  color: var(--white);
}

.header-top .icon {
  margin-right: 0.35rem;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 1.35rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
}

.logo-text {
  line-height: 1.1;
}

.logo-text small {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
}

/* ---------- Navigation ---------- */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  border-radius: 6px;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  background: var(--bg);
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
  background: var(--blue);
  color: var(--white);
  border: 0;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  line-height: 1.2;
}

.btn-primary {
  background: var(--green);
  color: var(--white) !important;
  border-color: var(--green);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-dark) !important;
  border-color: var(--blue);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--blue);
  color: var(--white) !important;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #E7F0FA 0%, #F5F8FC 100%);
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero h1 {
  color: var(--blue-dark);
  margin-bottom: 0.6rem;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1.6rem;
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-visual {
  background: var(--white);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-visual h2 {
  color: var(--blue-dark);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.hero-visual ul {
  list-style: none;
  padding: 0;
}

.hero-visual li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  margin: 0;
}

.hero-visual li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 22px;
  height: 22px;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Sections ---------- */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg);
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.2rem;
}

.section-head h2 {
  color: var(--blue-dark);
}

.section-head p {
  color: var(--text-soft);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.card .step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.card .icon-circle {
  width: 54px;
  height: 54px;
  background: #E7F5EE;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

/* ---------- CTA block ---------- */
.cta-block {
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 1.8rem;
  text-align: center;
}

.cta-block h2 {
  color: var(--white);
}

.cta-block p {
  color: #D6E7F5;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.6rem;
}

/* ---------- Page hero (sub-pagina) ---------- */
.page-hero {
  background: var(--bg);
  padding: 2.6rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  color: var(--blue-dark);
}

.page-hero p {
  color: var(--text-soft);
  font-size: 1.1rem;
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 0.8rem;
  box-shadow: 0 1px 4px rgba(30,58,82,0.04);
}

.faq summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--blue-dark);
  list-style: none;
  position: relative;
  padding-right: 3rem;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--green);
  font-weight: 700;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq .answer {
  padding: 1rem 1.2rem 1.2rem;
}

/* ---------- Forms ---------- */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.2rem;
}

.form-grid-2 {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

label .req {
  color: #C62828;
  margin-left: 0.15rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 123, 191, 0.2);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.3rem;
}

.radio-group label {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.help-text {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 0.3rem;
}

.form-notice {
  background: #E7F5EE;
  border-left: 4px solid var(--green-dark);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.form-success {
  background: #E7F5EE;
  border: 2px solid var(--green);
  color: #14532D;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.form-success strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--green-dark);
  font-size: 1.15rem;
}

.form-error {
  background: #FDECEC;
  border: 2px solid #C0392B;
  color: #7A1F16;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
}

.form-error strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #C0392B;
  font-size: 1.1rem;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-top: 0.3rem;
}

@media (min-width: 560px) {
  .checkbox-group { grid-template-columns: 1fr 1fr; }
}

.checkbox-group label {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

/* ---------- Contact grid ---------- */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; }
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: 0; }

.contact-item .ico {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg);
  color: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.contact-item strong {
  display: block;
  color: var(--blue-dark);
  margin-bottom: 0.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #14304A;
  color: #D6E7F5;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

.footer-bottom {
  border-top: 1px solid #2A4A66;
  padding-top: 1.2rem;
  font-size: 0.9rem;
  color: #9DB6CC;
  text-align: center;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.8rem; }
.mt-2 { margin-top: 1.6rem; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-block; }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-top: 0.8rem;
  }

  .main-nav a {
    padding: 0.9rem 0.6rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .header-main {
    flex-wrap: wrap;
  }

  .header-top .container {
    justify-content: center;
  }
}

@media (min-width: 821px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; }
}
