/* Garage Davy — v1.0 — mobile-first minimalist
   Palette: antraciet #1E2327 · rood-accent #E2281D · wit #FFFFFF · lichtgrijs #F4F5F7 */

:root {
  --anthracite: #1E2327;
  --accent: #E2281D;
  --white: #FFFFFF;
  --gray-50: #F4F5F7;
  --gray-200: #D8DBE0;
  --gray-400: #8F949D;
  --gray-700: #3D424A;
  --success: #1F8A4C;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.14);
  --max: 1160px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--anthracite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Bebas Neue', Impact, sans-serif; letter-spacing: 0.5px; line-height: 1.1; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
  height: var(--header-h);
  display: flex; align-items: center;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.75rem; color: var(--anthracite); letter-spacing: 1px; display: flex; align-items: center; gap: .6rem; }
.logo span { color: var(--accent); }
.logo-img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px; }
nav ul { display: flex; list-style: none; gap: 1.5rem; }
nav a { color: var(--gray-700); font-weight: 500; }
nav a:hover { color: var(--accent); text-decoration: none; }
.nav-cta { background: var(--accent); color: var(--white); padding: 0.5rem 1rem; border-radius: var(--radius); }
.nav-cta:hover { background: #b61f15; color: var(--white); text-decoration: none; }

.mobile-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--anthracite); }

@media (max-width: 768px) {
  nav ul { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1rem; box-shadow: var(--shadow-lg); }
  nav ul.open { display: flex; }
  .mobile-toggle { display: block; }
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  background-color: var(--anthracite);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  min-height: 60vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,35,39,0.78) 0%, rgba(30,35,39,0.45) 55%, rgba(30,35,39,0.20) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero .sub { font-size: 1.15rem; max-width: 640px; margin-bottom: 1.75rem; opacity: 0.94; }
.hero .cta-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn { display: inline-block; padding: 0.85rem 1.5rem; border-radius: var(--radius); font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: transform 0.1s, background 0.15s; }
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: #b61f15; text-decoration: none; color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--anthracite); text-decoration: none; }

/* ===== Scenario strip ===== */
.scenario-strip {
  background: var(--gray-50);
  padding: 1.25rem 0;
  text-align: center;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}
.scenario-strip a { color: var(--anthracite); border-bottom: 2px solid var(--accent); padding-bottom: 2px; margin: 0 0.5rem; }
.scenario-strip a:hover { color: var(--accent); text-decoration: none; }

/* ===== Rechtsbijstand-banner ===== */
.rb-banner {
  background: #FFF7E6;
  border-left: 4px solid #F0B400;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.rb-banner strong { display: block; margin-bottom: 0.25rem; color: var(--anthracite); }
.rb-banner .rb-small { font-size: 0.8rem; color: var(--gray-400); display: block; margin-top: 0.4rem; }

/* ===== Sections ===== */
section { padding: 3rem 0; }
section.alt { background: var(--gray-50); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card h3 { color: var(--anthracite); }
.card .cat { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 600; margin-bottom: 0.5rem; }

/* ===== Scenario "Herkenbaar?" ===== */
.scenario-block {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gray-700);
}
.scenario-block strong { color: var(--anthracite); font-style: normal; display: block; margin-bottom: 0.5rem; }

/* ===== Disclaimer small ===== */
.disclaimer-small {
  font-size: 0.85rem;
  color: var(--gray-400);
  background: #F8F9FB;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  border-left: 3px solid var(--gray-400);
}

/* ===== Forms ===== */
form.contact { display: grid; gap: 1rem; max-width: 560px; }
form.contact label { font-weight: 500; font-size: 0.95rem; color: var(--gray-700); }
form.contact input, form.contact textarea, form.contact select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
form.contact textarea { resize: vertical; min-height: 120px; }
.gdpr-check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.85rem; color: var(--gray-400); }
.gdpr-check input { width: auto; margin-top: 3px; }

/* ===== Footer ===== */
footer {
  background: var(--anthracite);
  color: var(--gray-50);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
footer a { color: var(--gray-50); }
footer a:hover { color: var(--accent); text-decoration: none; }
footer .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
footer .copyright { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #333; font-size: 0.85rem; color: var(--gray-400); text-align: center; }

/* ===== Chatbot widget ===== */
.chatbot-toggle {
  position: fixed; bottom: 20px; right: 20px;
  width: 64px; height: 64px;
  background: var(--accent);
  color: var(--white);
  border: none; border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 200;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.chatbot-toggle:hover { transform: scale(1.06); }
.chatbot-panel {
  position: fixed;
  bottom: 96px; right: 20px;
  width: 340px; max-width: calc(100vw - 40px);
  max-height: 520px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: none; flex-direction: column;
  overflow: hidden;
  z-index: 200;
}
.chatbot-panel.open { display: flex; }
.chatbot-header {
  background: var(--anthracite);
  color: var(--white);
  padding: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.chatbot-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.chatbot-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  background: var(--gray-50);
}
.chatbot-messages .msg {
  padding: 0.65rem 0.85rem; border-radius: var(--radius);
  margin-bottom: 0.5rem; max-width: 85%;
  font-size: 0.9rem;
}
.chatbot-messages .msg.bot { background: var(--white); box-shadow: var(--shadow); }
.chatbot-messages .msg.user { background: var(--accent); color: var(--white); margin-left: auto; }
.chatbot-quick {
  padding: 0.75rem; background: var(--white); border-top: 1px solid var(--gray-200);
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.chatbot-quick button {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  padding: 0.45rem 0.75rem; border-radius: var(--radius);
  cursor: pointer; font-size: 0.85rem;
}
.chatbot-quick button:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Visuals ===== */
.visual-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.visual-strip figure {
  position: relative; margin: 0;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.visual-strip img { width: 100%; height: 100%; object-fit: cover; }
.visual-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(30,35,39,0.88) 0%, rgba(30,35,39,0) 100%);
  color: var(--white); padding: 1.5rem 1rem 0.75rem;
  font-size: 0.85rem; letter-spacing: 0.02em;
}
.visual-inline {
  margin: 2rem 0;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 21/9;
  box-shadow: var(--shadow);
}
.visual-inline img { width: 100%; height: 100%; object-fit: cover; }
.card.card-visual { padding: 0; overflow: hidden; position: relative; aspect-ratio: 4/3; }
.card.card-visual img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0; z-index: 0;
}
.card.card-visual .card-body {
  position: relative; z-index: 1;
  background: linear-gradient(0deg, rgba(30,35,39,0.92) 35%, rgba(30,35,39,0.55) 75%, rgba(30,35,39,0) 100%);
  color: var(--white);
  padding: 1.25rem; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.card.card-visual h3, .card.card-visual .cat { color: var(--white); }
.card.card-visual p { color: #E5E7EB; }
.card.card-visual a { color: var(--white); font-weight: 600; }

/* ===== Customer-herkenbaarheid grid (specialismen / index) ===== */
.customer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.customer-card { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/5; box-shadow: var(--shadow); }
.customer-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.customer-card:hover img { transform: scale(1.04); }
.customer-card .cap {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(30,35,39,.95) 15%, rgba(30,35,39,0) 100%);
  color: var(--white); padding: 1.5rem 1rem .9rem;
}
.customer-card .cap strong { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; letter-spacing: .04em; margin-bottom: .1rem; }
.customer-card .cap span { font-size: .82rem; color: #E5E7EB; }

/* ===== Workshop gallery ===== */
.workshop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 2rem 0; }
.workshop-grid figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; box-shadow: var(--shadow); }
.workshop-grid img { width: 100%; height: 100%; object-fit: cover; }
.workshop-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(30,35,39,.88) 0%, rgba(30,35,39,0) 100%);
  color: var(--white); padding: 1.25rem 1rem .6rem;
  font-size: .82rem; letter-spacing: .02em;
}

.ai-disclaimer {
  display: block; font-size: .78rem; color: var(--gray-400);
  font-style: italic; margin-top: .5rem;
}

/* ===== Mobile responsiveness fixes (toegevoegd na finale review) ===== */
@media (max-width: 860px) {
  /* Contact.html 2-kolom layout */
  section .container[style*="grid-template-columns:1fr 1fr"],
  section .container[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  /* Pagina-secties met 1.2fr 1fr / 1fr 1.2fr layouts */
  section div[style*="grid-template-columns:1.2fr 1fr"],
  section div[style*="grid-template-columns: 1.2fr 1fr"],
  section div[style*="grid-template-columns:1fr 1.2fr"],
  section div[style*="grid-template-columns: 1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ===== Chatbot privacy-notice (AVG-transparantie) ===== */
.chatbot-panel .chatbot-privacy {
  font-size: .72rem; color: var(--muted); padding: .4rem .75rem .6rem;
  border-top: 1px solid var(--gray-200); line-height: 1.4;
}
.chatbot-panel .chatbot-privacy a { color: var(--muted); text-decoration: underline; }
