@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: hsl(20, 10%, 8%);
  --fg: hsl(35, 30%, 80%);
  --card: hsl(20, 12%, 12%);
  --primary: hsl(35, 55%, 50%);
  --primary-fg: hsl(20, 10%, 5%);
  --secondary: hsl(25, 15%, 18%);
  --muted: hsl(20, 8%, 15%);
  --muted-fg: hsl(30, 15%, 50%);
  --border: hsl(25, 15%, 20%);
  --gold: hsl(42, 70%, 50%);
  --oak-light: hsl(25, 25%, 22%);
  --linen: hsl(40, 20%, 65%);

  --font-medieval: 'MedievalSharp', cursive;
  --font-body: Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% -10%, hsla(35, 55%, 50%, .12), transparent 45%),
    radial-gradient(circle at 85% 0%, hsla(25, 35%, 30%, .22), transparent 38%);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Textures ── */
.texture-wood {
  background-image:
    repeating-linear-gradient(90deg, hsla(25,30%,10%,.3) 0px, transparent 1px, transparent 20px, hsla(25,30%,10%,.3) 21px),
    repeating-linear-gradient(0deg, hsla(25,20%,15%,.1) 0px, transparent 2px, transparent 40px, hsla(25,20%,15%,.1) 41px);
}

.texture-linen {
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 1px, hsla(40,20%,50%,.05) 1px, hsla(40,20%,50%,.05) 2px),
    repeating-linear-gradient(90deg, transparent, transparent 1px, hsla(40,20%,50%,.05) 1px, hsla(40,20%,50%,.05) 2px);
}

/* ── Divider ── */
.divider-medieval {
  height: 2px;
  background: linear-gradient(90deg, transparent, hsla(35,55%,50%,.6), var(--gold), hsla(35,55%,50%,.6), transparent);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--oak-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.container--tight { max-width: 700px; margin: 0 auto; padding: 0 2rem; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsla(20,10%,8%,.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 2rem; max-width: 1200px; margin: 0 auto;
}
.nav__brand { display: flex; align-items: center; gap: .75rem; }
.nav__brand img { width: 125px; }
.nav__brand span {
  font-family: var(--font-medieval); font-size: 1.25rem;
  color: var(--primary); letter-spacing: .15em;
}
.nav__links { display: flex; gap: 1.5rem; }
.nav__links a {
  font-family: var(--font-medieval); font-size: .85rem;
  letter-spacing: .1em; color: hsla(35,30%,80%,.7);
  transition: color .3s;
}
.nav__links a:hover { color: var(--primary); }

.nav__toggle { display: none; background: none; border: none; color: var(--fg); cursor: pointer; font-size: 1.5rem; padding: .25rem .5rem; line-height: 1; }

.nav__mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .75rem 0 1rem;
  border-top: 1px solid var(--border);
  background: hsla(20,10%,8%,.98);
}

.nav__mobile.is-open { display: flex; }

.nav__mobile a {
  font-family: var(--font-medieval); font-size: 1.1rem;
  letter-spacing: .1em; color: hsla(35,30%,80%,.7);
  padding: .5rem 1.5rem; width: 100%; text-align: center;
  transition: color .3s, background-color .2s;
}

.nav__mobile a:hover,
.nav__mobile a:focus-visible {
  color: var(--primary);
  background: hsla(35,55%,50%,.07);
  outline: none;
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 72vh;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 1rem 3rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, hsla(20,10%,8%,.6), hsla(20,10%,8%,.4), var(--bg));
}
.hero__content {
  position: relative; z-index: 1; text-align: center; padding: 1rem;
  max-width: 52rem;
  animation: fadeUp .8s ease-out forwards;
}
.hero__logo { width: 7rem; height: 7rem; margin: 0 auto 1.5rem; filter: drop-shadow(0 4px 20px rgba(0,0,0,.5)); }
.hero__title {
  font-family: var(--font-medieval); font-size: clamp(3rem, 8vw, 6rem);
  color: var(--primary); letter-spacing: .2em; margin-bottom: .25rem;
  text-shadow: 0 6px 30px rgba(0,0,0,.45);
}
.hero__subtitle {
  font-family: var(--font-medieval); font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--linen); letter-spacing: .15em; margin-bottom: .5rem;
  text-shadow: 0 3px 16px rgba(0,0,0,.35);
}
.hero__desc {
  color: hsla(35,30%,80%,.6); max-width: 32rem; margin: 0 auto;
  font-size: 1.2rem; line-height: 1.5;
}
.hero__meta {
  margin-top: 1rem;
  color: var(--linen);
  font-size: .95rem;
  letter-spacing: .04em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Sections ── */
.section { padding: clamp(1.5rem, 3vw, 2.75rem) 1rem; }

.section-heading { text-align: center; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.section-heading h2 {
  font-family: var(--font-medieval); font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary); letter-spacing: .1em; margin-bottom: 1rem;
}
.section-heading p {
  color: var(--muted-fg); font-size: 1.1rem; max-width: 80rem; margin: 0 auto;
}

/* ── Offer Grid ── */
.offer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.offer-card {
  background: var(--card); border: 1px solid var(--border);
  padding: 1.5rem; border-radius: 2px;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  transition: border-color .3s, transform .3s ease, box-shadow .3s ease;
}
.offer-card:hover {
  border-color: hsla(35,55%,50%,.5);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0,0,0,.24);
}
.offer-card h3 {
  font-family: var(--font-medieval); font-size: 1.1rem;
  color: var(--primary); margin-bottom: .5rem; transition: color .3s;
}
.offer-card:hover h3 { color: var(--gold); }
.offer-card p { color: hsla(35,30%,80%,.6); font-size: .9rem; line-height: 1.6; }

/* ── Gallery ── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
  clear: both;
}
.gallery-item {
  aspect-ratio: 1; background: var(--oak-light);
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  border-radius: 3px;
  border: 1px solid hsla(35,55%,50%,.12);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-2px);
  border-color: hsla(35,55%,50%,.45);
  box-shadow: 0 18px 30px rgba(0,0,0,.22);
  outline: none;
}
.gallery-item p {
  color: var(--muted-fg); font-size: .75rem; font-family: var(--font-medieval);
}
.gallery-note { text-align: center; color: var(--muted-fg); font-size: .875rem; margin-top: 1.5rem; }

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(8, 6, 4, .82);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 100;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.lightbox__figure {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  margin: 0;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(90vh - 4rem);
  border: 1px solid hsla(35,55%,50%,.35);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  background: var(--card);
}

.lightbox__caption {
  text-align: center;
  color: var(--fg);
  font-size: 1rem;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 1px solid hsla(35,55%,50%,.35);
  background: rgba(20, 14, 10, .88);
  color: var(--fg);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}

.lightbox__nav {
  position: absolute;
  top: calc(50% - 2.4rem);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 1px solid hsla(35,55%,50%,.35);
  border-radius: 999px;
  background: rgba(20, 14, 10, .88);
  color: var(--fg);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox__nav-icon {
  display: block;
  line-height: 1;
  transform: translateY(-0.18rem);
}

.lightbox__nav--prev {
  left: 1.25rem;
}

.lightbox__nav--next {
  right: 1.25rem;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}

/* ── Trips ── */
.trip-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  clear: both;
}
.trip-item {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--card); border: 1px solid var(--border);
  padding: 1.25rem; border-radius: 2px;
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.trip-item:hover {
  transform: translateY(-2px);
  border-color: hsla(35,55%,50%,.45);
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}
.trip-date {
  font-family: var(--font-medieval); color: var(--gold);
  font-size: .875rem; letter-spacing: .1em; min-width: 140px;
}
.trip-name { color: hsla(35,30%,80%,.8); flex: 1; }
.trip-type {
  display: none;
  font-size: .75rem; color: var(--muted-fg); border: 1px solid var(--border);
  padding: .25rem .5rem; border-radius: 2px; font-family: var(--font-medieval);
  letter-spacing: .1em;
}

/* ── Pląsy ── */
.plasy-card {
  background: var(--card); border: 1px solid var(--border);
  padding: 3rem; border-radius: 2px; text-align: center;
}
.plasy-card p { color: hsla(35,30%,80%,.7); font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.plasy-card .note { color: var(--muted-fg); font-size: .875rem; margin-bottom: 0; }

/* ── Footer ── */
.footer {
  padding: 3rem 1rem; border-top: 1px solid var(--border); text-align: center;
  background-image: linear-gradient(to bottom, transparent, hsla(20, 12%, 5%, .45));
}
.footer__title {
  font-family: var(--font-medieval); font-size: 1.5rem;
  color: var(--primary); letter-spacing: .15em;
}
.footer__desc { color: var(--muted-fg); font-size: .875rem; }
.footer__copy { color: hsla(30,15%,50%,.5); font-size: .75rem; margin-top: 1rem; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .hero {
    min-height: 68vh;
    padding-top: 5.25rem;
  }

  .hero__title {
    letter-spacing: .12em;
  }

  .hero__desc {
    font-size: 1.05rem;
  }

  .hero__meta {
    font-size: .88rem;
  }

  .section {
    padding: 1.5rem .9rem;
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .lightbox {
    padding: 1rem;
  }

  .lightbox__figure {
    max-width: 100%;
  }

  .lightbox__image {
    max-height: calc(100vh - 7rem);
  }

  .lightbox__close {
    top: .75rem;
    right: .75rem;
  }

  .lightbox__nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox__nav--prev {
    left: 1rem;
  }

  .lightbox__nav--next {
    right: 1rem;
  }

  .trip-item { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .trip-type { align-self: flex-start; }
}
