/* KB Solvers, stylesheet */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F6F4;
  --bg-deep: #EBEBE6;
  --ink: #111111;
  --ink-soft: #333333;
  --ink-mute: #666666;
  --brand: #2C4530;
  --brand-dark: #1E2F22;
  --accent: #B85A2A;
  --accent-soft: #DBA67E;
  --line: #E0D6BD;
  --white: #FFFEF7;
  --shadow: 0 1px 2px rgba(31, 46, 31, 0.05), 0 8px 24px rgba(31, 46, 31, 0.05);
  --radius: 4px;
  --maxw: 1120px;
  --measure: 68ch;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 0 1em; max-width: var(--measure); }

ul, ol { padding-left: 1.2em; max-width: var(--measure); }
li { margin-bottom: 0.3em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

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

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  background-color: rgba(255, 255, 255, 0.94);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 160px;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  color: var(--brand-dark);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.logo img {
  height: 140px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(31, 46, 31, 0.10), 0 1px 2px rgba(31, 46, 31, 0.06);
}
@media (max-width: 960px) {
  .site-header .container { min-height: 130px; }
  .logo img { height: 110px; }
}
@media (max-width: 760px) {
  .site-header .container { min-height: 110px; }
  .logo img { height: 92px; }
  .logo { font-size: 1.2rem; gap: 0.75rem; }
}

/* Featured logo block for the about page */
.logo-feature {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 1.5rem;
}
.logo-feature img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(31, 46, 31, 0.10), 0 16px 40px rgba(31, 46, 31, 0.08);
}
.logo-feature + p.lead-caption {
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0 0 2.5rem;
}
.logo span small {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-top: 2px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a.active { color: var(--brand); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.site-nav .lang-switch {
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}
.site-nav .lang-switch a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.site-nav .lang-switch a::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 14px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  flex-shrink: 0;
}
.site-nav .lang-switch a[lang="en"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><rect width='60' height='30' fill='%23012169'/><path d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/><path d='M0,0 L60,30 M60,0 L0,30' stroke='%23C8102E' stroke-width='3'/><path d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/><path d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='5'/></svg>");
}
.site-nav .lang-switch a[lang="nl"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'><rect width='9' height='2' y='0' fill='%23AE1C28'/><rect width='9' height='2' y='2' fill='%23fff'/><rect width='9' height='2' y='4' fill='%2321468B'/></svg>");
}
.site-nav .lang-switch a:hover { color: var(--brand); border-bottom: 0; }
@media (max-width: 760px) {
  .site-nav .lang-switch { border-left: 0; padding-left: 0; margin-left: 0; }
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--white) !important;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--brand);
  transition: background 0.15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost {
  background: transparent;
  color: var(--brand) !important;
  border-color: var(--brand);
}
.btn-ghost:hover { background: var(--brand); color: var(--white) !important; }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero h1 { max-width: 18ch; margin-bottom: 1rem; }
.hero .lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 50ch;
  line-height: 1.5;
  margin-bottom: 1.8rem;
}
.hero .cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Sections */
section { padding: 4rem 0; }
section.bg-alt { background: var(--bg-alt); }
section.bg-deep { background: var(--bg-deep); }

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--brand-dark); margin-top: 0; font-family: Georgia, serif; font-size: 1.3rem; }
.card .card-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card a.card-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.card a.card-link:hover { color: var(--accent); }

/* Steps */
.steps { counter-reset: step; margin-top: 2rem; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.step h3 { margin: 0 0 0.5rem; }
.step p { margin: 0; }

/* Case block */
.case {
  background: var(--brand);
  color: var(--white);
  padding: 4rem 0;
}
.case h2 { color: var(--white); }
.case p { color: rgba(251, 247, 236, 0.92); }
.case .quote {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.4;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  max-width: 28em;
  margin: 1.5rem 0;
}
.case .case-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  margin-bottom: 0.5rem;
}

/* USP strip */
.usp-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.usp h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-dark);
  font-family: Georgia, serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.usp h4::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.usp p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* Inline contact */
.contact-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  padding: 2.5rem 0;
  background: #FFFFFF;
  border-top: 0;
  border-bottom: 0;
}
.contact-inline .contact-block strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-dark);
  margin-bottom: 0.7rem;
  font-weight: 700;
}
.contact-inline p {
  margin: 0;
  color: #000000;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}
.contact-inline p a {
  color: #000000;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-inline p a:hover { color: var(--accent); }
.contact-inline .text-muted {
  display: block;
  margin-top: 0.2rem;
  color: #555555;
  font-size: 0.88rem;
  font-weight: 400;
}

/* Form */
form.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 640px;
}
form.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  color: var(--ink);
  width: 100%;
}
form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--brand);
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form .field { display: grid; gap: 0.35rem; }
form.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) {
  form.contact-form .row { grid-template-columns: 1fr; }
}
form.contact-form button {
  justify-self: start;
}
.form-note { font-size: 0.85rem; color: var(--ink-mute); margin-top: 0.5rem; }

/* Footer */
.site-footer {
  background: #FFFFFF;
  color: #000000;
  padding: 4rem 0 2rem;
  margin-top: 0;
  border-top: 0;
}
.site-footer * { color: #000000; }
.site-footer a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 500;
}
.site-footer a:hover { color: var(--accent); }
.site-footer h4 {
  color: var(--brand-dark);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin: 0 0 1rem;
  font-weight: 700;
}
.site-footer p {
  color: #000000;
  font-size: 0.97rem;
  line-height: 1.55;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li {
  margin-bottom: 0.55rem;
  font-size: 0.97rem;
  color: #000000;
}
.site-footer .footer-grid > div:last-child li {
  font-size: 1.02rem;
  font-weight: 500;
}
.footer-meta {
  border-top: 1px solid #D8D8D8;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #444444;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-meta * { color: #444444; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--ink); }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 0.5rem; }
  .site-nav a { display: block; padding: 0.8rem 0; }
}

/* Utility */
.text-muted { color: var(--ink-mute); }
.lead { font-size: 1.15rem; line-height: 1.55; color: var(--ink-soft); }
.eyebrow { display: inline-block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; color: var(--accent); margin-bottom: 0.5rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Page header */
.page-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.page-header .eyebrow { margin-bottom: 0.75rem; }
.page-header h1 { max-width: 22ch; margin-bottom: 0.75rem; }
.page-header .lead { max-width: 56ch; }

/* Article body */
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.4rem;
  margin: 1.5rem 0;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none !important;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(31, 46, 31, 0.08), 0 12px 28px rgba(31, 46, 31, 0.10);
  color: var(--ink);
}
.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--bg-alt);
}
.project-card .pc-body { padding: 1.5rem; }
.project-card h3 {
  font-family: Georgia, serif;
  margin: 0 0 0.5em;
  color: var(--brand-dark);
}
.project-card .pc-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.project-card p { margin: 0; color: var(--ink-soft); }

.photo-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
.photo-gallery figure.site-img { margin: 0; max-width: none; }
.photo-gallery figure.site-img img { max-height: 560px; object-fit: cover; }

.breadcrumb {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
  text-decoration: none;
}
.breadcrumb:hover { color: var(--brand); }

/* Phone CTA banner above footer */
.cta-phone {
  background: var(--bg-alt);
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-phone-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-phone .cta-text { color: var(--ink); }
.cta-phone .cta-text h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}
.cta-phone .cta-text p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}
.cta-phone-number {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--ink) !important;
  text-decoration: none !important;
  background: var(--white);
  padding: 1rem 1.8rem;
  border-radius: 8px;
  border: 2px solid var(--brand-dark);
  box-shadow: var(--shadow);
  white-space: nowrap;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.cta-phone-number::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2E1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
  background-repeat: no-repeat;
}
.cta-phone-number:hover {
  background: var(--brand-dark);
  color: var(--white) !important;
  border-color: var(--brand-dark);
  transform: translateY(-1px);
}
.cta-phone-number:hover::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFEF7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
}
@media (max-width: 640px) {
  .cta-phone-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-phone-number { justify-content: center; width: 100%; }
}

/* Figures (work photos) */
figure.site-img {
  margin: 2.5rem 0;
  max-width: var(--measure);
}
figure.site-img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: block;
  background: var(--bg-alt);
}
figure.site-img figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-style: italic;
}
.step figure.site-img { margin: 1.25rem 0 0; }
.case figure.site-img img { box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.25); }
.case figure.site-img figcaption { color: rgba(251, 247, 236, 0.7); }
