/* ─────────────────────────────────────────────────────────────────────
   BAMBINO — playful baby & kids toy storefront.
   Pixel-ported from the Bambino "Baby toys store" Figma.

   Font substitutions (Figma → shipped Google Fonts):
     • Baloo Bhaina / Chalkboard SE (display, rounded) → "Baloo 2"
     • Comfortaa (nav / body / UI)                     → "Comfortaa" (exact)
     • Poppins (prices / numeric)                      → "Poppins" (exact)

   Token model: this layer carries BOTH the Bambino home-section
   `--bambino-*` tokens AND the platform inner-page tokens
   (`--color-*`, `--space-*`, `--font-*`, `--radius-*`, `--hairline`,
   `--ease`, `--color-paper`, `--font-display/mono`, `--transition`,
   `--header-height`, `--space-16`) that the forked shared snippets +
   main-* sections consume — re-pointed to the Bambino toy palette.
   ───────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Comfortaa:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

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

:root {
  /* ── Bambino home-section tokens ──────────────────────────────────── */
  --bambino-white: #ffffff;
  --bambino-ink: #191919;         /* Header ink */
  --bambino-ink-2: #2d2d2d;       /* Header1 */
  --bambino-body: #375259;        /* dark teal-slate body */
  --bambino-muted: #7f7f7f;       /* Header2 / placeholder */
  --bambino-line: #d4d4d4;        /* Border */
  --bambino-bg: #ffffff;
  --bambino-bg-soft: #f8f8f8;
  --bambino-teal: #1096b5;        /* primary brand teal */
  --bambino-teal-deep: #0f83b2;   /* button / CTA teal */
  --bambino-teal-light: #12aee0;
  --bambino-yellow: #ffe926;      /* sunny CTA */
  --bambino-pink: #f8edf8;        /* tab pill */
  --bambino-pink-2: #faefef;      /* testimonial card */
  --bambino-sale: #f27373;        /* SALE badge */
  --bambino-price: #1bbf00;       /* discounted price green */
  --bambino-font-display: 'Baloo 2', 'Comic Sans MS', system-ui, sans-serif;
  --bambino-font-body: 'Comfortaa', system-ui, -apple-system, sans-serif;
  --bambino-font-num: 'Poppins', system-ui, sans-serif;
  --bambino-radius: 20px;
  --bambino-radius-pill: 74px;
  --bambino-container: 1280px;

  /* Legacy --mila-* aliases (safety net for any forked file that still
     references them; all point at the Bambino palette). */
  --mila-white: #ffffff;
  --mila-ink: #191919;
  --mila-muted: #7f7f7f;
  --mila-line: #d4d4d4;
  --mila-bg: #ffffff;
  --mila-bg-warm: #f8f8f8;
  --mila-accent: #f27373;
  --mila-radius: 20px;
  --mila-container: 1280px;
  --mila-eyebrow-ls: 0.02em;
  --mila-font-heading: 'Baloo 2', 'Comic Sans MS', system-ui, sans-serif;
  --mila-font-body: 'Comfortaa', system-ui, -apple-system, sans-serif;

  /* ── Platform inner-page palette (re-pointed to Bambino) ──────────── */
  --color-bg:           #FFFFFF;
  --color-paper:        #FFFFFF;
  --color-surface:      #F8F8F8;
  --color-surface-2:    #F4FAFF;   /* soft blue tint */
  --color-text:         #191919;
  --color-text-muted:   #375259;
  --color-text-soft:    #7F7F7F;
  --color-border:       #D4D4D4;
  --color-border-soft:  #E9E9E9;
  --hairline:           #D4D4D4;
  --color-primary:      #0F83B2;   /* brand teal — buttons / links */
  --color-primary-text: #FFFFFF;
  --color-accent:       #F27373;   /* sale / accent */
  --color-accent-warm:  #E87B16;
  --color-success:      #1BBF00;
  --color-overlay:      rgba(25,25,25,0.42);
  --color-overlay-dark: rgba(25,25,25,0.68);

  /* Fonts (bridge → Bambino families) */
  --font-heading:   'Baloo 2', 'Comic Sans MS', system-ui, sans-serif;
  --font-display:   'Baloo 2', 'Comic Sans MS', system-ui, sans-serif;
  --font-editorial: 'Baloo 2', system-ui, sans-serif;
  --font-body:      'Comfortaa', system-ui, -apple-system, sans-serif;
  --font-mono:      'Poppins', system-ui, sans-serif;   /* numeric / prices */

  --text-xs:    0.6875rem;
  --text-sm:    0.8125rem;
  --text-base:  0.875rem;
  --text-md:    1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.375rem;
  --text-2xl:   1.75rem;
  --text-3xl:   2.25rem;
  --text-4xl:   clamp(2rem, 4vw, 2.75rem);
  --text-5xl:   clamp(2.5rem, 6vw, 3.75rem);
  --text-6xl:   clamp(3rem, 8vw, 5rem);

  --leading-tight: 1.1;
  --leading-snug:  1.2;
  --leading-base:  1.5;
  --leading-loose: 1.6;

  --tracking-tight:   -0.005em;
  --tracking-display:  0;
  --tracking-eyebrow:  0.02em;
  --tracking-wide:     0.04em;
  --tracking-mono:     0;

  --space-1:  0.25rem;  --space-2:  0.5rem;  --space-3:  0.75rem;
  --space-4:  1rem;     --space-5:  1.5rem;  --space-6:  2rem;
  --space-7:  3rem;     --space-8:  4.5rem;  --space-10: 6rem;
  --space-12: 8rem;     --space-16: 12rem;

  --radius-xs: 6px; --radius-sm: 10px; --radius-md: 15px; --radius-lg: 20px; --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(25,25,25,0.04);
  --shadow-md: 0 6px 18px rgba(16,150,181,0.08);
  --shadow-lg: 0 14px 36px rgba(16,150,181,0.12);

  --header-height:         88px;
  --header-height-desktop: 88px;
  --header-height-mobile:  60px;

  --container-max: 1280px;
  --container-pad-desktop: 40px;
  --container-pad-mobile:  16px;

  --ease: cubic-bezier(0.34, 1.2, 0.4, 1);
  --transition:      220ms cubic-bezier(0.34, 1.2, 0.4, 1);
  --transition-fast: 120ms cubic-bezier(0.34, 1.2, 0.4, 1);
  --transition-base: 220ms cubic-bezier(0.34, 1.2, 0.4, 1);
  --transition-slow: 400ms cubic-bezier(0.34, 1.2, 0.4, 1);
}

html, body { margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; }

/* ── Base typography (inner pages + shared components) ────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-snug);
  margin: 0;
  color: var(--color-text);
}
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-md);  font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin: 0; }

p { margin: 0 0 var(--space-4) 0; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.visually-hidden:focus {
  position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
  background: var(--color-primary); color: var(--color-primary-text);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); z-index: 9999;
}

.editorial { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
.editorial-eyebrow { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; color: var(--bambino-teal); font-size: var(--text-sm); }

.eyebrow {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--color-text-muted); display: inline-block;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad-desktop); }
@media (max-width: 768px) { .container { padding: 0 var(--container-pad-mobile); } }

.section-pad   { padding-block: var(--space-8); }
.section-pad-sm { padding-block: var(--space-6); }
@media (max-width: 768px) { .section-pad { padding-block: var(--space-7); } .section-pad-sm { padding-block: var(--space-5); } }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal][data-revealed] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

::selection { background: var(--bambino-teal); color: #fff; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: var(--radius-sm); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.section-head__title { font-size: var(--text-2xl); font-weight: 700; letter-spacing: 0; font-family: var(--font-heading); }
.section-head__link { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
@media (max-width: 640px) { .section-head { align-items: flex-start; } .section-head__title { font-size: var(--text-xl); } }

.num-tab, .price, .chip-num, .stat-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* ── Playful section-header helper (shared by home sections) ──────────── */
.bmb-head { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.bmb-head__title { font-family: var(--font-display); font-weight: 700; color: var(--bambino-ink); font-size: clamp(1.75rem, 3.4vw, 2.375rem); line-height: 1.2; }
.bmb-head__sub { font-family: var(--font-body); font-weight: 500; color: var(--bambino-ink-2); font-size: 1.25rem; line-height: 1.4; }
@media (max-width: 640px) { .bmb-head__title { font-size: 1.6rem; } .bmb-head__sub { font-size: 1rem; } }

/* ── Playful pill button (shared) ─────────────────────────────────────── */
.bmb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; text-align: center;
}
.bmb-btn--yellow { background: var(--bambino-yellow); color: var(--bambino-ink); border-radius: var(--bambino-radius-pill); padding: 18px 40px; }
.bmb-btn--yellow:hover { filter: brightness(0.96); transform: translateY(-1px); }
.bmb-btn--teal { background: var(--bambino-teal-deep); color: #f8f8f8; border-radius: var(--radius-md); padding: 14px 24px; }
.bmb-btn--teal:hover { filter: brightness(1.05); }
