/* ===== Przedszkole Słoneczko — pastel yellow, childish theme ===== */

:root {
  --yellow:        #fff3b0;
  --yellow-soft:   #fff7cf;
  --yellow-deep:   #ffe066;
  --peach:         #ffd6a5;
  --mint:          #caffbf;
  --sky:           #a0e7ff;
  --pink:          #ffc6e0;
  --ink:           #5b4a2f;   /* ciepły ciemnobrązowy tekst */
  --ink-soft:      #8a7656;
  --card:          #fffdf5;
  --white:         #ffffff;
  --radius:        22px;
  --shadow:        0 10px 30px rgba(120, 100, 40, 0.12);
  --shadow-sm:     0 4px 14px rgba(120, 100, 40, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Fredoka", "Baloo 2", system-ui, sans-serif;
  background-color: var(--yellow);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .logo-text {
  font-family: "Baloo 2", "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--yellow-deep);
  color: var(--ink);
  box-shadow: 0 6px 0 #e6c34d;
}
.btn-primary:hover { background: #ffd84d; }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 6px 0 #f0e6c8;
}
.btn-ghost:hover { background: #fffaf0; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 207, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--yellow-deep);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-sun {
  font-size: 1.7rem;
  display: inline-block;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
  transition: color .2s;
}
.nav-links a:hover { color: #c99a2e; }
.btn-enroll {
  background: var(--yellow-deep);
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 0 #e6c34d;
}
.btn-enroll:hover { background: #ffd84d; color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: .3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 70px 0 120px;
  background:
    radial-gradient(circle at 85% 15%, rgba(160,231,255,.45), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(202,255,191,.4), transparent 45%),
    var(--yellow);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}
.badge {
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  padding: 7px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--ink);
}
.hl { color: #e6a700; }
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 20px 0 28px;
  max-width: 480px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-photo { position: relative; }
.cloud {
  position: absolute;
  font-size: 3rem;
  opacity: .85;
  animation: float 6s ease-in-out infinite;
}
.cloud-1 { top: -10px; left: -20px; }
.cloud-2 { bottom: -10px; right: -10px; animation-delay: 1.5s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
}
.wave svg { width: 100%; height: 120px; display: block; }
.wave path { fill: var(--yellow-soft); }

/* ===== Photo placeholder ===== */
.photo-frame {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  border: 4px dashed var(--yellow-deep);
}
.photo-frame.round { border-radius: 50%; }
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, var(--yellow-soft), var(--yellow-soft) 14px, #fff1cf 14px, #fff1cf 28px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-frame.round .photo-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 50px;
  color: var(--ink);
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 70px; height: 6px;
  background: var(--yellow-deep);
  border-radius: 999px;
  margin: 14px auto 0;
}

/* ===== About ===== */
.about { background: var(--yellow-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}
.about-text p { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 22px; }
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.feature-list .ico { font-size: 1.5rem; }

/* ===== Offer cards ===== */
.offer { background: var(--yellow); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s;
  border: 3px solid #fff1cf;
}
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card-emoji {
  font-size: 3rem;
  margin-bottom: 12px;
  display: inline-block;
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }
.card:nth-child(2) .card-emoji { animation-delay: .3s; }
.card:nth-child(3) .card-emoji { animation-delay: .6s; }
.card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); }

/* ===== Gallery ===== */
.gallery { background: var(--yellow-soft); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-grid .photo-placeholder { aspect-ratio: 1 / 1; }

/* ===== Team ===== */
.team { background: var(--yellow); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.team-card { text-align: center; }
.team-card .photo-frame {
  width: 200px;
  margin: 0 auto 18px;
}
.team-card h3 { font-size: 1.3rem; }
.team-card p { color: var(--ink-soft); }

/* ===== Contact ===== */
.contact { background: var(--yellow-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-lead { color: var(--ink-soft); margin-bottom: 28px; font-size: 1.08rem; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.contact-list .ico { font-size: 1.6rem; }
.contact-list .lbl { display: block; font-size: .85rem; color: var(--ink-soft); }
.contact-list .val { display: block; font-weight: 700; font-size: 1.15rem; }

.contact-form {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid var(--yellow-deep);
}
.contact-form h3 { font-size: 1.5rem; margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 16px;
  font-size: .95rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 2px solid #f0e6c8;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fffdf5;
  transition: border .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--yellow-deep);
}
.contact-form .btn { width: 100%; margin-top: 6px; }
.form-note {
  margin-top: 14px;
  color: #4a8a3a;
  font-weight: 600;
  text-align: center;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--yellow-deep);
  padding: 40px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.logo-footer .logo-text { color: var(--ink); }
.footer-tag { color: var(--ink-soft); font-weight: 600; margin-top: 4px; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { color: var(--ink-soft); font-size: .9rem; text-align: right; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(300px, 80%);
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: var(--yellow-soft);
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.1);
    padding: 30px;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.3rem; }

  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 420px; margin-inline: auto; }

  .cards,
  .gallery-grid,
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 520px) {
  .cards,
  .gallery-grid,
  .team-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
