/* =============================================================
   De Ruitenmeester — main stylesheet
   Blue-and-white, warm-professional, fully responsive
   ============================================================= */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --blue-900:  #0D3B6E;   /* deepest blue, hover/focus rings  */
  --blue-700:  #1565C0;   /* primary action blue               */
  --blue-500:  #2196F3;   /* medium blue, accents              */
  --blue-100:  #E3F2FD;   /* card / section tint               */
  --blue-50:   #F0F8FF;   /* page-level very-pale background   */
  --white:     #FFFFFF;
  --slate-900: #1E293B;   /* headings                          */
  --slate-700: #334155;   /* body text                         */
  --slate-500: #64748B;   /* secondary / muted text            */
  --slate-200: #E2E8F0;   /* borders                           */
  --slate-100: #F8FAFC;   /* subtle card bg                    */

  --shadow-xs: 0 1px 4px rgba(21, 101, 192, 0.08);
  --shadow-sm: 0 2px 10px rgba(21, 101, 192, 0.10);
  --shadow-md: 0 6px 24px rgba(21, 101, 192, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w: 1100px;
  --header-h: 68px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Reusable layout helpers ──────────────────────────────── */
.container {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section { padding-block: 4rem; }
.section--tinted { background: var(--blue-50); }

/* ── Typography scale ─────────────────────────────────────── */
h1, h2, h3 { color: var(--slate-900); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { max-width: 68ch; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xs);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo__icon {
  width: 36px;
  height: 36px;
  color: var(--blue-700);
  flex-shrink: 0;
}
.logo__text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo__tagline {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--slate-500);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav-link:hover     { background: var(--blue-100); color: var(--blue-700); }
.nav-link.active    { background: var(--blue-700); color: var(--white); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: none;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--slate-500);
  transition: background 0.15s, color 0.15s;
}
.lang-btn:hover { background: var(--blue-50); }
.lang-btn.active {
  background: var(--blue-700);
  color: var(--white);
}

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--slate-900);
  border-radius: var(--radius-sm);
}
.menu-toggle:hover { background: var(--blue-100); }
.menu-toggle svg { width: 22px; height: 22px; display: block; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding-block: 5rem 3.5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--blue-50) 0%, var(--white) 60%);
  border-bottom: 1px solid var(--blue-100);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}
.hero__title { margin-bottom: 0.85rem; }
.hero__title span { color: var(--blue-700); }
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--slate-500);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.65rem;
  border-radius: var(--radius-md);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary {
  background: var(--blue-700);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-900); }
.btn--outline {
  background: var(--white);
  color: var(--blue-700);
  border: 2px solid var(--blue-700);
}
.btn--outline:hover { background: var(--blue-100); }

/* ── Gallery section ──────────────────────────────────────── */
.gallery-section { padding-block: 3.5rem 4.5rem; }
.section-header { margin-bottom: 2.5rem; }
.section-header .section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 0.5rem;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p  { color: var(--slate-500); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
  gap: 2rem;
}

/* Before/after card */
.ba-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.ba-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ba-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.ba-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.ba-card:hover .ba-image-wrap img { transform: scale(1.03); }

/* Divider line between before/after */
.ba-images::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}
.ba-images { position: relative; }

/* Label badge */
.ba-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 100px;
}
.ba-badge--voor {
  background: rgba(255,255,255,0.92);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}
.ba-badge--na {
  background: var(--blue-700);
  color: var(--white);
}

.ba-footer {
  padding: 0.85rem 1.1rem;
  background: var(--blue-50);
  border-top: 1px solid var(--blue-100);
}
.ba-footer__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-900);
}
.ba-footer__desc {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 0.1rem;
}

/* ── Info page — About ────────────────────────────────────── */
.about-section { padding-block: 4.5rem 3.5rem; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-text .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 0.6rem;
}
.about-text h1 { margin-bottom: 1rem; }
.about-text p  { color: var(--slate-500); margin-bottom: 0.75rem; }
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image__placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--blue-700);
}
.about-image__placeholder svg { width: 64px; height: 64px; margin-inline: auto; margin-bottom: 0.75rem; opacity: 0.5; }
.about-image__placeholder p   { font-size: 0.8rem; color: var(--slate-500); max-width: 20ch; margin-inline: auto; }

/* Services */
.services-section { padding-block: 3.5rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.service-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  flex-shrink: 0;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { margin-bottom: 0.35rem; font-size: 1rem; }
.service-card p  { font-size: 0.9rem; color: var(--slate-500); max-width: none; }

/* Contact section */
.contact-section { padding-block: 3.5rem 5rem; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 0.5rem; }
.contact-info > p { color: var(--slate-500); margin-bottom: 2rem; max-width: 42ch; }

.info-cards { display: flex; flex-direction: column; gap: 0.9rem; }
.info-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xs);
}
.info-card__icon {
  width: 42px;
  height: 42px;
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  flex-shrink: 0;
}
.info-card__icon svg { width: 20px; height: 20px; }
.info-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.info-card__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-top: 0.05rem;
}
.info-card__value a { color: var(--blue-700); }
.info-card__value a:hover { text-decoration: underline; }

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h3 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--slate-900);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-status {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  display: none;
}
.form-status.success { color: #16a34a; display: block; }
.form-status.error   { color: #dc2626; display: block; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--slate-900);
  color: rgba(255,255,255,0.7);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-logo .logo__text  { color: var(--white); }
.footer-logo .logo__tagline { color: rgba(255,255,255,0.45); }
.footer-logo .logo__icon  { color: rgba(255,255,255,0.7); }
.footer-meta {
  text-align: right;
  font-size: 0.82rem;
  line-height: 1.7;
}
.footer-meta .kbo {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.footer-meta a {
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-meta a:hover { color: var(--white); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 760px) {
  /* Header: hide text nav, show hamburger */
  .site-nav { display: none; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--slate-200); padding: 0.75rem 1.25rem; gap: 0.25rem; box-shadow: var(--shadow-sm); }
  .site-nav.open { display: flex; }
  .menu-toggle { display: flex; }

  .header-inner { flex-wrap: wrap; }

  .about-inner { grid-template-columns: 1fr; }
  .about-image { max-width: 340px; aspect-ratio: 1; }

  .contact-inner { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta  { text-align: left; }

  .ba-images { grid-template-columns: 1fr; }
  .ba-images::after { display: none; }
  .ba-image-wrap { aspect-ratio: 16/9; }
}

@media (max-width: 480px) {
  .hero { padding-block: 3.5rem 2.5rem; }
  .section { padding-block: 3rem; }
  .contact-form-wrap { padding: 1.25rem; }
}
