/* ==================================================================
   DanPizza – arkusz stylów
   Kolorystyka: ciemny brąz/czerń tło, czerwień + złoto/pomarańcz akcenty
   Podejście: mobile-first, responsywność przez min-width media queries
   ================================================================== */

/* ---------- Zmienne kolorów i ustawień globalnych ---------- */
:root {
  --bg-dark:      #1a0f0a;   /* główne ciemne tło */
  --bg-dark-2:    #241610;   /* nieco jaśniejszy panel */
  --bg-card:      #2e1c13;   /* karty / pola */
  --red:          #c0281f;   /* czerwień akcentowa */
  --red-dark:     #8f1c15;
  --gold:         #e8b04b;   /* złoto */
  --gold-light:   #f4ce7a;   /* złoto jasne */
  --orange:       #e8791f;   /* pomarańcz */
  --cream:        #f6eee4;   /* jasny tekst */
  --text-muted:   #c9b6a6;   /* przygaszony tekst */
  --white:        #ffffff;

  --maxw: 1140px;            /* maks. szerokość kontenera */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --font-head: 'Bebas Neue', 'Poppins', sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 60px 0; }

/* Nagłówki sekcji */
.section__title {
  font-family: var(--font-head);
  font-size: 2.4rem;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1.1;
}
.section__title--center { text-align: center; }
.section__lead { text-align: center; color: var(--text-muted); margin-bottom: 28px; }

/* Dostępność – tekst tylko dla czytników ekranu */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==================================================================
   IKONY SVG (outline, w stylu logo)
   Bazowy rozmiar 1.2em, kolor dziedziczony przez currentColor.
   NIE ustawiamy tu `fill`, aby nie nadpisać wypełnionych elementów (kropki).
   ================================================================== */
.ico { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }

/* Logo firmowe (prawdziwy plik – badge z logo-badge.jpg) */
.logo__img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; display: block; flex-shrink: 0; }
.footer__logo { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; vertical-align: middle; margin-right: 4px; }

/* Ikony w poszczególnych miejscach */
.delivery__icon .ico { width: 2.6rem; height: 2.6rem; color: var(--gold); vertical-align: middle; }
.contact__icon .ico  { width: 1.4rem; height: 1.4rem; color: var(--gold); vertical-align: -0.32rem; }
.about__img .ico     { width: 3rem;   height: 3rem;   color: var(--gold); vertical-align: middle; }
.floating-call .ico  { width: 1.35rem; height: 1.35rem; }

/* ==================================================================
   PRZYCISKI (CTA)
   ================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  line-height: 1; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn--lg { padding: 16px 30px; font-size: 1.08rem; }

.btn--primary { background: var(--red); color: var(--white); box-shadow: 0 6px 18px rgba(192,40,31,.4); }
.btn--primary:hover { background: var(--red-dark); }

.btn--ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--bg-dark); }

.btn--phone { background: var(--gold); color: var(--bg-dark); }
.btn--phone:hover { background: var(--gold-light); }

/* ==================================================================
   1. HEADER / NAVBAR (sticky)
   ================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,11,7,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(232,176,75,.2);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 66px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.7rem; letter-spacing: 1px; }
.logo__accent { color: var(--gold); }

/* Linki nawigacyjne (na mobile ukryte, rozwijane hamburgerem) */
.nav__links { display: none; list-style: none; gap: 26px; }
.nav__links a { font-weight: 500; color: var(--cream); transition: color .2s; }
.nav__links a:hover { color: var(--gold); }

/* Rozwinięte menu mobilne */
.nav__links.is-open {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; top: 66px; left: 0; right: 0;
  background: var(--bg-dark-2); border-bottom: 1px solid rgba(232,176,75,.2);
  padding: 8px 20px 16px; box-shadow: var(--shadow);
}
.nav__links.is-open li { border-bottom: 1px solid rgba(255,255,255,.06); }
.nav__links.is-open li:last-child { border-bottom: 0; }
.nav__links.is-open a { display: block; padding: 14px 0; font-size: 1.05rem; }

/* CTA telefon w navbarze */
.nav__cta { flex-direction: column; gap: 2px; padding: 8px 16px; }
.nav__cta-text { display: none; }
.nav__cta-number { font-size: .95rem; font-weight: 700; }
.nav__cta .btn__icon { display: none; }

/* Hamburger (widoczny na mobile) */
.nav__toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--gold); border-radius: 3px; transition: .3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==================================================================
   2. HERO
   ================================================================== */
.hero {
  position: relative;
  /* Hero + navbar (66px) wypełniają dokładnie cały ekran – bez czarnego paska pod spodem */
  min-height: calc(100vh - 66px);
  min-height: calc(100dvh - 66px);
  display: flex; align-items: center;
  /* PLACEHOLDER ZDJĘCIA: podmień URL poniżej na prawdziwe zdjęcie pizzy (np. img/hero-pizza.jpg) */
  background:
    linear-gradient(180deg, rgba(26,15,10,.4), rgba(26,15,10,.85)),
    url('https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1600&q=70')
    center/cover no-repeat;
  text-align: center;
}
.hero__content { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 3px; color: var(--gold); font-weight: 600; font-size: .85rem; margin-bottom: 14px; }
.hero__title {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 5rem); line-height: 1; letter-spacing: 1px;
  color: var(--white); margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
}
.hero__subtitle { font-size: clamp(1rem, 3.5vw, 1.3rem); color: var(--cream); max-width: 620px; margin: 0 auto 30px; }

.hero__cta { display: flex; flex-direction: column; gap: 14px; align-items: center; margin-bottom: 24px; }

/* Adres w hero */
.hero__address {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cream); font-weight: 500; font-size: .98rem;
  background: rgba(46,28,19,.6); border: 1px solid rgba(232,176,75,.35);
  padding: 8px 18px; border-radius: 50px;
}
.hero__address .ico { color: var(--gold); }
.hero__cta .btn { width: 100%; max-width: 340px; }

.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__badges li {
  background: rgba(46,28,19,.75); border: 1px solid rgba(232,176,75,.35);
  padding: 8px 16px; border-radius: 50px; font-size: .9rem;
}
.hero__badges strong { color: var(--gold); }

/* ==================================================================
   3. O NAS
   ================================================================== */
.about { background: var(--bg-dark-2); }
.about__inner { display: grid; gap: 30px; }
.about__text p { margin-bottom: 14px; color: var(--text-muted); }
.about__text strong { color: var(--cream); }
.about__img {
  min-height: 240px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red-dark), var(--bg-card));
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(232,176,75,.4);
}
.placeholder-note { color: var(--gold); font-size: 1.1rem; font-weight: 500; }

/* ==================================================================
   4. MENU
   ================================================================== */
.menu { background: var(--bg-dark); }

/* Zakładki */
.menu__tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.menu__tab {
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 10px 18px; border-radius: 50px; cursor: pointer;
  background: var(--bg-card); color: var(--cream);
  border: 2px solid transparent; transition: .2s;
}
.menu__tab:hover { border-color: var(--gold); }
.menu__tab.is-active { background: var(--gold); color: var(--bg-dark); }

/* Panel / lista pozycji */
.menu__panel { display: grid; gap: 14px; }

/* Nagłówek cenowy dla pizzy (mała/średnia/duża) */
.menu__pricehead {
  display: none; /* pokazywany tylko na desktop */
  text-align: right; color: var(--gold); font-weight: 600; font-size: .8rem;
  padding-right: 4px; letter-spacing: .5px;
}
.menu__pricehead span { display: inline-block; width: 46px; text-align: center; }

/* Pojedyncza pozycja menu */
.menu-item {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 16px 18px; border: 1px solid rgba(232,176,75,.12);
  transition: border-color .2s, transform .2s;
}
.menu-item:hover { border-color: rgba(232,176,75,.4); transform: translateY(-2px); }
.menu-item.is-special { border-color: var(--gold); background: linear-gradient(135deg, rgba(232,121,31,.18), var(--bg-card)); }

.menu-item__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.menu-item__name { font-weight: 600; font-size: 1.08rem; color: var(--cream); }
.menu-item__num { color: var(--gold); font-weight: 700; margin-right: 6px; }
.menu-item__tag {
  display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  background: var(--orange); color: var(--bg-dark); padding: 2px 8px; border-radius: 6px; margin-left: 8px;
  letter-spacing: .5px;
}
.menu-item__desc { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }

/* Ceny */
.menu-item__prices { display: flex; gap: 8px; flex-shrink: 0; }
.price {
  display: flex; flex-direction: column; align-items: center;
  min-width: 46px; background: rgba(0,0,0,.25); border-radius: 8px; padding: 4px 6px;
}
.price__label { font-size: .62rem; color: var(--text-muted); text-transform: uppercase; }
.price__value { font-weight: 700; color: var(--gold); font-size: .95rem; }
.price--single .price__value { font-size: 1.1rem; }

.menu__note {
  margin-top: 24px; text-align: center; font-style: italic;
  color: var(--text-muted); background: var(--bg-dark-2);
  padding: 14px 18px; border-radius: var(--radius); border-left: 4px solid var(--gold);
}

/* ==================================================================
   5. GODZINY OTWARCIA
   ================================================================== */
.hours { background: var(--bg-dark-2); }
.hours__inner { max-width: 640px; margin: 0 auto; }
.hours__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }

.hours__status {
  font-weight: 700; padding: 6px 16px; border-radius: 50px; font-size: .9rem;
  border: 2px solid var(--text-muted); color: var(--text-muted);
}
.hours__status.is-open   { color: #6ee07a; border-color: #6ee07a; background: rgba(110,224,122,.1); }
.hours__status.is-closed { color: #ff7a6b; border-color: #ff7a6b; background: rgba(255,122,107,.1); }

.hours__table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.hours__table th, .hours__table td { padding: 13px 18px; text-align: left; }
.hours__table th { font-weight: 500; color: var(--cream); }
.hours__table td { text-align: right; color: var(--gold); font-weight: 600; }
.hours__table tr { border-bottom: 1px solid rgba(255,255,255,.05); }
.hours__table tr:last-child { border-bottom: 0; }
.hours__table td.is-closed { color: var(--text-muted); font-weight: 400; }
/* Wyróżnienie aktualnego dnia (dodawane przez JS) */
.hours__table tr.is-today { background: rgba(232,176,75,.14); }
.hours__table tr.is-today th { color: var(--gold); font-weight: 700; }

/* ==================================================================
   6. DOWÓZ
   ================================================================== */
.delivery { background: var(--bg-dark); }
.delivery__cards { display: grid; gap: 18px; margin-bottom: 24px; }
.delivery__card {
  background: var(--bg-card); border-radius: var(--radius); padding: 26px 20px; text-align: center;
  border: 1px solid rgba(232,176,75,.15);
}
.delivery__icon { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.delivery__card h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: 8px; }
.delivery__card p { color: var(--text-muted); }
.delivery__card strong { color: var(--cream); }
.delivery__phone { color: var(--gold); font-weight: 700; font-size: 1.3rem; }
.delivery__map-note { text-align: center; color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ==================================================================
   6b. RELACJE / INSTAGRAM (kółka Stories + lightbox)
   ================================================================== */
.stories { background: var(--bg-dark-2); }
.stories__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.stories__profile {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--gold);
  padding: 8px 16px; border: 2px solid var(--gold); border-radius: 50px; transition: .2s;
}
.stories__profile:hover { background: var(--gold); color: var(--bg-dark); }

/* Rząd kółek – przewijalny poziomo na mobile */
.stories__row {
  display: flex; gap: 18px; margin-top: 10px; padding: 6px 2px 14px;
  overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.stories__row::-webkit-scrollbar { height: 6px; }
.stories__row::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 6px; }

/* Pojedyncze kółko relacji (styl Instagram) */
.story {
  flex: 0 0 auto; scroll-snap-align: start; cursor: pointer;
  background: none; border: 0; padding: 0; text-align: center; width: 82px;
}
.story__ring {
  width: 82px; height: 82px; border-radius: 50%; padding: 3px;
  background: linear-gradient(45deg, var(--orange), var(--gold), var(--red));
  display: flex; transition: transform .2s;
}
.story:hover .story__ring, .story:focus-visible .story__ring { transform: scale(1.06); }
.story__ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bg-dark-2); background: var(--bg-card);
}
.story__label { display: block; font-size: .72rem; color: var(--text-muted); margin-top: 6px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.92); display: none;
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(92vw, 460px); max-height: 88vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: var(--shadow); background: var(--bg-card);
}
.lightbox__btn {
  position: absolute; background: rgba(46,28,19,.85); color: var(--cream);
  border: 1px solid rgba(232,176,75,.4); cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.lightbox__btn:hover { background: var(--gold); color: var(--bg-dark); }
.lightbox__close { top: 18px; right: 18px; font-size: 2rem; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ==================================================================
   7. KONTAKT
   ================================================================== */
.contact { background: var(--bg-dark-2); }
.contact__inner { display: grid; gap: 30px; }
.contact__list { list-style: none; margin: 20px 0; }
.contact__list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 1.05rem; }
.contact__icon { font-size: 1.3rem; }
.contact__list a { color: var(--gold); font-weight: 600; }

.contact__social { display: flex; gap: 12px; flex-wrap: wrap; }
.social-link {
  padding: 10px 20px; border-radius: 50px; border: 2px solid var(--gold);
  color: var(--gold); font-weight: 600; transition: .2s;
}
.social-link:hover { background: var(--gold); color: var(--bg-dark); }

.contact__map { min-height: 300px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact__map iframe { width: 100%; height: 100%; min-height: 300px; }

/* ==================================================================
   STOPKA
   ================================================================== */
.footer { background: #120a06; padding: 30px 0; border-top: 1px solid rgba(232,176,75,.15); }
.footer__inner { text-align: center; }
.footer__brand { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 8px; }
.footer__copy { color: var(--text-muted); font-size: .88rem; }
.footer__copy a { color: var(--gold); }
.footer__credit { color: var(--text-muted); font-size: .8rem; margin-top: 6px; opacity: .8; }
.footer__credit a { color: var(--gold); font-weight: 600; }

/* ==================================================================
   Sticky floating button (mobile)
   ================================================================== */
.floating-call {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--red); color: var(--white); font-weight: 700; font-size: 1.1rem;
  padding: 15px; border-radius: 50px; box-shadow: 0 8px 24px rgba(0,0,0,.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 8px 24px rgba(192,40,31,.5); }
  50%     { box-shadow: 0 8px 34px rgba(192,40,31,.85); }
}

/* ==================================================================
   Animacje on-scroll (fade-in) – aktywowane klasą .is-visible z JS
   ================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floating-call { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==================================================================
   RESPONSYWNOŚĆ – tablet i desktop
   ================================================================== */
@media (min-width: 600px) {
  .hero__cta { flex-direction: row; justify-content: center; }
  .hero__cta .btn { width: auto; }
  .about__inner { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .delivery__cards { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-left: auto; margin-right: auto; }
  .menu-item__desc { max-width: 70%; }
}

@media (min-width: 860px) {
  .section { padding: 80px 0; }
  .section__title { font-size: 2.8rem; }

  /* Navbar pełny */
  .nav__links { display: flex; flex-direction: row; position: static; background: none; padding: 0; box-shadow: none; border: 0; }
  .nav__toggle { display: none; }
  .nav__cta { flex-direction: row; gap: 8px; padding: 10px 18px; }
  .nav__cta-text { display: inline; }
  .nav__cta-number { display: none; }
  .nav__cta .btn__icon { display: inline; }

  .contact__inner { grid-template-columns: 1fr 1.2fr; }

  /* Ukryj floating button na desktopie – numer jest w navbarze */
  .floating-call { display: none; }

  /* Nagłówek cen widoczny na desktop */
  .menu__pricehead { display: block; }
  body { padding-bottom: 0 !important; }
}

/* Na mobile robimy miejsce na floating button, by nie zasłaniał stopki */
@media (max-width: 859px) {
  body { padding-bottom: 84px; }
}
