/* ============================================================
   Home page visual refresh - loaded only by index.html.
   Mirrors the "O nas" design language: gradient hero with a
   bobbing frog + badge, gradient underline bars on headings,
   tilted pastel backdrop behind the photo, color-topped tiles
   that lift on hover, and the games CTA fused into one card.
   ============================================================ */

/* ---------- hero (witaj) ---------- */
.home-hero {
  background: linear-gradient(180deg, var(--pale-gold) 0%, #fdfbf5 100%);
  padding: 4.4rem 0 3.8rem;
}

/* soft color blobs so the section never feels empty */
.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.home-hero::before {
  width: 360px;
  height: 360px;
  left: -130px;
  top: -90px;
  background: radial-gradient(circle, rgba(95, 183, 75, 0.18), transparent 65%);
}
.home-hero::after {
  width: 440px;
  height: 440px;
  right: -150px;
  bottom: -170px;
  background: radial-gradient(circle, rgba(0, 139, 182, 0.15), transparent 65%);
}

.home-hero .hero-frog {
  display: block;
  height: 112px;
  width: auto;
  margin: 0 auto 1rem;
  animation: frog-bob 3.2s ease-in-out infinite;
  filter: drop-shadow(0 8px 14px rgba(95, 183, 75, 0.25));
}

@keyframes frog-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-9px) rotate(3deg); }
}

.home-hero .hero-badge {
  display: inline-block;
  background: #fff;
  color: var(--secondary-teal);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(46, 61, 73, 0.08);
  margin-bottom: 1rem;
}

.home-hero h1 { margin: 0.2rem 0 0.8rem; }
.home-hero p { margin-bottom: 1.4rem; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 1.7rem;
  max-width: 640px;
}
.hero-chip {
  background: #fff;
  border: 1px solid #eadfc3;
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-text);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(46, 61, 73, 0.05);
}

@media (max-width: 560px) {
  .home-hero { padding: 3.4rem 0 3rem; }
  .home-hero h1 { font-size: 2.2rem; }
  .home-hero .hero-frog { height: 88px; }
}

/* ---------- section headings: gradient underline bar ---------- */
.about-preview .about-text h2 {
  position: relative;
  padding-bottom: 0.7rem;
  margin-bottom: 1.2rem;
}
.about-preview .about-text h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
}

/* ---------- o nas teaser: pastel backdrop behind the photo ---------- */
.home-photo-frame { position: relative; }
@media (min-width: 820px) {
  .home-photo-frame::before {
    content: "";
    position: absolute;
    inset: 18px -14px -14px 18px;
    background: linear-gradient(135deg, rgba(95, 183, 75, 0.18), rgba(0, 139, 182, 0.16));
    border-radius: 22px;
    transform: rotate(2.5deg);
  }
}
.home-photo-frame img { position: relative; }

/* program tile styles (color bars, hover lift) live in style.css so the
   home "Nasze programy" grid and the offer page "Nasza oferta" grid match */

/* ---------- games CTA: one fused column card ---------- */
.gry-cta { background: #fdfbf5; }

.gry-card {
  position: relative;
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(95, 183, 75, 0.13), rgba(0, 139, 182, 0.13));
  border: 1px solid #e3efdc;
  border-radius: 26px;
  padding: 2.6rem 2rem;
  box-shadow: 0 6px 24px rgba(46, 61, 73, 0.07);
}
.gry-card::before,
.gry-card::after {
  position: absolute;
  font-size: 3.2rem;
  opacity: 0.16;
  pointer-events: none;
}
.gry-card::before {
  content: "🧩";
  left: 22px;
  top: 16px;
  transform: rotate(-12deg);
}
.gry-card::after {
  content: "🎲";
  right: 24px;
  bottom: 14px;
  transform: rotate(14deg);
}

.gry-card h2 { margin: 0; }
.gry-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted-text);
}
.gry-card .button-primary { margin-top: 0.4rem; }

@media (max-width: 560px) {
  .gry-card { padding: 2.1rem 1.4rem; }
  .gry-card::before, .gry-card::after { font-size: 2.4rem; }
}
