/* Moutqan · My First Learning Library
   Palette from the physical decks:
     blue   #2CA8D8  (mtqn primary)   sun  #F5B21E   lime #A4C63C
     ink    #23303A  (soft near-black) paper #FBF7EF  cloud #FFFFFF
   Per-deck accents: yellow #F4C020 · orange #F07E22 · grey #9AA6AC ·
     lime #A4C63C · purple #7C6AC4 · cyan #37B3C9 · teal #2E9AA8
   Type: Baloo 2 (display, rounded) · Nunito (body) · Baloo Bhaijaan 2 (Arabic) */

:root {
  --blue: #2CA8D8;
  --blue-deep: #1F87B4;
  --sun: #F5B21E;
  --lime: #A4C63C;
  --ink: #23303A;
  --muted: #5c6a74;
  --paper: #FBF7EF;
  --cloud: #ffffff;
  --rule: #e7e0d2;
  --d-yellow: #F4C020;
  --d-orange: #F07E22;
  --d-grey: #9AA6AC;
  --d-lime: #A4C63C;
  --d-purple: #7C6AC4;
  --d-cyan: #37B3C9;
  --d-teal: #2E9AA8;
  --amazon: #FF9900;
  --amazon-deep: #e88b00;
  --display: "Baloo 2", "Trebuchet MS", sans-serif;
  --arabic: "Baloo Bhaijaan 2", "Noto Sans Arabic", "Geeza Pro", "Tahoma", sans-serif;
  --body: "Nunito", -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --r: 18px;
  --r-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; overflow-x: clip; }
body {
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Googly-eye mascot (pure CSS) ---------- */
.brand-eyes, .mini-eyes, .deck-cta-eyes {
  display: inline-flex; gap: 3px; align-items: center; vertical-align: middle;
}
.eye {
  width: 26px; height: 26px; background: var(--cloud);
  border: 2.5px solid var(--ink); border-radius: 50%;
  display: inline-flex; align-items: flex-end; justify-content: center;
  position: relative; flex: none;
}
.eye .pupil {
  width: 11px; height: 11px; background: var(--ink); border-radius: 50%;
  margin-bottom: 3px;
}
.eye.sm { width: 18px; height: 18px; border-width: 2px; }
.eye.sm .pupil { width: 7px; height: 7px; margin-bottom: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .brand:hover .eye .pupil { animation: googly 0.6s ease; }
  @keyframes googly {
    0% { transform: translateX(0); } 25% { transform: translate(4px, -3px); }
    50% { transform: translate(-3px, 2px); } 75% { transform: translate(2px, 2px); }
    100% { transform: translateX(0); }
  }
}

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--rule);
}
.head-row { display: flex; align-items: center; gap: 30px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 23px; color: var(--blue-deep); letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); }
.site-nav a:hover { color: var(--blue-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-family: var(--display); font-weight: 700;
  font-size: 16px; padding: 12px 24px; border-radius: 999px;
  border: 2.5px solid var(--ink); cursor: pointer; line-height: 1.2;
  box-shadow: 0 3px 0 var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn-amazon { background: var(--amazon); color: var(--ink); }
.btn-amazon:hover { background: var(--amazon-deep); }
.btn-blue { background: var(--blue); color: var(--cloud); }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { background: var(--cloud); color: var(--ink); }
.btn-ghost:hover { background: #f0ece2; }
.btn-lg { font-size: 18px; padding: 15px 30px; }
.head-cta { padding: 9px 18px; font-size: 14px; box-shadow: 0 2px 0 var(--ink); }
.head-cta:hover { box-shadow: 0 1px 0 var(--ink); }

/* ---------- Shared ---------- */
.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue-deep); background: color-mix(in srgb, var(--blue) 15%, transparent);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 4.2vw, 42px); line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-lead, .section-title + .section-lead { max-width: 620px; color: var(--muted); font-size: 18px; }
section { padding: 82px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 76px; overflow: clip; }
.blob { position: absolute; border-radius: 50%; filter: blur(6px); opacity: 0.5; z-index: 0; }
.blob-1 { width: 380px; height: 380px; background: color-mix(in srgb, var(--sun) 40%, transparent); top: -120px; right: -80px; }
.blob-2 { width: 300px; height: 300px; background: color-mix(in srgb, var(--lime) 38%, transparent); bottom: -140px; left: -100px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.kicker { font-family: var(--arabic); font-weight: 700; font-size: 15px; color: var(--blue-deep); margin-bottom: 14px; }
.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 20px;
}
.hero-sub { font-size: 20px; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-mascot-note { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink); }
.hero-photo {
  border-radius: var(--r); overflow: hidden; border: 3px solid var(--ink);
  box-shadow: 10px 12px 0 color-mix(in srgb, var(--blue) 40%, transparent);
  transform: rotate(1.5deg);
}
.hero-photo img { width: 100%; height: auto; }

/* ---------- Trust strip ---------- */
.trust { background: var(--blue); padding: 0; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  padding: 26px 12px; text-align: center; color: var(--cloud);
  border-right: 2px solid color-mix(in srgb, var(--cloud) 25%, transparent);
}
.trust-item:last-child { border-right: 0; }
.trust-num { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.trust-plus { font-size: 26px; vertical-align: super; }
.trust-label { display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 6px; opacity: 0.92; }

/* ---------- Play read learn banner ---------- */
.banner { background: var(--lime); padding: 30px 0; border-bottom: 3px solid var(--ink); }
.banner-inner { text-align: center; }
.banner-ar { font-family: var(--arabic); font-weight: 800; font-size: clamp(22px, 3.4vw, 32px); color: var(--ink); }
.banner-en { font-family: var(--display); font-weight: 700; font-size: clamp(16px, 2.2vw, 20px); color: #3a4a1e; letter-spacing: 0.04em; }

/* ---------- Decks ---------- */
.decks { background: var(--paper); }
.deck-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 38px;
}
.deck {
  border-radius: var(--r); border: 3px solid var(--ink); padding: 26px 22px 24px;
  min-height: 168px; display: flex; flex-direction: column; justify-content: center;
  text-align: center; position: relative;
  box-shadow: 5px 6px 0 rgba(35,48,58,0.18);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.deck:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 7px 9px 0 rgba(35,48,58,0.22); }
.deck-ar { font-family: var(--arabic); font-weight: 800; font-size: 30px; line-height: 1.15; color: var(--ink); }
.deck-en { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); opacity: 0.85; margin-top: 2px; }
.deck-topic { font-weight: 700; font-size: 13px; color: var(--ink); opacity: 0.72; margin-top: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.deck-yellow { background: color-mix(in srgb, var(--d-yellow) 34%, var(--cloud)); }
.deck-orange { background: color-mix(in srgb, var(--d-orange) 30%, var(--cloud)); }
.deck-grey   { background: color-mix(in srgb, var(--d-grey) 34%, var(--cloud)); }
.deck-lime   { background: color-mix(in srgb, var(--d-lime) 34%, var(--cloud)); }
.deck-purple { background: color-mix(in srgb, var(--d-purple) 30%, var(--cloud)); }
.deck-cyan   { background: color-mix(in srgb, var(--d-cyan) 30%, var(--cloud)); }
.deck-teal   { background: color-mix(in srgb, var(--d-teal) 30%, var(--cloud)); }
.deck-cta {
  background: var(--ink); color: var(--cloud); text-decoration: none;
  gap: 6px; box-shadow: 5px 6px 0 var(--sun);
}
.deck-cta:hover { box-shadow: 7px 9px 0 var(--sun); }
.deck-cta-eyes { justify-content: center; margin-bottom: 4px; }
.deck-cta-text { font-family: var(--display); font-weight: 800; font-size: 20px; }
.deck-cta-sub { font-weight: 700; font-size: 13px; color: var(--sun); }

/* ---------- Why ---------- */
.why { background: var(--cloud); border-top: 3px solid var(--ink); }
.why-row { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; margin-top: 36px; align-items: center; }
.why-photo { border-radius: var(--r); overflow: hidden; border: 3px solid var(--ink); box-shadow: 8px 10px 0 color-mix(in srgb, var(--lime) 50%, transparent); transform: rotate(-1.5deg); max-height: 460px; }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-cards { display: grid; gap: 16px; }
.why-card { background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--r-sm); padding: 20px 22px; }
.why-emoji { font-size: 30px; display: block; margin-bottom: 6px; }
.why-card h3 { font-family: var(--display); font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.why-card p { color: var(--muted); font-size: 15.5px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; align-items: start; }
.gallery-item { border-radius: var(--r-sm); overflow: hidden; border: 3px solid var(--ink); background: var(--cloud); }
.gallery-item img { width: 100%; height: auto; display: block; }

/* ---------- Shop CTA ---------- */
.shop-cta { background: var(--sun); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.shop-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.shop-cta-title { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.6vw, 38px); color: var(--ink); }
.shop-cta-sub { color: #6a5410; font-weight: 600; font-size: 17px; margin-top: 4px; }

/* ---------- Wholesale ---------- */
.wholesale { background: var(--paper); }
.wholesale-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: start; }
.wholesale-intro > p { color: var(--muted); font-size: 17px; margin-bottom: 22px; max-width: 440px; }
.wholesale-photo { border-radius: var(--r); overflow: hidden; border: 3px solid var(--ink); box-shadow: 8px 10px 0 color-mix(in srgb, var(--sun) 55%, transparent); transform: rotate(1.5deg); max-width: 360px; max-height: 320px; }
.wholesale-photo img { width: 100%; height: 100%; object-fit: cover; }

.lead-form {
  background: var(--cloud); border: 3px solid var(--ink); border-radius: var(--r);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 8px 10px 0 color-mix(in srgb, var(--blue) 35%, transparent);
}
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field-row { display: flex; gap: 16px; }
.field label { font-family: var(--display); font-weight: 700; font-size: 14px; }
.field .optional { font-weight: 400; color: var(--muted); font-family: var(--body); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 2px solid var(--rule); border-radius: var(--r-sm);
  background: var(--paper); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 108px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.cf-turnstile { max-width: 100%; }
.btn-submit { align-self: flex-start; }
.btn-submit[disabled] { opacity: 0.55; cursor: not-allowed; }
.form-status { font-size: 14px; min-height: 20px; font-weight: 600; }
.form-status.ok { color: #2c7a4b; }
.form-status.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #cfd8de; padding: 44px 0 26px; }
.foot-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 2px solid rgba(255,255,255,0.12); }
.foot-brand { display: inline-flex; align-items: center; gap: 9px; }
.foot-brand .brand-name { color: var(--cloud); }
.foot-tag { font-size: 14px; text-align: center; flex: 1; min-width: 240px; }
.foot-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; }
.foot-copy { font-size: 13px; color: #9aa6ae; }
.foot-powered { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa6ae; }
.foot-powered img { background: #fdfcf8; padding: 6px 11px; border-radius: 5px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-photo { transform: none; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 2px solid color-mix(in srgb, var(--cloud) 25%, transparent); }
  .deck-grid { grid-template-columns: repeat(2, 1fr); }
  .why-row { grid-template-columns: 1fr; gap: 30px; }
  .why-photo { transform: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gi-tall { grid-column: span 2; }
  .wholesale-grid { grid-template-columns: 1fr; gap: 34px; }
  .wholesale-photo { max-width: none; transform: none; }
  section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .deck-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gi-tall { grid-column: span 1; }
  .field-row { flex-direction: column; gap: 16px; }
  .foot-grid { flex-direction: column; text-align: center; }
  .hero-title { font-size: 42px; }
}
