/* ============================================
   Tatramaso — gedeelde stijlen
   ============================================ */

:root {
  --cream: #f4ede0;
  --cream-deep: #ebe0cc;
  --bone: #faf5ea;
  --ink: #1a1410;
  --ink-soft: #3d342b;
  --rust: #8b3a1f;
  --rust-deep: #6b2a13;
  --moss: #4a5230;
  --gold: #b8954a;
  --paper: #f9f3e5;
  --line: #d4c5a8;
  --line-soft: #e5dac3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

.display { font-family: 'Fraunces', serif; font-optical-sizing: auto; letter-spacing: -0.02em; line-height: 0.95; }
.italic { font-style: italic; color: var(--rust); }
.label { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 500; }

/* NAV */
nav.main-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(244, 237, 224, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-size: 1rem;
}

/* Desktop nav-links (geen ul/li = geen bullets) */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--rust); }
.nav-links-cta { display: none; } /* Bestel-link alleen in mobiel menu */

/* Rechterblok: pill + hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.nav-cart {
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1.3rem;
  border-radius: 100px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}
.nav-cart:hover { background: var(--rust); }

/* Hamburger — standaard verborgen, zichtbaar op mobiel */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-user {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.3s;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--rust); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(139, 58, 31, 0.25); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* FORMS */
.field { display: flex; flex-direction: column; margin-bottom: 1.4rem; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.field input, .field select, .field textarea {
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 6px;
  transition: all 0.25s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rust);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(139, 58, 31, 0.08);
}
.field input.error, .field select.error { border-color: var(--rust); background: rgba(139, 58, 31, 0.04); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* FLASH MESSAGES */
.flash-stack { max-width: 600px; margin: 1.5rem auto; padding: 0 1.5rem; }
.flash {
  padding: 1rem 1.3rem;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
  border-left: 3px solid;
}
.flash-success { background: rgba(74, 82, 48, 0.1); color: var(--moss); border-color: var(--moss); }
.flash-error { background: rgba(139, 58, 31, 0.08); color: var(--rust-deep); border-color: var(--rust); }
.flash-info { background: rgba(184, 149, 74, 0.12); color: var(--ink); border-color: var(--gold); }

/* CARDS / AUTH FORMS */
.auth-wrap {
  max-width: 480px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}
.auth-card {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 40px -20px rgba(26, 20, 16, 0.15);
}
.auth-card h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.auth-card .intro {
  color: var(--ink-soft);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.auth-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.auth-footer a { color: var(--rust); text-decoration: none; border-bottom: 1px solid var(--rust); }

/* FOOTER */
footer.site-footer {
  padding: 4rem 3rem 2.5rem;
  background: var(--cream-deep);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
}
.footer-grid {
  max-width: 1300px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand h3 { font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 400; margin-bottom: 0.8rem; }
.footer-brand p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 0.88rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--rust); }
.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.footer-bottom .italic { font-family: 'Fraunces', serif; font-style: italic; color: var(--rust); }

@media (max-width: 900px) {
  nav.main-nav { padding: 1rem 1.5rem; }

  /* Verberg desktop-links en pill; toon hamburger */
  .nav-links { display: none; }
  .nav-cart  { display: none; }
  .nav-toggle { display: flex; }

  /* Uitklapmenu via position:fixed — altijd zichtbaar boven alles */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    /* top wordt via JS ingesteld op nav.offsetHeight */
    z-index: 999;
    background: rgba(244, 237, 224, 0.99);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.4rem 0 1.2rem;
  }

  .nav-links.open a {
    display: block;
    padding: 0.9rem 1.6rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links.open a:last-child { border-bottom: none; }
  .nav-links.open a:active { background: var(--bone); }

  /* Bestel-knop onderaan het mobiele menu */
  .nav-links-cta {
    display: block !important;
    background: var(--ink) !important;
    color: var(--cream) !important;
    text-align: center !important;
    margin: 0.8rem 1.6rem 0 !important;
    border-radius: 100px !important;
    border-bottom: none !important;
    padding: 0.75rem 1rem !important;
  }
  .nav-links-cta:active { background: var(--rust) !important; }

  footer.site-footer { padding: 3rem 1.5rem 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .auth-card { padding: 2rem 1.5rem; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .auth-card { padding: 2rem 1.5rem; }
}
