﻿/* =========================================================
   ABACADA · Adaptive Learning System
   Design tokens + base styles
   ========================================================= */

:root {
  /* Warm + Green palette */
  --cream:       #FFF7E6;
  --cream-2:     #FFF1D4;
  --paper:       #FFFDF7;
  --ink:         #1F1B16;
  --ink-2:       #4A3F33;
  --ink-3:       #7A6F62;

  --orange:      #FF6B35;  /* primary */
  --orange-2:    #FF8A5E;
  --orange-deep: #E0470F;
  --yellow:      #FFC93C;  /* secondary */
  --yellow-2:    #FFD966;
  --green:       #2EC4A3;  /* success / growth */
  --green-deep:  #1F8F77;
  --blue:        #2B6BE3;  /* accent / links */
  --blue-deep:   #1A4FC7;
  --pink:        #FF4E8A;  /* playful accent */
  --lilac:       #C8A2FF;

  --border:      #1F1B16;
  --shadow-hard: 4px 4px 0 0 var(--ink);
  --shadow-soft: 0 14px 40px -16px rgba(31,27,22,.25);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 44px;

  --f-display: 'Unbounded', 'Poppins', system-ui, sans-serif;
  --f-body:    'Lexend', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

/* ───────── layout ───────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.site { overflow-x: hidden; }

/* section spacing */
section { padding: 96px 0; position: relative; }
@media (max-width: 780px) { section { padding: 64px 0; } }

/* ───────── shared components ───────── */

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 4px 4px 0 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--ink);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 0 var(--ink); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn--primary { background: var(--orange); color: var(--ink); }
.btn--yellow  { background: var(--yellow);  color: var(--ink); }
.btn--white   { background: var(--paper);   color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--paper); box-shadow: 3px 3px 0 0 var(--ink); transform: none; }
.btn--sm { padding: 10px 18px; font-size: 13px; }

/* Card — shared structural block */
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: 5px 5px 0 0 var(--ink);
  padding: 28px;
  position: relative;
}
.card--flat { box-shadow: none; }
.card--orange { background: var(--orange); color: var(--ink); }
.card--yellow { background: var(--yellow); color: var(--ink); }
.card--green  { background: var(--green);  color: var(--paper); }
.card--blue   { background: var(--blue);   color: var(--paper); }
.card--ink    { background: var(--ink);    color: var(--cream); }
.card--cream2 { background: var(--cream-2); color: var(--ink); }

/* Section heading block */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
  align-items: center;
}
.sec-head h2 {
  font-size: clamp(32px, 4.2vw, 54px);
}
.sec-head p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 620px;
}
.sec-head--left { text-align: left; align-items: flex-start; margin-left: 0; }

/* Letter chip — the little ABACADA motif piece */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.chip--orange { background: var(--orange); }
.chip--yellow { background: var(--yellow); }
.chip--green  { background: var(--green); color: var(--paper); }
.chip--blue   { background: var(--blue); color: var(--paper); }
.chip--pink   { background: var(--pink); color: var(--paper); }

/* Utility */
.flex { display: flex; }
.center { align-items: center; justify-content: center; }
.col { flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.grid { display: grid; gap: 20px; }

/* Kids-style underline */
.squiggle {
  position: relative;
  display: inline-block;
}
.squiggle::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px; bottom: -8px;
  height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'><path d='M2 8 Q 15 -2 30 6 T 58 6 T 86 6 T 118 4' fill='none' stroke='%23FF6B35' stroke-width='4' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
  pointer-events: none;
}
.squiggle--yellow::after { filter: hue-rotate(30deg) saturate(1.4) brightness(1.15); }

/* Section divider with dots */
.dots-row {
  display: flex; gap: 8px; justify-content: center; margin: 0 auto 20px;
}
.dots-row i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
  display: block;
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .star { color: var(--orange); font-size: 22px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Responsive grid helper */
.g-2 { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .g-4-mob-2 { grid-template-columns: 1fr 1fr; }
}

/* Small tag label */
.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper);
}

/* Media placeholders */
.media {
  background: var(--cream-2);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}

/* Stat number */
.stat-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Helpers for SVG illustrations */
.ill-wrap { position: relative; }

/* focus */
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

