@charset "UTF-8";
/* ==========================================================================
   Feeria  -  home.css
   Strona główna (wzór „feeria-cala-strona”): hero, pas świąteczny, sekcje
   01-05 z nagłówkiem „NN / nazwa”, galeria przewijana z powiększeniem,
   sekcja świąteczna, wino, voucher, „W dobrym towarzystwie”.
   Część elementów (.h-label, .h-title, .h-text, .h-link, .btn--dark)
   używa też strona spotkania-swiateczne (swieta.css).
   ========================================================================== */

/* ---- Wspólne elementy typografii ---- */
.h-label {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-text);
}

.h-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--clr-text);
}

.h-title em {
  font-style: italic;
  color: var(--clr-accent);
}

.h-text {
  font-family: var(--ff-mono);
  font-size: 0.77rem;
  line-height: 1.85;
  color: var(--clr-text);
}

.h-text strong { font-weight: 700; }

.h-text + .h-text { margin-top: 1.1rem; }

/* Link z podkreśleniem („Poznaj nas bliżej”) */
.h-link {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--clr-text);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid currentColor;
  transition: color var(--transition), border-color var(--transition);
}

.h-link:hover { color: var(--clr-accent); }

/* Ciemny przycisk (sekcja świąteczna na pomarańczowym tle) */
.btn--dark {
  background: var(--clr-dark);
  color: var(--clr-white);
  border-color: var(--clr-dark);
}

.btn--dark:hover {
  background: #000;
  border-color: #000;
}

/* Nagłówek sekcji: „01 / Feeria” ......... „Restauracja w Osielsku” */
.h-sec-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--clr-border);
}

.h-caption {
  font-family: var(--ff-mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text);
  margin-top: 1.1rem;
}

.h-section {
  padding-block: clamp(4.5rem, 9vw, 7rem);
}

/* ============================================================
   HERO - czarno-białe wideo, „Przewiń ↓” w prawym dolnym rogu
   ============================================================ */
.home-page .hero__media-video { filter: grayscale(1); }

/* Film się nie odtworzył (hero-video.js → .hero.is-video-failed):
   ciemne gradientowe tło z ikoną „!” w kółku - wyśrodkowaną w poziomie,
   nad hasłem (na samym środku zasłaniałby ją tekst hero) */
.hero__fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 9vh, 7rem));
  background: radial-gradient(ellipse at 50% 45%, #2c2520 0%, #1a1613 55%, #0b0908 100%);
}

.hero.is-video-failed .hero__fallback { display: flex; }
.hero.is-video-failed .hero__media-video { visibility: hidden; }

.hero__fallback-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.4);
}

.home-page .hero__overlay {
  background: linear-gradient(to bottom, rgba(26, 22, 19, 0.55) 0%, rgba(26, 22, 19, 0.45) 55%, rgba(26, 22, 19, 0.7) 100%);
}

.home-page .hero__title em { font-size: 1.05em; }

.home-page .hero__def-word {
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
}

.home-page .hero__def-text {
  font-family: var(--ff-mono);
  font-style: normal;
  font-weight: 600;
  font-size: 0.72rem;
  color: #fff;
}

.home-page .hero__scroll {
  left: auto;
  right: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter)));
  bottom: clamp(2.5rem, 6vh, 5rem);
  transform: none;
  flex-direction: row;
  gap: 0.35rem;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ============================================================
   PAS ŚWIĄTECZNY pod hero (pomarańczowy)
   ============================================================ */
.h-band {
  background: var(--clr-accent);
  color: var(--clr-dark);
}

.h-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 58px;
  padding-block: 0.9rem;
}

.h-band__item {
  font-family: var(--ff-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.h-band__star { font-size: 0.9rem; line-height: 1; }

.h-band__link {
  padding-bottom: 0.3rem;
  border-bottom: 1px solid currentColor;
  transition: color var(--transition);
}

.h-band__link:hover { color: #fff; }

/* ============================================================
   01 / FEERIA - zdjęcie w łuku, tytuł po prawej, drugie zdjęcie
   ============================================================ */
.h-intro__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.h-arch {
  border-radius: 999px 999px 0 0;
  overflow: hidden;
}

.h-arch img {
  width: 100%;
  aspect-ratio: 525 / 790;
  object-fit: cover;
}

.h-intro__drawing {
  width: min(220px, 50%);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}

.h-intro__right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.h-intro__lead {
  font-family: var(--ff-serif);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--clr-text);
  margin-top: 1.75rem;
}

.h-intro__right .h-text {
  max-width: 470px;
  margin-top: 1.75rem;
}

.h-intro__right .h-link { margin-top: 2rem; }

.h-intro__photo {
  width: 100%;
  margin-top: 2.25rem;
}

.h-intro__photo img {
  width: 100%;
  aspect-ratio: 525 / 700;
  object-fit: cover;
}

/* ---- Marquee (ciemnozielony pas słów) - jak dotąd, kropki pomarańczowe ---- */
.home-page .marquee { background: #2e3320; padding-block: 1.25rem; }
.home-page .marquee__item { color: rgba(244, 241, 234, 0.72); font-weight: 600; }

/* ============================================================
   02 / SZEFOWA KUCHNI
   ============================================================ */
.h-chef__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.h-chef .h-title { margin-top: 2.25rem; }

.h-chef .h-text {
  max-width: 380px;
  margin-top: 2rem;
}

.h-chef .h-link { margin-top: 2.25rem; }

.h-chef__photo img {
  width: 100%;
  aspect-ratio: 470 / 588;
  object-fit: cover;
}

/* ============================================================
   GALERIA - przewijany pas zdjęć + powiększenie
   ============================================================ */
.h-gallery { padding-block: clamp(3rem, 6vw, 4.5rem); overflow: hidden; }

.h-gallery__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.h-gallery__nav { display: flex; gap: 1.5rem; }

.h-gallery__btn {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--clr-text);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--transition), border-color var(--transition);
}

.h-gallery__btn:hover:not(:disabled) { color: var(--clr-accent); border-color: var(--clr-accent); }
.h-gallery__btn:disabled { opacity: 0.35; cursor: default; }

.h-gallery__track {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* lewy brzeg równo z kontenerem, z prawej zdjęcia wychodzą poza ekran */
  padding-left: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter)));
  padding-right: var(--gutter);
  scroll-padding-left: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter)));
}

.h-gallery__track::-webkit-scrollbar { display: none; }

.h-gallery__item {
  flex: 0 0 clamp(200px, 23vw, 292px);
  scroll-snap-align: start;
  cursor: zoom-in;
  padding: 0;
  background: none;
  border: none;
}

/* Różne wysokości i przesunięcia jak we wzorze */
.h-gallery__item img {
  width: 100%;
  aspect-ratio: 290 / 405;
  object-fit: cover;
  transition: opacity var(--transition);
}

.h-gallery__item:nth-child(4n+2) { margin-top: 1.6rem; }
.h-gallery__item:nth-child(4n+2) img { aspect-ratio: 252 / 354; }
.h-gallery__item:nth-child(4n+3) { margin-top: 0.75rem; }
.h-gallery__item:hover img { opacity: 0.88; }

/* Powiększenie zdjęcia */
.h-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(26, 22, 19, 0.92);
}

.h-lightbox__img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

/* Przyciski: „<”, „>” i „✕” - kwadratowe, ten sam rozmiar */
.h-lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  font-family: var(--ff-mono);
  font-size: 1.1rem;
  line-height: 1;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(26, 22, 19, 0.5);
  transition: border-color var(--transition), color var(--transition);
}

.h-lightbox__btn:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.h-lightbox__btn--close { top: 1rem; right: 1rem; }
.h-lightbox__btn--prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.h-lightbox__btn--next  { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   03 / SPOTKANIA WIGILIJNE - pomarańczowa sekcja
   ============================================================ */
.h-xmas {
  background: var(--clr-accent);
  color: var(--clr-dark);
}

.h-xmas .h-sec-head { border-color: rgba(26, 22, 19, 0.18); }

.h-xmas__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.h-xmas .h-title { margin-top: 1.6rem; }
.h-xmas .h-title em { color: var(--clr-bg); }

.h-xmas .h-text {
  max-width: 440px;
  margin-top: 2rem;
  color: var(--clr-dark);
}

.h-xmas__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.h-xmas .h-link { color: var(--clr-dark); }
.h-xmas .h-link:hover { color: #fff; }

.h-xmas__photo img {
  width: 100%;
  aspect-ratio: 470 / 500;
  object-fit: cover;
}

/* ============================================================
   04 / WINO - zdjęcie od krawędzi + ciemny panel
   ============================================================ */
.h-wine {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--clr-dark);
  color: var(--clr-bg);
}

.h-wine__photo { min-height: 520px; }

.h-wine__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.h-wine__body {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 6vw, 6rem);
  max-width: 560px;
}

.h-wine .h-label { color: var(--clr-bg); font-weight: 600; }
.h-wine .h-title { color: var(--clr-bg); margin-top: 1.75rem; }
.h-wine .h-text  { color: rgba(244, 241, 234, 0.85); margin-top: 2rem; }
.h-wine .h-text + .h-text { margin-top: 1.4rem; }
.h-wine .h-link  { color: var(--clr-bg); margin-top: 2.5rem; font-weight: 600; }
.h-wine .h-link:hover { color: var(--clr-accent); }

/* ============================================================
   05 / VOUCHER
   ============================================================ */
.h-voucher__grid {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: clamp(2rem, 9vw, 7rem);
  align-items: center;
}

.h-voucher__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.h-voucher .h-text { max-width: 420px; margin-top: 1.75rem; }

.h-voucher__facts {
  margin-top: 2.25rem;
  border-top: 1px solid var(--clr-border);
}

.h-voucher__fact {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--clr-border);
  font-family: var(--ff-mono);
  font-size: 0.72rem;
}

.h-voucher__fact dt { color: var(--clr-text-muted); }
.h-voucher__fact dd { color: var(--clr-text); text-align: right; }

.h-voucher .btn { margin-top: 1.9rem; }

.h-voucher__note {
  font-family: var(--ff-mono);
  font-size: 0.77rem;
  line-height: 1.85;
  color: var(--clr-text);
  max-width: 420px;
  margin-top: 1.4rem;
}

/* ============================================================
   W DOBRYM TOWARZYSTWIE - lista linków
   ============================================================ */
.h-more { padding-bottom: clamp(4rem, 8vw, 6rem); }

.h-more .h-title { margin-top: 1.75rem; }

.h-more__list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--clr-border);
}

.h-more__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.45rem;
  border-bottom: 1px solid var(--clr-border);
  font-family: var(--ff-serif);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  color: var(--clr-text);
  transition: color var(--transition), padding var(--transition);
}

.h-more__link::after {
  content: '→';
  font-family: var(--ff-mono);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--transition), transform var(--transition);
}

.h-more__link:hover { color: var(--clr-accent); padding-left: 0.5rem; }
.h-more__link:hover::after { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .h-band__inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .h-band__star { display: none; }

  .h-intro__grid,
  .h-chef__grid,
  .h-xmas__grid,
  .h-voucher__grid,
  .h-wine { grid-template-columns: minmax(0, 1fr); }

  .h-intro__right { text-align: left; align-items: flex-start; order: -1; }
  .h-intro__drawing { display: none; }

  .h-chef__photo { order: -1; }
  .h-xmas__photo { order: -1; max-width: 470px; }
  .h-wine__photo { min-height: 320px; }
  .h-wine__body { max-width: none; }
}

@media (max-width: 768px) {
  .home-page .hero__scroll { display: none; }
  .h-sec-head { margin-bottom: 2.5rem; padding-bottom: 1.4rem; }
  .h-gallery__item { flex-basis: 68vw; }
  .h-lightbox__btn--prev,
  .h-lightbox__btn--next { top: auto; bottom: 1rem; transform: none; }

  /* Na telefonie bez pasa świątecznego i podpisów pod zdjęciami */
  .h-band,
  .h-intro .h-caption,
  .h-chef .h-caption { display: none; }
}
