/* ==========================================================================
   Pikwing — kids rhymes & stories
   One stylesheet for every page. Edit colours in :root and the whole site
   follows.
   ========================================================================== */

:root {
  /* Brand colours, sampled from the Pikwing artwork */
  --cream:      #FFF8EC;
  --cream-2:    #FDF0DA;
  --white:      #FFFFFF;
  --ink:        #22384A;   /* navy from the emblem border */
  --ink-soft:   #4A6273;
  --muted:      #78909C;
  --sun:        #FFC93C;   /* Nila's shirt */
  --sun-dk:     #E8A82C;
  --macaw:      #E14434;   /* Nila's trousers */
  --macaw-dk:   #C0342A;
  --leaf:       #47A05B;
  --leaf-dk:    #1F5130;
  --sky:        #35A8B8;
  --grape:      #7C5CBF;
  --yt:         #FF0000;
  --line:       #EADFC8;
  --shadow-sm:  0 2px 0 rgba(34, 56, 74, .08);
  --shadow-md:  0 10px 26px -14px rgba(34, 56, 74, .45);
  --shadow-lg:  0 22px 48px -22px rgba(34, 56, 74, .48);
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-pill: 999px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Nunito, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.3rem, 1.7rem + 2.8vw, 4rem); }
h2 { font-size: clamp(1.8rem, 1.45rem + 1.6vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.45rem); }

p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--leaf-dk); text-underline-offset: 3px; }
a:hover { color: var(--macaw); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; position: relative; }
.section--tint { background: var(--cream-2); }
.section--leaf { background: var(--leaf-dk); color: #EAF5EA; }
.section--leaf h2, .section--leaf h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: Fredoka, sans-serif;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--leaf-dk);
  background: rgba(71, 160, 91, .14);
  padding: .35rem .85rem;
  border-radius: var(--r-pill);
  margin-bottom: .9rem;
}
.section--leaf .eyebrow { color: #CFEBD3; background: rgba(255,255,255,.13); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section--leaf .section-head p { color: #C9E2CC; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: Fredoka, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  padding: .82rem 1.5rem;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sun   { background: var(--sun);   color: #3A2A05; box-shadow: 0 5px 0 var(--sun-dk); }
.btn--sun:hover   { background: #FFD45E; color: #3A2A05; }
.btn--yt    { background: var(--yt);    color: #fff;     box-shadow: 0 5px 0 #B80000; }
.btn--yt:hover    { background: #FF2626; color: #fff; }
.btn--leaf  { background: var(--leaf);  color: #fff;     box-shadow: 0 5px 0 #2F7A42; }
.btn--leaf:hover  { background: #55B46B; color: #fff; }
.btn--sky   { background: var(--sky);   color: #fff;     box-shadow: 0 5px 0 #24828F; }
.btn--sky:hover   { background: #43BCCC; color: #fff; }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2.5px rgba(34, 56, 74, .18);
}
.btn--ghost:hover { background: rgba(34,56,74,.05); color: var(--ink); }
.btn--sm { font-size: .92rem; padding: .55rem 1.05rem; }
.btn--block { width: 100%; justify-content: center; }
.btn svg { flex: none; }

/* ---------- header ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 248, 236, .93);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand span {
  font-family: Fredoka, sans-serif; font-size: 1.7rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.02em;
}
.brand span b { color: var(--macaw); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .55rem .9rem; border-radius: var(--r-pill);
  font-family: Fredoka, sans-serif; font-size: 1.02rem; color: var(--ink);
  text-decoration: none; transition: background .15s ease;
}
.nav-links a:hover { background: rgba(34,56,74,.07); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--sun); color: #3A2A05; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: none; cursor: pointer;
  border-radius: var(--r-sm); background: rgba(34,56,74,.07); color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2.5px;
  background: currentColor; border-radius: 2px; transition: transform .2s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--cream); border-bottom: 2px solid var(--line);
    padding: .8rem 1.25rem 1.4rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding: .8rem 1rem; font-size: 1.1rem; }
  .nav-links .btn { justify-content: center; margin-top: .4rem; }
  .brand span { font-size: 1.45rem; }
  .brand img { width: 44px; height: 44px; }
}

/* ---------- hero --------------------------------------------------------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
.hero h1 span { color: var(--macaw); }
.hero-lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.28rem); color: var(--ink-soft); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.4rem; font-size: .95rem; color: var(--muted); }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img.main { width: min(100%, 420px); filter: drop-shadow(0 24px 34px rgba(34,56,74,.28)); }
.hero-art img.pip {
  position: absolute; width: 150px; right: -6px; bottom: 4px;
  filter: drop-shadow(0 14px 22px rgba(34,56,74,.3));
  animation: bob 5.5s ease-in-out infinite;
}
.blob { position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); }
.blob-1 { width: 300px; height: 300px; background: rgba(255,201,60,.42);  top: -30px;  left: -50px; }
.blob-2 { width: 220px; height: 220px; background: rgba(53,168,184,.30); bottom: -30px; left: 10%; }
.blob-3 { width: 180px; height: 180px; background: rgba(225,68,52,.20);  top: 14%;   right: -40px; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img.main { width: min(78%, 320px); }
  .hero-art img.pip { width: 110px; right: 6%; }
}

/* ---------- trust strip -------------------------------------------------- */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 2px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.trust div { background: var(--cream); padding: 1.15rem 1.2rem; text-align: center; }
.trust b { display: block; font-family: Fredoka, sans-serif; font-size: 1.06rem; }
.trust small { color: var(--muted); font-size: .88rem; }
@media (max-width: 780px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* ---------- language / channel cards ------------------------------------- */
.lang-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
}
.lang-card {
  background: var(--white);
  border: 2.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem 1.4rem;
  display: flex; flex-direction: column; gap: .9rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lang-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--sun); }
.lang-card__top { display: flex; align-items: center; gap: .8rem; }
.lang-dot {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-family: Fredoka, sans-serif; font-weight: 600; font-size: 1.15rem; color: #fff;
}
.lang-card h3 { margin: 0; }
.lang-card__sub { font-size: .9rem; color: var(--muted); margin: 0; }
.lang-card p.desc { font-size: .96rem; color: var(--ink-soft); margin: 0; }
.lang-card__links { display: grid; gap: .55rem; margin-top: auto; }

.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip {
  font-family: Fredoka, sans-serif; font-size: .95rem;
  padding: .5rem 1.1rem; border-radius: var(--r-pill); cursor: pointer;
  border: 2.5px solid var(--line); background: var(--white); color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--sun); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.channel-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.channel-card {
  background: var(--white); border: 2.5px solid var(--line); border-radius: var(--r-md);
  padding: 1.3rem; display: flex; flex-direction: column; gap: .7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.channel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.channel-card[data-type="rhymes"]:hover { border-color: var(--sun); }
.channel-card[data-type="stories"]:hover { border-color: var(--sky); }
.channel-card.is-hidden { display: none; }
.tag {
  align-self: flex-start;
  font-family: Fredoka, sans-serif; font-size: .76rem; letter-spacing: .07em;
  text-transform: uppercase; padding: .28rem .7rem; border-radius: var(--r-pill);
}
.tag--rhymes  { background: rgba(255,201,60,.30);  color: #7A5806; }
.tag--stories { background: rgba(53,168,184,.20);  color: #1D6774; }
.channel-card h3 { font-size: 1.22rem; }
.channel-card p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.channel-card .btn { margin-top: auto; }
.soon {
  font-family: Fredoka, sans-serif; font-size: .84rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: .4rem; margin-top: auto;
  padding: .5rem 0;
}
.soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }

/* ---------- characters --------------------------------------------------- */
.char-grid { display: grid; gap: 1.6rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.char { text-align: center; }
.char img {
  width: 100%; max-width: 168px; margin: 0 auto .8rem;
  border-radius: 50%;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(0 12px 18px rgba(34,56,74,.22));
}
.char:hover img { transform: translateY(-8px) rotate(-3deg) scale(1.04); }
.char h3 { font-size: 1.16rem; margin-bottom: .15rem; }
.char p { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.section--leaf .char p { color: #BFDCC4; }

/* ---------- value cards -------------------------------------------------- */
.value-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.value {
  background: var(--white); border-radius: var(--r-lg); padding: 1.7rem 1.5rem;
  border: 2.5px solid var(--line);
}
.value .ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: .9rem;
}
.value h3 { margin-bottom: .4rem; }
.value p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

/* ---------- prose (about / privacy) -------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { margin: 2.6rem 0 .7rem; }
.prose h3 { margin: 1.8rem 0 .5rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--leaf); }
.callout {
  background: var(--white); border: 2.5px solid var(--sun);
  border-radius: var(--r-md); padding: 1.2rem 1.4rem; margin: 1.8rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- contact cards ------------------------------------------------ */
.contact-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-card {
  background: var(--white); border: 2.5px solid var(--line); border-radius: var(--r-md);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem;
}
.contact-card h3 { font-size: 1.15rem; }
.contact-card p { font-size: .94rem; color: var(--ink-soft); margin: 0; }
.contact-card a.mail {
  font-family: Fredoka, sans-serif; font-size: 1.02rem; word-break: break-all; margin-top: auto; padding-top: .6rem;
}

/* ---------- shop --------------------------------------------------------- */
.shop-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.shop-item {
  background: var(--white); border: 2.5px dashed var(--line); border-radius: var(--r-md);
  padding: 1.6rem 1.3rem; text-align: center;
}
.shop-item .ico { font-size: 2.2rem; }
.shop-item h3 { font-size: 1.1rem; margin: .5rem 0 .3rem; }
.shop-item p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- social ------------------------------------------------------- */
.social { display: flex; flex-wrap: wrap; gap: .7rem; }
.social a {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  transition: transform .16s ease, background .16s ease;
}
.social a:hover { transform: translateY(-3px); background: var(--sun); color: #3A2A05; }
.social svg { width: 21px; height: 21px; fill: currentColor; }

/* ---------- footer ------------------------------------------------------- */
.site-footer { background: var(--ink); color: #C8D7E0; padding: clamp(3rem, 6vw, 4.5rem) 0 1.8rem; }
.footer-grid {
  display: grid; gap: 2.4rem;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  margin-bottom: 2.6rem;
}
.site-footer h4 {
  font-family: Fredoka, sans-serif; font-size: 1.05rem; color: #fff;
  margin: 0 0 .9rem; font-weight: 500;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #C8D7E0; text-decoration: none; font-size: .96rem; }
.site-footer a:hover { color: var(--sun); }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; }
.footer-brand span { font-family: Fredoka, sans-serif; font-size: 1.5rem; color: #fff; }
.footer-about { font-size: .95rem; color: #A9BCC8; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between;
  font-size: .88rem; color: #93A7B4;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- page hero (inner pages) -------------------------------------- */
.page-hero { padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(1.6rem, 3vw, 2.4rem); text-align: center; }
.page-hero p { color: var(--ink-soft); max-width: 58ch; margin-inline: auto; font-size: 1.08rem; }

/* ---------- wave divider ------------------------------------------------- */
.wave { display: block; width: 100%; height: 56px; }
.wave path { fill: var(--cream-2); }
.wave--up path { fill: var(--cream); }

/* ---------- reveal on scroll --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- misc --------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.stack-cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }

/* ---------- "coming soon" placeholder, where a live button would sit ----- */
.lang-card__links .soon,
.channel-card .soon {
  display: flex; justify-content: center; align-items: center;
  width: 100%; margin: 0; padding: .62rem 1rem;
  border: 2.5px dashed var(--line); border-radius: var(--r-pill);
  font-size: .9rem; color: var(--muted); background: var(--cream);
}
.channel-card .soon { margin-top: auto; }
