:root {
  --sky-top: #cfe9ff;
  --sky-bottom: #eaf6ff;
  --ink: #33405a;
  --ink-soft: #5b6a86;
  --cream: #fffdf7;
  --card: #ffffff;
  --sun: #ffd15c;
  --sun-deep: #f5a623;
  --pink: #ff9db0;
  --mint: #8fe0c8;
  --lavender: #b7a8f2;
  --shadow: 0 18px 40px -18px rgba(51, 64, 90, .35);
  --radius: 24px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Rubik", system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom) 60%, var(--cream));
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Arabic gets a font with strong Arabic coverage */
html[lang="ar"] body { font-family: "Cairo", "Rubik", system-ui, sans-serif; }

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); font-weight: 800; margin: 0 0 .6em; }
h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .3em; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ===== Decorative sky ===== */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.cloud {
  position: absolute; background: #fff; border-radius: 50%;
  opacity: .75; filter: blur(1px);
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.c1 { width: 120px; height: 44px; top: 14%; inset-inline-start: 8%; }
.c1::before { width: 60px; height: 60px; top: -26px; inset-inline-start: 18px; }
.c1::after { width: 44px; height: 44px; top: -16px; inset-inline-start: 62px; }
.c2 { width: 90px; height: 34px; top: 30%; inset-inline-end: 12%; }
.c2::before { width: 46px; height: 46px; top: -20px; inset-inline-start: 14px; }
.c2::after { width: 34px; height: 34px; top: -12px; inset-inline-start: 46px; }
.c3 { width: 70px; height: 26px; top: 62%; inset-inline-start: 16%; opacity: .5; }
.c3::before { width: 36px; height: 36px; top: -16px; inset-inline-start: 10px; }
.star { position: absolute; width: 14px; height: 14px; background: var(--sun); border-radius: 3px;
  clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  opacity: .8; }
.s1 { top: 20%; inset-inline-end: 24%; animation: twinkle 3s ease-in-out infinite; }
.s2 { top: 46%; inset-inline-start: 30%; width: 10px; height: 10px; animation: twinkle 4s ease-in-out infinite .5s; }
.s3 { top: 70%; inset-inline-end: 18%; width: 18px; height: 18px; animation: twinkle 3.5s ease-in-out infinite 1s; }
@keyframes twinkle { 0%,100% { opacity: .3; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(14px, 4vw, 32px);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(51, 64, 90, .08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand-mark { display: inline-flex; }
.header-menu { display: contents; }
.main-nav { display: flex; gap: 6px; margin-inline: auto; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none; font-weight: 500; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.main-nav a:hover { background: rgba(255, 209, 92, .25); color: var(--ink); }

.lang-switch { display: flex; gap: 4px; background: rgba(51,64,90,.06); padding: 4px; border-radius: 999px; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  padding: 6px 10px; border-radius: 999px; transition: background .2s, color .2s;
}
.lang-switch button.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(51,64,90,.12); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 3px; background: var(--ink); border-radius: 3px; }

/* ===== Hero ===== */
.hero {
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(28px, 6vw, 70px) 22px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
}
.eyebrow { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: .8rem;
  color: var(--sun-deep); margin: 0 0 .6em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; border: 0; font-family: inherit; font-size: 1rem;
  transition: transform .12s ease, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--sun); color: #6b4e12; box-shadow: 0 10px 22px -8px rgba(245, 166, 35, .8); }
.btn-primary:hover { box-shadow: 0 14px 26px -8px rgba(245, 166, 35, .95); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-story { background: var(--mint); color: #10513f; box-shadow: 0 10px 22px -8px rgba(143, 224, 200, .95); }
.btn-story::before { content: "▶"; font-size: .8em; margin-inline-end: .5em; }

.hero-art { display: flex; justify-content: center; }
.mascot { filter: drop-shadow(0 20px 30px rgba(51,64,90,.18)); }
.mascot-body { transform-origin: 120px 130px; animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

/* ===== Sections ===== */
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section-alt { background: rgba(255, 255, 255, .6); }
.section p { color: var(--ink-soft); font-size: 1.08rem; }

/* ===== Journey ===== */
.journey { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px;
  grid-template-columns: repeat(2, 1fr); }
.step {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); display: flex; gap: 16px; align-items: flex-start;
  border: 2px solid transparent; transition: transform .2s, border-color .2s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(255, 209, 92, .6); }
.step-icon {
  font-size: 1.8rem; background: linear-gradient(135deg, #fff2cf, #ffe19a);
  width: 58px; height: 58px; min-width: 58px; border-radius: 18px;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: .2em; }
.step p { margin: 0; font-size: 1rem; }

/* ===== Feelings / breathing ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.breath-card {
  background: linear-gradient(160deg, #eef4ff, #f6f0ff);
  border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow);
}
.breath-stage { display: grid; place-items: center; min-height: 220px; gap: 16px; margin: 10px 0 18px; }
.breath-ball {
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff, var(--pink));
  box-shadow: 0 10px 30px -6px rgba(255, 157, 176, .7);
  transition: transform 4s ease-in-out, background 4s ease;
}
.breath-ball.inhale { transform: scale(2.1); background: radial-gradient(circle at 32% 30%, #fff, var(--mint)); }
.breath-ball.exhale { transform: scale(1); }
.breath-instruction { font-weight: 700; font-size: 1.15rem; color: var(--ink); margin: 0; min-height: 1.6em; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; margin-top: 24px; }
.qa { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.qa summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 1.08rem;
  display: flex; align-items: center; gap: 12px; position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; margin-inline-start: auto; font-size: 1.5rem; color: var(--sun-deep);
  transition: transform .2s; font-weight: 700;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); }

/* ===== Parents ===== */
.tips { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.tips li {
  background: var(--card); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow);
  position: relative; padding-inline-start: 52px; color: var(--ink-soft);
}
.tips li::before {
  content: "✓"; position: absolute; inset-inline-start: 16px; top: 16px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.note {
  margin-top: 26px; background: #fff7e6; border: 2px dashed var(--sun-deep);
  border-radius: var(--radius); padding: 22px 26px;
}
.note strong { display: block; color: var(--sun-deep); margin-bottom: .3em; font-size: 1.05rem; }
.note p { margin: 0; color: var(--ink); }

/* ===== Footer ===== */
.site-footer { padding: 40px 0; text-align: center; background: rgba(255,255,255,.5); margin-top: 20px; }
.footer-made { font-weight: 600; color: var(--ink); margin-bottom: .3em; }
.footer-disclaimer { color: var(--ink-soft); font-size: .9rem; margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-art { order: 1; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .journey { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .header-menu { display: none; }
  .site-header.open .header-menu {
    display: flex; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; background: #fff; box-shadow: var(--shadow);
  }
  .site-header.open .main-nav {
    display: flex; width: 100%; margin: 0;
    flex-direction: column; padding: 12px; gap: 4px;
  }
  .site-header.open .lang-switch {
    display: flex; width: 100%; margin: 0;
    justify-content: center; background: #fff; border-radius: 0; padding: 12px;
    border-top: 1px solid rgba(51, 64, 90, .08);
  }
  .nav-toggle { display: flex; margin-inline-start: auto; }
  .brand { margin-inline-end: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .breath-ball { transition: none; }
}
