/* =========================================================
   Chusty & Sensoryka — wspólne style
   Paleta: jasne, pastelowe. Czcionki: Quicksand + Nunito.
   ========================================================= */

:root {
  /* Pastelowa paleta */
  --peach:      #ffe3d3;
  --peach-deep: #ffc9ad;
  --mint:       #d8f3ec;
  --mint-deep:  #b6e6d8;
  --lavender:   #e9e3ff;
  --lavender-deep:#d4c7ff;
  --butter:     #fff4d6;
  --rose:       #ffe0ec;
  --cream:      #fffaf5;
  --ink:        #5b5364;   /* miękki, ciemny tekst — nie czysta czerń */
  --ink-soft:   #8a8294;
  --white:      #ffffff;

  /* Akcenty */
  --accent:        #ff9d7a;  /* brzoskwiniowy */
  --accent-2:      #7fd1bd;  /* miętowy */
  --accent-3:      #b69dff;  /* lawendowy */

  --radius:    22px;
  --radius-sm: 14px;
  --shadow:    0 14px 40px -18px rgba(120, 100, 140, 0.45);
  --shadow-sm: 0 8px 22px -14px rgba(120, 100, 140, 0.5);

  --font-head: 'Quicksand', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

/* Miękkie, ruchome tło z pastelowych plam */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
body::before {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--peach), transparent 70%);
  top: -120px; left: -120px;
  animation: drift 22s var(--ease) infinite alternate;
}
body::after {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--lavender), transparent 70%);
  bottom: -160px; right: -160px;
  animation: drift 26s var(--ease) infinite alternate-reverse;
}
@keyframes drift {
  to { transform: translate(60px, 40px) scale(1.15); }
}

h1, h2, h3, h4, .logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(1080px, 92vw);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
}

/* =========================================================
   NAWIGACJA
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 250, 245, 0.72);
  border-bottom: 1px solid rgba(180, 160, 200, 0.16);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

/* Miejsce na LOGO — podmień zawartość .logo-mark na <img src="..."> */
.brand { display: flex; align-items: center; gap: 0.7rem; }
.logo-mark {
  width: 48px; height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--peach), var(--lavender));
  box-shadow: var(--shadow-sm);
  animation: floaty 5s var(--ease) infinite alternate;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-mark .placeholder {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.62rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.05;
}
@keyframes floaty {
  to { transform: translateY(-5px) rotate(-2deg); }
}
.logo-text { font-size: 1.18rem; letter-spacing: -0.01em; }
.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-link {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 6px;
  width: 0; height: 3px;
  border-radius: 3px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}
.nav-link:hover { background: rgba(255, 157, 122, 0.12); }
.nav-link:hover::after { width: 40%; }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { width: 55%; }

.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  width: 42px; height: 42px;
  border-radius: 12px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* =========================================================
   PRZYCISKI (z efektem ripple — patrz main.js)
   ========================================================= */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  isolation: isolate;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(-1px) scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--peach-deep));
  color: #6b3a26;
}
.btn-mint {
  background: linear-gradient(135deg, var(--accent-2), var(--mint-deep));
  color: #2c5b50;
}
.btn-ghost {
  background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(180,160,200,0.3);
}

/* fala (ripple) tworzona w JS */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.6);
  animation: ripple 0.6s var(--ease);
  pointer-events: none;
  z-index: 0;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* =========================================================
   HERO (strona główna)
   ========================================================= */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 2rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0.6rem 0 1rem;
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 1.12rem; color: var(--ink); max-width: 42ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* Miejsce na ZDJĘCIE */
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 36px;
  background:
    linear-gradient(135deg, var(--mint) 0%, var(--lavender) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .photo-hint {
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 1rem;
}
.hero-photo .photo-hint span { font-size: 2.4rem; display: block; margin-bottom: 0.4rem; }
/* delikatne, ozdobne kółka */
.hero-photo::after {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  top: -40px; right: -30px;
  animation: floaty 6s var(--ease) infinite alternate;
}
.blob-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
  animation: floaty 4.5s var(--ease) infinite alternate-reverse;
}
.blob-badge b { color: var(--accent); }

/* =========================================================
   SEKCJE / KARTY
   ========================================================= */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { text-align: center; max-width: 56ch; margin: 0 auto 2.4rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 0.4rem 0; }
.section-head p { color: var(--ink-soft); }

.cards { display: grid; gap: 1.4rem; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(180,160,200,0.1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card .icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.icon.peach { background: var(--peach); }
.icon.mint  { background: var(--mint); }
.icon.lav   { background: var(--lavender); }
.icon.rose  { background: var(--rose); }
.icon.butter{ background: var(--butter); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); }

/* Duże kafle wyboru (2 linki na stronie głównej) */
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.6rem; }
.choice {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 28px;
  padding: 2.4rem;
  min-height: 240px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.choice:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.choice.szal { background: linear-gradient(150deg, var(--peach), var(--rose)); }
.choice.senso { background: linear-gradient(150deg, var(--mint), var(--lavender)); }
.choice .choice-emoji {
  font-size: 3rem;
  display: inline-block;
  transition: transform 0.45s var(--ease);
}
.choice:hover .choice-emoji { transform: scale(1.15) rotate(-8deg); }
.choice h3 { font-size: 1.7rem; margin: 0.8rem 0 0.4rem; }
.choice p { color: #6f5d6b; max-width: 34ch; }
.choice .go {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.2rem;
  font-family: var(--font-head); font-weight: 700;
}
.choice .go .arrow { transition: transform 0.35s var(--ease); }
.choice:hover .go .arrow { transform: translateX(6px); }
.choice::before {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  right: -50px; bottom: -50px;
  transition: transform 0.5s var(--ease);
}
.choice:hover::before { transform: scale(1.25); }

/* =========================================================
   PAGE HEADER (podstrony)
   ========================================================= */
.page-head {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem;
}
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.5rem 0; }
.page-head p { color: var(--ink-soft); max-width: 56ch; margin-inline: auto; }

/* =========================================================
   CENNIK
   ========================================================= */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.price-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(180,160,200,0.12);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--accent); }
.price-card.featured::before {
  content: "Najczęściej wybierane";
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--peach-deep));
  color: #6b3a26;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.72rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.price-card h3 { font-size: 1.3rem; }
.price-card .price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--accent);
  margin: 0.6rem 0;
}
.price-card .price small { font-size: 0.95rem; color: var(--ink-soft); font-weight: 600; }
.price-card ul { list-style: none; margin: 1rem 0 1.4rem; }
.price-card li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.35rem 0;
  color: var(--ink-soft);
}
.price-card li::before { content: "✦"; color: var(--accent-2); flex-shrink: 0; }
.price-card .btn { width: 100%; justify-content: center; }

/* tabela / info dla domów kultury i grup */
.info-table {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.6rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.info-table .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-sm);
  align-items: center;
  transition: background 0.3s var(--ease);
}
.info-table .row:not(.head):hover { background: var(--cream); }
.info-table .row.head {
  font-family: var(--font-head); font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint), var(--lavender));
}
.info-table .row + .row { border-top: 1px solid rgba(180,160,200,0.1); }

.pill {
  display: inline-block;
  background: var(--butter);
  color: #8a6d00;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}

/* lista placówek (domy kultury) */
.venues { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.venue {
  display: flex; gap: 0.9rem; align-items: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease);
}
.venue:hover { transform: translateX(6px); }
.venue .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-2); flex-shrink: 0;
}
.venue b { font-family: var(--font-head); }
.venue span { display: block; color: var(--ink-soft); font-size: 0.9rem; }

/* =========================================================
   CTA / KONSULTACJA baner
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--lavender), var(--peach));
  border-radius: 32px;
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.cta-band p { color: #6f5d6b; max-width: 50ch; margin: 0.6rem auto 1.4rem; }

/* =========================================================
   STOPKA
   ========================================================= */
.footer {
  margin-top: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(180,160,200,0.16);
  color: var(--ink-soft);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
}
.footer a:hover { color: var(--accent); }

/* =========================================================
   ANIMACJE WEJŚCIA (reveal on scroll — patrz main.js)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
/* opóźnienia kaskadowe */
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; margin-inline: auto; order: -1; }
  .cards.two, .cards.three, .choice-grid,
  .price-grid, .venues { grid-template-columns: 1fr; }
  .info-table .row { grid-template-columns: 1fr; gap: 0.3rem; }
  .info-table .row.head { display: none; }
  .info-table .row span.label { font-weight: 700; color: var(--ink); font-family: var(--font-head); }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    padding: 0.5rem;
    box-shadow: var(--shadow);
    border-radius: 0 0 20px 20px;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-links.open { transform: scaleY(1); opacity: 1; }
  .nav-link { text-align: center; padding: 0.9rem; }
}

/* Szacunek dla osób z ograniczeniem ruchu */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
