/* ==========================================================================
   Museum Proeverij — gedeelde stijl
   Stijl: warm & verfijnd · museum-sfeer
   ========================================================================== */

:root {
  /* Kleurpalet */
  --wine:        #5a2a3a;   /* diep wijnrood */
  --wine-dark:   #3d1c28;
  --terracotta:  #b5683f;
  --gold:        #c8a35b;
  --gold-soft:   #e3cd9a;
  --cream:       #f7f1e7;
  --cream-deep:  #efe5d4;
  --ink:         #2a2420;
  --ink-soft:    #5c5147;
  --line:        rgba(42, 36, 32, 0.12);
  --white:       #ffffff;

  /* Typografie */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Maatvoering */
  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(61, 28, 40, 0.14);
  --shadow-soft: 0 6px 22px rgba(61, 28, 40, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--wine-dark);
  margin: 0 0 .4em;
  letter-spacing: .2px;
}

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--wine); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--terracotta); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 14px;
}

/* ===== Buttons ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .3px;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--wine); color: var(--cream); }
.btn-primary:hover { background: var(--wine-dark); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn-ghost:hover { background: var(--wine); color: var(--cream); transform: translateY(-2px); }

/* ===== Header ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 231, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--wine-dark);
  letter-spacing: .5px;
  white-space: nowrap;
}
.brand:hover { color: var(--wine-dark); }
.brand .mark {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold) 55%, var(--terracotta));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: .58rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-top: -2px;
}

.main-nav {
  display: flex;
  gap: 30px;
  margin-left: 14px;
}
.main-nav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width .25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--wine); }

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Taalkeuze */
.lang-switch { position: relative; }
.lang-current {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 1px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.lang-current:hover { border-color: var(--wine); }
.lang-current .chev { transition: transform .2s ease; }
.lang-switch.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 9px 12px;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover { background: var(--cream); }
.lang-menu button.active { color: var(--wine); font-weight: 600; }
.lang-menu .code {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--terracotta);
}

/* Icoon-knoppen (cart & account) */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.icon-btn:hover { background: var(--cream-deep); color: var(--wine); }
.icon-btn svg { width: 22px; height: 22px; }

.cart-badge {
  position: absolute;
  top: 4px; right: 3px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: 19px;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--cream);
  transform: scale(0);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cart-badge.show { transform: scale(1); }

/* Account-icoon: gouden stip wanneer de bezoeker is ingelogd (LoginStatus) */
.account-link.is-logged-in::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--cream);
}

/* Account-dropdown (opent bij klik wanneer ingelogd) */
.account-switch { position: relative; display: inline-flex; }
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 101;
}
.account-switch.open .account-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.account-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--ink);
}
.account-menu a:hover { background: var(--cream); color: var(--wine); }

/* Winkelwagen-dropdown (kader met 'Naar winkelwagen' + informatieve inhoud) */
.cart-switch { position: relative; display: inline-flex; }
.cart-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 270px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 101;
}
.cart-switch.open .cart-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-menu-link {
  display: block;
  padding: 10px 12px;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .9rem;
  color: var(--wine);
}
.cart-menu-link:hover { background: var(--cream); color: var(--wine-dark); }
.cart-menu-divider { height: 1px; background: var(--line); margin: 6px 4px; }
.cart-menu-items { padding: 2px 4px 4px; }
.cart-menu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 6px 8px;
}
.cart-menu-show { font-family: var(--serif); color: var(--wine-dark); font-size: 1.05rem; line-height: 1.25; }
.cart-menu-count { white-space: nowrap; font-weight: 600; font-size: .9rem; color: var(--wine); }
.cart-menu-empty { padding: 8px; font-size: .88rem; color: var(--ink-soft); }
.cart-menu-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 9px 8px 4px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-weight: 600;
  color: var(--wine-dark);
}
.cart-menu-total span:last-child {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wine);
  white-space: nowrap;
}

.nav-toggle { display: none; }

/* ===== Hero =============================================================== */
.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(61,28,40,.86) 0%, rgba(61,28,40,.45) 55%, rgba(61,28,40,.2) 100%),
    url("https://images.unsplash.com/photo-1564399580075-5df52f4d3e60?auto=format&fit=crop&w=1900&q=80") center/cover;
  filter: saturate(1.05);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 640px; padding: 60px 0; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: .25em;
}
.hero p {
  color: rgba(247,241,231,.9);
  font-size: 1.18rem;
  max-width: 540px;
  margin-bottom: 2em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--cream); border-color: rgba(247,241,231,.6); }
.hero .btn-ghost:hover { background: var(--cream); color: var(--wine-dark); }

/* ===== Secties ============================================================ */
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 660px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { font-size: 1.08rem; }

.bg-deep { background: var(--cream-deep); }
.bg-wine { background: var(--wine-dark); }
.bg-wine h2, .bg-wine h3 { color: var(--cream); }
.bg-wine p { color: rgba(247,241,231,.82); }
.bg-wine .eyebrow { color: var(--gold-soft); }

/* Feature-grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card .ico {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--terracotta);
  margin-bottom: 20px;
}
.feature-card .ico svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.5rem; }
.feature-card p { margin-bottom: 0; font-size: .98rem; }

/* Split (beeld + tekst) */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Statistieken */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat .num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}
.stat .lbl {
  font-size: .82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(247,241,231,.7);
  margin-top: 8px;
}

/* ===== Agenda ============================================================= */
.page-head {
  background: var(--wine-dark);
  color: var(--cream);
  padding: 70px 0 60px;
  text-align: center;
}
.page-head h1 { color: var(--cream); font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-head p { color: rgba(247,241,231,.85); max-width: 560px; margin: 0 auto; }
.page-head .eyebrow { color: var(--gold-soft); }

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.event-card:hover .event-media img { transform: scale(1.06); }
.event-date {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--cream);
  color: var(--wine-dark);
  border-radius: var(--radius);
  padding: 8px 12px;
  text-align: center;
  font-family: var(--serif);
  line-height: 1;
  box-shadow: var(--shadow-soft);
}
.event-date .d { font-size: 1.5rem; font-weight: 700; display: block; }
.event-date .m { font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; font-family: var(--sans); color: var(--terracotta); }
.event-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.event-tag {
  align-self: flex-start;
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.event-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.event-body p { font-size: .92rem; flex: 1; }
.event-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.event-price { font-family: var(--serif); font-size: 1.3rem; color: var(--wine); font-weight: 600; }
.event-link {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.event-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.event-link:hover svg { transform: translateX(3px); }

.agenda-cta {
  text-align: center;
  margin-top: 56px;
}

/* ===== Over ons / values ================================================== */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.value-item {
  display: flex;
  gap: 18px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value-item .num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  flex: none;
}
.value-item h3 { font-size: 1.3rem; margin-bottom: 6px; }
.value-item p { margin-bottom: 0; font-size: .95rem; }

.quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.3;
  color: var(--cream);
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.quote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 26px;
}

/* ===== Practical / visit ================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.info-block h3 { font-size: 1.4rem; margin-bottom: 14px; }
.info-block p { font-size: .96rem; margin-bottom: .4em; }
.info-block .lead { color: var(--terracotta); font-weight: 600; }

/* ===== Banner / CTA ======================================================= */
.cta-banner {
  background: linear-gradient(120deg, var(--wine) 0%, var(--terracotta) 130%);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 64px 56px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-banner h2 { color: var(--cream); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-banner p { color: rgba(247,241,231,.9); max-width: 520px; margin: 0 auto 1.8em; }
.cta-banner .btn-primary { background: var(--cream); color: var(--wine-dark); }
.cta-banner .btn-primary:hover { background: var(--white); }

/* ===== Footer ============================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(247,241,231,.72);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.site-footer .brand { color: var(--cream); margin-bottom: 16px; }
.site-footer p { color: rgba(247,241,231,.62); font-size: .92rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(247,241,231,.72); font-size: .92rem; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(247,241,231,.14);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: rgba(247,241,231,.5);
}

/* ===== Shop-pagina (ingebedde webshop) ==================================== */
.shop-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.shop-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .3px;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(247,241,231,.4);
  color: var(--cream);
  background: transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.shop-tab svg { width: 18px; height: 18px; }
.shop-tab:hover { background: rgba(247,241,231,.12); color: var(--cream); }
.shop-tab.active { background: var(--cream); color: var(--wine-dark); border-color: var(--cream); }

.shop-stage { padding: 26px 0 80px; }
/* Intro-tekst staat nu in de donkere page-head -> lichte kleur */
.shop-note {
  font-size: .95rem;
  color: rgba(247, 241, 231, 0.82);
  margin: 14px auto 0;
  max-width: 560px;
}
.shop-frame-wrap {
  position: relative;
  background: var(--cream);
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  min-height: 720px;
}
#shop-frame {
  display: block;
  width: 100%;
  height: 1400px;
  border: none;
  background: var(--cream);
}
.shop-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .95rem;
  letter-spacing: .3px;
  transition: opacity .4s ease, visibility .4s;
}
.shop-ready .shop-loading { opacity: 0; visibility: hidden; }
.spinner {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 3px solid var(--cream-deep);
  border-top-color: var(--terracotta);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Reveal animatie ==================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ========================================================= */
@media (max-width: 900px) {
  .feature-grid, .agenda-grid, .info-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .values { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .header-inner { gap: 14px; }
  .main-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 18px;
    margin: 0;
    transform: translateY(-130%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-soft);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle {
    display: inline-flex;
    order: -1;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: transparent; border: none; cursor: pointer; color: var(--ink);
  }
  .brand { font-size: 1.25rem; }
  .brand small { display: none; }
  .feature-grid, .agenda-grid, .info-grid, .footer-grid { grid-template-columns: 1fr; }
  .lang-current span.lbl { display: none; }
  .cta-banner { padding: 44px 26px; }
  .section { padding: 64px 0; }
}
