/* ============ Footer ============ */
footer {
  background: var(--graphite);
  color: rgba(250, 247, 240, 0.7);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
/* Tytuly kolumn stopki jako p.footer-h (nie h4): h4 bez h2/h3 lamalo hierarchie naglowkow (WCAG) */
.footer-col .footer-h {
  font-family: 'Cormorant Garamond', serif;
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-logo { width: 160px; height: auto; display: block; margin-bottom: 22px; }
.footer-col p, .footer-col a {
  color: rgba(250, 247, 240, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s;
  overflow-wrap: break-word;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(250, 247, 240, 0.1);
  padding-top: 10px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(250, 247, 240, 0.5);
}
.footer-credit a { color: var(--gold); font-weight: 600; text-decoration: none; transition: color 0.3s; }
.footer-credit a:hover { color: var(--gold-soft); }

/* Social (FB/IG) w pierwszej kolumnie stopki, pod cytatem o detalach */
.footer-social { display: flex; gap: 16px; margin-top: 18px; }
.footer-social a { display: inline-flex; color: rgba(250, 247, 240, 0.7); transition: color 0.3s; margin-bottom: 0; }
.footer-social a:hover { color: var(--gold); }
.footer-social svg { width: 22px; height: 22px; }

/* ============ Sticky mobile CTA ============ */
/* ============ Sticky bottom CTA: desktop + mobile ============ */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--forest); /* sticky bar w zieleni marki z logo, bez przezroczystosci; stopka zostaje czarna */
  border-top: 1px solid rgba(201, 169, 97, 0.25);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(110%);
  transition: transform 0.45s var(--transition);
}
.sticky-cta-bar.visible { transform: translateY(0); }
.sticky-cta-phones {
  display: flex;
  gap: 36px;
  align-items: center;
}
.sticky-cta-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
}
.sticky-cta-phone + .sticky-cta-phone::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: rgba(201, 169, 97, 0.2);
}
.sticky-cta-icon {
  width: 22px;
  height: 22px;
  color: var(--gold-soft);
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 0.3s;
}
.sticky-cta-phone-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sticky-cta-phone-label {
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
}
.sticky-cta-phone-number {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1rem;
  color: var(--cream);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.sticky-cta-phone:hover .sticky-cta-phone-number,
.sticky-cta-phone:hover .sticky-cta-icon { color: var(--gold); }
.sticky-cta-bar .actions { display: flex; gap: 12px; align-items: center; }
.sticky-cta-bar .btn { padding: 13px 28px; font-size: 0.74rem; letter-spacing: 0.16em; }
/* "Zarezerwuj pobyt": hover jasny (cream) jak "Szukaj" w widgecie rezerwacyjnym.
   Globalny .btn-primary:hover daje ciemny forest, ktory znika na ciemnym pasku. */
.sticky-cta-bar .btn-primary:hover {
  background: var(--cream);
  color: var(--forest-deep);
  transform: none;
}
.sticky-cta-bar .btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250, 247, 240, 0.35);
}
.sticky-cta-bar .btn-outline-light:hover {
  background: var(--cream);
  color: var(--graphite);
  border-color: var(--cream);
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .container { padding: 0 24px; }

  .booking-widget {
    grid-template-columns: 1fr;
    gap: 0;
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 16px 20px;
  }
  .booking-widget .booking-field {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(201, 169, 97, 0.18);
  }
  .booking-widget .booking-field:nth-child(3) { padding-right: 0; border-bottom: 0; padding-bottom: 16px; }
  .booking-widget .btn { width: 100%; padding: 16px; }

  .hero { padding-bottom: 420px; min-height: 760px; }

  .about { padding-top: 80px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .usp-grid { grid-template-columns: 1fr; gap: 16px; }
  .events-split { grid-template-columns: 1fr; }
  .restaurant-grid { grid-template-columns: 1fr; gap: 32px; }
  .review-bar { flex-direction: column; gap: 24px; }
  .review-platform { padding: 0; }
  .review-platform + .review-platform::before { display: none; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; }

  section { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }

  .sticky-cta-bar {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .sticky-cta-phones { gap: 14px; }
  .sticky-cta-phone + .sticky-cta-phone::before { left: -8px; height: 24px; }
  .sticky-cta-phone { gap: 8px; }
  .sticky-cta-icon { width: 18px; height: 18px; }
  .sticky-cta-phone-label { font-size: 0.5rem; letter-spacing: 0.15em; }
  .sticky-cta-phone-number { font-size: 0.88rem; }
  .sticky-cta-bar .actions { gap: 6px; }
  .sticky-cta-bar .btn { padding: 11px 14px; font-size: 0.66rem; letter-spacing: 0.1em; }
}
@media (max-width: 520px) {
  .sticky-cta-phone-label { display: none; }
  .sticky-cta-phone-number { font-size: 0.82rem; }
  .sticky-cta-icon { width: 16px; height: 16px; }
  /* Uwaga: zadnych regul .hero h1 z font-size tutaj (wyzsza specyficznosc nadpisze .hero-nav) */
  /* Mniejszy opis pod naglowkiem na telefonie */
  .hero-subtitle { font-size: 0.92rem; line-height: 1.5; }
  /* Przyciski na telefonie: zawijaj zamiast wychodzic poza kontener (krotkie zostaja w 1 linii) */
  .btn { white-space: normal; max-width: 100%; }
  /* Footer na telefonie: jedna kolumna (email i adres dostaja pelna szerokosc, czytelnie) */
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Scroll reveal: visible by default; animate on JS only */
.reveal { opacity: 1; transform: none; transition: opacity 1s var(--transition), transform 1s var(--transition); }
.js-on .reveal { opacity: 0; transform: translateY(40px); }
.js-on .reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Sticky booking CTA: na desktopie wszystkie 3 numery, na mobile recepcja + Zarezerwuj ===== */
@media (max-width: 980px) {
  /* Strzalka przewijania takze na mobile: kilkanascie px nad dolnym paskiem
     (.mobile-bar, 64px fixed), ktory przykrywa sam dol hero. Sama strzalka, bez podpisu. */
  .scroll-indicator { bottom: 80px; }
  .scroll-indicator span { display: none; }
  .sticky-cta-bar { transform: translateY(0); }
  /* Mobile: numery telefonu sa w naglowku (ikona), wiec sticky bar = samo Zarezerwuj */
  .sticky-cta-phones { display: none; }
  .sticky-cta-bar .actions { flex: 1; width: 100%; }
  .sticky-cta-bar .actions .btn { width: 100%; }
}

/* ===== Containment tabeli ligi (zeby nie rozpychala strony) ===== */
.bilard-box > div { min-width: 0; }
.bilard-box > div:last-child { overflow-x: auto; }

/* ===== Mobile menu (panel pelnoekranowy: serif, linie, "+", social) ===== */
/* Chrome menu (gorny pasek + dolna sekcja) domyslnie ukryte na desktopie, pokazane na mobile */
.nav-mtop, .nav-mbottom { display: none; }

@media (max-width: 1279px) {
  .header-cta .phone-link { display: none; }

  /* Hamburger = OTWIERACZ menu (zamykanie przez X w gornym pasku menu) */
  .hamburger {
    display: flex; flex-direction: column; gap: 5px;
    width: 32px; height: 32px; background: transparent; border: 0; cursor: pointer; padding: 8px 0; z-index: 210;
  }
  .hamburger span { display: block; height: 1.5px; background: var(--cream); transition: background 0.3s; }
  .site-header.scrolled .hamburger span { background: var(--forest); }
  .site-header.nav-open .hamburger { display: none; }

  .header-map, .header-call { display: inline-flex; align-items: center; color: var(--cream); margin-right: 5px; }
  .header-map svg, .header-call svg { width: 24px; height: 24px; }
  .site-header.scrolled .header-map, .site-header.scrolled .header-call { color: var(--forest-deep); }
  .site-header.nav-open .header-map, .site-header.nav-open .header-call { display: none; }
  /* Na mobile naglowek bez backdrop-filter (nie robi containing block dla fixed menu) */
  .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(250, 247, 240, 0.98); }

  /* ===== Panel menu = <nav> (wysuwa sie z prawej) ===== */
  .site-header nav {
    position: fixed; inset: 0; z-index: 200;
    display: flex; flex-direction: column;
    background: var(--forest-deep);
    padding: 0 0 32px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.42s var(--transition), visibility 0.42s;
  }
  .site-header.nav-open nav { transform: translateX(0); visibility: visible; }

  /* Gorny pasek menu: X (lewo) | logo (srodek) | Rezerwuj (prawo). Flex: boki 1fr, logo auto. */
  .nav-mtop { display: flex; align-items: center; padding: 15px 22px; border-bottom: 1px solid rgba(250, 247, 240, 0.12); }
  .nav-close { flex: 1 1 0; background: transparent; border: 0; color: var(--cream); cursor: pointer; padding: 0; margin: 0; display: inline-flex; justify-content: flex-start; }
  .nav-close svg { width: 26px; height: 26px; }
  .nav-mtop-logo { flex: 0 0 auto; display: block; }
  .nav-mtop-logo img { height: 66px; width: auto; display: block; }
  .nav-mtop-book { flex: 1 1 0; display: flex; justify-content: flex-end; align-items: center; color: var(--gold-soft); text-decoration: none; }
  .nav-mtop-book .nav-bell { width: 27px; height: 27px; transform-origin: bottom center; animation: bellRing 4.5s ease-in-out infinite; }
  /* Dzwonek recepcyjny "dzwoni": szybki shake (os u dolu) w oknie 54-79% petli, reszta spoczywa */
  @keyframes bellRing {
    0%, 50%, 100% { transform: rotate(0); }
    54% { transform: rotate(11deg); }
    59% { transform: rotate(-9deg); }
    64% { transform: rotate(7deg); }
    69% { transform: rotate(-5deg); }
    74% { transform: rotate(2deg); }
    79% { transform: rotate(0); }
  }
  @media (prefers-reduced-motion: reduce) { .nav-mtop-book .nav-bell { animation: none; } }

  /* Lista pozycji: serif, do lewej, linie. Selektor ZAWEZONY
     do bezposrednich linkow top-level (nav > ul > li > a), zeby nie lapal logo/Rezerwuj/podlinkow/social. */
  .site-header nav > ul { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 6px 24px 0; }
  .site-header nav > ul > li { position: relative; width: 100%; border-bottom: 1px solid rgba(250, 247, 240, 0.12); }
  /* Grupujemy pozycje z podmenu (z "+") na gorze, bez-podmenu (Wydarzenia, Galeria) nizej,
     zeby "+" byly jeden pod drugim. Tylko wizualnie na mobile (DOM/desktop bez zmian). */
  .site-header nav > ul > li.has-dropdown { order: 1; }
  .site-header nav > ul > li:not(.has-dropdown) { order: 2; }
  .site-header nav > ul > li > a,
  .site-header.scrolled nav > ul > li > a {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    color: var(--cream) !important;
    font-size: 1.45rem; line-height: 1.05; font-style: normal; font-weight: 500; letter-spacing: 0;
    text-transform: none; display: block; text-align: left; padding: 11px 44px 11px 0;
  }
  .site-header nav > ul > li > a.is-active,
  .site-header.scrolled nav > ul > li > a.is-active { color: var(--gold-soft) !important; }
  nav li.has-dropdown > a::after { content: none; }

  /* "+" rozwijajacy podmenu (staje sie "-" po otwarciu). display:block bije baze display:none. */
  .dropdown-toggle {
    display: block; position: absolute; top: 8px; right: 0; width: 28px; height: 28px; padding: 0; margin: 0;
    background: transparent; border: 0; cursor: pointer; color: var(--gold-soft);
  }
  .dropdown-toggle::before, .dropdown-toggle::after {
    content: ''; position: absolute; top: 50%; left: 50%; background: currentColor;
    transition: transform 0.3s var(--transition), opacity 0.3s;
  }
  .dropdown-toggle::before { width: 15px; height: 1.6px; transform: translate(-50%, -50%); }
  .dropdown-toggle::after  { width: 1.6px; height: 15px; transform: translate(-50%, -50%); }
  .site-header nav li.has-dropdown.open .dropdown-toggle::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

  /* Podmenu: rozwijane, wciecie, Inter muted */
  .site-header nav .dropdown,
  .site-header nav li.has-dropdown:hover > .dropdown {
    position: static; left: auto; top: auto; transform: none;
    display: block; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 0; border-radius: 0; min-width: 0; width: 100%; padding: 0;
    max-height: 0; margin: 0; opacity: 0; visibility: hidden; overflow: hidden;
    transition: max-height 0.35s var(--transition), opacity 0.25s ease, margin 0.25s ease;
  }
  .site-header nav li.has-dropdown.open > .dropdown { max-height: 340px; margin: 0 0 12px; opacity: 1; visibility: visible; }
  .site-header nav .dropdown li { width: 100%; padding: 0; border: 0; }
  .site-header nav .dropdown a,
  .site-header.scrolled nav .dropdown a {
    font-family: 'Inter', sans-serif !important; font-style: normal;
    display: block; text-align: left; white-space: normal;
    color: rgba(250, 247, 240, 0.66) !important; font-size: 0.95rem !important; font-weight: 400;
    letter-spacing: 0.02em; text-transform: none; padding: 8px 0 8px 2px !important; background: transparent !important;
  }
  .site-header nav .dropdown a:hover,
  .site-header.scrolled nav .dropdown a:hover { color: var(--gold) !important; background: transparent !important; }

  /* Dolna sekcja: 2 kolumny podlinkow (lewo) + social jako 3. kolumna (prawo). */
  .nav-mbottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 40px 26px 0; }
  .nav-msecondary {
    flex: 1 1 auto;
    display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 10px 20px;
  }
  .nav-msecondary a {
    color: rgba(250, 247, 240, 0.82); text-decoration: none; justify-self: start;
    font-family: 'Inter', sans-serif; font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 500;
    transition: color 0.3s;
  }
  .nav-msecondary a:hover { color: var(--gold-soft); }

  /* Ikony social jako 3. kolumna, jedna pod druga (pionowo), po prawej */
  .nav-msocial { flex: 0 0 auto; display: flex; flex-direction: column; gap: 18px; padding-top: 2px; }
  .nav-msocial a { color: var(--cream); display: inline-flex; opacity: 0.85; transition: opacity 0.3s, color 0.3s; }
  .nav-msocial a:hover { color: var(--gold-soft); opacity: 1; }
  .nav-msocial svg { width: 22px; height: 22px; }

  /* Stan .scrolled naglowka NIE moze przemalowac chrome menu na ciemno.
     Baza 1-base.css ma .site-header.scrolled nav a { color: graphite } -> przebija tu,
     bo chrome (Rezerwuj/podlinki/social) nie mial wariantu .scrolled. Przywracamy kolory. */
  .site-header.scrolled a.nav-mtop-book { color: var(--gold-soft); }
  .site-header.scrolled .nav-msecondary a { color: rgba(250, 247, 240, 0.82); }
  .site-header.scrolled .nav-msocial a,
  .site-header.scrolled .nav-close { color: var(--cream); }
}

/* Ponizsze zostaja na PRAWDZIWYM mobile (<=980). Na tablecie 981-1200 hero, widget
   rezerwacji i przycisk Zarezerwuj zostaja desktopowe (jest miejsce); zmienia sie
   tylko nawigacja na hamburger (blok 1200px wyzej). */
@media (max-width: 980px) {
  /* height 100svh (nie vh!): na iOS 100vh liczy wysokosc RAZEM z paskiem Safari, wiec
     "srodek" wypadal za nisko wzgledem widocznego ekranu (fallback: base 100vh dla starych).
     padding-bottom = padding-top (100) + dolny pasek (64): tresc centruje sie w OPTYCZNYM
     srodku obszaru widocznego nad zielonym paskiem, na kazdym urzadzeniu. */
  .hero { padding-bottom: 164px; height: 100svh; min-height: 100svh; }

  /* Booking na mobile: chowamy widget z hero i duzy przycisk z headera.
     Rezerwacja idzie przez CTA w hero (otwiera modal) oraz przez sticky bar na dole. */
  .hero .booking-widget { display: none; }
  .header-cta .btn-primary { display: none; }
  .hero { grid-template-rows: 1fr; }
  .sticky-cta-phone:nth-child(n+2) { display: none; }
  .sticky-cta-bar .actions .btn { padding: 13px 22px; }
  /* Na prawdziwym mobile top akcje (telefon/mapa/hamburger) sa redundantne wzgledem
     dolnego paska -> chowamy caly header-cta, w naglowku zostaje samo logo. Menu otwiera
     przycisk Menu w dolnym pasku (data-mobile-menu), zamyka X w gornym pasku menu. */
  .header-cta { display: none; }
  /* Logo wysrodkowane na mobile: absolute w srodku naglowka,
     wyjete z flexu, wiec EN zostaje niezaleznie przypiety do prawej. top NA STALE od
     gornej krawedzi (bez top logo wystawalo poza ekran, bo absolute ignoruje padding). */
  .site-header .logo { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); }
  /* Po scrollu (jasny pasek): absolute logo nie rozciaga headera, wiec pasek dostaje
     min-height obejmujaca logo, a samo logo plynnie maleje (transition width juz jest). */
  .site-header.scrolled { min-height: 74px; }
  .site-header.scrolled .logo img { width: 6.5rem; }
  /* Przelacznik jezyka w prawym gornym rogu (desktopowy jest w ukrytym header-cta). */
  .lang-toggle--mobile { display: inline-block; margin-left: auto; }
  body.menu-open .lang-toggle--mobile { display: none; }
}

/* ============ Mobilny dolny pasek (Zadzwoń / Mapa / Rezerwuj / Menu) ============ */
/* 64px, 4 kolumny 25%, cienkie linie rozdzielajace, Rezerwuj zloty. */
.mobile-bar { display: none; }
@media (max-width: 980px) {
  .mobile-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0;
    height: 64px; z-index: 1500;
    background: var(--forest-deep);
    border-top: 1px solid rgba(250, 247, 240, 0.12);
    box-shadow: 0 -6px 24px rgba(14, 51, 41, 0.22);
  }
  .mobile-bar-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 0; border-right: 1px solid rgba(250, 247, 240, 0.14);
    background: transparent; color: var(--cream);
    text-decoration: none; cursor: pointer;
    font-family: 'Inter', sans-serif;
  }
  .mobile-bar-item:last-child { border-right: 0; }
  .mobile-bar-item svg { width: 22px; height: 22px; }
  .mobile-bar-item span { font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 500; }
  /* Rezerwuj: zloty highlight, ciemna tresc dla kontrastu */
  .mobile-bar-book { background: var(--gold); color: var(--forest-deep); border-right-color: var(--gold); }
  .mobile-bar-book svg { stroke-width: 1.8; }

  /* Stary sticky bar zastapiony na mobile nowym paskiem 4-akcji */
  .sticky-cta-bar { display: none !important; }
  /* Tresc nie chowa sie pod paskiem 64px (poza hero, ktore i tak jest 100svh) */
  body { padding-bottom: 64px; }
  /* Baner cookies nad paskiem, zeby nie zaslanial akcji */
  .cookie-banner { bottom: 64px; }
  /* Gdy pelnoekranowe menu otwarte, chowamy dolny pasek (zamykanie przez X u gory) */
  body.menu-open .mobile-bar { display: none; }
  /* Gdy otwarty modal (Hotres, event, lightbox), pasek nie moze zaslaniac -> chowamy */
  body.modal-open .mobile-bar { display: none; }
}

