/* ======================================================================
   Vajtó Produkció — shared styles (loaded on all pages)
   Design tokens per handoff: dark #171310/#1a1512, cream #f4efe4,
   red #cc2b2b, borders #e2d9c4/#e5ddc9. Anton display + Poppins body.
   ====================================================================== */

:root {
  --vp-ink:        #1a1512;
  --vp-dark:       #171310;
  --vp-cream:      #f4efe4;
  --vp-cream-hov:  #ece2cc;
  --vp-red:        #cc2b2b;
  --vp-red-dark:   #a32222;
  --vp-border:     #e2d9c4;
  --vp-border-2:   #e5ddc9;
  --vp-text:       #4a4a4a;
  --vp-sidebar-w:  280px;
  --vp-anton:      'Anton', 'Arial Narrow', sans-serif;
  --vp-poppins:    'Poppins', system-ui, sans-serif;
}

*, html, body { box-sizing: border-box; margin: 0; padding: 0; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #ece6d8; }
::-webkit-scrollbar-thumb { background: var(--vp-red); border-radius: 6px; }

body {
  font-family: var(--vp-poppins);
  background: var(--vp-cream);
  color: var(--vp-ink);
  min-height: 100vh;
}

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

:focus-visible { outline: 2px solid var(--vp-red); outline-offset: 2px; }

/* ── Shell — column flow, natural page scroll ────────────────────────── */
.vp-shell  { min-height: 100vh; display: flex; flex-direction: column; }
/* display:contents lets .vp-menu stick to the viewport, not the header box */
.vp-header { display: contents; }
.vp-body   { flex: 1; display: flex; align-items: stretch; }
.vp-main   { flex: 1; min-width: 0; padding: 24px; }
.vp-contact{ flex: 0 0 auto; }

/* ── Compact page hero (inner pages) ─────────────────────────────────── */
.vp-page-hero {
  position: relative;
  height: 220px;
  background: var(--vp-dark);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.vp-page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .45;
}
.vp-page-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,19,16,.15) 0%, rgba(23,19,16,.78) 100%);
}
.vp-page-hero__inner {
  position: relative; z-index: 2;
  padding: 18px 28px;
}
.vp-page-hero__kicker {
  display: block;
  height: 110px; width: auto;
  margin-bottom: 10px;
}
.vp-page-hero__title {
  font-family: var(--vp-anton);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 46px);
  line-height: .95; text-transform: uppercase; letter-spacing: 1px;
  color: var(--vp-cream);
  text-shadow: 2px 3px 0 rgba(0,0,0,.65);
}

/* ── Main nav — badge row, sticky ────────────────────────────────────── */
.vp-menu {
  position: sticky; top: 0; z-index: 60;
  background: var(--vp-cream);
  border-bottom: 4px solid var(--vp-red);
  box-shadow: 0 2px 10px rgba(23,19,16,.12);
}
.vp-menu__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: stretch;
}
.vp-menu__item {
  position: relative; flex: 1;
  border-right: 1px solid var(--vp-border);
}
.vp-menu__item:last-child { border-right: 0; }

.vp-menu__burger { display: none; }
.vp-menu__row { display: flex; align-items: stretch; height: 100%; }
.vp-menu__row .vp-menu__link { flex: 1; }
.vp-menu__toggle { display: none; }

.vp-menu__link {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 6px; padding: 13px 8px 11px;
  transition: background .15s ease;
}
.vp-menu__link:hover { background: var(--vp-cream-hov); }

.vp-menu__badge {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--vp-ink); color: var(--vp-cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--vp-anton); font-size: 13px; letter-spacing: .5px;
  flex: 0 0 auto;
  transition: background .15s ease, transform .15s ease;
}
.vp-menu__badge svg { width: 21px; height: 21px; display: block; }
.vp-menu__link:hover .vp-menu__badge { background: var(--vp-red); transform: translateY(-1px); }
.vp-menu__link.is-active .vp-menu__badge { background: var(--vp-red); }

.vp-menu__label {
  font-family: var(--vp-poppins); font-weight: 600; font-size: 12px;
  letter-spacing: .2px;
  color: var(--vp-ink); text-align: center; line-height: 1.25;
}

/* Dropdowns — dark panel, red top rule, fade+slide in */
.vp-menu__sub {
  position: absolute; top: 100%; left: 0;
  min-width: 230px; max-width: 300px;
  background: var(--vp-ink);
  border-top: 3px solid var(--vp-red);
  box-shadow: 0 12px 24px rgba(0,0,0,.35);
  z-index: 70; padding: 6px 0;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.vp-menu__item.has-children:hover .vp-menu__sub,
.vp-menu__item.has-children:focus-within .vp-menu__sub {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
}
.vp-menu__item:last-child .vp-menu__sub { left: auto; right: 0; }
.vp-menu__sub li { margin: 0; }
.vp-menu__sub a {
  display: block; padding: 10px 18px;
  color: var(--vp-cream); font-size: 13px; font-weight: 500;
  transition: background .1s ease;
}
.vp-menu__sub a:hover { background: var(--vp-red); color: #fff; }

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.vp-sidebar {
  flex: 0 0 var(--vp-sidebar-w);
  background: var(--vp-cream);
  border-left: 1px solid var(--vp-border);
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 90px;
  align-self: flex-start;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
.vp-search { position: relative; }
.vp-search__input {
  width: 100%; padding: 12px 40px 12px 14px;
  border: 2px solid var(--vp-ink); background: #fff;
  font-family: var(--vp-poppins); font-size: 13px; letter-spacing: 1px;
  color: var(--vp-ink); outline: none;
  transition: border-color .15s ease;
}
.vp-search__input:focus { border-color: var(--vp-red); }
.vp-search__input::placeholder { color: #9a938a; }
.vp-search__btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--vp-ink); display: flex; align-items: center;
}
.vp-sidebar__divider { height: 1px; background: var(--vp-border); }
.vp-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vp-brand__logo { max-width: 130px; }
.vp-brand__name {
  font-family: var(--vp-anton); font-weight: 400;
  font-size: 15px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--vp-ink); text-align: center; line-height: 1.15;
}
.vp-brand__social {
  list-style: none; margin: 4px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px; width: 100%;
}
.vp-brand__social a {
  display: flex; align-items: center; gap: 10px;
  color: var(--vp-ink);
  transition: color .15s ease;
}
.vp-brand__social a:hover { color: var(--vp-red); }
.vp-soc__icon {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  border: 2px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center;
}
.vp-soc__handle { font-size: 13px; font-weight: 600; }

/* ── Contact footer ──────────────────────────────────────────────────── */
.vp-contact {
  background: var(--vp-dark); color: var(--vp-cream);
  padding: 16px 32px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 28px; justify-content: flex-start;
  border-top: 3px solid var(--vp-red);
}
.vp-contact__brand { display: flex; align-items: center; gap: 14px; }
.vp-contact__logo { width: auto; height: 128px; display: block; }
.vp-contact__divider {
  align-self: stretch; width: 2px; min-height: 52px;
  background: var(--vp-red);
}
.vp-contact__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px; font-size: 13px;
}
.vp-contact__links li { display: flex; align-items: center; gap: 9px; }
.vp-contact__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; flex: 0 0 16px; color: var(--vp-cream);
}
.vp-contact__links a { color: var(--vp-cream); transition: color .15s ease; }
.vp-contact__links a:hover { color: var(--vp-red); }
.vp-contact__social {
  list-style: none; margin: 0 0 0 12px; padding: 0; display: flex; gap: 12px;
}
.vp-contact__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--vp-cream); color: var(--vp-cream);
  transition: background .15s ease, border-color .15s ease;
}
.vp-contact__social a:hover { background: var(--vp-red); border-color: var(--vp-red); }
.vp-contact__legal {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  font-size: 12px;
}
.vp-contact__legal li + li::before { content: "·"; margin: 0 6px; color: rgba(244,239,228,.35); }
.vp-contact__legal a { color: rgba(244,239,228,.55); transition: color .15s ease; }
.vp-contact__legal a:hover { color: var(--vp-cream); }
.vp-contact__burst {
  margin-left: auto;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  background: var(--vp-red); color: #fff;
  font-family: var(--vp-anton);
  font-size: 9px; letter-spacing: .5px; text-transform: uppercase;
  text-align: center; line-height: 1.35;
  clip-path: polygon(
    50% 0%, 60% 12%, 75% 5%, 78% 20%, 95% 18%,
    88% 32%, 100% 42%, 86% 50%, 100% 62%, 86% 70%,
    95% 84%, 78% 82%, 75% 96%, 60% 88%, 50% 100%,
    40% 88%, 25% 96%, 22% 82%, 5% 84%, 14% 70%,
    0% 62%, 14% 50%, 0% 42%, 12% 32%, 5% 18%,
    22% 20%, 25% 5%, 40% 12%
  );
}
.vp-contact__burst span { transform: rotate(-4deg); padding: 0 10px; }

.vp-attribution {
  flex: 1 0 100%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  padding-top: 14px; margin-top: 2px;
  border-top: 1px solid rgba(244,239,228,.12);
}
.vp-attribution__logos { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.vp-attribution__logo { height: 34px; width: auto; opacity: .65; }
.vp-attribution__text {
  margin: 0; flex: 1; min-width: 220px;
  font-size: 12px; line-height: 1.6; color: rgba(244,239,228,.5);
}
.vp-attribution__text em { font-style: italic; }

/* ── Prose (article body) ─────────────────────────────────────────────── */
.vp-prose h1, .vp-prose h2, .vp-prose h3 {
  font-family: var(--vp-anton);
  font-weight: 400; text-transform: uppercase; letter-spacing: 1px;
  color: var(--vp-ink); margin: 24px 0 10px;
}
.vp-prose h1 { font-size: clamp(26px, 4vw, 40px); }
.vp-prose h2 {
  font-size: clamp(18px, 2.5vw, 26px);
  border-left: 4px solid var(--vp-red); padding-left: 12px;
}
.vp-prose h3 { font-size: 18px; color: var(--vp-red); }
.vp-prose p  { margin: 0 0 14px; font-size: 15px; line-height: 1.65; max-width: 68ch; color: var(--vp-text); }
.vp-prose ul, .vp-prose ol { padding-left: 20px; margin: 0 0 14px; }
.vp-prose li { font-size: 15px; line-height: 1.6; margin-bottom: 4px; color: var(--vp-text); }
.vp-prose strong { color: var(--vp-ink); }
.vp-prose img {
  max-width: 100%; border: 1px solid var(--vp-border-2);
  margin: 16px 0;
}
.vp-prose a { color: var(--vp-red); text-decoration: underline; }
.vp-prose blockquote {
  border-left: 4px solid var(--vp-red); margin: 16px 0; padding: 10px 16px;
  background: #fff;
  font-style: italic; font-size: 15px; color: var(--vp-text);
}
.vp-prose hr { border: none; border-top: 1px solid var(--vp-border); margin: 24px 0; }
.vp-prose__feat {
  max-height: 300px; object-fit: cover;
  border: 0; border-bottom: 1px solid var(--vp-border);
  margin: -24px -24px 24px;
  width: calc(100% + 48px); max-width: none;
}
.vp-map { border: 1px solid var(--vp-border-2); margin: 20px 0; line-height: 0; }
.vp-map iframe { display: block; }

/* ── YouTube facade (click-to-load embed) ──────────────────────────────── */
.vp-yt-facade {
  position: relative; display: block;
  width: 100%; max-width: 500px;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--vp-dark); border: 1px solid var(--vp-border-2);
  cursor: pointer; margin: 16px 0;
}
.vp-yt-facade__thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: .82; transition: opacity .2s ease, transform .3s ease;
}
.vp-yt-facade:hover .vp-yt-facade__thumb,
.vp-yt-facade:focus-visible .vp-yt-facade__thumb { opacity: 1; transform: scale(1.03); }
.vp-yt-facade__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
  transition: transform .15s ease;
}
.vp-yt-facade:hover .vp-yt-facade__play,
.vp-yt-facade:focus-visible .vp-yt-facade__play { transform: translate(-50%, -50%) scale(1.08); }
.vp-yt-facade:focus-visible { outline: 2px solid var(--vp-red); outline-offset: 2px; }
.vp-yt-facade__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--vp-red); color: #fff;
  font-family: var(--vp-anton); font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 10px;
}
.vp-yt-frame {
  width: 100%; max-width: 500px; aspect-ratio: 16 / 9; display: block;
  border: 0; margin: 16px 0;
}

/* ── Playlist grid (title + facade per cell) ───────────────────────────── */
.vp-playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px 32px;
  margin: 24px 0;
}
.vp-playlist-grid__item h3 {
  margin: 0 0 10px;
  font-family: var(--vp-anton); font-weight: 400;
  font-size: 17px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--vp-ink);
}
.vp-playlist-grid__item .vp-yt-facade,
.vp-playlist-grid__item .vp-yt-frame {
  max-width: none; margin: 0;
}

/* ── Show box (image | text split, half-and-half) ─────────────────────── */
.vp-showbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--vp-border-2);
  overflow: hidden;
  margin-bottom: 24px;
}
.vp-showbox__media { background: var(--vp-cream); overflow: hidden; min-height: 320px; }
.vp-showbox__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-showbox__media--contain img { object-fit: contain; padding: 20px; }
.vp-showbox__body { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; }
.vp-showbox__body .vp-prose { max-width: none; }
.vp-showbox__body .vp-prose h2:first-child { margin-top: 0; }

@media (max-width: 700px) {
  .vp-showbox { grid-template-columns: 1fr; }
  .vp-showbox__media { min-height: 220px; }
  .vp-showbox__body { padding: 20px; }
}

/* ── Extra program grid (image top, text bottom, optional CTA) ────────── */
.vp-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.vp-extra-card {
  background: #fff;
  border: 1px solid var(--vp-border-2);
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.vp-extra-card:hover { box-shadow: 0 8px 20px rgba(23,19,16,.12); transform: translateY(-2px); }
.vp-extra-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--vp-cream); }
.vp-extra-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-extra-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vp-extra-card__title {
  font-family: var(--vp-anton); font-weight: 400;
  font-size: 16px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--vp-ink); margin: 0;
}
.vp-extra-card__desc { font-size: 13px; line-height: 1.5; color: var(--vp-text); margin: 0; flex: 1; }
.vp-extra-card__price { font-size: 13px; font-weight: 700; color: var(--vp-ink); margin: 0; }
.vp-extra-card__cta {
  align-self: flex-start; margin-top: 4px;
  padding: 8px 16px; background: var(--vp-red); color: #fff;
  font-family: var(--vp-anton); font-size: 12px; letter-spacing: .5px; text-transform: uppercase;
  transition: background .15s ease;
}
.vp-extra-card__cta:hover { background: var(--vp-red-dark); }

/* ── List page ───────────────────────────────────────────────────────── */
.vp-list { display: flex; flex-direction: column; gap: 16px; }
.vp-list-item {
  display: grid; grid-template-columns: 180px 1fr;
  background: #fff;
  border: 1px solid var(--vp-border-2); border-radius: 2px;
  overflow: hidden;
  min-height: 110px;
  color: inherit;
  transition: box-shadow .18s ease, transform .18s ease;
}
.vp-list-item:hover { box-shadow: 0 8px 20px rgba(23,19,16,.14); transform: translateY(-2px); }
.vp-list-item--noimg { grid-template-columns: 1fr; border-left: 4px solid var(--vp-red); }
.vp-list-item__media { overflow: hidden; background: var(--vp-cream); }
.vp-list-item__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.vp-list-item:hover .vp-list-item__media img { transform: scale(1.04); }
.vp-list-item__body { padding: 16px 18px; }
.vp-list-item__title {
  font-family: var(--vp-anton); font-weight: 400;
  font-size: 18px; letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 6px; color: var(--vp-ink);
}
.vp-list-item__sep {
  display: block; width: 36px; height: 3px;
  background: var(--vp-red); margin-bottom: 10px;
}
.vp-list-item__desc { font-size: 13px; line-height: 1.5; color: var(--vp-text); }

/* ── Motion preferences ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --vp-sidebar-w: 240px; }
}
@media (max-width: 820px) {
  .vp-body { flex-direction: column; }
  .vp-sidebar {
    position: static; max-height: none; overflow: visible;
    flex: 0 0 auto; border-left: 0; border-top: 1px solid var(--vp-border);
  }
  .vp-contact { justify-content: flex-start; }
  .vp-contact__burst { display: none; }
  .vp-contact__divider { display: none; }
  .vp-list-item { grid-template-columns: 1fr; }
  .vp-list-item__media {
    max-height: 160px; border-bottom: 1px solid var(--vp-border-2);
  }
}
@media (max-width: 700px) {
  .vp-menu { position: static; }

  /* Hamburger */
  .vp-menu__burger {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 13px 16px;
    background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer;
    font-family: var(--vp-anton); font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--vp-ink);
  }
  .vp-menu__burger[aria-expanded="true"] { border-bottom-color: var(--vp-red); }
  .vp-menu__burger-bars { display: flex; flex-direction: column; gap: 5px; flex: 0 0 auto; }
  .vp-menu__burger-bars span {
    display: block; width: 22px; height: 2.5px;
    background: var(--vp-ink); border-radius: 2px;
    transition: transform .2s ease, opacity .15s ease;
  }
  .vp-menu__burger[aria-expanded="true"] .vp-menu__burger-bars span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .vp-menu__burger[aria-expanded="true"] .vp-menu__burger-bars span:nth-child(2) {
    opacity: 0; transform: scaleX(0);
  }
  .vp-menu__burger[aria-expanded="true"] .vp-menu__burger-bars span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* Collapsed list */
  .vp-menu__list {
    display: none;
    flex-direction: column;
    border-top: 2px solid var(--vp-red);
    padding: 4px 0 8px;
  }
  .vp-menu__list.is-open { display: flex; }

  /* Row layout for items */
  .vp-menu__item { flex: none; border-right: 0; border-bottom: 1px solid rgba(26,21,18,.08); }
  .vp-menu__item:last-child { border-bottom: 0; }
  .vp-menu__row { align-items: center; }
  .vp-menu__link {
    flex-direction: row; justify-content: flex-start;
    padding: 10px 16px; gap: 12px;
  }
  .vp-menu__badge { width: 32px; height: 32px; font-size: 11px; }
  .vp-menu__badge svg { width: 18px; height: 18px; }
  .vp-menu__label { font-size: 13px; text-align: left; }

  /* Chevron toggle */
  .vp-menu__toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; flex: 0 0 44px; align-self: stretch;
    background: none; border: none; cursor: pointer; color: var(--vp-ink);
    transition: transform .2s ease;
  }
  .vp-menu__item.sub-open > .vp-menu__row > .vp-menu__toggle { transform: rotate(180deg); }

  /* Mobile submenus: JS class toggles display; the desktop hover/focus
     rules only animate opacity, so they can't force panels open here. */
  .vp-menu__sub {
    display: none;
    position: static; min-width: 0; max-width: none;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    transition: none; box-shadow: none;
    border-top: 2px solid var(--vp-red);
  }
  .vp-menu__item.sub-open > .vp-menu__sub { display: block; }
  .vp-menu__sub a { padding: 11px 16px 11px 60px; font-size: 14px; }
}
