/* Sluníčko – soukromá školka Ostrava */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/baloo2-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/baloo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: oklch(98% 0.012 85);
  --text: oklch(28% 0.02 90);
  --text-soft: oklch(42% 0.02 90);
  --text-softer: oklch(45% 0.02 90);
  --text-faint: oklch(50% 0.02 90);
  --link: oklch(45% 0.12 220);
  --link-hover: oklch(35% 0.14 220);
  --border: oklch(90% 0.01 85);
  --border-light: oklch(92% 0.01 85);
  --topbar-bg: oklch(30% 0.02 90);
  --topbar-text: oklch(96% 0.01 85);
  --header-bg: oklch(100% 0 0 / 0.92);
  --logo-text: oklch(30% 0.05 60);
  --accent: oklch(78% 0.16 85);
  --accent-text: oklch(25% 0.04 60);
  --badge-red: oklch(60% 0.18 25);
  --hero-grad-1: oklch(93% 0.05 90);
  --hero-grad-2: oklch(98% 0.012 85);
  --badge-text: oklch(50% 0.1 60);
  --heading: oklch(26% 0.03 90);
  --card-border: oklch(90% 0.01 85);
  --stat-1: oklch(55% 0.14 60);
  --stat-2: oklch(55% 0.1 200);
  --stat-3: oklch(58% 0.13 140);
  --stat-4: oklch(60% 0.16 30);
  --icon-1: oklch(80% 0.15 85);
  --icon-2: oklch(70% 0.13 140);
  --icon-3: oklch(70% 0.1 220);
  --icon-4: oklch(68% 0.16 30);
  --icon-5: oklch(75% 0.12 95);
  --icon-6: oklch(72% 0.1 260);
  --testimonial-bg: oklch(93% 0.05 90);
  --dark-btn: oklch(30% 0.02 90);
  --footer-bg: oklch(28% 0.02 90);
  --footer-text: oklch(88% 0.01 85);
  --footer-text-soft: oklch(75% 0.01 85);
  --footer-border: oklch(40% 0.02 90);
  --footer-copy: oklch(65% 0.01 85);
  --cookie-bg: oklch(22% 0.02 90);
  --success-bg: oklch(93% 0.06 145);
  --placeholder-1: oklch(90% 0.05 85);
  --placeholder-2: oklch(94% 0.03 85);
  --avatar-bg: oklch(88% 0.05 85);
  --table-head: oklch(95% 0.02 85);
  --price-accent: oklch(50% 0.12 60);
  --news-date: oklch(55% 0.1 60);
  --danger: oklch(55% 0.15 25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

h1, h2, h3, .heading-font { font-family: 'Baloo 2', system-ui, sans-serif; }

img { max-width: 100%; display: block; }

.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* Top info bar */
.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: 13px;
  padding: 8px 24px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo-link { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(88% 0.14 90), oklch(74% 0.17 60));
  flex-shrink: 0;
}
.logo-text { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 24px; color: var(--logo-text); }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav-link {
  background: transparent; border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px;
  padding: 8px 12px; border-radius: 10px; color: oklch(30% 0.02 90);
  text-decoration: none; display: inline-block;
}
.nav-link:hover { text-decoration: none; background: oklch(95% 0.02 85); }
.nav-link[aria-current="page"] { background: oklch(93% 0.05 90); color: var(--logo-text); }

.cart-btn {
  position: relative; margin-left: 8px; background: var(--accent);
  border: none; border-radius: 10px; padding: 9px 16px;
  font-weight: 800; font-family: 'Baloo 2', sans-serif; font-size: 14px;
  color: var(--accent-text); cursor: pointer; text-decoration: none; display: inline-block;
}
.cart-badge {
  position: absolute; top: -8px; right: -8px; background: var(--badge-red);
  color: white; border-radius: 50%; min-width: 20px; height: 20px; font-size: 12px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-badge.hidden { display: none; }

/* Nav toggle for mobile */
.nav-toggle { display: none; }

main { flex: 1; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--hero-grad-1), var(--hero-grad-2));
  padding: clamp(48px, 8vw, 96px) 24px 64px;
}
.hero-inner {
  max-width: 1120px; margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center;
}
.pill-badge {
  display: inline-block; background: oklch(100% 0 0); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700;
  color: var(--badge-text); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; color: var(--heading); }
.hero p { font-size: 18px; line-height: 1.6; color: var(--text-soft); max-width: 520px; margin: 0 0 28px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); border: none; border-radius: 12px; padding: 14px 26px;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 16px; color: var(--accent-text);
  cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-secondary {
  background: transparent; border: 2px solid var(--dark-btn); border-radius: 12px;
  padding: 12px 24px; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 16px;
  color: var(--dark-btn); cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-dark {
  background: var(--dark-btn); color: white; border: none; border-radius: 12px;
  padding: 14px 30px; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 16px;
  cursor: pointer; text-decoration: none; display: inline-block;
}
.hero-photo {
  border-radius: 24px; aspect-ratio: 4/3; overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Stats */
.stats {
  max-width: 1120px; margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center;
}
.stat-num { font-family: 'Baloo 2', sans-serif; font-size: 34px; font-weight: 800; }
.stat-label { font-size: 14px; color: var(--text-softer); }

/* Features */
.section { max-width: 1120px; margin: 0 auto; padding: 24px 24px 64px; }
.section h2 { font-family: 'Baloo 2', sans-serif; font-size: clamp(24px, 3vw, 32px); text-align: center; margin-bottom: 36px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: white; border: 1px solid var(--card-border); border-radius: 18px; padding: 24px; }
.card-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; }
.card h3 { font-family: 'Baloo 2', sans-serif; font-size: 18px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--text-softer); font-size: 15px; line-height: 1.55; }

/* Testimonials */
.testimonials { background: var(--testimonial-bg); padding: 56px 24px; }
.testimonials-inner { max-width: 1120px; margin: 0 auto; }
.testimonial-card { background: white; border-radius: 18px; padding: 22px; }
.testimonial-card p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: oklch(35% 0.02 90); }
.testimonial-card strong { font-size: 14px; }

/* CTA */
.cta { max-width: 1120px; margin: 0 auto; padding: 56px 24px; text-align: center; }
.cta h2 { font-family: 'Baloo 2', sans-serif; font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; }
.cta p { color: var(--text-softer); margin-bottom: 24px; }

/* Generic content page */
.page-section { max-width: 1120px; margin: 0 auto; padding: 56px 24px; }
.page-section.narrow { max-width: 840px; }
.page-section.narrower { max-width: 760px; }
.page-section h1 { font-family: 'Baloo 2', sans-serif; font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.page-section .lede { color: var(--text-softer); font-size: 17px; max-width: 680px; margin-bottom: 36px; }
.page-section h2 { font-family: 'Baloo 2', sans-serif; font-size: 22px; margin-bottom: 16px; }

.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; margin-bottom: 48px; }
.two-col-even { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.photo-box { border-radius: 18px; overflow: hidden; min-height: 220px; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }

.value-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.value-card strong { font-family: 'Baloo 2', sans-serif; display: block; margin-bottom: 6px; }
.value-card span { font-size: 14px; color: var(--text-softer); }

.team-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 18px; text-align: center; }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; overflow: hidden; background: var(--avatar-bg); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card strong { font-family: 'Baloo 2', sans-serif; font-size: 15px; display: block; }
.team-card .role { font-size: 13px; color: var(--text-softer); }

.program-card { background: white; border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.program-card h3 { font-family: 'Baloo 2', sans-serif; margin: 0 0 8px; }
.program-card p { color: var(--text-softer); line-height: 1.6; margin: 0 0 10px; }
.program-price { color: var(--price-accent); }

.data-table-wrap { background: white; border: 1px solid var(--border); border-radius: 18px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
table thead tr { background: var(--table-head); }
table th { padding: 12px 20px; text-align: left; }
table td { padding: 12px 20px; }
table tr { border-top: 1px solid var(--border-light); }
table tbody tr:first-child { border-top: none; }

.activity-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.activity-card h3 { font-family: 'Baloo 2', sans-serif; font-size: 17px; margin: 0 0 8px; }
.activity-card p { color: var(--text-softer); font-size: 14px; line-height: 1.55; margin: 0; }

.news-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.news-date { font-size: 13px; color: var(--news-date); font-weight: 700; margin-bottom: 6px; }
.news-card h3 { font-family: 'Baloo 2', sans-serif; margin: 0 0 8px; }
.news-card p { margin: 0; color: var(--text-softer); line-height: 1.6; }
.news-list { display: grid; gap: 20px; }

.faq-list { display: grid; gap: 14px; }
.faq-item { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; }
.faq-item strong { display: block; margin-bottom: 6px; }
.faq-item span { color: var(--text-softer); font-size: 15px; line-height: 1.6; }

.product-card { background: white; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.product-photo { aspect-ratio: 4/3; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-family: 'Baloo 2', sans-serif; font-size: 16px; margin: 0; }
.product-body p { margin: 0; color: var(--text-softer); font-size: 14px; line-height: 1.5; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; }
.product-foot strong { font-family: 'Baloo 2', sans-serif; font-size: 16px; }
.btn-add {
  background: var(--accent); border: none; border-radius: 10px; padding: 9px 14px;
  font-weight: 700; font-family: 'Nunito', sans-serif; font-size: 13px; color: var(--accent-text); cursor: pointer;
}

.cart-item {
  background: white; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.cart-item strong { font-family: 'Baloo 2', sans-serif; font-size: 15px; }
.cart-item .price { font-size: 13px; color: var(--text-softer); }
.qty-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid oklch(85% 0.01 85); background: white; cursor: pointer; font-weight: 700; }
.remove-btn { background: transparent; border: none; color: var(--danger); cursor: pointer; font-size: 13px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 2px solid var(--dark-btn); margin-bottom: 24px; }
.cart-total-row strong:first-child { font-family: 'Baloo 2', sans-serif; font-size: 18px; }
.cart-total-row strong:last-child { font-family: 'Baloo 2', sans-serif; font-size: 20px; }
.btn-block { width: 100%; }
.empty-cart { text-align: center; color: var(--text-softer); padding: 32px 0; }

.success-box { background: var(--success-bg); border-radius: 16px; padding: 24px; text-align: center; }
.success-box.form-success { text-align: left; margin-bottom: 16px; }
.success-box strong { display: block; margin-bottom: 6px; font-family: 'Baloo 2', sans-serif; }
.success-box span { color: oklch(35% 0.02 90); font-size: 15px; }

.contact-form { display: grid; gap: 10px; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px; border: 1px solid oklch(85% 0.01 85); border-radius: 10px;
  font-family: 'Nunito', sans-serif; font-size: 14px; width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form .btn-primary { border: none; width: 100%; padding: 13px; font-size: 15px; }

.legal-block { display: grid; gap: 20px; color: oklch(35% 0.02 90); line-height: 1.7; font-size: 15px; }
.legal-block h3 { font-family: 'Baloo 2', sans-serif; font-size: 17px; }
.legal-block p { margin: 0.4em 0 0; }
.imprint-box { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 26px; display: grid; gap: 10px; font-size: 15px; color: oklch(35% 0.02 90); line-height: 1.7; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 24px 24px; margin-top: 32px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-logo { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 22px; color: white; margin-bottom: 10px; }
.footer-inner p { font-size: 14px; line-height: 1.6; color: var(--footer-text-soft); max-width: 280px; }
.footer-col-title { font-weight: 700; color: white; margin-bottom: 10px; font-size: 14px; }
.footer-links { display: grid; gap: 6px; }
.footer-links a { color: var(--footer-text-soft); font-size: 14px; }
.footer-bottom { max-width: 1120px; margin: 0 auto; border-top: 1px solid var(--footer-border); padding-top: 18px; font-size: 13px; color: var(--footer-copy); }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--cookie-bg); color: white;
  padding: 16px 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; z-index: 50;
}
.cookie-banner span { font-size: 14px; max-width: 640px; }
.cookie-banner a { color: oklch(85% 0.1 85); }
.cookie-actions { display: flex; gap: 10px; }
.btn-cookie-reject { background: transparent; border: 1px solid oklch(60% 0.01 85); color: white; border-radius: 10px; padding: 9px 16px; font-size: 13px; cursor: pointer; }
.btn-cookie-accept { background: var(--accent); border: none; color: var(--accent-text); border-radius: 10px; padding: 9px 16px; font-weight: 700; font-size: 13px; cursor: pointer; }
.cookie-banner.hidden { display: none; }

/* Responsive */
@media (max-width: 860px) {
  .hero-inner, .two-col, .two-col-even { grid-template-columns: 1fr; }
  .stats, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-nav { width: 100%; justify-content: flex-start; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
