/* ============================================================================
   KIT — fonts, design tokens, reset, shared building blocks.
   Brand palette from the Kiddos Learning identity; section styles in app.css.
   ========================================================================== */

@font-face {
  font-family: 'Liter';
  src: url('../fonts/Liter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Quattrocento Sans';
  src: url('../fonts/QuattrocentoSans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Quattrocento Sans';
  src: url('../fonts/QuattrocentoSans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-black: #171717;
  --brand-blue: #1591c5;
  --brand-gold: #f5b77a;
  --brand-gray: #f5f5f5;
  --brand-green: #2aa555;
  --brand-peach: #fbbf89;
  --brand-red: #f84c3e;
  --brand-white: #ffffff;

  --font-display: 'Liter', Georgia, serif;
  --font-body: 'Quattrocento Sans', 'Segoe UI', Arial, sans-serif;

  --shadow-card: 0 10px 40px rgba(23, 23, 23, 0.08);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);

  --page-pad: clamp(24px, 5vw, 80px);
  --page-max: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brand-black);
  background: var(--brand-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- shared building blocks ---------- */

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.font-display { font-family: var(--font-display); }

.mono-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(23, 23, 23, 0.6);
}
.mono-label::before,
.mono-label::after {
  content: '';
  width: 34px;
  height: 1px;
  background: rgba(23, 23, 23, 0.2);
}
.mono-label--light { color: rgba(255, 255, 255, 0.75); }
.mono-label--light::before,
.mono-label--light::after { background: rgba(255, 255, 255, 0.3); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 18px 0 0;
  text-align: center;
}

.section-head { text-align: center; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 16px 34px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--brand-gold);
  color: var(--brand-black);
  box-shadow: 0 8px 24px rgba(245, 183, 122, 0.45);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(245, 183, 122, 0.6); }

.btn-secondary {
  background: transparent;
  color: var(--brand-white);
  outline: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .animate-float, .animate-float-slow { animation: none !important; }
}

/* ---------- floating decorations ---------- */

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}
.animate-float { animation: float 5s ease-in-out infinite; }
.animate-float-slow { animation: float 8s ease-in-out infinite; }

@keyframes pulse-gentle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.animate-pulse-gentle { animation: pulse-gentle 2.4s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
