/* ============ Hero ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: minmax(0, 1fr); /* 0 jako min: zapobiega blowoutowi min-content na mobile */
  padding: 100px 32px 32px;
  gap: 24px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 20s ease-out forwards;
}
@keyframes slowZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.0); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 30% 55%, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0) 75%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.45) 30%,
      rgba(0, 0, 0, 0.35) 60%,
      rgba(14, 51, 41, 0.55) 100%);
  z-index: 2;
  pointer-events: none;
}

/* ===== Interaktywne warstwy hero: Hotel / Restauracja / Eventy =====
   Kazda grafika to osobna warstwa absolutna. Domyslnie widoczny jest Hotel
   (klasa .is-active z serwera). JS przelacza .is-active na hover/tap slowa,
   a przejscie to plynny crossfade opacity (kompozytor GPU, bez reflow). */
.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--transition);
}
.hero-media.is-active { opacity: 1; }

/* ===== Panel edycji (?edit=1): 3 podpisane kafle, kazdy edytowalny ===== */
.hero-media-editor {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}
.hero-media-edit-item {
  position: relative;
  overflow: hidden;
}
.hero-media-edit-item .cms-img,
.hero-media-edit-item picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-media-edit-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: none;
}
.hero-media-edit-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 20;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(12, 20, 16, 0.82);
  color: #fff;
  font: 600 0.72rem/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--cream);
  max-width: 720px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  align-self: center;
  padding: 0;
}
.hero h1 {
  color: var(--cream);
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.35);
}
/* Letter reveal: fade + slight translate (poprzednia działająca wersja) */
.hero h1 .char,
.page-hero h1 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: charReveal 0.6s var(--transition) forwards;
}
.hero h1 .italic .char,
.page-hero h1 .italic .char { color: var(--gold-soft); }
.hero h1 .word,
.page-hero h1 .word { display: inline-block; white-space: nowrap; }
@keyframes charReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Hero focus-booking: blur all except widget ============ */
.hero.focus-booking .hero-bg,
.hero.focus-booking .hero-content,
.hero.focus-booking .scroll-indicator {
  filter: blur(6px) brightness(0.85);
  transition: filter 0.5s ease;
  pointer-events: none;
}
.hero .hero-bg,
.hero .hero-content,
.hero .scroll-indicator {
  transition: filter 0.5s ease;
}
.hero.focus-booking::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 9;
  pointer-events: none;
  animation: focusOverlayIn 0.5s ease forwards;
}
@keyframes focusOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero .booking-widget {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.hero.focus-booking .booking-widget {
  transform: translateY(var(--focus-y, -28vh)) scale(1.06);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 169, 97, 0.55);
  z-index: 100;
}

/* ============ Scroll indicator: chevron-down z pulse ============ */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 124px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold-soft);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  animation: scrollFadeIn 0.8s 2.6s forwards;
  transition: opacity 0.4s ease;
  transform: translateX(-50%);
}
.scroll-indicator.hidden { opacity: 0 !important; }
/* Sam chevron, bez podpisu "Przewin" (desktop i mobile) */
.scroll-indicator span { display: none; }
.scroll-indicator svg {
  display: block;
  animation: chevronPulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}
@keyframes chevronPulse {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(5px); opacity: 1; }
}
@keyframes scrollFadeIn {
  to { opacity: 1; }
}
.hero h1 .italic { font-weight: 400; color: var(--gold-soft); }
.hero-subtitle {
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 1s 0.9s var(--transition) forwards;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

/* ===== Interaktywne tytuly hero (Hotel / Restauracja / Eventy) ===== */
/* Wysrodkowane w calej szerokosci hero */
.hero .hero-content { max-width: 1120px; text-align: center; }
.hero-nav {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.14em 1em;
  margin: 6px 0 22px; padding: 0;
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500;
  font-size: clamp(3.1rem, 8.2vw, 5.9rem); line-height: 1.06;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.35);
}
.hero-nav-word {
  color: rgba(250, 247, 240, 0.5); text-decoration: none; white-space: nowrap;
  padding-bottom: 0.12em;
  /* Zlote podkreslenie jako tlo-gradient: rosnie od SRODKA (background-position 50%),
     bez dodatkowego DOM, bez reflow, animowane na compositorze (60fps). */
  background-image: linear-gradient(var(--gold-soft), var(--gold-soft));
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 0% 2px;
  transition: color 0.4s var(--transition), background-size 0.45s var(--transition);
  opacity: 0; animation: fadeUp 0.9s var(--transition) forwards;
}
/* Pierwsze slowo domyslnie jasne + kursywa (statycznie, bez przelaczania na hover) */
.hero-nav-word:nth-child(1) { color: var(--cream); font-style: italic; animation-delay: 0.35s; }
.hero-nav-word:nth-child(2) { animation-delay: 0.5s; }
.hero-nav-word:nth-child(3) { animation-delay: 0.65s; }
/* Hover: slowo rozjasnia sie + wyjezdza zlote podkreslenie od srodka; reszta gasnie */
.hero-nav:hover .hero-nav-word { color: rgba(250, 247, 240, 0.5); }
.hero-nav .hero-nav-word:hover { color: var(--cream); background-size: 100% 2px; }
/* Breakpoint 980 (nie 700): szersze telefony/tablety tez maja dostac duze slowa w kolumnie */
@media (max-width: 980px) {
  /* width 100% + text-align center = kazde slowo idealnie wysrodkowane (flex align-items
     nie centrowal itemow szerszych niz kontener, stad Restauracja uciekala w prawo). */
  .hero-nav { flex-direction: column; align-items: center; gap: 26px; font-size: clamp(3.1rem, 15.4vw, 7.2rem); margin: 12px 0 30px; }
  .hero-nav-word { width: 100%; text-align: center; white-space: normal; overflow-wrap: break-word; padding-bottom: 0.06em; line-height: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero-nav-word { animation: none; opacity: 1; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Booking widget: Six Senses dark glass (grid row 2) ============ */
.booking-widget {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  align-self: end;
  background: rgba(22, 80, 69, 0.8); /* zielen marki #165045 z 20% przezroczystosci (search bar Hotres) */
  border-radius: 2px;
  border: 1px solid rgba(201, 169, 97, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  z-index: 10;
  padding: 12px 16px 12px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0;
  align-items: center;
}
.booking-field {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 2px 20px;
  border-right: 1px solid rgba(201, 169, 97, 0.18);
}
.booking-field:first-child { padding-left: 4px; }
.booking-field:nth-child(3) { border-right: 0; padding-right: 24px; }
.field-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 4px;
  font-weight: 500;
}
.booking-field input,
.booking-field select {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--cream);
  font-weight: 400;
  line-height: 1.2;
  border: 0;
  background: transparent;
  padding: 0;
  outline: none;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.01em;
}
.field-sub { display: none; }

/* Widoczny fokus klawiatury na polach widgetu (mialy outline:none bez zamiennika, WCAG 2.4.7) */
.booking-field input:focus-visible,
.booking-field select:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}
.booking-field input::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
  filter: invert(1);
}
.booking-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4B97A' stroke-width='1.5'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 14px;
  padding-right: 22px;
}
.field-sub-hidden { display: none; }
.booking-widget .btn {
  background: var(--gold);
  color: var(--graphite);
  padding: 14px 28px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  align-self: stretch;
  border-radius: 1px;
}
.booking-widget .btn:hover {
  background: var(--cream);
  color: var(--forest-deep);
  transform: none;
}
.divider { display: none; }

