/* ============================================
   De Buurttechnicus — stylesheet
   ============================================ */

:root {
  --navy: #1F3B4D;
  --navy-dark: #16303F;
  --navy-tint: #E8EEF1;
  --gold: #C9982F;
  --gold-light: #E0B463;
  --cream: #F5F1E8;
  --cream-dark: #EBE3D2;
  --text: #26333B;
  --text-muted: #5B6670;
  --white: #FFFFFF;
  --danger: #B3452D;
  --success: #3F7D58;

  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-soft: 0 6px 24px rgba(31, 59, 77, 0.10);
  --shadow-lift: 0 12px 32px rgba(31, 59, 77, 0.16);

  --content-width: 1140px;

  --text-scale: 1;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--text-scale));
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 0.5em 0;
  line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em 0; }

a { color: var(--navy); }

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

img, svg { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

/* -------- Signature motif: connector dots -------- */
.motif {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.motif::before, .motif::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.motif-line {
  height: 2px;
  width: 46px;
  background: var(--gold);
  flex-shrink: 0;
}
.motif.center { justify-content: center; }

/* -------- Skip link (accessibility) -------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* -------- Top utility bar -------- */
.utility-bar {
  background: var(--navy-dark);
  color: var(--cream);
  font-size: 0.85rem;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}
.utility-bar a {
  color: var(--cream);
  text-decoration: none;
}
.utility-bar a:hover { color: var(--gold-light); }
.utility-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.text-size-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--cream);
}
.text-size-toggle button {
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--cream);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1;
}
.text-size-toggle button:hover { background: var(--gold); color: var(--navy); }

/* -------- Header / nav -------- */
header.site-header {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 10px rgba(31,59,77,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
}
.brand img { height: 52px; width: 52px; }
.brand-text .brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.25rem;
  display: block;
}
.brand-text .brand-tagline {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--gold);
  font-size: 0.8rem;
  display: block;
}
.brand-icon-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
}
nav.main-nav a:hover, nav.main-nav a.active {
  background: var(--navy);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  background: var(--navy);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 1.1rem;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-head);
  text-decoration: none;
  border: 2px solid transparent;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { box-shadow: var(--shadow-lift); background: var(--gold-light); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn-outline-light {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}
.btn-outline-light:hover { background: var(--cream); color: var(--navy); }
.btn-block { width: 100%; justify-content: center; }

/* -------- Hero -------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--cream);
  padding: 76px 0 92px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,152,47,0.16);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { color: var(--white); }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--cream-dark);
  max-width: 46ch;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-visual {
  background: var(--navy-tint);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.hero-visual-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-lift);
}
.hero-visual-card ul { margin: 0; padding: 0; list-style: none; }
.hero-visual-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
.hero-visual-card li:last-child { border-bottom: none; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

/* -------- Sections -------- */
section { padding: 72px 0; }
section.alt { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .motif { justify-content: center; }

/* -------- Service grid -------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--cream-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.service-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--navy-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 1.4rem;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }
.service-card.highlight {
  background: var(--navy);
  border-color: var(--navy);
}
.service-card.highlight h3, .service-card.highlight p { color: var(--cream); }
.service-card.highlight .icon { background: rgba(201,152,47,0.2); }

/* -------- About / Wie we zijn -------- */
.about-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.about-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.badge-pill {
  background: var(--navy-tint);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
}
.about-portrait {
  background: var(--navy);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3.4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.about-portrait img { width: 70%; }

/* -------- Pricing -------- */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--cream-dark);
}
.pricing-head {
  background: var(--navy);
  color: var(--cream);
  padding: 34px 40px;
  text-align: center;
}
.pricing-head .price {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
}
.pricing-head .price span { font-size: 1.1rem; font-weight: 400; color: var(--cream-dark); }
.pricing-body { padding: 32px 40px 40px; }
.pricing-body ul { list-style: none; padding: 0; margin: 0 0 26px 0; }
.pricing-body li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.98rem;
}
.pricing-body li:last-child { border-bottom: none; }
.check {
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}
.pricing-note {
  background: var(--navy-tint);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* -------- Contact -------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info-row a { color: var(--cream); text-decoration: none; font-weight: 600; }
.contact-info-row a:hover { color: var(--gold-light); }
.contact-info-row .label { font-size: 0.8rem; color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }

form.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--cream-dark);
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  color: var(--text);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; }
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(63,125,88,0.12); color: var(--success); }
.form-status.err { background: rgba(179,69,45,0.12); color: var(--danger); }

/* -------- Footer -------- */
footer.site-footer {
  background: var(--navy-dark);
  color: var(--cream-dark);
  padding: 44px 0 26px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-grid h4 { color: var(--white); font-size: 1rem; }
.footer-grid a { color: var(--cream-dark); text-decoration: none; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--cream-dark);
  font-size: 0.82rem;
}

/* -------- Admin overlay -------- */
.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22,48,63,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.admin-overlay.show { display: flex; }
.admin-login-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow-lift);
}
.admin-login-box h3 { margin-bottom: 4px; }
.admin-login-box p { color: var(--text-muted); font-size: 0.9rem; }
.admin-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  float: right;
  font-size: 1.3rem;
  line-height: 1;
}

.admin-panel {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 1900;
  display: none;
  overflow-y: auto;
}
.admin-panel.show { display: block; }
.admin-topbar {
  background: var(--navy);
  color: var(--cream);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-tabs {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}
.admin-tab-btn {
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy);
}
.admin-tab-btn.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.melding-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.melding-table th, .melding-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.92rem;
  vertical-align: top;
}
.melding-table th {
  background: var(--navy-tint);
  color: var(--navy);
  font-family: var(--font-head);
}
.status-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.status-tag.contact { background: var(--navy-tint); color: var(--navy); }
.status-tag.abonnement { background: rgba(201,152,47,0.18); color: var(--gold); }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* -------- Legal page -------- */
.legal-content h2 { margin-top: 1.6em; }
.legal-content h3 { margin-top: 1.2em; }
.legal-content ul, .legal-content ol { padding-left: 1.4em; }
.legal-content li { margin-bottom: 6px; }
.legal-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 52px 0;
}
.legal-hero h1 { color: var(--white); }

/* -------- Responsive -------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-toggle { display: inline-flex; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    box-shadow: var(--shadow-soft);
    padding: 10px 20px 20px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 2px; }
  .service-grid { grid-template-columns: 1fr; }
  .form-two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .utility-contact { flex-direction: column; gap: 2px; }
}
