/*
Theme Name: WBM Motoren
Theme URI: https://wbmmotoren.nl
Author: WBM Motoren
Description: Custom WordPress thema voor WBM Motoren - specialist in kopen en verkopen van motoren en schademotors.
Version: 1.0
License: All Rights Reserved
Text Domain: wbm-motoren
*/

:root {
  --bg: hsl(0, 0%, 7%);
  --fg: hsl(0, 0%, 95%);
  --card: hsl(0, 0%, 10%);
  --card-fg: hsl(0, 0%, 95%);
  --primary: hsl(0, 85%, 50%);
  --primary-fg: hsl(0, 0%, 100%);
  --secondary: hsl(0, 0%, 15%);
  --secondary-fg: hsl(0, 0%, 95%);
  --muted: hsl(0, 0%, 15%);
  --muted-fg: hsl(0, 0%, 60%);
  --border: hsl(0, 0%, 20%);
  --radius: 0.5rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: hsla(0, 0%, 7%, 0.95);
  backdrop-filter: blur(8px);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0; padding-bottom: 0;
}
.navbar-logo img { height: 5rem; width: auto; object-fit: contain; }
.navbar-menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.navbar-menu a {
  display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; color: var(--muted-fg);
  transition: all 0.2s;
}
.navbar-menu a:hover { color: var(--fg); background: var(--secondary); }
.navbar-menu a.active { background: var(--primary); color: var(--primary-fg); }
.menu-toggle { display: none; background: none; border: none; color: var(--fg); cursor: pointer; font-size: 1.5rem; }

/* HERO */
.hero {
  position: relative; padding: 5rem 0; overflow: hidden; text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, hsla(0,85%,50%,0.2), var(--bg), var(--bg));
}
.hero-content { position: relative; z-index: 1; max-width: 42rem; margin: 0 auto; }
.hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.125rem; color: var(--muted-fg); margin-bottom: 1.5rem; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-weight: 500; font-size: 1rem; cursor: pointer;
  border: none; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--fg); }
.btn-outline:hover { background: var(--secondary); }
.btn-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* USPs */
.usps { padding: 4rem 0; }
.usps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.usp-card {
  text-align: center; padding: 1.5rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
}
.usp-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.75rem; }
.usp-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.usp-card p { font-size: 0.875rem; color: var(--muted-fg); }

/* MOTOR CARDS */
.motors-section { padding: 4rem 0; }
.motors-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.motors-header h2 { font-size: 1.75rem; font-weight: 700; }
.motors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.motor-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  transition: transform 0.2s;
}
.motor-card:hover { transform: translateY(-4px); }
.motor-card img { width: 100%; height: 12rem; object-fit: cover; }
.motor-card-body { padding: 1rem; }
.motor-card h3 { font-weight: 600; margin-bottom: 0.25rem; }
.motor-card .price { color: var(--primary); font-weight: 700; font-size: 1.125rem; }
.motor-card .meta { font-size: 0.8rem; color: var(--muted-fg); margin-top: 0.25rem; }
.motor-badge {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600; background: var(--primary); color: var(--primary-fg);
  position: absolute; top: 0.5rem; right: 0.5rem;
}
.motor-card-img { position: relative; }

/* PAGE */
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-header p { color: var(--muted-fg); }
.page-section { padding: 3rem 0; }

/* FORM */
.form-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; max-width: 42rem;
}
.form-card h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.625rem 0.75rem; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border); color: var(--fg);
  font-size: 0.875rem;
}
.form-group textarea { resize: vertical; min-height: 6rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-full { grid-column: 1 / -1; }

/* ABOUT */
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.about-card {
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
}
.about-card h3 { font-weight: 600; margin: 0.75rem 0 0.5rem; }
.about-card p { font-size: 0.875rem; color: var(--muted-fg); }
.about-text { max-width: 48rem; }
.about-text h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.about-text p { color: var(--muted-fg); line-height: 1.8; margin-bottom: 1rem; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--border); background: var(--card); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 2.5rem 0; }
.footer-grid h4 { font-weight: 600; margin-bottom: 0.75rem; }
.footer-grid p, .footer-grid li { font-size: 0.875rem; color: var(--muted-fg); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a:hover { color: var(--fg); }
.footer-grid img { height: 2.5rem; margin-bottom: 1rem; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 1rem 0;
  text-align: center; font-size: 0.75rem; color: var(--muted-fg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--border); padding: 1rem; }
  .navbar-menu.open { display: flex; }
  .menu-toggle { display: block; }
  .usps-grid, .motors-grid, .about-cards, .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .navbar-logo img { height: 4rem; }
}
