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

:root {
  --cream: #F3EDE1;
  --deep: #2B1A0D;
  --accent: #B85C30;
  --muted: #7A6A5A;
  --border: #D4C8B4;
  --hover: #EDE5D6;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Lato', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--deep);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Navigation ─────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 44px;
  border-bottom: 0.5px solid var(--border);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--deep);
}

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--accent); }

/* ── Hero ───────────────────────────────────── */
.hero {
  padding: 40px 44px 36px;
  border-bottom: 0.5px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 520px;
}

.hero p {
  font-size: 14px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.85;
}

/* ── Section label ──────────────────────────── */
.section-label {
  padding: 14px 44px;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--accent);
  border-bottom: 0.5px solid var(--border);
}

/* ── Recipe grid ────────────────────────────── */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.loading, .empty {
  grid-column: 1 / -1;
  padding: 80px 44px;
  color: var(--muted);
  font-size: 14px;
}

/* ── Recipe card ────────────────────────────── */
.card {
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  display: block;
  transition: background 0.2s;
}

.card:nth-child(3n) { border-right: none; }
.card:hover { background: var(--hover); }
.card:hover .card-title { color: var(--accent); }

.card-img {
  background: var(--deep);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5A3A20;
  font-size: 10px;
  letter-spacing: 2px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-body { padding: 22px 24px 24px; }

.card-loc {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.card-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ── Tags ───────────────────────────────────── */
.tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  font-size: 11px;
  padding: 3px 11px;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
}

.tag-acc { border-color: #C4925C; color: var(--accent); }
.tag-wine { border-color: #C0A0B0; color: #8A4060; }

/* ── Recipe detail page ─────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 44px;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 0.5px solid var(--border);
  transition: color 0.15s;
  letter-spacing: 0.5px;
  width: 100%;
}

.back-btn:hover { color: #8A3A10; }

.recipe-hero {
  height: 380px;
  background: var(--deep);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 28px 44px;
}

.recipe-loc-tag {
  font-size: 9px;
  letter-spacing: 3px;
  border: 0.5px solid #5A3A20;
  padding: 5px 14px;
  border-radius: 20px;
  color: #C8BAA8;
  text-transform: uppercase;
}

.recipe-title {
  padding: 38px 44px 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
}

.recipe-desc {
  padding: 14px 44px 22px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.85;
  border-bottom: 0.5px solid var(--border);
  max-width: 720px;
}

.recipe-meta {
  display: flex;
  gap: 8px;
  padding: 18px 44px;
  border-bottom: 0.5px solid var(--border);
  flex-wrap: wrap;
}

.recipe-body {
  display: grid;
  grid-template-columns: 290px 1fr;
  padding: 40px 44px;
  gap: 56px;
}

.col-h {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.ing-cat {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 10px;
  margin-top: 20px;
  text-transform: uppercase;
}

.ing-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 0.5px solid #E6DDD0;
  font-size: 13px;
  gap: 12px;
}

.ing-row span:first-child { color: #3D2B1F; }

.ing-amount {
  color: var(--accent);
  white-space: nowrap;
}

.step {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
}

.step-num {
  width: 34px;
  height: 34px;
  background: var(--deep);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: var(--serif);
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  font-size: 14px;
  line-height: 1.9;
  color: #3D2B1F;
}

.step-text strong { color: var(--deep); font-weight: 400; }

.chef-tip {
  margin-top: 8px;
  border-left: 2px solid var(--accent);
  padding: 16px 20px;
  background: var(--hover);
  border-radius: 0;
  font-size: 13px;
  color: #5A3A20;
  line-height: 1.8;
  font-style: italic;
}

.chef-tip-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 6px;
  font-style: normal;
  display: block;
  text-transform: uppercase;
}

/* ── Over page ──────────────────────────────── */
.over-hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--deep);
}

.over-foto {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.over-body {
  max-width: 620px;
  padding: 64px 44px;
}

.over-intro {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px !important;
}

.over-body h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 32px;
  line-height: 1.25;
}

.over-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.over-body p strong {
  color: var(--deep);
  font-weight: 400;
}

.over-signature {
  margin-top: 36px !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px !important;
  color: var(--deep) !important;
  border-top: 0.5px solid var(--border);
  padding-top: 24px;
}

/* ── Footer ─────────────────────────────────── */
footer {
  padding: 28px 44px;
  border-top: 0.5px solid var(--border);
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p { font-size: 12px; color: var(--muted); }

footer a {
  font-size: 12px;
  color: var(--accent);
  transition: color 0.15s;
}

footer a:hover { color: #8A3A10; }

/* ── Error / loading ────────────────────────── */
.error-page {
  padding: 80px 44px;
  font-size: 15px;
  color: var(--muted);
}

.error-page a { color: var(--accent); }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(3n) { border-right: 0.5px solid var(--border); }
  .card:nth-child(2n) { border-right: none; }
}

@media (max-width: 640px) {
  .nav { padding: 18px 20px; }
  .hero { padding: 40px 20px 36px; }
  .hero h1 { font-size: 30px; }
  .section-label { padding: 12px 20px; }
  .recipe-grid { grid-template-columns: 1fr; }
  .card:nth-child(n) { border-right: none; }
  .back-btn { padding: 14px 20px; }
  .recipe-hero { height: 240px; padding: 20px; }
  .recipe-title { padding: 28px 20px 0; font-size: 26px; }
  .recipe-desc { padding: 12px 20px 18px; }
  .recipe-meta { padding: 14px 20px; }
  .recipe-body { grid-template-columns: 1fr; padding: 28px 20px; gap: 36px; }
  .over-body { padding: 40px 20px; }
  footer { padding: 24px 20px; }
}

/* ── Wine sectie onderaan recept ── */
.wine-section {
  max-width: 860px;
  margin: 3rem auto 2rem;
  padding: 2rem;
  background: #f9f3eb;
  border-left: 4px solid #B85C30;
  border-radius: 4px;
}
.wine-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #B85C30;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.wine-naam {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #2B1A0D;
  margin-bottom: 0.75rem;
}
.wine-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.wine-tag {
  background: #fff;
  border: 1px solid #d4c4b0;
  color: #5a3e2b;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: 'Lato', sans-serif;
}
.wine-toelichting {
  font-family: 'Lato', sans-serif;
  color: #5a3e2b;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}

/* ── Filter balk ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}
.filter-btn {
  background: #fff;
  border: 1px solid #d4c4b0;
  color: #5a3e2b;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-btn:hover {
  background: #f3ede1;
  border-color: #B85C30;
  color: #B85C30;
}
.filter-btn.active {
  background: #B85C30;
  border-color: #B85C30;
  color: #fff;
}

/* ── Twee filterbalken ── */
.filter-wrap {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}
.filter-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9a7e6a;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}
