/* Shared "va" (Rejestr Wypraw / Spis Treści) layout styles.
   Used by poza-schemat.html, rejestr-wypraw.html
   and o-nas.html.
   Page-specific overrides (.va-title font-size, .va-card-link, .va-note)
   stay in each page's own <style> block. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&display=swap');

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

body {
  background: #fff;
  font-family: 'Outfit', system-ui, sans-serif;
  color: #111;
  min-height: 100svh;
}

.va {
  min-height: 100svh;
  padding: 60px clamp(24px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  background: rgba(255, 255, 255, .25);
}

.va-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0;
  transition: opacity 3.5s ease;
}

.va-bg-video.is-loaded {
  opacity: 1;
}

/* ── Header ── */
.va-header { display: flex; flex-direction: column; gap: 4px; }

.va-eyebrow {
  display: inline-block;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  transition: filter .2s ease;
}

.va-eyebrow a {
  color: inherit;
  text-decoration: none;
}

.va-eyebrow a:hover {
  text-decoration: underline;
}

.va-eyebrow:hover {
  filter: invert(1);
}

.va-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.va-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #777;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: filter .2s ease;
}

.va-back:hover {
  background: #000;
  filter: invert(1);
}

.va-title {
  font-weight: 900;
  line-height: .9;
  color: #111;
  letter-spacing: -.03em;
}

.va-sub {
  font-size: clamp(18px, 3vw, 36px);
  font-weight: 400;
  color: #888;
  margin-top: 8px;
}

/* ── Cards ── */
.va-grid { display: flex; flex-direction: column; }

/* Semantic wrapper (SEO/a11y) grouping a year heading with its expedition
   cards — purely structural (plain block), no own visual styling needed:
   as a flex-column child it stacks exactly like its children used to when
   they were direct .va-grid children. */
.year-block { display: block; }

.va-year {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: clamp(64px, 14vw, 180px);
  font-weight: 900;
  color: #f0ece6;
  line-height: 1;
  letter-spacing: -.04em;
  padding-top: 32px;
  user-select: none;
  text-align: right;
}

.va-year-up {
  display: block;
  font-size: .12em;
  font-weight: 400;
  line-height: 1;
  margin-bottom: -.15em;
  color: #888;
  letter-spacing: normal;
  white-space: nowrap;
}

.va-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 0 28px 32px;
  border-top: 1px solid #eee;
  cursor: pointer;
  transition: filter .2s ease;
}

/* Bottom border only on the very last card of the very last year-block
   (not the last card of every year, now that cards are grouped inside
   .year-block sections). */
.year-block:last-child .va-card:last-child { border-bottom: 1px solid #eee; }

.va-num {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: #e8e4dc;
  min-width: 80px;
  flex-shrink: 0;
}

.va-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  flex-shrink: 0;
  color: #e8e4dc;
}

.va-icon svg {
  width: clamp(32px, 5vw, 56px);
  height: clamp(32px, 5vw, 56px);
}

.va-info { display: flex; flex-direction: column; gap: 4px; }

.va-info h3 {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: #111;
}

.va-info p {
  display: inline-block;
  font-size: 14px;
  background: #000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.va-gory { color: #ccc; }

a.va-gory {
  text-decoration: none;
}

a.va-gory:hover {
  text-decoration: underline;
  color: #fff;
}

.va-emoji-icon {
  height: 1em;
  width: auto;
  vertical-align: -0.15em;
}

@media (max-width: 600px) {
  .va-card { gap: 16px; padding-left: 16px; }
  .va-num  { min-width: 44px; }
  .va-icon { min-width: 44px; }
}

/* ── Footer ── */
.va-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(24px, 6vw, 100px);
  border-top: 1px solid rgba(238, 238, 238, .4);
  background: rgba(247, 246, 244, .45);
  font-size: 13px;
  color: #999;
}

.va-footer-mail {
  justify-self: start;
  color: #999;
  text-decoration: none;
}

.va-footer-mail:hover { color: #111; text-decoration: underline; }

.va-footer-copy {
  justify-self: center;
  color: #bbb;
}

.va-footer-copy-link {
  color: #bbb;
  text-decoration: none;
}

.va-footer-copy-link:hover { color: #111; text-decoration: underline; }

.va-footer-social {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

.va-footer-social a {
  display: inline-flex;
  color: #bbb;
  transition: color .15s ease;
}

.va-footer-social a:hover { color: #111; }

@media (max-width: 600px) {
  .va-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }
  .va-footer-mail,
  .va-footer-copy,
  .va-footer-social { justify-self: center; }
}
