/* ===========================
   MaandlastCheck — Stylesheet
   Palette: off-white bg, deep navy text, emerald accent, warm slate secondary
   =========================== */

:root {
  --bg:        #F5F6F2;
  --bg-card:   #FFFFFF;
  --text:      #1A2233;
  --text-muted:#5A6478;
  --accent:    #1B6E4F;      /* emerald groen — geld/vertrouwen */
  --accent-lt: #E8F5EF;
  --accent2:   #2E4A7A;      /* diep navy voor hypotheek */
  --accent2-lt:#EAF0FB;
  --border:    #DDE1E8;
  --radius:    10px;
  --radius-lg: 18px;
  --shadow:    0 2px 12px rgba(26,34,51,0.07);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ——— HEADER ——— */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.site-header nav a:hover { color: var(--accent); }

/* ——— HERO ——— */
.hero {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-lt);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
}

/* ——— AD SLOT ——— */
.ad-slot {
  padding: 20px 20px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* ——— TOOL CARDS ——— */
.tools-grid {
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 680px) {
  .tools-grid { grid-template-columns: 1fr; }
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,34,51,0.11);
}

.tool-card--primary { border-color: var(--accent); border-width: 2px; }

.tool-card__icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-lt);
  border-radius: var(--radius);
  flex-shrink: 0;
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 700;
}

.tool-card--primary ~ .tool-card .tool-card__icon {
  background: var(--accent2-lt);
  color: var(--accent2);
}

.tool-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.tool-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.tool-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.tool-card__features {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tool-card__features li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.tool-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
}

/* ——— BUTTONS ——— */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: #155c40; }

.btn--secondary {
  background: var(--accent2);
  color: #fff;
}
.btn--secondary:hover { background: #233d68; }

/* ——— CONTENT SECTION ——— */
.content-section {
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--border);
}

@media (max-width: 680px) {
  .content-section { grid-template-columns: 1fr; }
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 16px;
}

.content-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.faq-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; margin-bottom: 0; }

.faq-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ——— FOOTER ——— */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 40px 0 32px;
  margin-top: 60px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-left strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}

.footer-left p { font-size: 0.85rem; }

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-nav a:hover { color: #fff; }

.footer-legal {
  font-size: 0.78rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}

/* ——— TOOL PAGE LAYOUT ——— */
.tool-page {
  padding: 40px 0 60px;
}

.tool-page__header {
  margin-bottom: 32px;
}

.tool-page__breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.tool-page__breadcrumb a { color: var(--text-muted); text-decoration: none; }
.tool-page__breadcrumb a:hover { color: var(--accent); }

.tool-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.tool-page__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 780px) {
  .tool-layout { grid-template-columns: 1fr; }
}

/* ——— CALCULATOR CARD ——— */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.calc-card__section {
  margin-bottom: 22px;
}

.calc-card__section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group .hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.input-wrap {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

.has-prefix input {
  padding-left: 30px;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }

.toggle-row label {
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
}

.toggle {
  position: relative;
  width: 40px;
  height: 22px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle-track::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}
.toggle input:checked + .toggle-track::after { transform: translateX(18px); }

/* ——— RESULTS ——— */
.results-card {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
}

.results-card.navy { background: var(--accent2); }

.results-main-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 6px;
}

.results-main-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1;
}

.results-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.875rem;
}

.result-line:last-child { border-bottom: none; }

.result-line__label { opacity: 0.8; }

.result-line__value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.result-line--subtotal {
  border-top: 1px solid rgba(255,255,255,0.3);
  margin-top: 4px;
  padding-top: 12px;
}

.result-line--negative .result-line__value { opacity: 0.7; }

.results-disclaimer {
  margin-top: 20px;
  font-size: 0.75rem;
  opacity: 0.6;
  line-height: 1.5;
}

/* ——— TOOL INFO BLOCKS ——— */
.tool-info {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.tool-info h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 16px;
}

.tool-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.tool-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}
