/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Variables ===== */
:root {
  --beige: #F7F3E3;
  --beige-light: #FAF9F6;
  --sand: #C2B280;
  --sage: #8B9D83;
  --sage-hover: #7a8a73;
  --sage-10: rgba(139, 157, 131, 0.10);
  --sage-5: rgba(139, 157, 131, 0.05);
  --sage-20: rgba(139, 157, 131, 0.20);
  --sand-10: rgba(194, 178, 128, 0.10);
  --sand-5: rgba(194, 178, 128, 0.05);
  --sand-20: rgba(194, 178, 128, 0.20);
  --text-dark: #2c2c2c;
  --text-body: #4b5563;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --white: #ffffff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--beige);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sage); }

/* Sand texture */
.sand-texture {
  background-color: var(--beige);
  background-image:
    radial-gradient(circle at 25px 25px, #8bb2801a 2px, transparent 2px),
    radial-gradient(circle at 75px 75px, #c2b2801a 1px, transparent 1px);
  background-size: 100px 100px, 50px 50px;
}

/* ===== Header ===== */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center; height: 64px;
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-img { width: 48px; height: 48px; object-fit: contain; }
.logo-text { font-size: 1.125rem; font-weight: 500; color: var(--sand); font-family: Georgia, serif; }

.desktop-nav { display: flex; gap: 2rem; }
.nav-link {
  font-size: 0.875rem; font-weight: 500; color: var(--text-body);
  text-decoration: none; transition: color 0.2s; padding-bottom: 4px;
}
.nav-link:hover, .nav-link.active { color: var(--sage); }
.nav-link.active { border-bottom: 2px solid var(--sage); }

.mobile-menu-btn {
  display: none; background: none; border: none;
  color: var(--text-body); cursor: pointer;
}

/* ===== Hero (homepage) ===== */
.hero {
  position: relative; height: 384px;
  background-color: var(--beige); margin-top: 64px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/assets/hero-bg.png');
  background-size: cover; background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.2); }
.hero-content {
  position: relative; z-index: 10; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; max-width: 1024px; margin: 0 auto; padding: 0 1.5rem;
}
.hero h1 { font-family: Georgia, serif; font-size: 3rem; font-weight: 400; color: var(--text-dark); line-height: 1.2; margin-bottom: 2rem; }
.hero-subtitle { font-size: 1.25rem; color: rgba(44,44,44,0.85); line-height: 1.6; max-width: 768px; margin-bottom: 1.5rem; }
.hero-tagline { font-size: 1.1rem; color: rgba(44,44,44,0.75); max-width: 672px; line-height: 1.6; font-style: italic; margin-top: -0.5rem; }

/* ===== Homepage About ===== */
.content-section { max-width: 1280px; margin: 0 auto; padding: 4rem 2rem; }
.about-layout { display: flex; align-items: flex-start; gap: 3rem; }
.photo-wrapper { flex-shrink: 0; }
.portrait { width: 208px; height: 208px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.about-text { flex: 1; }
.about-text h2 { font-size: 1rem; margin-bottom: 1.5rem; }
.about-text p { font-size: 1.125rem; line-height: 1.6; margin-bottom: 1.5rem; }
.about-text h3 { font-size: 1rem; margin-bottom: 1rem; }
.qualifications { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.qualifications li { display: flex; align-items: flex-start; gap: 0.75rem; }
.bullet { display: inline-block; width: 8px; height: 8px; background-color: var(--sage); border-radius: 50%; margin-top: 8px; flex-shrink: 0; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-block; padding: 0.75rem 1.5rem;
  background-color: var(--sage); color: var(--white);
  text-decoration: none; border-radius: 0.5rem;
  font-weight: 500; font-size: 0.875rem;
  transition: background-color 0.2s; border: none; cursor: pointer;
}
.btn:hover { background-color: var(--sage-hover); color: var(--white); }

/* ===== Page Content (subpages) ===== */
.page-content { max-width: 1280px; margin: 0 auto; padding: 6rem 2rem 4rem; }
.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h1 { font-family: Georgia, serif; font-size: 2.5rem; font-weight: 400; margin-bottom: 1rem; }
.page-intro { font-size: 1.125rem; color: var(--text-body); max-width: 800px; margin: 0 auto; line-height: 1.7; }

/* ===== Section titles ===== */
.section-title-center { text-align: center; margin-bottom: 2rem; margin-top: 2.5rem; font-size: 1.5rem; }

/* ===== Two column grid ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }

/* ===== BOX: Sage gradient (inclusiecriteria, etc.) ===== */
.box-sage {
  background: linear-gradient(to bottom right, var(--sage-10), var(--sage-5));
  border-radius: 0.5rem; padding: 2rem;
  border: 1px solid var(--sage-20);
}
.box-sage h3 { color: var(--sage); margin-bottom: 1rem; font-size: 1.125rem; }

/* ===== BOX: Sand gradient (exclusiecriteria, ongecontracteerd) ===== */
.box-sand {
  background: linear-gradient(to bottom right, var(--sand-10), var(--sand-5));
  border-radius: 0.5rem; padding: 2rem;
  border: 1px solid var(--sand-20);
}
.box-sand h3 { color: var(--sand); margin-bottom: 1rem; font-size: 1.125rem; }

/* ===== BOX: White card (verwijzingsinformatie, samenwerking) ===== */
.card-white {
  background: linear-gradient(to bottom right, #FAF9F6, #F5F2E6);
  border-radius: 0.5rem;
  padding: 2rem; border: 1px solid #e8e3d3;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card-white h3 { margin-bottom: 1rem; }
.card-white.rounded-xl { border-radius: 1rem; }
.card-white.center { text-align: center; }
.card-white.center p { text-align: center; }
.card-white.center .two-col { text-align: left; margin-top: 1.5rem; }
.card-white.center .two-col .box-sand { padding: 1rem 1rem 1rem 1.25rem; }
.card-white.center .two-col .card-inner { padding: 1rem 1rem 1rem 1.25rem; }

/* ===== BOX: Inner white card (kwaliteitsmaatregelen, gecontracteerde) ===== */
.card-inner {
  background: #FDFDFB;
  border-radius: 0.5rem;
  padding: 1rem 1rem 1rem 1.25rem;
  border: 1px solid #e0dfd8;
  border-left: 3px solid var(--sage);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s;
}
.card-inner:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.card-inner h4 { font-weight: 500; margin-bottom: 0.25rem; font-size: 0.95rem; }
.card-inner p { font-size: 0.875rem; color: var(--text-body); }

/* ===== BOX: Beige large section (certificeringen) ===== */
.box-beige {
  background: linear-gradient(135deg, #FAFAF5 0%, #F4F4EE 50%, #EFEEE8 100%);
  border-radius: 10px; padding: 2rem;
  border: 1px solid #d9d8d0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  margin-top: 1rem;
}
.box-beige-inner h3 { margin-bottom: 1.25rem; }
.box-beige-inner { max-width: 1024px; margin: 0 auto; }
.closing-text { text-align: center; color: var(--sage); font-weight: 500; margin-top: 2rem; }

/* ===== BOX: Sage banner (vooroverleg) ===== */
.banner-sage {
  background: linear-gradient(to right, var(--sage), var(--sage-hover));
  border-radius: 0.5rem; padding: 2rem;
  color: var(--white); text-align: center;
  max-width: 900px; margin: 0 auto 3rem;
}
.banner-sage h2 { color: var(--white); margin-bottom: 1rem; }
.banner-sage p { color: rgba(255,255,255,0.9); font-size: 1.125rem; }
.banner-icons {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-bottom: 1.5rem;
}

/* ===== BOX: Info/note box ===== */
.info-box {
  background: #eff6ff; border-radius: 0.5rem;
  padding: 1rem; border: 1px solid #bfdbfe;
  margin-top: 1.5rem; text-align: left;
}
.info-box p, .info-box li { font-size: 0.875rem; color: var(--text-body); }

/* ===== Steps grid (verwijzingsprocedure) ===== */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-bottom: 3rem;
}
.step-card { text-align: center; }
.step-circle {
  width: 64px; height: 64px; background: var(--sage);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; color: var(--white);
}
.step-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.875rem; color: var(--text-body); line-height: 1.6; }

/* ===== Card grid (behandeling, kwaliteit) ===== */
.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; margin-bottom: 2rem;
}

/* ===== Card with icon row (kwaliteit) ===== */
.card-icon-row {
  display: flex; align-items: flex-start; gap: 1.25rem;
}
.card-icon {
  width: 48px; height: 48px; background: var(--sage);
  border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
  color: var(--white); flex-shrink: 0;
  margin-top: 2px;
}
.card-icon.sand { background: var(--sand); }
.card-icon-row h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.card-icon-row p { color: var(--text-body); line-height: 1.6; font-size: 0.95rem; }

/* ===== Card with icon on top (behandeling) ===== */
.card { background: linear-gradient(to bottom right, #FAF9F6, #F5F2E6); border-radius: 0.5rem; padding: 1.5rem; border: 1px solid #e8e3d3; box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-body); line-height: 1.6; font-size: 0.95rem; }
.card .card-icon { margin-bottom: 1rem; }

/* ===== Dot lists ===== */
.dot-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.dot-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.95rem; color: var(--text-body);
}
.dot-list li::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; background: var(--sage);
  border-radius: 50%; margin-top: 8px; flex-shrink: 0;
}
.box-sand .dot-list li::before { background: var(--sand); }
.dot-list li.sub-item { padding-left: 1.5rem; font-size: 0.875rem; }
.dot-list li.sub-item::before { width: 4px; height: 4px; margin-top: 8px; }

/* ===== Text helpers ===== */
.text-sage { color: var(--sage); }
.text-sand { color: var(--sand); }
.small-heading { font-size: 0.875rem; color: var(--text-body); margin-bottom: 0.75rem; }
.small-note { font-size: 0.75rem; color: var(--text-light); margin-top: 0.25rem; }

/* ===== Contact items ===== */
.contact-items {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item h3 { font-size: 0.95rem; color: var(--sand); font-weight: 600; margin-bottom: 0.25rem; }
.contact-item p { font-size: 0.875rem; color: var(--text-body); line-height: 1.6; }
.contact-item a { color: var(--sage); }
.contact-item a:hover { text-decoration: underline; }

/* ===== Map ===== */
.map-card { overflow: hidden; padding: 0; }
.map-container { height: 256px; }
.map-container iframe { display: block; }
.map-info { padding: 1rem 2rem; }
.map-info h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.map-info p { font-size: 0.875rem; color: var(--text-body); }

/* ===== Callout ===== */
.callout {
  background: var(--beige-light); border-radius: 0.5rem;
  padding: 2rem; border: 1px solid var(--border);
  margin-top: 2rem; text-align: center;
}
.callout p { font-size: 1.125rem; color: var(--text-body); line-height: 1.7; }
.callout h2 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.callout .btn { margin-top: 1rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--beige-light);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .desktop-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(250, 249, 246, 0.98); flex-direction: column;
    padding: 1rem 2rem; gap: 0.5rem; border-bottom: 1px solid var(--border);
  }
  .desktop-nav.show { display: flex; }
  .mobile-menu-btn { display: block; }

  .about-layout { flex-direction: column; align-items: center; text-align: center; }
  .about-text h2 { margin-top: 1rem; }
  .qualifications li { text-align: left; }
  .cta-buttons { justify-content: center; }
  .hero h1 { font-size: 1.875rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .page-header h1 { font-size: 2rem; }

  .two-col { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .contact-items { grid-template-columns: 1fr; }
  .page-intro { text-align: left; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 1rem; }
  .content-section { padding: 2rem 1rem; }
  .page-content { padding: 5rem 1rem 2rem; }
  .steps-grid { grid-template-columns: 1fr; }
}
