/* ===========================================================
   IPP Kids TV — bright, preschool-friendly landing page
   Soft light blue + green, rounded corners, cheerful.
   =========================================================== */

:root {
  --sky-1: #e8f6ff;
  --sky-2: #d6efff;
  --mint-1: #e9fbef;
  --mint-2: #d3f6e0;
  --white: #ffffff;

  --ink: #2b3a4a;
  --ink-soft: #5b6b7c;

  --yt-red: #ff0000;

  --radius-lg: 32px;
  --radius-md: 22px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 12% -10%, var(--sky-2) 0%, transparent 62%),
    radial-gradient(900px 560px at 92% 4%, var(--mint-2) 0%, transparent 60%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--mint-1) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */

.page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 32px) clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3.6vw, 40px);
  flex: 1 0 auto;
}

.hero,
.cta,
.welcome {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Hero image ---------- */

.hero-media {
  position: relative;
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
  background: var(--white);
  border: 6px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 38px rgba(72, 132, 178, 0.18);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
}

/* Placeholder shown only when the image file is missing */
.hero-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 16 / 9;
  padding: 30px 20px;
  text-align: center;
  color: var(--ink-soft);
  background: repeating-linear-gradient(45deg, #f4fbff 0 14px, #eef8ff 14px 28px);
  border-radius: calc(var(--radius-lg) - 6px);
}

.hero-media.is-missing img { display: none; }
.hero-media.is-missing .hero-fallback { display: flex; }

.fallback-emoji { font-size: clamp(40px, 8vw, 60px); line-height: 1; }
.fallback-text { font-size: 15px; font-weight: 600; line-height: 1.5; }
.fallback-text code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 8px;
  color: #3d7ea6;
}

/* ---------- YouTube button ---------- */

.yt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 18px 34px;
  min-height: 64px;

  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;

  color: #ffffff;
  text-decoration: none;

  background: var(--yt-red);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);

  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.yt-btn:hover {
  background: #e60000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.yt-btn:active {
  background: #cc0000;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.yt-btn:focus-visible {
  outline: 4px solid #2b3a4a;
  outline-offset: 4px;
}

.yt-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.yt-play svg { display: block; margin-left: 2px; }

.yt-label { white-space: nowrap; }

/* ---------- Welcome text ---------- */

.welcome {
  max-width: 760px;
  text-align: center;
}

.welcome h1 {
  margin: 0 0 14px;
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

.welcome-body {
  margin: 0 0 10px;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.welcome-new {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 700;
  line-height: 1.6;
  color: #2f7d4f;
}

/* ---------- Footer ---------- */

.site-footer {
  width: 100%;
  margin-top: auto;
  padding: clamp(26px, 4vw, 40px) 16px clamp(22px, 3vw, 30px);
  text-align: center;
  border-top: 1px solid rgba(91, 107, 124, 0.14);
}

.site-footer p {
  margin: 0;
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .hero-media { border-width: 4px; border-radius: 24px; }
  .hero-media img { border-radius: 20px; }

  .yt-btn {
    width: 100%;
    padding: 17px 22px;
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .yt-btn { transition: none; }
  .yt-btn:hover { transform: none; }
}
