/* Pan Cook — Bistro Biskupice
   Motyw: edytorialny / minimalny — dużo światła, cienka linia, duża typografia.
   Paleta: atrament + papier + szałwiowa zieleń (spójna z czarno-białym logo). */

@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&family=Karla:wght@400;500;600;700;800&family=Fraunces:ital,wght@1,600&display=swap');

:root{
  --paper: #f6f4ec;
  --paper-2: #ece6d5;
  --card: #fbf9f3;
  --ink: #1b1a16;
  --ink-soft: #615c50;
  --sage: #6f7d57;
  --sage-deep: #46512f;
  --hairline: rgba(27,26,22,.16);
  --display: 'Bitter', serif;
  --sans: 'Karla', sans-serif;
  --legacy-serif: 'Fraunces', serif; /* stopka — bez zmian */
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{ font-family: var(--display); font-weight: 700; font-style: normal; margin: 0; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul{ list-style: none; margin: 0; padding: 0; }

.container{
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
}

section{ padding: 7.5rem 0; position: relative; }

.icon{ width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.6; vertical-align: -2px; }

.tag{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 22px;
}
.tag .no{ font-family: var(--display); font-style: normal; font-size: 1.2rem; color: var(--ink); font-weight: 700; letter-spacing: 0; }

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.6rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2.2rem;
}
.section-head h2{ font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; line-height: 1.1; max-width: 620px; }
.section-head p{ color: var(--ink-soft); font-size: 1rem; max-width: 320px; margin: 0; line-height: 1.6; }

/* ---------- BUTTONS ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1em 1.9em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .01em;
  border: 1.6px solid var(--ink);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(27,26,22,.08);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover{ background: var(--ink); color: var(--paper); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27,26,22,.18); }
.btn svg{ width: 16px; height: 16px; flex: none; }
.btn-solid{ background: var(--ink); border-color:rgba(246,244,236,.85); color: var(--paper); }
.btn-solid:hover{ background: var(--sage-deep); border-color:rgba(246,244,236,.85); color: #fff; }
.btn-light{
  background: rgba(20,19,16,.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(246,244,236,.85);
  color: var(--paper);
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.btn-light:hover{ background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- NAV ---------- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 16px 0;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  transition: padding .3s ease;
}
.nav.scrolled{ padding: 16px 0; }
.nav .container{ display: flex; align-items: center; justify-content: space-between; }
.brand{
  display: flex;
  align-items: center;
}
.brand img{
  height: 78px;
  /* width: 58px; */
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1.4px solid rgba(246,244,236,.35);
}
.nav-links{ display: flex; gap: 2.6rem; }
.nav-links a{
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .85;
}
.nav-links a:hover{ opacity: 1; }
.nav-cta{ display: flex; align-items: center; gap: 22px; }
.nav-phone{ display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: .82rem; }
.nav-phone svg{ width: 15px; height: 15px; }
.nav-toggle{ display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 210; }
.nav-toggle span{ width: 24px; height: 1.6px; background: currentColor; display: block; }

/* ---------- HERO (pełnoekranowe zdjęcie) ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 5.5rem;
  overflow: hidden;
}
.hero-bg{ position: absolute; inset: 0; z-index: 0; }
.hero-bg img{ width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10,9,7,.96) 0%, rgba(10,9,7,.82) 32%, rgba(10,9,7,.4) 58%, rgba(10,9,7,.32) 100%),
    linear-gradient(100deg, rgba(10,9,7,.55) 0%, rgba(10,9,7,.05) 42%);
}
.hero .container{ position: relative; z-index: 2; }
.hero-top{ display: flex; justify-content: flex-end; margin-bottom: auto; padding-top: 108px; }
.rating-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,14,11,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(246,244,236,.4);
  border-radius: 7px;
  color: var(--paper);
  padding: 9px 16px;
  font-size: .78rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.rating-chip b{ font-family: var(--display); font-size: 1rem; font-weight: 700; }

.hero-copy{ max-width: 780px; }
.hero-copy .tag{ color: #d7dec4; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero-copy h1{
  color: var(--paper);
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 26px;
  text-shadow: 0 4px 26px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.6);
}
.hero-copy .lead{
  color: rgba(246,244,236,.92);
  font-size: 1.14rem;
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: 2.4rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.hero-actions{ display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }

/* ---------- ABOUT ---------- */
.about-grid{
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 4.5rem;
  align-items: stretch;
}
.about-photo{ position: relative; }
.about-photo img{ width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.about-text{ display: flex; flex-direction: column; justify-content: center; }
.about-text h2{ font-size: clamp(2.1rem, 4vw, 2.9rem); margin-bottom: 1.2rem; line-height: 1.1; }
.about-text p{ color: var(--ink-soft); line-height: 1.8; margin: 0 0 18px; font-size: 1.03rem; max-width: 480px; }
.signature{
  margin: 1.8rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sage-deep);
  max-width: 480px;
}

/* ---------- GALLERY (bento) ---------- */
.bento{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 4px;
}
.bento .cell{ position: relative; overflow: hidden; cursor: pointer; background: var(--ink); }
.bento .cell:nth-child(1){ grid-column: span 2; grid-row: span 2; }
.bento .cell:nth-child(6){ grid-column: span 2; }
.bento .cell img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.bento .cell:hover img{ transform: scale(1.055); filter: brightness(.82); }
.bento .cell .cap{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(15,14,11,.85), transparent 75%);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.bento .cell:hover .cap{ opacity: 1; transform: translateY(0); }
.gallery-note{
  text-align: right;
  color: var(--ink-soft);
  font-size: .88rem;
  margin-top: 2rem;
}
.gallery-note a{ color: var(--sage-deep); font-weight: 700; border-bottom: 1px solid rgba(70,81,47,.4); }
.gallery-note a:hover{ border-color: var(--sage-deep); }

/* ---------- SOCIAL ---------- */
.social-list{ border-top: 1px solid var(--hairline); }
.social-row{
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left .25s ease;
}
.social-row:hover{ padding-left: 14px; }
.social-row .idx{ font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink-soft); }
.social-row h3{ font-size: clamp(1.6rem, 3vw, 2.3rem); }
.social-row p{ color: var(--ink-soft); margin: 6px 0 0; font-size: .95rem; max-width: 440px; }
.social-row .arrow{
  width: 46px; height: 46px;
  border: 1.4px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  transition: background .2s ease, transform .2s ease;
}
.social-row .arrow svg{ width: 18px; height: 18px; transition: transform .2s ease; }
.social-row:hover .arrow{ background: var(--ink); }
.social-row:hover .arrow svg{ color: var(--paper); transform: translate(2px,-2px); }

/* ---------- CONTACT ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}
.info-list{ border-top: 1px solid var(--hairline); margin-bottom: 2.2rem; }
.info-row{
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
}
.info-row .k{ font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); flex: none; padding-top: 3px; }
.info-row .v{ text-align: right; font-size: 1.02rem; }
.info-row .v a:hover{ color: var(--sage-deep); }

.hours-table{ display: flex; flex-direction: column; gap: 8px; }
.hours-line{ display: flex; justify-content: flex-end; gap: 1.4rem; font-size: .95rem; }
.hours-line span:first-child{ color: var(--ink-soft); }
.hours-line span:last-child{ font-weight: 600; min-width: 96px; text-align: right; }
.hours-line .closed{ color: var(--ink-soft); font-weight: 500; }

.map-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 4/3.4;
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--card);
}
.map-frame{ width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.map-consent{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 28px;
  gap: 14px;
}
.map-consent svg{ width: 22px; height: 22px; color: var(--sage-deep); }
.map-consent p{ font-size: .82rem; color: var(--ink-soft); line-height: 1.5; max-width: 300px; margin: 0; }
.map-consent .btn{ padding: .8em 1.5em; font-size: .78rem; }

.social-mini{ display: flex; gap: 12px; margin-top: 1.8rem; }
.social-mini a{
  flex: 1; text-align: center; padding: 14px;
  border: 1.4px solid var(--ink);
  font-weight: 700; font-size: .8rem; letter-spacing: .03em;
  transition: background .18s ease, color .18s ease;
}
.social-mini a:hover{ background: var(--ink); color: var(--paper); }

/* ---------- FOOTER (bez zmian stylistycznych) ---------- */
footer{ background: var(--ink); color: #d6d2c4; padding: 4rem 0 1.7rem; font-family: var(--sans); }
.footer-top{
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
  gap: 1.8rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(241,239,230,.16);
}
.footer-brand{ font-family: var(--legacy-serif); font-style: italic; font-size: 1.4rem; font-weight: 600; color: #faf8f1; }
.footer-brand span{ display: block; font-family: var(--sans); font-style: normal; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #a7a191; margin-top: 6px; }
.footer-links{ display: flex; gap: 30px; flex-wrap: wrap; }
.footer-links a{ font-size: .84rem; font-weight: 500; color: #d6d2c4; border-bottom: 1px solid transparent; }
.footer-links a:hover{ border-color: #d6d2c4; }
.footer-bottom{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 1.4rem; font-size: .78rem; color: #8b8677; }
.footer-bottom a{ color: #cfd9b3; font-weight: 600; }
.footer-bottom a:hover{ text-decoration: underline; }

/* ---------- LIGHTBOX ---------- */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(15,14,11,.95);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity .25s ease; padding: 26px;
}
.lightbox.open{ opacity: 1; pointer-events: auto; }
.lightbox img{ max-width: min(88vw, 620px); max-height: 82vh; }
.lightbox .lb-cap{ position: absolute; bottom: 44px; color: var(--paper); font-family: var(--display); font-weight: 700; text-align: center; width: 100%; font-size: 1.2rem; }
.lightbox-close{
  position: absolute; top: 26px; right: 30px;
  background: transparent; border: 1px solid rgba(246,244,236,.4); color: var(--paper);
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close svg{ width: 18px; height: 18px; }

/* ---------- REVEAL ---------- */
[data-reveal]{ opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].in{ opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-photo img{ min-height: 320px; }
  .bento{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .bento .cell:nth-child(1){ grid-column: span 2; grid-row: span 1; }
  .bento .cell:nth-child(6){ grid-column: span 1; }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .nav-links{
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--ink); color: var(--paper);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 1.8rem; padding: 2rem 2.4rem;
    transform: translateX(100%); transition: transform .32s ease;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{ display: flex; }
  .nav-phone{ display: none; }
  .social-row{ grid-template-columns: 1fr auto; }
  .social-row .idx{ display: none; }
  section{ padding: 5rem 0; }
}

@media (max-width: 520px){
  .hero-actions{ flex-direction: column; align-items: flex-start; }
  .footer-top{ flex-direction: column; }
  .section-head{ flex-direction: column; align-items: flex-start; gap: 1rem; }
  .info-row{ flex-direction: column; gap: .4rem; }
  .info-row .v{ text-align: left; }
  .hours-table{ width: 100%; }
  .hours-line{ justify-content: space-between; }
  .hours-line span:last-child{ text-align: right; }
}
