/* Wspólne elementy wszystkich podstron: kontakt, przypięte menu, strzałka do góry. */

html { scroll-padding-top: calc(var(--fixed-nav-height, 64px) + 12px); }

/* Pasek górny: telefon i e-mail zawsze widoczne */
.topbar .topbar-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.topbar .topbar-contact a { text-decoration: none; }
.topbar .topbar-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) {
  .topbar .topbar-contact { justify-content: center; gap: 0 18px; font-size: .8125rem; }
}

/* ---------- Sekcja Rezerwacje i kontakt ---------- */
.contact-block { padding: 90px 0; background: var(--paper); scroll-margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); border: 1px solid var(--line); background: var(--canvas); }
.contact-panel { padding: clamp(32px, 4.5vw, 56px); }
.contact-panel .eyebrow { margin: 0 0 12px; color: #826744; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.contact-panel h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.15; }
.contact-lead { margin: 16px 0 0; max-width: 560px; color: var(--muted); }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.contact-action { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.contact-action span { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-action strong { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.contact-action:hover { transform: translateY(-2px); border-color: var(--accent); }
.contact-action.primary { background: var(--accent); border-color: var(--accent); }
.contact-action.primary span { color: rgba(38,37,34,.75); }
.contact-action.primary:hover { background: #c9ae88; }
.contact-action:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.contact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 30px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.contact-details div { min-width: 0; }
.contact-details dt { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-details dd { margin: 5px 0 0; color: var(--ink); font-weight: 600; line-height: 1.5; }
.contact-details dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.contact-hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 14px; }
.contact-hours span { font-weight: 500; color: var(--muted); }
.contact-panel .social-links { margin-top: 26px; }
.contact-photo { display: block; width: 100%; height: 100%; min-height: 100%; object-fit: cover; }
.contact-photo-wrap { position: relative; min-height: 420px; margin: 0; overflow: hidden; }
.contact-photo-wrap .contact-photo { position: absolute; inset: 0; }

@media (max-width: 1100px) {
  .contact-actions, .contact-details { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .contact-block { padding: 56px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: 30px 22px; }
  .contact-photo-wrap { min-height: 0; aspect-ratio: 16 / 9; }
  .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .contact-details { grid-template-columns: 1fr; gap: 18px; }
}

/* Przyciski w sekcjach „Jaka okazja przed Wami?” i „Przyjęcie i nocleg” */
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
@media (max-width: 860px) {
  .cta-buttons { width: 100%; }
  .cta-buttons .btn { flex: 1 1 200px; }
}

/* ---------- Menu przypięte przy przewijaniu ---------- */
.nav-fixed { position: fixed !important; z-index: 70 !important; top: 0; left: 0; right: 0; background: rgba(251,250,248,.98) !important; border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(38,37,34,.1); transform: translateY(-110%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
.nav-fixed.is-visible { transform: none; visibility: visible; }
.nav-fixed .wrap { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; min-height: 64px !important; height: auto !important; padding-block: 4px !important; gap: 20px !important; }
.nav-fixed .brand { align-self: center !important; }
.nav-fixed .brand-emblem { width: 84px !important; height: 56px !important; }
.nav-fixed .brand-name span { display: none !important; }
.nav-fixed .navlinks { display: flex !important; flex-wrap: nowrap !important; align-items: center; justify-content: flex-end; gap: 22px !important; width: auto !important; }
.nav-fixed .navlinks a:not(.btn) { display: inline-flex !important; padding: 6px 2px !important; font-size: .9rem !important; white-space: nowrap; }
.nav-fixed .nav-short { display: none; }
@media (max-width: 1000px) {
  .nav-fixed .brand-name { display: none !important; }
  .nav-fixed .navlinks { gap: 16px !important; }
}
@media (max-width: 760px) {
  .nav-fixed .brand { display: none !important; }
  .nav-fixed .wrap { justify-content: center !important; min-height: 52px !important; }
  .nav-fixed .navlinks { width: 100% !important; justify-content: space-between !important; gap: 6px !important; }
  .nav-fixed .navlinks a:not(.btn) { font-size: .875rem !important; padding: 6px 0 !important; min-height: 44px; }
  .nav-fixed .nav-long { display: none; }
  .nav-fixed .nav-short { display: inline; }
}

/* ---------- Strzałka „do góry” ---------- */
.to-top { position: fixed; z-index: 65; right: 18px; bottom: 18px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: var(--ink, #262522); color: #fbfaf8; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #826744; }
.to-top:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 900px), (max-height: 500px) and (max-width: 1000px) {
  .to-top { right: 14px; bottom: 84px; width: 46px; height: 46px; }
}

/* Menu: pasek kategorii chowa się pod przypiętym menu */
.category-bar { top: var(--fixed-nav-visible, 0px) !important; transition: top .25s ease; }

@media (prefers-reduced-motion: reduce) {
  .nav-fixed, .to-top, .category-bar { transition: none !important; }
}

/* Drugi przycisk na jasnym tle (Nocleg) */
.stay-contact .btn-outline-light { color: var(--ink); border-color: var(--ink); }
.stay-contact .btn-outline-light:hover { background: var(--ink); color: #fbfaf8; }
.events-contact .btn-outline-light { color: #fbfaf8; border-color: rgba(255,255,255,.6); background: transparent; }
@media (max-width: 860px) { .stay-contact { flex-direction: column; align-items: flex-start; gap: 22px; } }

/* Etykieta „Zdjęcie ilustracyjne” na zdjęciu dania */
.item .image-label { background: rgba(251,250,248,.94); border-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.12); }

/* Po kliknięciu „Rezerwacje / Kontakt” od razu widać dane kontaktowe */
#kontakt.contact-block { scroll-margin-top: -78px; }
@media (max-width: 860px) { #kontakt.contact-block { scroll-margin-top: -48px; } }

/* ================= Poprawki 25.10 (telefon) ================= */

/* Logo: samo godło obok nazwy, bez pustego marginesu */
.nav .brand { gap: 12px; }
.nav .brand-emblem { width: 64px !important; height: 64px !important; }
.nav .brand-logo { object-fit: contain; }
.nav-fixed .brand-emblem { width: 44px !important; height: 44px !important; }

/* Przycisk „hamburger” – telefony w pionie i w poziomie */
.nav-toggle { display: none; }
@media (max-width: 760px), (max-height: 500px) and (max-width: 1000px) {
  .nav:not(.nav-fixed) .wrap { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; min-height: 68px !important; padding-block: 6px !important; gap: 12px !important; position: relative; }
  .nav:not(.nav-fixed) .brand { align-self: center !important; }
  .nav .brand-emblem { width: 52px !important; height: 52px !important; }
  .nav .brand-name { display: grid !important; }
  .nav .brand-name strong { font-size: 1.2rem; }
  .nav .brand-name span { display: block !important; font-size: .625rem; letter-spacing: .1em; }
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 48px; height: 48px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); cursor: pointer; }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .nav-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav:not(.nav-fixed) .navlinks { display: none !important; }
  .nav.is-open:not(.nav-fixed) .navlinks { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 0 !important; position: absolute; top: 100%; left: -14px; right: -14px; width: auto !important; z-index: 40; padding: 6px 14px 14px; background: var(--paper, #fbfaf8); border-bottom: 1px solid var(--line); box-shadow: 0 14px 28px rgba(38,37,34,.12); }
  .nav.is-open:not(.nav-fixed) .navlinks a:not(.btn) { display: flex !important; justify-content: flex-start !important; min-height: 48px; padding: 10px 4px !important; font-size: 1.05rem !important; border-bottom: 1px solid var(--line); }
  .nav.is-open:not(.nav-fixed) .navlinks a:last-child { border-bottom: 0; }
  .nav-fixed .nav-toggle { display: none !important; }
}

/* Napis nad tytułem na zdjęciu głównym: krótszy i czytelny */
.hero-eyebrow { text-shadow: 0 1px 10px rgba(0,0,0,.65); color: #e3c9a0 !important; }
@media (max-width: 760px) {
  .hide-mobile { display: none; }
  .hero-eyebrow { letter-spacing: .12em; }
}

/* Linki w sekcji kontaktu: łatwe do trafienia palcem (min. 44 px) */
.contact-details dd a { display: inline-flex; align-items: center; min-height: 44px; }

/* Dolny pasek: jeden przycisk „Rezerwacje” + strzałka do góry
   (ten sam próg co w menu.css: 900 px, plus telefony w poziomie) */
@media (max-width: 900px), (max-height: 500px) and (max-width: 1000px) {
  .mobile-cta { position: fixed !important; z-index: 55 !important; left: 10px !important; right: 10px !important; bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; display: flex !important; gap: 8px !important; padding: 8px !important; background: rgba(29,28,26,.96) !important; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: translateY(140%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .mobile-cta.is-visible { transform: none; visibility: visible; }
  .mobile-cta .mobile-cta-call { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px !important; padding: 0 14px !important; font-size: .95rem !important; }
  .mobile-cta .mobile-cta-top { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 3px; background: transparent; color: #fbfaf8; cursor: pointer; }
  .mobile-cta .mobile-cta-top svg { width: 20px; height: 20px; }
  .mobile-cta .mobile-cta-top:focus-visible, .mobile-cta .mobile-cta-call:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
  .mobile-cta .mobile-cta-top[hidden] { display: none; }
  /* na telefonie strzałka siedzi w pasku, więc pływający przycisk znika */
  .to-top { display: none !important; }
  footer { padding-bottom: 96px !important; }
}
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none !important; } }

/* Telefon w poziomie: niższy dolny pasek, żeby nie zabierał ekranu */
@media (max-height: 500px) and (max-width: 1000px) {
  .mobile-cta { left: auto !important; right: 12px !important; width: min(420px, 60vw); padding: 6px !important; }
  .mobile-cta .mobile-cta-call { min-height: 44px !important; }
  .mobile-cta .mobile-cta-top { width: 44px; height: 44px; }
  .nav-fixed .wrap { min-height: 48px !important; }
}

/* Przy sekcji kontaktu zostaje sama strzałka do góry */
.mobile-cta.contact-mode { left: auto !important; width: auto !important; background: rgba(29,28,26,.9) !important; }
.mobile-cta.contact-mode .mobile-cta-call { display: none !important; }
.mobile-cta.contact-mode .mobile-cta-top[hidden] { display: inline-flex; }

/* Telefon w poziomie: kompaktowe paski u góry, więcej miejsca na treść */
@media (max-height: 500px) and (max-width: 1000px) {
  .nav.nav-fixed .brand-name { display: none !important; }
  .nav.nav-fixed .brand-emblem { width: 38px !important; height: 38px !important; }
  .nav.nav-fixed .wrap { min-height: 46px !important; padding-block: 2px !important; }
  .category-tab img { display: none !important; }
  .category-tab { min-height: 40px !important; padding: 6px 12px !important; }
}
