/* Tadika (RSQ Kids Academy) page — loaded only by tadika.html. Scoped to .tadika-page so it never leaks into other pages. */

.tadika-page {
  --td-yellow: #F7B500;
  --td-yellow-deep: #D99A00;
  --td-yellow-soft: #FFE48A;
  --td-yellow-pale: #FFF3C6;
  --td-cream: #FFFBEE;
  --td-ink: #121820;
  --td-body: #4A5260;
  --td-line: rgba(18, 24, 32, 0.09);
  --td-shadow: 0 12px 30px rgba(18, 24, 32, 0.08);
  background: #fff;
  color: var(--td-ink);
}
.tadika-page a { color: inherit; }
.tadika-page a:hover { color: inherit; }
.tadika-page h1, .tadika-page h2, .tadika-page h3 { color: var(--td-ink); }
.tadika-page p { margin: 0; }
.tadika-page [id] { scroll-margin-top: 92px; }

/* ---------- Buttons ---------- */
.td-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; border: 2px solid transparent;
  font-family: var(--heading-font); font-weight: 700; font-size: 15px; line-height: 1.2;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.td-btn:hover { transform: translateY(-2px); }
.td-btn svg { flex: none; }
.td-btn-yellow { background: var(--td-yellow); color: var(--td-ink); box-shadow: 0 10px 22px rgba(247, 181, 0, 0.35); }
.tadika-page .td-btn-yellow:hover { background: var(--td-yellow-deep); }
.td-btn-wa { background: #fff; border-color: #25D366; color: var(--td-ink); text-align: left; padding: 9px 22px; }
.tadika-page .td-btn-wa:hover { background: #F2FCF6; }
.td-btn-wa small { display: block; font-size: 11.5px; font-weight: 600; color: var(--td-body); }
.td-btn-wa strong { display: block; font-size: 15px; }
.tadika-page .td-btn-dark { background: var(--td-ink); color: #fff; }
.tadika-page .td-btn-dark:hover { background: #000; color: #fff; }
.td-btn-sm { padding: 11px 20px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero ---------- */
.td-hero { position: relative; overflow: hidden; background: var(--td-cream); }
.td-hero-bg { display: none; }
.td-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto; padding: 28px var(--section-x) 30px;
}
.td-hero-copy { max-width: 560px; }
.td-script {
  display: inline-block; transform: rotate(-4deg); margin-bottom: 10px;
  font-family: 'Caveat', 'Segoe Script', cursive; font-weight: 700; font-size: 20px; line-height: 1;
  color: var(--td-yellow-deep); background: #fff; padding: 7px 14px 9px; border-radius: 14px; box-shadow: var(--td-shadow); text-align: center;
}
.td-hero h1 { font-size: clamp(26px, 7vw, 46px); line-height: 1.14; font-weight: 800; letter-spacing: -0.01em; }
.td-yellow { color: var(--td-yellow-deep); display: block; }
.td-hero-lead { margin-top: 14px; font-size: 15.5px; line-height: 1.7; color: var(--td-body); max-width: 480px; }
.td-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.td-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; margin-top: 26px; padding: 0; list-style: none; }
.td-trust li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--td-ink); line-height: 1.35; }
.td-trust .ico { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--td-yellow-deep); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(18, 24, 32, 0.07); }

/* Photo rides below the copy on narrow screens — a portrait crop made for mobile, full wave top + bottom */
.td-hero-strip { position: relative; margin: 26px auto 0; max-width: 360px; aspect-ratio: 2 / 3; border-radius: 26px; overflow: hidden; box-shadow: var(--td-shadow); }
.td-hero-strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

@media (min-width: 640px) {
  .td-actions { flex-direction: row; flex-wrap: wrap; }
  .td-trust { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .td-hero-strip { display: none; }
  .td-hero-bg {
    display: block; position: absolute; inset: 0; z-index: 0;
  }
  .td-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
  .td-hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--td-cream) 0%, rgba(255, 251, 238, 0.94) 30%, rgba(255, 251, 238, 0.55) 46%, rgba(255, 251, 238, 0.08) 62%, rgba(255, 251, 238, 0) 72%);
  }
  .td-hero-inner { padding: 64px var(--section-x) 70px; min-height: 520px; display: flex; align-items: center; }
  .td-script { font-size: 26px; margin-bottom: 14px; }
  .td-trust { grid-template-columns: repeat(2, auto); justify-content: start; gap: 16px 28px; }
  .td-trust li { flex-direction: row; text-align: left; gap: 10px; }
  .td-trust .ico { width: 36px; height: 36px; }
}
@media (min-width: 1180px) {
  .td-hero-inner { min-height: 580px; }
}

/* ---------- Branch strip ---------- */
.td-strip { background: var(--td-yellow-pale); padding: 22px var(--section-x); }
.td-strip-inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.td-strip-item { font-size: 11px; font-weight: 700; line-height: 1.3; color: var(--td-ink); }
.td-strip-item .ico {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px;
  background: linear-gradient(145deg, var(--td-yellow), var(--td-yellow-deep)); color: var(--td-ink);
  box-shadow: 0 6px 14px rgba(217, 154, 0, 0.35);
}
.td-strip-item span { display: none; font-weight: 500; color: var(--td-body); font-size: 12px; }
@media (min-width: 640px) {
  .td-strip { padding: 28px var(--section-x); }
  .td-strip-item { font-size: 14px; }
  .td-strip-item .ico { width: 54px; height: 54px; }
  .td-strip-item span { display: block; }
}

/* ---------- Shared section bits ---------- */
.td-section { max-width: var(--container); margin: 0 auto; padding: 54px var(--section-x) 0; }
.td-eyebrow { font-family: var(--heading-font); font-weight: 800; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--td-yellow-deep); }
.td-title { font-size: clamp(24px, 3.6vw, 38px); font-weight: 800; line-height: 1.15; margin-top: 8px; }
.td-lead { color: var(--td-body); font-size: 15px; line-height: 1.75; }

/* ---------- About ---------- */
.td-about { display: grid; gap: 26px; align-items: center; }
.td-tag { margin-top: 6px; font-family: var(--heading-font); font-weight: 700; font-size: 18px; color: var(--td-yellow-deep); }
.td-about .td-lead { margin-top: 14px; max-width: 520px; }
.td-about .td-btn { margin-top: 20px; }
.td-about-media { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--td-shadow); }
.td-about-media img { width: 100%; height: 100%; object-fit: cover; }
.td-badge {
  position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 9px 16px 9px 10px; border-radius: 16px; box-shadow: var(--td-shadow);
  font-family: var(--heading-font); font-weight: 700; font-size: 13px; color: var(--td-ink);
}
.td-badge .ico { width: 34px; height: 34px; border-radius: 50%; background: var(--td-yellow-pale); color: var(--td-yellow-deep); display: grid; place-items: center; }
@media (min-width: 900px) {
  .td-about { grid-template-columns: 1fr 1fr; gap: 56px; }
  .td-about-media { border-radius: 30px; }
}

/* ---------- Programs ---------- */
.td-program { margin-top: 54px; background: var(--td-cream); padding: 54px 0 56px; }
.td-program .td-section { padding-top: 0; }
.td-head { display: grid; gap: 12px; align-items: end; }
.td-head .td-lead { max-width: 520px; }
@media (min-width: 900px) { .td-head { grid-template-columns: 1fr 1fr; gap: 56px; } }
.td-cards { display: grid; gap: 14px; margin-top: 28px; padding: 0; list-style: none; }
.td-card { display: flex; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--td-shadow); }
.td-card-img { flex: none; width: 108px; }
.td-card-img img { width: 100%; height: 100%; object-fit: cover; }
.td-card-body { padding: 14px 16px; }
.td-card h3 { font-size: 15.5px; font-weight: 700; }
.td-card p { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--td-body); }
@media (min-width: 640px) {
  .td-cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .td-card { flex-direction: column; }
  .td-card-img { width: 100%; aspect-ratio: 1 / 1; }
  .td-card-body { padding: 16px 18px 20px; }
  .td-card h3 { font-size: 17px; }
}
@media (min-width: 1000px) { .td-cards { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Branches ---------- */
.td-branch-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.td-branch-head .td-lead { margin-top: 8px; }
.td-branches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.td-branch {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid var(--td-line); border-radius: 18px;
  padding: 28px 14px 20px; box-shadow: 0 8px 20px rgba(18, 24, 32, 0.05); transition: transform 0.2s, box-shadow 0.2s;
}
.td-branch:hover { transform: translateY(-4px); box-shadow: var(--td-shadow); }
.td-branch:last-child { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
.td-branch-art { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--td-yellow-pale); color: var(--td-yellow-deep); }
.td-branch-art svg { width: 34px; height: 34px; }
.td-branch-num { display: block; font-family: var(--heading-font); font-weight: 800; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--td-yellow-deep); margin-top: 14px; }
.td-branch h3 { font-size: 15px; font-weight: 700; margin-top: 4px; padding: 0 8px; }
.td-branch p { font-size: 12.5px; color: var(--td-body); margin: 2px 0 12px; }
.td-loc { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 7px 16px; background: var(--td-yellow-pale); border-radius: 9px; font-weight: 700; font-size: 13px; transition: background 0.2s; }
.tadika-page .td-loc:hover { background: var(--td-yellow-soft); }
@media (min-width: 640px) { .td-branches { grid-template-columns: repeat(3, 1fr); } .td-branch:last-child { grid-column: auto; width: auto; justify-self: stretch; } }
@media (min-width: 1000px) { .td-branches { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

/* ---------- Gallery ---------- */
.td-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.td-gallery figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--td-yellow-pale); }
.td-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.td-gallery figure:hover img { transform: scale(1.05); }
.td-gallery figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(18, 24, 32, 0.72); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
@media (min-width: 700px) { .td-gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

/* ---------- CTA ---------- */
.td-cta-wrap { max-width: var(--container); margin: 0 auto; padding: 56px var(--section-x) 64px; }
.td-cta { position: relative; overflow: hidden; border-radius: 26px; padding: 26px 22px; background: linear-gradient(120deg, #FFCB2E 0%, var(--td-yellow) 100%); display: grid; gap: 18px; align-items: center; justify-items: start; }
.td-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); pointer-events: none; }
.td-cta-photo { position: relative; z-index: 1; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: var(--td-shadow); }
.td-cta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.td-cta-text { position: relative; z-index: 1; }
.td-cta h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.td-cta p { margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: #3a3320; max-width: 520px; }
.td-cta-meta { margin-top: 10px; font-size: 13px; font-weight: 600; color: #3a3320; }
.td-cta-meta a { text-decoration: underline; text-underline-offset: 3px; }
.td-cta .td-actions { position: relative; z-index: 1; margin-top: 0; width: 100%; }
@media (min-width: 640px) { .td-cta .td-actions { width: auto; } }
@media (min-width: 900px) {
  .td-cta { grid-template-columns: auto 1fr auto; gap: 32px; padding: 28px 40px; justify-items: stretch; }
  .td-cta-photo { width: 132px; height: 132px; }
  .td-cta .td-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .td-btn, .td-branch, .td-gallery img { transition: none; }
}
