/* ============ DR. DANISH — PAEDIATRICS, STORYBOOK ============ */
:root {
  --paper: #fff8ef;
  --mint-bg: #e9f7ef;
  --ink: #33322e;
  --ink-soft: #6f6a5f;
  --coral: #ff6b57;
  --sun: #ffc93c;
  --sky: #4cc9f0;
  --mint: #06d6a0;
  --grape: #9b5de5;
  --pink: #ff8fab;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Varela Round", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--sun); color: var(--ink); }

h1, h2, h3, h4, .logo, .btn-big, .cta-pill, .badge {
  font-family: "Baloo 2", cursive;
}

.rainbow {
  font-style: normal;
  background: linear-gradient(90deg, var(--coral), var(--sun) 30%, var(--mint) 60%, var(--sky) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2rem;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
}
.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}
.logo-dot { color: var(--coral); }
.nav-pills { display: flex; gap: 0.5rem; }
.nav-pills a {
  font-family: "Baloo 2", cursive;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  transition: background 0.25s, transform 0.25s var(--spring);
}
.nav-pills a:hover { background: var(--sun); transform: rotate(-2deg) scale(1.05); }
.cta-pill {
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  padding: 0.5rem 1.3rem;
  border-radius: 100px;
  border: 3px solid var(--ink);
  transition: background 0.25s, color 0.25s, transform 0.25s var(--spring);
}
.cta-pill:hover { background: var(--coral); transform: scale(1.06) rotate(2deg); }

/* hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.5rem 2rem 6rem;
  overflow: hidden;
}
.hero-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
.badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--mint);
  color: var(--ink);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.5deg);
}
.hero-title {
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  font-weight: 800;
  line-height: 1.04;
  margin: 1.6rem 0 1.4rem;
  letter-spacing: -0.01em;
}
.hero-title span { display: block; }
.hero-sub { max-width: 30rem; color: var(--ink-soft); font-size: 1.12rem; }
.hero-ctas { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.btn-big {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--sun);
  text-decoration: none;
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.25s var(--spring), box-shadow 0.25s;
  display: inline-block;
}
.btn-big:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 8px 8px 0 var(--ink); }
.btn-big:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost {
  font-family: "Baloo 2", cursive;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  border-radius: 100px;
  transition: background 0.25s;
}
.btn-ghost:hover { background: rgba(51, 50, 46, 0.07); }

/* mascot */
.mascot-stage { text-align: center; }
#mascot {
  width: min(78vw, 330px);
  filter: drop-shadow(8px 10px 0 rgba(51, 50, 46, 0.12));
  animation: mascot-bob 4.5s ease-in-out infinite;
}
@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1.4deg); }
}
.lid { opacity: 0; }
.blink .lid { animation: lid-blink 0.24s both; }
@keyframes lid-blink { 0%,100% { opacity: 0; } 50% { opacity: 1; } }
.mascot-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  transform: rotate(-2deg);
}

/* floating shapes */
.float-zone { position: absolute; inset: 0; pointer-events: none; }
.floaty { position: absolute; }
.balloon {
  width: 46px; height: 58px;
  border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%;
  border: 3px solid var(--ink);
}
.balloon::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 2px; height: 70px;
  background: var(--ink);
  opacity: 0.5;
}
.b1 { background: var(--coral); left: 6%; top: 16%; animation: drift 9s ease-in-out infinite; }
.b2 { background: var(--sky); right: 8%; top: 58%; animation: drift 11s ease-in-out 1.2s infinite; }
.star { font-size: 2rem; color: var(--sun); animation: twinkle 3.4s ease-in-out infinite; }
.s1 { left: 14%; top: 66%; }
.s2 { right: 20%; top: 14%; animation-delay: 0.9s; color: var(--grape); }
.s3 { right: 42%; top: 76%; animation-delay: 1.7s; color: var(--coral); }
.cloud { width: 130px; opacity: 0.9; }
.c1 { left: 38%; top: 10%; animation: drift 13s ease-in-out infinite; }
.c2 { right: 4%; top: 34%; width: 100px; animation: drift 16s ease-in-out 2s infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(14px, -18px) rotate(3deg); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.35) rotate(18deg); opacity: 0.5; }
}

/* wave divider */
.wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%; height: 90px;
}

/* sections */
section { padding: 6.5rem 2rem; scroll-margin-top: 4.5rem; }
.sec-title {
  text-align: center;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
}
.tilt { display: inline-block; margin-left: 0.5rem; transform: rotate(8deg); }
.sec-sub { text-align: center; color: var(--ink-soft); font-size: 1.1rem; margin-top: 0.4rem; }

/* care grid */
.care { background: var(--mint-bg); }
.care-grid {
  max-width: 1100px;
  margin: 3.4rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 1.9rem 1.7rem;
  box-shadow: 6px 6px 0 var(--card, var(--sun));
  transition: transform 0.3s var(--spring), box-shadow 0.3s;
}
.card:nth-child(odd) { transform: rotate(-0.6deg); }
.card:nth-child(even) { transform: rotate(0.6deg); }
.card:hover {
  transform: translateY(-7px) rotate(0deg) scale(1.02);
  box-shadow: 10px 12px 0 var(--card, var(--sun));
}
.card-emoji {
  display: inline-grid; place-items: center;
  width: 3.2rem; height: 3.2rem;
  font-size: 1.5rem;
  background: color-mix(in srgb, var(--card, var(--sun)) 22%, #fff);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* visit path */
.path-wrap {
  position: relative;
  max-width: 950px;
  margin: 3.5rem auto 0;
  min-height: 560px;
}
.path-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.stop {
  position: absolute;
  max-width: 240px;
}
.stop-dot {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem;
  font-family: "Baloo 2", cursive;
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--card, var(--sun));
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 0.7rem;
}
.stop h4 { font-size: 1.25rem; font-weight: 700; }
.stop p { color: var(--ink-soft); font-size: 0.92rem; }
.stop-1 { left: 3%; top: 2%; }
.stop-2 { left: 52%; top: 26%; }
.stop-3 { left: 12%; top: 58%; }
.stop-4 { left: 68%; top: 72%; }

/* faq bubbles */
.faq { background: var(--mint-bg); }
.bubbles { max-width: 720px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 1.2rem; }
.bubble {
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 1.1rem 1.5rem;
  position: relative;
  max-width: 85%;
}
.bubble.q {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 4px;
  font-family: "Baloo 2", cursive;
  font-weight: 600;
  font-size: 1.1rem;
  transform: rotate(-0.5deg);
}
.bubble.a {
  align-self: flex-end;
  background: var(--sun);
  border-bottom-right-radius: 4px;
  transform: rotate(0.5deg);
}
.bubble.a p { font-size: 0.97rem; }

/* hello */
.hello { display: grid; place-items: center; }
.hello-card {
  text-align: center;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 34px;
  box-shadow: 10px 12px 0 var(--sky);
  padding: 3.5rem 3rem 3rem;
  max-width: 620px;
  transform: rotate(-0.5deg);
}
.hello-title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
.hello-sub { color: var(--ink-soft); margin: 0.5rem 0 1.8rem; }
.hello-meta { color: var(--ink-soft); font-size: 0.88rem; margin-top: 1.6rem; }

/* footer */
.footer {
  border-top: 3px solid var(--ink);
  padding: 2rem 2rem 2.6rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.8rem; }
.footer-row a { color: var(--coral); text-decoration: none; font-weight: 600; }
.footer-row a:hover { text-decoration: underline; }
.footer-note { font-size: 0.78rem; max-width: 46rem; opacity: 0.8; }
.footer-note a { color: var(--coral); text-decoration: none; font-weight: 700; border-bottom: 2px solid rgba(255,107,107,0.3); }
.footer-note a:hover { border-bottom-color: var(--coral); }

/* confetti canvas */
#confetti {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 80;
}

/* reveals — springy */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--spring);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.44s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floaty, #mascot { animation: none; }
}

/* responsive */
@media (max-width: 920px) {
  .nav { padding: 0.7rem 1rem; }
  .nav-pills { display: none; }
  section { padding: 4.5rem 1.3rem; }
  .hero { padding: 6.5rem 1.3rem 5rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .mascot-stage { order: -1; }
  #mascot { width: min(56vw, 240px); }
  .care-grid { grid-template-columns: 1fr; }
  .card:nth-child(odd), .card:nth-child(even) { transform: none; }
  /* winding path becomes a simple vertical flow */
  .path-wrap { min-height: 0; display: flex; flex-direction: column; gap: 2rem; }
  .path-line { display: none; }
  .stop { position: static; max-width: none; }
  .bubble { max-width: 100%; }
  .hello-card { padding: 2.4rem 1.6rem 2rem; }
}
