/* ============================================================
   LITTLE LION DAYCARE — Design System
   Inspired by the Wonder Early Learning system, adapted to
   Little Lion's brand (lion mascot, cream + sky blue + amber).
   ============================================================ */

/* ---- FONTS ---- */
@font-face {
  font-family: 'GoodDog New';
  src: url('../fonts/gooddognew.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Han Sans CN';
  src: url('../fonts/SourceHanSansSC-Normal.otf') format('opentype');
  font-weight: normal;
  font-display: swap;
}
@font-face { font-family: 'Sofia Pro'; src: url('../fonts/SofiaPro-Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Sofia Pro'; src: url('../fonts/SofiaPro-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sofia Pro'; src: url('../fonts/SofiaPro-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sofia Pro'; src: url('../fonts/SofiaPro-SemiBold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sofia Pro'; src: url('../fonts/SofiaPro-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* --- Brand Colors (extracted from Little Lion logo) --- */
  --color-mane:        #E76F2E;   /* Lion mane orange - primary */
  --color-mane-dark:   #C8541C;
  --color-mane-light:  #F4924F;
  --color-amber:       #F8A640;   /* Lion body amber - accent */
  --color-amber-light: #FBC078;
  --color-sky:         #92B5D6;   /* Sky blue background */
  --color-sky-light:   #BCD4E8;
  --color-sky-soft:    #E8EFF6;   /* Very soft sky for sections */
  --color-cream:       #FAEFD5;   /* Belly cream - main bg */
  --color-cream-warm:  #F5E8C8;
  --color-brown:       #6E4126;   /* Lion nose brown - secondary text */
  --color-navy:        #181F3D;   /* Lion eye dark - headings on light */

  /* --- Semantic --- */
  --color-bg:          #FFFDF8;   /* Slightly warmer than white */
  --color-bg-cream:    var(--color-cream);
  --color-bg-soft:     #FAF6EC;
  --color-surface:     #FFFFFF;
  --color-primary:     var(--color-mane);
  --color-accent:      var(--color-amber);
  --color-text:        #2C2520;
  --color-text-soft:   var(--color-brown);
  --color-text-muted:  #9C8B7A;
  --color-border:      #E8DFCB;
  --color-border-soft: #F0E9D8;

  /* --- Fonts --- */
  --font-display:   'GoodDog New', 'Comic Sans MS', cursive;
  --font-body:      'Sofia Pro', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-zh:        'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* --- Type scale --- */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;
  --text-6xl:  4.5rem;
  --text-7xl:  6rem;

  /* --- Spacing --- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --space-32: 128px;

  /* --- Radius --- */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* --- Shadow (warm-tinted) --- */
  --shadow-sm: 0 2px 8px rgba(110, 65, 38, 0.06);
  --shadow-md: 0 4px 16px rgba(110, 65, 38, 0.08);
  --shadow-lg: 0 8px 32px rgba(110, 65, 38, 0.10);
  --shadow-xl: 0 16px 48px rgba(110, 65, 38, 0.12);

  /* --- Animation --- */
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast:   150ms;
  --duration-normal: 250ms;
  --duration-slow:   400ms;

  /* --- Layout --- */
  --max-width: 1240px;
  --max-width-narrow: 880px;
  --nav-height: 76px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-navy);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-md); }

p { color: var(--color-text); }

a { color: var(--color-mane); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--color-mane-dark); }

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

.zh { font-family: var(--font-zh); }
.accent { font-family: var(--font-display); font-weight: normal; color: var(--color-mane); letter-spacing: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
section { padding: var(--space-20) 0; }
section.tight { padding: var(--space-12) 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border-soft);
  height: var(--nav-height);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--color-navy);
  letter-spacing: -0.01em;
}
.nav-brand img { height: 44px; width: 44px; object-fit: contain; }
.nav-brand .brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand .brand-name .en { font-size: var(--text-md); }
.nav-brand .brand-name .zh { font-size: var(--text-xs); color: var(--color-text-soft); margin-top: 2px; font-family: var(--font-zh); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  position: relative;
}
.nav-links a:hover { color: var(--color-mane); }
.nav-links a.active { color: var(--color-mane); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--color-mane);
  border-radius: 2px;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--color-sky-soft);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-navy);
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.lang-toggle:hover { background: var(--color-sky-light); }

/* Mobile menu button */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--color-navy); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: -0.005em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--color-mane);
  color: white;
  box-shadow: 0 4px 14px rgba(231, 111, 46, 0.30);
}
.btn-primary:hover {
  background: var(--color-mane-dark);
  color: white;
  box-shadow: 0 6px 20px rgba(231, 111, 46, 0.38);
}

.btn-amber {
  background: var(--color-amber);
  color: var(--color-navy);
  box-shadow: 0 4px 14px rgba(248, 166, 64, 0.30);
}
.btn-amber:hover { background: #F09430; box-shadow: 0 6px 20px rgba(248, 166, 64, 0.38); }

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-mane); color: var(--color-mane); }

.btn-sky {
  background: var(--color-sky);
  color: white;
}
.btn-sky:hover { background: #7AA3CB; color: white; }

.btn-lg { padding: 16px 32px; font-size: var(--text-md); }
.btn-sm { padding: 10px 18px; font-size: var(--text-sm); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
  border: 1px solid var(--color-border-soft);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-flat {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-border-soft);
}

/* ============================================================
   PILLS / BADGES
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-sky-soft);
  color: var(--color-navy);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pill-mane    { background: rgba(231, 111, 46, 0.12); color: var(--color-mane-dark); }
.pill-amber   { background: rgba(248, 166, 64, 0.18); color: #B26B0E; }
.pill-sky     { background: rgba(146, 181, 214, 0.22); color: #3C6890; }
.pill-cream   { background: var(--color-cream); color: var(--color-brown); }
.pill-success { background: rgba(0, 147, 109, 0.12); color: #00674C; }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
  background: currentColor;
}

/* ============================================================
   GRADE BADGES (T / P / K)
   ============================================================ */
.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: white;
  font-weight: normal;
  flex-shrink: 0;
}
.grade-T { background: #00936D; }       /* Toddler - emerald */
.grade-P { background: var(--color-amber); color: var(--color-navy); }  /* Preschool - amber */
.grade-K { background: #FFA3B3; }       /* Kindergarten - blush */

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(146,181,214,0.18), transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(248,166,64,0.14), transparent 50%),
    var(--color-bg);
  padding: var(--space-20) 0 var(--space-24);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.hero h1 {
  margin-bottom: var(--space-6);
  letter-spacing: -0.025em;
}
.hero h1 .accent {
  display: inline-block;
  color: var(--color-mane);
  transform: rotate(-2deg);
  margin: 0 0.05em;
}
.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-soft);
  margin-bottom: var(--space-8);
  max-width: 520px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust strong { color: var(--color-navy); font-weight: 600; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 4%;
  background: var(--color-sky);
  border-radius: 50%;
  z-index: 0;
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: 86%;
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Floating decoration shapes */
.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--color-cream);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}
.trust-strip-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-6);
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item .label { font-size: var(--text-xs); color: var(--color-text-soft); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.trust-item .value { font-size: var(--text-md); color: var(--color-navy); font-weight: 600; }

/* ============================================================
   PROGRAM CARDS
   ============================================================ */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}
.program-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-border-soft);
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-card .age {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-soft);
  margin-bottom: var(--space-3);
}
.program-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: normal;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  letter-spacing: 0;
}
.program-card .desc { color: var(--color-text-soft); margin-bottom: var(--space-5); }
.program-card ul { list-style: none; padding: 0; }
.program-card li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.program-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 12px; height: 12px;
  background: var(--color-amber);
  border-radius: 50%;
}
.program-card.is-infant li::before { background: var(--color-sky); }
.program-card.is-toddler li::before { background: #00936D; }
.program-card.is-preschool li::before { background: var(--color-amber); }
.program-card.is-chinese li::before { background: var(--color-mane); }

.program-card .top-band {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
}
.program-card.is-infant .top-band { background: var(--color-sky); }
.program-card.is-toddler .top-band { background: #00936D; }
.program-card.is-preschool .top-band { background: var(--color-amber); }
.program-card.is-chinese .top-band { background: var(--color-mane); }

/* ============================================================
   CURRICULUM TABLE
   ============================================================ */
.curriculum-filters {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--color-cream);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-navy);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.filter-btn:hover { background: var(--color-cream-warm); }
.filter-btn.active {
  background: var(--color-navy);
  color: white;
}

.curriculum-table {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-soft);
}
.curriculum-table .table-head {
  background: var(--color-navy);
  color: white;
  display: grid;
  grid-template-columns: 100px 200px 200px 1.4fr 1fr 1fr 1fr;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  gap: var(--space-4);
}
.curriculum-table .month-row {
  display: grid;
  grid-template-columns: 100px 200px 200px 1.4fr 1fr 1fr 1fr;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border-soft);
  align-items: flex-start;
  gap: var(--space-4);
  transition: background var(--duration-fast) var(--ease-out);
}
.curriculum-table .month-row:nth-child(even) { background: rgba(250, 246, 236, 0.5); }
.curriculum-table .month-row:hover { background: var(--color-bg-soft); }
.curriculum-table .month-row:last-child { border-bottom: none; }
.curriculum-table .month-cell { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--text-sm); }
.curriculum-table .month-cell .m-dot { width: 10px; height: 10px; border-radius: 50%; }
.curriculum-table .theme-cell { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-navy); line-height: 1.15; letter-spacing: 0; }
.curriculum-table .theme-cell .zh-sub { display: block; font-family: var(--font-zh); font-size: var(--text-sm); color: var(--color-text-soft); font-weight: 400; margin-top: 4px; }
.curriculum-table .trait-cell { font-weight: 700; }
.curriculum-table .trait-cell .es { display: block; font-size: var(--text-xs); color: var(--color-text-muted); font-style: italic; font-weight: 400; margin-top: 4px; }
.curriculum-table .topics-cell ul { list-style: none; }
.curriculum-table .topics-cell li {
  font-size: var(--text-sm);
  padding: 3px 0 3px 16px;
  position: relative;
  color: var(--color-text);
}
.curriculum-table .topics-cell li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--color-mane);
  font-weight: 700;
}
.curriculum-table .small-cell {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  line-height: 1.4;
}

/* Month dot colors */
.m-sep { background: #92B5D6; }   .m-oct { background: #8E94DC; }
.m-nov { background: #FFC846; }   .m-dec { background: #00936D; }
.m-jan { background: #F09935; }   .m-feb { background: #A38DD0; }
.m-mar { background: #181F3D; }   .m-apr { background: #D59CD6; }
.m-may { background: #B86F47; }   .m-jun { background: #00936D; }
.m-jul { background: #FF6F68; }   .m-aug { background: #479DA6; }

/* ============================================================
   SCHEDULE TABLE (Daily Schedule)
   ============================================================ */
.schedule {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface);
}
.schedule-row {
  display: grid;
  grid-template-columns: 130px 1.2fr 1.6fr 1fr;
  border-bottom: 1px solid var(--color-border-soft);
  align-items: stretch;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row.head {
  background: var(--color-sky);
  color: white;
  font-weight: 700;
}
.schedule-row.head .cell { padding: var(--space-4) var(--space-5); }
.schedule-row.head .cell .zh { display: block; font-size: var(--text-sm); opacity: 0.9; margin-top: 2px; }
.schedule-row.alt { background: rgba(248, 166, 64, 0.10); }
.schedule-row .cell { padding: var(--space-5); display: flex; flex-direction: column; gap: 4px; }
.schedule-row .time { font-weight: 700; font-size: var(--text-md); color: var(--color-navy); justify-content: center; }
.schedule-row .activity { font-weight: 600; }
.schedule-row .zh { font-family: var(--font-zh); color: var(--color-text-soft); font-size: var(--text-sm); }
.schedule-row .example { color: var(--color-text); }
.schedule-row .example .en-text { font-style: italic; color: var(--color-text-soft); font-size: var(--text-sm); }
.schedule-row .skills { font-size: var(--text-xs); color: var(--color-text-soft); }

/* ============================================================
   FEATURE GRID
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}
.feature {
  text-align: left;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-sky-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 28px;
}
.feature h4 { font-size: var(--text-md); margin-bottom: var(--space-2); color: var(--color-navy); }
.feature p { color: var(--color-text-soft); font-size: var(--text-sm); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial {
  background: var(--color-cream);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -8px; left: 28px;
  font-family: 'Georgia', serif;
  font-size: 120px;
  color: var(--color-amber);
  line-height: 1;
}
.testimonial blockquote {
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.55;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-navy);
  font-size: var(--text-sm);
}
.testimonial cite span { color: var(--color-text-soft); font-weight: 400; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-mane) 0%, var(--color-amber) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: white; margin-bottom: var(--space-4); }
.cta-banner p { color: rgba(255, 255, 255, 0.9); font-size: var(--text-lg); max-width: 580px; margin: 0 auto var(--space-8); }
.cta-banner .btn { background: white; color: var(--color-mane); }
.cta-banner .btn:hover { background: var(--color-cream); }
.cta-banner .btn-outline { background: transparent; border: 1.5px solid white; color: white; }
.cta-banner .btn-outline:hover { background: white; color: var(--color-mane); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-navy);
  color: var(--color-cream);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-brand { max-width: 320px; }
.footer-brand img { height: 56px; width: 56px; margin-bottom: var(--space-4); }
.footer-brand h3 { color: white; margin-bottom: var(--space-3); }
.footer-brand p { color: rgba(250, 239, 213, 0.7); font-size: var(--text-sm); line-height: 1.6; }
.footer-col h4 { color: white; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; }
.footer-col li { padding: 6px 0; }
.footer-col a { color: rgba(250, 239, 213, 0.75); font-size: var(--text-sm); }
.footer-col a:hover { color: var(--color-amber); }
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(250, 239, 213, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(250, 239, 213, 0.6);
}

/* ============================================================
   PAGE HEADER (for sub-pages)
   ============================================================ */
.page-header {
  background:
    radial-gradient(circle at 90% 50%, rgba(146,181,214,0.18), transparent 50%),
    var(--color-bg);
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 1px solid var(--color-border-soft);
}
.page-header .eyebrow {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-mane);
  margin-bottom: var(--space-3);
}
.page-header h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin-bottom: var(--space-4);
}
.page-header h1 .accent { display: inline-block; color: var(--color-mane); transform: rotate(-2deg); }
.page-header p { font-size: var(--text-lg); color: var(--color-text-soft); max-width: 640px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section-head .eyebrow {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-mane);
  margin-bottom: var(--space-3);
}
.section-head h2 {
  margin-bottom: var(--space-4);
}
.section-head h2 .accent {
  display: inline-block;
  color: var(--color-mane);
  transform: rotate(-2deg);
}
.section-head p {
  font-size: var(--text-lg);
  color: var(--color-text-soft);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   FORM
   ============================================================ */
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  color: var(--color-text);
  transition: border-color var(--duration-fast) var(--ease-out);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--color-mane);
  box-shadow: 0 0 0 3px rgba(231,111,46,0.12);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .curriculum-table .table-head,
  .curriculum-table .month-row {
    grid-template-columns: 80px 1.5fr 1fr;
  }
  .curriculum-table .table-head .col-trait,
  .curriculum-table .table-head .col-numbers,
  .curriculum-table .table-head .col-letters,
  .curriculum-table .month-row .trait-cell,
  .curriculum-table .month-row .numbers-cell,
  .curriculum-table .month-row .letters-cell { display: none; }
  .schedule-row { grid-template-columns: 1fr; }
  .schedule-row .cell { padding: var(--space-3) var(--space-5); }
  .schedule-row.head { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .nav-cta { gap: var(--space-2); }
  .nav-brand .brand-name .en { font-size: var(--text-sm); }
  .nav-brand .brand-name .zh { font-size: 11px; }
  .nav-brand img { height: 36px; width: 36px; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  section { padding: var(--space-12) 0; }
  .cta-banner { padding: var(--space-10) var(--space-6); }

  /* === Mobile nav drawer (opens when .nav-toggle clicked) === */
  body.mobile-menu-open .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-bg);
    padding: var(--space-5) var(--space-6) var(--space-8);
    box-shadow: var(--shadow-lg);
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    align-items: stretch;
    z-index: 99;
    animation: drawer-down 0.25s var(--ease-out);
  }
  body.mobile-menu-open .nav-links li { list-style: none; }
  body.mobile-menu-open .nav-links a {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    font-weight: 600;
    display: block;
  }
  body.mobile-menu-open .nav-links a:hover,
  body.mobile-menu-open .nav-links a.active {
    background: var(--color-cream);
    color: var(--color-mane);
  }
  body.mobile-menu-open .nav-links a.active::after { display: none; }
  body.mobile-menu-open::after {
    content: '';
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: rgba(44, 37, 32, 0.4);
    z-index: 98;
    animation: fade-in 0.2s var(--ease-out);
  }
  @keyframes drawer-down {
    from { transform: translateY(-12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* === Force inline 2-column grids to stack on mobile === */
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.1fr"],
  [style*="grid-template-columns: 1.15fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }

  /* Tuition "Best Value" — remove scale that causes overflow */
  .card[style*="transform: scale(1.02)"] {
    transform: none !important;
  }

  /* Programs page — make the big GoodDog labels smaller */
  div[style*="font-size: var(--text-7xl)"] {
    font-size: var(--text-5xl) !important;
  }

  /* Hero — tighter on phone */
  .hero { padding: var(--space-12) 0 var(--space-16); }
  .hero h1 { letter-spacing: -0.015em; }
  .hero-visual { max-width: 280px; }
  .hero-trust { font-size: var(--text-xs); gap: var(--space-3); }
  .hero-actions .btn { flex: 1; min-width: 140px; }

  /* Curriculum table — convert to cards on mobile */
  .curriculum-table .table-head { display: none; }
  .curriculum-table .month-row {
    display: block !important;
    padding: var(--space-5) !important;
    grid-template-columns: none !important;
  }
  .curriculum-table .month-cell {
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-soft);
  }
  .curriculum-table .theme-cell {
    font-size: var(--text-2xl) !important;
    margin-bottom: var(--space-3);
  }
  .curriculum-table .trait-cell,
  .curriculum-table .topics-cell,
  .curriculum-table .small-cell {
    display: block !important;
    margin-bottom: var(--space-3);
  }
  .curriculum-table .small-cell {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg-soft);
    border-radius: var(--radius-sm);
  }

  /* Section heading sizes */
  .section-head h2,
  .page-header h1 { font-size: clamp(1.875rem, 7vw, 2.5rem); }

  /* Smaller card padding on phone */
  .card { padding: var(--space-6); }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-mane { color: var(--color-mane); }
.text-amber { color: var(--color-amber); }
.text-sky { color: var(--color-sky); }
.text-soft { color: var(--color-text-soft); }
.bg-cream { background: var(--color-cream); }
.bg-sky-soft { background: var(--color-sky-soft); }
.bg-bg-soft { background: var(--color-bg-soft); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Hide visually but keep for screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
