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

/* ── Variabelen ─────────────────────────────────────────────────────────── */
:root {
  --bg:          #fafafb;
  --text:        #1a1a1a;
  --text-muted:  #666666;
  --accent:      #A50025;
  --border:      #1a1a1a;
  --border-soft: #e0dbd4;
  --chat-bubble: #f0ece6;
  --font:        'Georgia', 'Times New Roman', serif;
  --pad:         30px;
  --max-w:       950px;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: underline;
}

a:hover {
  opacity: .75;
}

nav a, .footer-bottom a {
  text-decoration: none;
}

p {
  margin-bottom: var(--pad);
  font-size: 16px;
  line-height: 1.3em;
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 700;
}

ul, ol {
  padding-left: var(--pad);
  margin-bottom: var(--pad);
}

li {
  margin-bottom: 8px;
  line-height: 1.3em;
}

/* ── Titels ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

h1 { font-size: 36px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

@media (max-width: 767px) {
  h1 { font-size: 26px; }
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
.site-nav {
  background: transparent;
  padding: var(--pad) var(--pad) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.nav-logo-img {
  height: 330px;
  width: auto;
}

@media (max-width: 767px) {
  .nav-logo-img { height: 250px; }
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--accent);
  text-transform: uppercase;
}

.nav-toggle { display: none; }

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: var(--pad);
    right: var(--pad);
  }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
  }
  .site-nav { position: relative; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .nav-links.open { display: flex; }
}

/* ── Paginatitel ────────────────────────────────────────────────────────── */
.vt-page-header {
  border-top: 1px dotted var(--border);
  border-bottom: 1px dotted var(--border);
  padding: var(--pad);
  text-align: center;
}

.vt-hero {
  border-top: 1px dotted var(--border);
  border-bottom: 1px dotted var(--border);
  padding: var(--pad);
  text-align: center;
}

.vt-hero h1,
.vt-page-header h1 {
  line-height: 1;
}

.vt-page-sub {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
}

/* ── Content wrapper ────────────────────────────────────────────────────── */
.vt-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad);
  padding-top: 36px;
}

.page-home .vt-text p:first-child {
  font-weight: 700;
}

/* ── Homepage grid ──────────────────────────────────────────────────────── */
.vt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

@media (max-width: 767px) {
  .vt-grid-2 {
    grid-template-columns: 1fr;
  }
  .vt-img-wrap { order: -1; }
}

.vt-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.vt-img-caption {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

/* ── Producenten overzicht ──────────────────────────────────────────────── */
.vt-producenten {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad);
}

.vt-search-sticky {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 6px 0 var(--pad);
  text-align: center;
  z-index: 100;
}

.vt-search {
  width: 100%;
  max-width: 320px;
  padding: 8px 16px;
  border: 1px solid var(--border-soft);
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg);
  outline: none;
}

.vt-search:focus { border-color: var(--accent); }

.vt-land-groep { margin-bottom: var(--pad); }

.vt-land-titel {
  font-size: 24px;
  font-weight: 400;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 16px;
  text-align: center;
}

.vt-land-titel a { color: var(--accent); }

.vt-producent-item {
  text-align: center;
  padding: 6px 0;
}

.vt-producent-item a {
  color: var(--text);
  font-size: 16px;
}

.vt-producent-item a:hover { color: var(--accent); }

.vt-producent-type {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Detail pagina ──────────────────────────────────────────────────────── */
.vt-detail {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad);
}

.vt-breadcrumb {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: var(--pad);
  text-align: center;
}

.vt-breadcrumb a { color: var(--accent); }
.vt-breadcrumb a:hover { text-decoration: underline; }

.vt-wijntype {
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--pad);
  text-align: center;
}

/* ── Privacy ────────────────────────────────────────────────────────────── */
.vt-privacy-h2 {
  font-size: 18px;
  font-weight: 700;
  text-transform: none;
  margin: var(--pad) 0 12px;
}

/* ── Wijnadvies ─────────────────────────────────────────────────────────── */
.vt-wijnadvies {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--pad);
}

.vt-chat-history {
  min-height: 200px;
  margin-bottom: var(--pad);
}

.vt-chat-vraag {
  background: var(--chat-bubble);
  border-radius: 18px 18px 4px 18px;
  padding: 12px 20px;
  margin-bottom: 16px;
  display: inline-block;
  max-width: 80%;
  float: right;
  clear: both;
}

.vt-chat-antwoord {
  clear: both;
  margin-bottom: var(--pad);
}

.vt-chat-antwoord::after { content: ''; display: table; clear: both; }

.vt-prompt-wrap {
  display: flex;
  gap: 12px;
  border-top: 1px dotted var(--border-soft);
  padding-top: var(--pad);
}

.vt-prompt-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-soft);
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg);
  outline: none;
}

.vt-prompt-input:focus { border-color: var(--accent); }

.vt-prompt-btn {
  padding: 10px 24px;
  background: var(--text);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
}

.vt-prompt-btn:hover { background: var(--accent); }
.vt-prompt-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Contact ────────────────────────────────────────────────────────────── */
.vt-contact {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad);
  padding-top: 36px;
}

.vt-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 767px) {
  .vt-contact-grid {
    grid-template-columns: 1fr;
  }
  .vt-contact-img { order: -1; }
}

.vt-contact-img img { width: 100%; height: auto; display: block; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px dotted var(--border-soft);
  padding: var(--pad);
  text-align: center;
}

.footer-bottom {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-bottom a {
  color: var(--accent);
  margin-left: 20px;
}

/* ── Back to top ────────────────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: var(--pad);
  right: var(--pad);
  width: 40px;
  height: 40px;
  background: var(--text);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 999;
}

#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--accent); }

/* ── Badge ──────────────────────────────────────────────────────────────── */
#cn-badge { margin-top: 16px; }
#cn-badge a { font-size: 12px; color: var(--text-muted); }

/* ── Utility ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
