/* ==========================================================================
   Pizzeria Luca — globalne style + header
   Inspiracja: szablon "Panpie" (radiustheme)
   Paleta: czerwień #f43127 / żółć #fcb302 / krem #fdf6ec
   ========================================================================== */

/* ---------- 1. Reset / podstawy ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-primary: #f43127;
  --color-primary-dark: #d2261d;
  --color-secondary: #fcb302;
  --color-secondary-dark: #e29c00;
  --color-bg: #fdf6ec;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-border: rgba(26, 26, 26, 0.08);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);

  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Pacifico", "Barlow", cursive;

  --header-height: 100px;
  --container-max: 1240px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: url("../img/bg-pattern.svg");
  background-repeat: repeat;
  background-size: 600px 600px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Accessibility helper */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- 2. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   3. HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #f4ecdf;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  box-shadow: none;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
}

/* ---------- 3.1. Nawigacja desktop ---------- */
.primary-nav {
  justify-self: start;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.is-active {
  color: var(--color-primary);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a.is-active::after {
  width: 100%;
}

/* ---------- 3.2. Logo / marka ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

.brand:hover {
  opacity: 0.88;
}

.brand-logo {
  height: 78px;
  width: auto;
  display: block;
}

.brand-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.brand-icon img {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 38px;
  line-height: 1;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.brand-tagline {
  margin-top: 4px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-left: 2px;
}

/* ---------- 3.3. Hot line ---------- */
.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.phone-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(244, 49, 39, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.phone-badge::before {
  content: "";
  position: absolute;
}

.phone-badge:hover,
.phone-badge:focus-visible {
  background: var(--color-primary-dark);
  box-shadow: 0 8px 22px rgba(244, 49, 39, 0.45);
}

.phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.phone-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.phone-number {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  margin-top: 2px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.phone-number:hover,
.phone-number:focus-visible {
  color: var(--color-primary);
}

/* ---------- 3.4. Hamburger (mobile toggle) ---------- */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--color-primary);
  color: #fff;
  justify-self: end;
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 3.5. Mobile nav (overlay — nie przesuwa strony) ---------- */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.mobile-nav-list li + li {
  border-top: 1px solid var(--color-border);
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-list a:hover,
.mobile-nav-list a:focus-visible,
.mobile-nav-list a.is-active {
  color: var(--color-primary);
  background-color: rgba(244, 49, 39, 0.06);
}

.mobile-nav-phone a {
  color: var(--color-primary);
  font-size: 16px;
}

.mobile-nav-phone i {
  color: var(--color-primary);
}

/* ==========================================================================
   4. PRZYCISKI (reużywalne)
   ========================================================================== */

.btn {
  --btn-bg: var(--color-secondary);
  --btn-bg-hover: var(--color-secondary-dark);
  --btn-fg: var(--color-text);

  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: transform 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  isolation: isolate;
}

/* Wypełnienie "od środka" przy hover (efekt jak w slider buttonach) */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--btn-bg-hover);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: -1;
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.btn i {
  font-size: 14px;
  transition: transform 0.25s ease;
}

.btn:hover i,
.btn:focus-visible i {
  transform: translateX(2px);
}

.btn--primary {
  --btn-fg: #fff;
  color: #fff;
  box-shadow: 0 14px 26px rgba(252, 179, 2, 0.35);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 18px 32px rgba(252, 179, 2, 0.45);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: transparent;
  color: var(--color-text);
  padding: 16px 18px;
}

.btn--ghost::before {
  display: none;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--color-primary);
}

.btn--ghost:hover i,
.btn--ghost:focus-visible i {
  transform: translateX(6px);
}

/* ==========================================================================
   5. HERO
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  /* Wypełnia cały widoczny ekran po odjęciu sticky headera */
  min-height: calc(100vh - var(--header-height));
  padding: clamp(40px, 6vh, 72px) 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #f4ecdf;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/slider_bg01-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-inner {
  position: relative;
  display: grid;
  /* lewa kolumna nieco węższa od prawej (tekst | pizza) */
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 0;
  width: 100%;
}

/* ---------- 5.1. Tekst — slide-in stagger ---------- */
.hero-content {
  position: relative;
  z-index: 2;
  padding-right: 32px;
}

.hero-tag,
.hero-title,
.hero-points li,
.hero-actions {
  opacity: 0;
  transform: translateX(-50px);
  animation: hero-slide-in 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-tag                    { animation-delay: 0.10s; }
.hero-title                  { animation-delay: 0.30s; }
.hero-points li:nth-child(1) { animation-delay: 0.52s; }
.hero-points li:nth-child(2) { animation-delay: 0.66s; }
.hero-points li:nth-child(3) { animation-delay: 0.80s; }
.hero-actions                { animation-delay: 1.05s; }

@keyframes hero-slide-in {
  to { opacity: 1; transform: translateX(0); }
}

/* Red ribbon tag — pennant pointing RIGHT jak w oryginale */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 32px 9px 20px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(0% 0%, calc(100% - 16px) 0%, 100% 50%, calc(100% - 16px) 100%, 0% 100%);
}

.hero-tag i { font-size: 13px; }

.hero-title {
  margin: 20px 0 26px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.07;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-text);
}

.hero-points {
  display: grid;
  gap: 11px;
  margin-bottom: 38px;
  font-size: 16px;
  color: #2a2a2a;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-check-icon {
  flex: 0 0 22px;
  font-size: 22px;
  color: var(--color-primary);
  filter: drop-shadow(0 3px 6px rgba(244, 49, 39, 0.35));
  line-height: 1;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 5.2. Pizza — duże, bez obrotu ---------- */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile pizza (między tytułem a checkmarkami) — domyślnie ukryta */
.hero-pizza-mobile {
  display: none;
}

.hero-pizza {
  /* wypełnia całą prawą kolumnę, wybiega za krawędź sekcji */
  position: relative;
  z-index: 2;      /* nad dekoracjami w hero-visual */
  width: 120%;
  max-width: 900px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.16));
  transform-origin: 50% 50%;
  /* tylko jednorazowe wejście, bez obrotu w pętli */
  opacity: 0;
  animation: pizza-enter 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s forwards;
  will-change: transform;
}

@keyframes pizza-enter {
  from {
    opacity: 0;
    transform: scale(0.72) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ---------- 5.3. Dekoracje — pozycje 1:1 ze wzorem + parallax przez JS ---------- */
/*
  Każdy .hero-deco ma w HTML atrybut data-speed.
  JS ustawia CSS-var(--px) i --py, które poniżej aplikujemy do translate.
  Dla przeglądarek bez JS dekoracje są statyczne w docelowych pozycjach.
*/
.hero-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  /* JS ustawia tylko --px (poziom). Pionowo stoi w miejscu. */
  transform: translateX(var(--px, 0px));
  opacity: 0;
  animation: deco-appear 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

/* Pieczarka — LEWY GÓRNY RÓG hero section (statyczna) */
.hero-deco--mushroom {
  top: -10px;
  left: 20px;
  width: 130px;
  animation-delay: 0.25s;
}

/* Pomidory — PRAWY GÓRNY RÓG pizzy, za nią (wewnątrz hero-visual) */
.hero-deco--tomatoes {
  position: absolute;
  top: -30px;
  right: -150px;  /* 130px bardziej w prawo niż wcześniej */
  width: 340px;
  animation-delay: 0.40s;
  z-index: 1;
}

/* Bazylia — LEWY DOLNY RÓG pizzy, za nią (wewnątrz hero-visual) */
.hero-deco--basil {
  position: absolute;
  bottom: -20px;
  left: -30px;
  width: 260px;   /* ~2× poprzedniego 140px */
  animation-delay: 0.55s;
  z-index: 1;     /* za pizzą */
}

/* Papryczka — LEWY DOLNY RÓG sekcji (statyczna) */
.hero-deco--chili {
  bottom: 10px;
  left: 10px;
  width: 170px;
  transform: translateX(var(--px, 0px)) rotate(-12deg);
  animation-name: deco-appear-chili;
  animation-delay: 0.70s;
}

@keyframes deco-appear {
  from { opacity: 0; transform: translateX(var(--px, 0px)) translateY(24px); }
  to   { opacity: 1; transform: translateX(var(--px, 0px)) translateY(0); }
}

@keyframes deco-appear-chili {
  from { opacity: 0; transform: translateX(var(--px, 0px)) translateY(24px) rotate(-12deg); }
  to   { opacity: 1; transform: translateX(var(--px, 0px)) translateY(0)    rotate(-12deg); }
}

/* ==========================================================================
   6. RESPONSYWNOŚĆ
   ========================================================================== */

/* Tablet i mniejsze — chowamy poziome menu, pokazujemy hamburger */
@media (max-width: 991.98px) {
  :root {
    --header-height: 86px;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .brand {
    justify-self: start;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-contact {
    /* Telefon w prawym górnym, ale przed hamburgerem */
    order: 0;
  }

  /* Hero — jedna kolumna */
  .hero {
    padding: 40px 0 64px;
    text-align: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
  }

  .hero-content {
    grid-column: 1 / -1;
    max-width: 560px;
    margin: 0 auto;
    padding-right: 0;
  }

  .hero-visual {
    display: none;
  }

  /* Pokaż mobilną pizzę (między tytułem a checkmarkami) */
  .hero-pizza-mobile {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 16px 0 8px;
    /* Dodatkowy overflow żeby deco nie były ucinane */
    overflow: visible;
  }

  /* Pizza przesunięta w lewo */
  .mobile-pizza-img {
    width: 80%;
    max-width: 340px;
    height: auto;
    object-fit: contain;
    transform: translateX(-10%);
    position: relative;
    z-index: 2;
  }

  /* Mięta — lewy dolny róg */
  .mobile-deco {
    position: absolute;
    pointer-events: none;
    z-index: 1;
  }

  .mobile-deco--basil {
    bottom: -10px;
    left: 2%;
    width: 90px;
  }

  .hero-points {
    text-align: left;
    justify-items: start;
  }
  .hero-points li { justify-content: flex-start; }
  .hero-actions   { justify-content: center; }

  /* Dekoracje zmniejszone na tablet */
  .hero-deco--mushroom { width: 80px; top: 0; left: 8px; }
  .hero-deco--chili    { width: 110px; bottom: 0; left: 8px; }
  /* tomatoes i basil są wewnątrz hero-visual — hidden razem z hero-visual */
}

/* Mniejszy tablet — chowamy tekst telefonu, zostawiamy ikonę */
@media (max-width: 767.98px) {
  :root {
    --header-height: 76px;
  }

  .container {
    padding: 0 16px;
  }

  .brand-logo {
    height: 54px;
  }

  .brand-icon {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 30px;
  }

  .brand-tagline {
    font-size: 10px;
    letter-spacing: 0.4em;
  }

  .phone-text {
    display: none;
  }

  .phone-badge {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  /* Hero — mobile */
  .hero {
    padding: 28px 0 48px;
  }

  .hero-tag {
    font-size: 12px;
    padding: 8px 28px 8px 18px;
  }

  .hero-title {
    margin: 16px 0 20px;
  }

  .hero-title br { display: none; }

  .hero-points {
    font-size: 15px;
    gap: 10px;
    margin-bottom: 28px;
    display: inline-grid;
    text-align: left;
  }

  .hero-pizza {
    width: 85%;
    max-width: 340px;
  }

  /* Na mobile chowamy wszystkie deco w hero-section (ciasno) */
  .hero-deco--mushroom,
  .hero-deco--chili { display: none; }
  /* tomatoes i basil w hero-visual są automatycznie ukryte razem z hero-visual */

  .btn {
    padding: 14px 24px;
    font-size: 13px;
  }
}

/* Bardzo mały telefon — kompaktowy układ */
@media (max-width: 419.98px) {
  .brand-logo {
    height: 46px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 26px;
  }

  .brand-tagline {
    font-size: 9px;
    letter-spacing: 0.35em;
  }

  .header-inner {
    gap: 8px;
  }

  .hero-pizza {
    max-width: 290px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .btn {
    justify-content: center;
  }
}

/* Większe ekrany — trochę luzu */
@media (min-width: 1280px) {
  .nav-list {
    gap: 38px;
  }
}

/* ==========================================================================
   7. WSPÓLNE KOMPONENTY SEKCJI
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-kicker {
  display: inline-block;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
}

.section-kicker::before,
.section-kicker::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  vertical-align: middle;
  margin: 0 10px;
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 40px);
  color: var(--color-text);
  line-height: 1.1;
  margin: 0 0 14px;
}

.section-desc {
  font-size: 15px;
  color: var(--color-muted);
  margin: 0;
}

/* Przycisk ciemny (O nas) */
.btn--dark {
  --btn-bg: var(--color-text);
  --btn-bg-hover: #333;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

/* ==========================================================================
   8. O NAS (ABOUT)
   ========================================================================== */

.about {
  padding: 96px 0;
  background: #fff;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}

/* Lewa kolumna — obraz */
.about-visual {
  position: relative;
}

.about-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.10);
}

/* Badge "12+ lat tradycji" */
.about-years {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  box-shadow: 0 12px 28px rgba(252, 179, 2, 0.4);
}

.about-years-num {
  display: block;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.about-years-txt {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  margin-top: 4px;
  max-width: 72px;
}

/* Prawa kolumna — tekst */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.about-content .section-kicker { margin-bottom: 14px; }

.about-subtitle {
  font-size: 17px;
  color: var(--color-muted);
  margin: 10px 0 20px;
  font-style: italic;
}

.about-text {
  font-size: 16px;
  line-height: 1.75;
  color: #444;
  margin: 0 0 32px;
}

/* ==========================================================================
   9. MENU / CENNIK
   ========================================================================== */

.menu-section {
  padding: 96px 0;
  background: var(--color-bg);
}

/* Nagłówek kolumn rozmiarów */
.menu-size-bar {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  gap: 0 16px;
  padding: 0 0 10px;
  max-width: 960px;
  margin: -28px auto 0;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: right;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 4px;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}

/* Każda pozycja */
.menu-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

.menu-item:last-child,
.menu-item:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}

/* Gdy JS jest aktywny, img jest wewnątrz .menu-item-img-btn */
.menu-item-img {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  border: 3px solid #fff;
  display: block;
}

.menu-item-body {
  flex: 1;
  min-width: 0;
}

.menu-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.menu-item-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-dots {
  flex: 1;
  min-width: 12px;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.15);
  height: 0;
  margin: 0 4px;
}

.menu-item-prices {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.menu-item-prices b {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.menu-item-prices--custom b {
  font-size: 13px;
  color: var(--color-muted);
}

.menu-item-ing {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.4;
}

/* Specjalna pozycja #40 */
.menu-item--special .menu-item-name {
  color: var(--color-primary);
}

/* ==========================================================================
   10. DOWÓZ
   ========================================================================== */

.delivery-section {
  padding: 96px 0;
  background: #fff;
}

.delivery-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

/* Info cards */
.delivery-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.delivery-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 28px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.delivery-card i {
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.delivery-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.delivery-card p {
  font-size: 15px;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.55;
}

/* Red card — musi być PO regułach ogólnych żeby wygrać z .delivery-card p */
.delivery-card--red {
  background: var(--color-primary);
  border-color: transparent;
}

.delivery-card--red i {
  color: rgba(255, 255, 255, 0.9);
}

.delivery-card--red h3 {
  color: #fff;
}

.delivery-card--red p {
  color: rgba(255, 255, 255, 0.88);
}

.delivery-card--red strong {
  color: #fff;
}

/* Strefy dowozu */
.delivery-zones-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 20px;
}

.delivery-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.delivery-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.10);
}

.dz-places {
  font-size: 15px;
  color: var(--color-text);
  flex-shrink: 0;
  max-width: 65%;
}

.dz-dots {
  flex: 1;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
  height: 0;
  min-width: 12px;
}

.dz-price {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   11. MAPA DOWOZU (Leaflet)
   ========================================================================== */

.delivery-map-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#delivery-map {
  width: 100%;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  z-index: 0; /* Leaflet musi mieć z-index */
}

.map-legend {
  background: var(--color-bg);
  border-radius: 10px;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
}

.map-legend-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.map-legend-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text);
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(0,0,0,0.12);
}

/* Marker pizzerii w Leaflet */
.map-pizzeria-marker {
  background: transparent !important;
  border: none !important;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.7);
}

/* Dekoracyjne shapes footera */
.footer-shape {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.50;
  filter: brightness(0) invert(1);
}

.footer-shape--1 {
  top: -10px;
  left: -10px;
  width: 220px;
  transform: rotate(-5deg);
}

.footer-shape--2 {
  bottom: 20px;
  right: 4%;
  width: 160px;
  transform: rotate(10deg);
}

.footer-shape--3 {
  top: 20%;
  right: 26%;
  width: 110px;
  transform: rotate(-8deg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
}

.footer-brand-link {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand-link .brand-name {
  color: #fff;
}

.footer-brand-link .brand-tagline {
  color: rgba(255, 255, 255, 0.5);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin: 16px 0 0;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-nav ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--color-secondary);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.footer-contact i {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact a:hover {
  color: var(--color-secondary);
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bar p { margin: 0; }

/* ==========================================================================
   13. RESPONSYWNOŚĆ — NOWE SEKCJE
   ========================================================================== */

@media (max-width: 1100px) {
  .map-legend-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 28px;
  }

  .about-years {
    right: 0;
    bottom: -16px;
    width: 100px;
    height: 100px;
  }

  .about-years-num {
    font-size: 28px;
  }

  .about-years-txt {
    font-size: 9px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .menu-item:last-child {
    border-bottom: none;
  }

  .delivery-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .about,
  .menu-section,
  .delivery-section {
    padding: 64px 0;
  }

  #delivery-map {
    height: 320px;
  }

  .menu-size-bar {
    display: none;
  }

  .menu-item-img,
  .menu-item-img-btn {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
  }

  /* Na mobilce: nazwa + ceny w jednej linii, dots zastąpione myślnikiem */
  .menu-item-top {
    flex-wrap: nowrap;
    gap: 4px;
    align-items: baseline;
  }

  .menu-item-name {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Myślnik zamiast kropkowanej linii */
  .menu-dots {
    display: none;
  }

  .menu-item-name::after {
    content: " —";
    color: var(--color-muted);
    font-weight: 400;
  }

  .menu-item-prices {
    flex-direction: row;
    gap: 0;
    align-items: center;
    flex-shrink: 0;
  }

  .menu-item-prices b {
    font-size: 14px;
  }

  /* Separator "/" między ceną S a L */
  .menu-item-prices b + b::before {
    content: " / ";
    color: var(--color-muted);
    font-weight: 400;
    font-size: 13px;
  }

  .map-legend-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 48px 24px 36px;
  }

  .footer-desc {
    max-width: 100%;
  }
}

@media (max-width: 479.98px) {
  #delivery-map {
    height: 260px;
  }
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

/* Przycisk otwierający — owijamy img w button przez JS */
.menu-item-img-btn {
  display: block;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item-img-btn:hover,
.menu-item-img-btn:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  outline: none;
}

.menu-item-img-btn .menu-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 3px solid #fff;
}

/* Overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  animation: lb-fade-in 0.22s ease forwards;
}

@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 560px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  animation: lb-scale-in 0.25s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  object-fit: contain;
}

@keyframes lb-scale-in {
  from { opacity: 0; transform: scale(0.86); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.1);
}

/* Redukcja animacji dla użytkowników, którzy ich nie chcą */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
