/* KidGo shared styles: brand tokens, base elements, header, buttons, footer. Page layouts stay in each page. */
:root {
  /* Brand colours sampled from the KidGo logo and poster. */
  --brand: #193AFD;
  --brand-deep: #0F27C4;
  --yellow: #F9E014;
  --navy: #0A1450;
  --go: #0B7A3B;

  --paper: #FFF8EA;
  --surface: #FFFFFF;
  --surface-2: #FFF1CC;
  --ink: #0A1450;
  --ink-soft: #3B4470;
  --line: rgba(10, 20, 80, .14);
  --focus: #193AFD;
  --band: var(--brand);
  --footer: #0A1450;
  --shadow-press: 0 4px 0 #0A1450;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --gutter: 20px;
  --max: 1200px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --paper: #0A1033;
  --surface: #131C52;
  --surface-2: #1B2566;
  --ink: #F4F1E6;
  --ink-soft: #B9BEDB;
  --line: rgba(255, 255, 255, .14);
  --focus: #F9E014;
  --band: #1733E0;
  --footer: #060A24;
  --shadow-press: 0 4px 0 #050A2E;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1033;
    --surface: #131C52;
    --surface-2: #1B2566;
    --ink: #F4F1E6;
    --ink-soft: #B9BEDB;
    --line: rgba(255, 255, 255, .14);
    --focus: #F9E014;
    --band: #1733E0;
    --footer: #060A24;
    --shadow-press: 0 4px 0 #050A2E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* Component display rules must never override the hidden attribute. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.on-brand { --focus: #F9E014; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--navy); padding: 12px 16px; border-radius: var(--r-sm); font-weight: 700;
}
.skip:focus { top: 12px; }

/* Demo strip: this is a pitch prototype, say so plainly. */
.demo-strip { background: var(--navy); color: #F4F1E6; font-size: .9rem; }
:root[data-theme="dark"] .demo-strip { background: #050A2E; }
.demo-strip .wrap { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.demo-strip p { flex: 1; }
.demo-strip strong { color: var(--yellow); }
.demo-strip button {
  background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: var(--r-sm);
  min-height: 44px; min-width: 44px; padding: 0 12px; cursor: pointer; color: #F4F1E6; font-weight: 600;
}
.demo-strip button:hover { background: rgba(255,255,255,.1); }
.demo-strip[hidden] { display: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--brand); color: #fff; }
:root[data-theme="dark"] .site-header { background: var(--band); }
.site-header .wrap { display: flex; align-items: center; gap: 8px; height: 68px; }
.brand { display: flex; flex: none; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { width: 118px; height: auto; }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: var(--r-sm);
}
.nav-links a:hover { background: rgba(255,255,255,.12); }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-sm);
  color: #fff; cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,.2); }
.lang-btn { font-weight: 800; letter-spacing: .02em; font-size: .95rem; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
.menu-btn { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; font-weight: 700; }
.menu-btn .close { display: none; }
.menu-btn[aria-expanded="true"] .open { display: none; }
.menu-btn[aria-expanded="true"] .close { display: block; }
.site-header .header-cta { display: none; }

.mobile-menu { background: var(--brand-deep); border-top: 1px solid rgba(255,255,255,.18); }
:root[data-theme="dark"] .mobile-menu { background: #0E1E9C; }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { padding: 8px 0 16px; }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; min-height: 50px; padding: 0 4px; text-decoration: none;
  font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-menu .btn { margin-top: 14px; width: 100%; }

/* Buttons: the hard navy drop echoes the thick outline on the KidGo logo. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r-md);
  font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease;
}
.btn-yellow { background: var(--yellow); color: var(--navy); border-color: var(--navy); box-shadow: var(--shadow-press); }
.btn-yellow:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #0A1450; }
.btn-yellow:active { transform: translateY(3px); box-shadow: 0 1px 0 #0A1450; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ink { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .btn-ink { background: var(--yellow); color: var(--navy); }
.btn-ink:hover { filter: brightness(1.15); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .98rem; }

/* Footer */
.site-footer { background: var(--footer); color: #E6E9FF; padding: 40px 0 32px; }
.foot-grid { display: grid; gap: 22px; }
.site-footer img { width: 130px; }
.foot-grid p { font-size: .95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-small { font-size: .85rem; color: #B9BEDB; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; }

@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .foot-grid { grid-template-columns: auto 1fr; align-items: center; }
  .foot-small { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  :root { --gutter: 36px; }
  .brand img { width: 132px; }
}
/* 1180px+: room for the full link row without wrapping */
@media (min-width: 1180px) {
  .nav-links { display: flex; margin-right: 8px; }
  .nav-links a { white-space: nowrap; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
