/* ============================================================
   KLANTIO — Design system
   Based on wireframe: clean lines, monospace labels, lots of
   whitespace, minimal color, typography-driven hierarchy.
   ============================================================ */

:root {
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Courier, monospace;

  --c-text: #111111;
  --c-text-2: #555555;
  --c-text-3: #999999;
  --c-bg: #ffffff;
  --c-bg-2: #f5f4f2;
  --c-border: rgba(0, 0, 0, 0.10);
  --c-border-2: rgba(0, 0, 0, 0.20);

  --wrap: 1060px;
  --radius: 0;
  --transition: 180ms ease;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

/* ── Layout ── */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: 5rem 0;
}

.section-inverted {
  background: var(--c-text);
  color: var(--c-bg);
  padding: 6rem 0;
}

.rule {
  height: 0.5px;
  background: var(--c-border);
  max-width: var(--wrap);
  margin: 0 auto;
}

/* ── Section labels (mono, numbered) ── */
.sec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-3);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.sec-label-inv {
  color: rgba(255, 255, 255, 0.35);
}

.sec-line {
  display: inline-block;
  width: 18px;
  height: 0.5px;
  background: currentColor;
  opacity: 0.4;
}

.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}

.sec-sub {
  font-size: 13px;
  color: var(--c-text-2);
}

.link-arrow {
  font-size: 13px;
  color: var(--c-text-2);
  transition: color var(--transition);
}

.link-arrow:hover {
  color: var(--c-text);
}

/* ── Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--c-text);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.10);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  flex-wrap: nowrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-shrink: 0;
}

.brand {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #fff;
}

.main-nav {
  display: flex;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-email {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 20px;
  border: 0.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-fill {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}

.btn-fill:hover {
  background: #333;
  border-color: #333;
}

.site-header .btn-fill {
  background: #fff;
  color: var(--c-text);
  border-color: #fff;
}

.site-header .btn-fill:hover {
  background: rgba(255, 255, 255, 0.85);
}

.btn-outline {
  background: transparent;
  color: var(--c-bg);
  border-color: rgba(255, 255, 255, 0.3);
  padding: 13px 24px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* ── Hero ── */
.hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

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

.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 15px;
  color: var(--c-text-2);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-visual img {
  width: 100%;
  height: auto;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 5rem;
  border-top: 0.5px solid var(--c-border);
}

.stat {
  padding: 1.5rem 2rem 1rem 0;
}

.stat:not(:last-child) {
  border-right: 0.5px solid var(--c-border);
  padding-right: 2rem;
}

.stat:not(:first-child) {
  padding-left: 2rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-3);
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
}

/* ── USP grid ── */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.usp-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-3);
  display: block;
  margin-bottom: 0.85rem;
}

.usp-divider {
  height: 0.5px;
  background: var(--c-text);
  margin-bottom: 1.2rem;
}

.usp-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.usp-card p {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.65;
}

/* ── Work / Cases ── */
.work-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.work-row-3-2 { grid-template-columns: 3fr 2fr; }
.work-row-2-3 { grid-template-columns: 2fr 3fr; }

.work-visual {
  background: var(--c-bg-2);
  border: 0.5px solid var(--c-border);
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 16 / 10;
}

.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-visual-sq {
  aspect-ratio: 1;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.work-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-3);
  letter-spacing: 0.04em;
}

.work-result {
  text-align: right;
  flex-shrink: 0;
  margin-left: 1rem;
}

/* ── Process ── */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.process-line {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  height: 0.5px;
  background: var(--c-border-2);
  z-index: 0;
}

.process-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0.5px solid var(--c-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--c-text-2);
  background: var(--c-bg);
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.process-step h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.process-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-3);
  letter-spacing: 0.06em;
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--c-text);
  margin-bottom: 1.2rem;
}

.service-col-head h3 {
  font-size: 14px;
  font-weight: 600;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-3);
  letter-spacing: 0.06em;
}

.service-item {
  padding: 9px 0;
  border-bottom: 0.5px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-item span {
  color: var(--c-text-3);
}

.service-item-last {
  border-bottom: none;
}

/* ── CTA ── */
.cta-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: end;
}

.cta-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.cta-sub {
  font-size: 15px;
  opacity: 0.5;
  line-height: 1.65;
  max-width: 400px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cta-email {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.35;
}

/* ── Footer ── */
.site-footer {
  border-top: 0.5px solid var(--c-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 0.5px solid var(--c-border);
}

.footer-brand-col .brand {
  color: var(--c-text);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.65;
  max-width: 240px;
  margin-bottom: 1rem;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--c-text-3);
  letter-spacing: 0.04em;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-3);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 13px;
  color: var(--c-text-2);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--c-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 2rem;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-3);
  letter-spacing: 0.06em;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-3);
  letter-spacing: 0.06em;
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--c-text);
}

/* ── Reveal animation ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Contact form (for contact.html) ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-2);
  margin-top: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0.5px solid var(--c-border-2);
  background: var(--c-bg-2);
  color: var(--c-text);
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-text);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  margin-top: 12px;
  align-self: flex-start;
}

.form-feedback {
  min-height: 20px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

.form-feedback.error { color: #8b3a3a; }
.form-feedback.success { color: #3a6b4a; }

/* ── Page hero (for sub-pages) ── */
.page-hero {
  padding: 5rem 0 3rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 15px;
  color: var(--c-text-2);
  line-height: 1.7;
  max-width: 520px;
}

/* ── Content grid (for diensten, over-ons) ── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.content-card {
  border: 0.5px solid var(--c-border);
  padding: 1.75rem;
}

.content-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.content-card p {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.65;
}

/* ── KPI strip ── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}

.kpi-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 0.3rem;
}

.kpi-item span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-3);
  letter-spacing: 0.06em;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.price-card {
  border: 0.5px solid var(--c-border);
  padding: 2rem;
}

.price-card.featured {
  border-color: var(--c-text);
  border-width: 1.5px;
}

.price-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.price {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 0.3rem;
}

.price-note {
  font-size: 13px;
  color: var(--c-text-3);
  margin-bottom: 1.25rem;
}

.price-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.price-card li {
  font-size: 13px;
  color: var(--c-text-2);
  padding: 6px 0;
  border-bottom: 0.5px solid var(--c-border);
}

.price-card li:last-child {
  border-bottom: none;
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 0.5px solid var(--c-border);
  padding: 1.25rem 0;
}

.faq-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.65;
}

/* ── Case cards (for portfolio.html) ── */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.case-card {
  border: 0.5px solid var(--c-border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.case-card:nth-child(even) {
  direction: rtl;
}

.case-card:nth-child(even) > * {
  direction: ltr;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.case-content p {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.65;
}

.case-content ul {
  list-style: none;
  margin: 1rem 0 0;
}

.case-content li {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 8px;
  background: var(--c-bg-2);
  margin-bottom: 4px;
}

/* ── 404 ── */
.error-wrap {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 120px 2.5rem;
}

.error-card {
  max-width: 480px;
  text-align: center;
}

.error-code {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--c-text-3);
}

.error-card h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.error-card p {
  color: var(--c-text-2);
  font-size: 14px;
  margin-bottom: 1.5rem;
}

.error-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* ── Testimonials ── */
.testimonial-card {
  border: 0.5px solid var(--c-border);
  padding: 1.5rem;
}

.testimonial-card p {
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.testimonial-card cite {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-3);
  font-style: normal;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .wrap { padding: 0 1.5rem; }

  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--c-text);
    padding: 1.5rem 2rem;
    gap: 1rem;
    display: none;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  }

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

  .nav-right { display: none; }
  .nav-email { display: none; }

  .hero-grid,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat { padding: 1rem 0; }
  .stat:not(:last-child) { border-right: none; }
  .stat:not(:first-child) { padding-left: 0; }

  .usp-grid,
  .process-grid,
  .services-grid,
  .pricing-grid,
  .content-grid,
  .kpi-strip {
    grid-template-columns: 1fr;
  }

  .process-line { display: none; }

  .work-row-3-2,
  .work-row-2-3 {
    grid-template-columns: 1fr;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card:nth-child(even) { direction: ltr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .hero-copy h1 { font-size: 1.75rem; }
}
