/* =========================================================
   小画家艺术学校 Little Artists Studio — Shared Styles
   ========================================================= */

:root {
  /* Primary triad (red / yellow / blue) matched to the Art Planet storefront
     sign: warm red, golden yellow, soft sky blue. --turquoise and --purple
     are shades of that same blue (not separate hues) for variety without
     breaking the 3-color system. */
  --coral: #E1483C;
  --coral-dark: #C23931;
  --turquoise: #4FAAD4;
  --turquoise-dark: #196A98;
  --yellow: #F0C23A;
  --yellow-dark: #B8890C;
  --sky: #7DC8E5;
  --sky-dark: #1D7AAE;
  --purple: #4A6FA5;
  --purple-dark: #2C4A73;
  --cream: #FBF8F2;
  --cream-2: #F1ECE0;
  --ink: #232134;
  --ink-soft: #58566A;
  --white: #FFFFFF;
  --line: #E6E0D2;
  --shadow: 0 10px 30px rgba(35, 33, 52, 0.10);
  --shadow-sm: 0 4px 14px rgba(35, 33, 52, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-heading: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 0.5em;
  line-height: 1.25;
}

p { margin: 0 0 1em; }
a { color: var(--sky-dark); text-decoration: none; }
img { max-width: 100%; display: block; }

.section-head h2 strong { color: var(--turquoise-dark); font-weight: 700; }
.home-band h2 strong { color: var(--purple-dark); font-weight: 700; }
.home-stats-section h2 strong { color: var(--sky-dark); font-weight: 700; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Decorative blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

.splat {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* ---------- Top navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink);
}

.brand .logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-block;
  filter: drop-shadow(var(--shadow-sm));
}

.brand-text { display: inline-flex; }
.brand-1 { color: var(--coral); }
.brand-2 { color: var(--sky-dark); }
html[lang="en"] .brand-1,
html[lang="en"] .brand-2 { text-transform: uppercase; }
html[lang="en"] .brand-2 { margin-left: 0.28em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  border-color: var(--coral);
  color: var(--coral-dark);
}

.nav-cta {
  background: var(--coral);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  border: none !important;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  background: var(--coral-dark);
  border-color: transparent !important;
}

.lang-toggle {
  display: flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  margin-left: 8px;
}

.lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  color: var(--ink);
}

.lang-toggle button.active {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }

.btn-secondary { background: var(--turquoise); color: var(--white); }
.btn-secondary:hover { background: var(--turquoise-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: none;
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--sky-dark);
  box-shadow: none;
  padding: 10px 16px;
}
.btn-ghost:hover { text-decoration: underline; }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 24px 110px;
  text-align: center;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--purple-dark);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.hero h1 .accent {
  color: var(--coral);
  position: relative;
  display: inline-block;
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ---------- Sections ---------- */
.section {
  padding: 70px 24px;
  position: relative;
}

.section-alt { background: var(--cream-2); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 46px;
}

.section-head .eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--turquoise-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.82rem;
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.section-head p { color: var(--ink-soft); }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 26px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card .icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.icon-badge.c1 { background: #FFE3E0; }
.icon-badge.c2 { background: #DFF6F3; }
.icon-badge.c3 { background: #FFF3D0; }
.icon-badge.c4 { background: #E8E0FB; }
.icon-badge.c5 { background: #DCEEFC; }
.icon-badge.c6 { background: #FCE3F3; }

.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 0; }

/* age pills */
.age-pills {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.age-pill {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
}

.age-pill span { color: var(--coral); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--purple), var(--sky));
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: var(--white);
  margin: 0 24px;
  position: relative;
  overflow: hidden;
}

.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 480px; margin: 0 auto 28px; }
.cta-band .btn-primary { background: var(--white); color: var(--purple-dark); }
.cta-band .btn-primary:hover { background: var(--cream); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  padding: 46px 24px 26px;
  margin-top: 60px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto 26px;
}

.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-grid a { color: rgba(255,255,255,0.75); display: block; margin-bottom: 8px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--yellow); }
.footer-brand { max-width: 300px; }
.footer-brand .brand { color: var(--white); }

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  max-width: 1120px;
  margin: 0 auto;
}

/* =========================================================
   Forms
   ========================================================= */

.form-shell {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.form-section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--turquoise-dark);
  margin: 34px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title:first-of-type { margin-top: 0; }

.field {
  margin-bottom: 20px;
}

.field label,
.field-legend {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 7px;
}

.field .hint {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-left: 4px;
}

.required-star { color: var(--coral); margin-left: 2px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="password"],
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--white);
}

.field textarea { resize: vertical; min-height: 90px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.radio-pill, .checkbox-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.radio-pill:has(input:checked),
.checkbox-pill:has(input:checked) {
  border-color: var(--turquoise);
  background: #E4F8F6;
}

.radio-pill input, .checkbox-pill input { accent-color: var(--turquoise-dark); width: 16px; height: 16px; }

.conditional-box {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #FFF7E6;
  border: 2px dashed var(--yellow-dark);
  display: none;
}

.conditional-box.show { display: block; }

.agree-choice {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.agree-choice label {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  justify-content: center;
}

.agree-choice input { width: 17px; height: 17px; accent-color: var(--turquoise-dark); }
.agree-choice label:has(input:checked) {
  border-color: var(--turquoise-dark);
  background: #E4F8F6;
  color: var(--turquoise-dark);
}

.agreement-text {
  max-height: 180px;
  overflow-y: auto;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.signature-pad-wrap {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  padding: 10px;
}

.signature-pad-wrap canvas {
  width: 100%;
  height: 160px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  touch-action: none;
  cursor: crosshair;
}

.signature-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.signature-actions .sig-hint { font-size: 0.78rem; color: var(--ink-soft); }

.field-error {
  color: var(--coral-dark);
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: var(--coral);
  background: #FFF1F0;
}

.field.invalid .field-error { display: block; }

.form-submit-row {
  margin-top: 30px;
  text-align: center;
}

.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

.form-message {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 22px;
  font-weight: 700;
  display: none;
}

.form-message.show { display: block; }
.form-message.success { background: #E1F7EA; color: #1F8B4C; border: 2px solid #B7EAC7; }
.form-message.error { background: #FFEAEA; color: var(--coral-dark); border: 2px solid #FFC9C9; }

/* =========================================================
   Admin
   ========================================================= */

.admin-shell { min-height: 100vh; background: var(--cream-2); }

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.admin-login-card .brand { justify-content: center; margin-bottom: 6px; }
.admin-login-card .subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--white);
  border-bottom: 3px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar .brand { font-size: 1.1rem; }

.admin-nav {
  display: flex;
  gap: 6px;
}

.admin-nav a, .admin-nav button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--ink);
  border: none;
  background: transparent;
  cursor: pointer;
}

.admin-nav a.active, .admin-nav a:hover, .admin-nav button:hover {
  background: var(--cream-2);
  color: var(--coral-dark);
}

.admin-main { max-width: 1200px; margin: 0 auto; padding: 30px 24px 60px; }

.admin-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  flex: 1;
  min-width: 260px;
  max-width: 460px;
  box-shadow: var(--shadow-sm);
}

.search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.95rem;
  background: transparent;
  font-family: var(--font-body);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.stat-card .num {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
}

.stat-card .label { color: var(--ink-soft); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card.c1 .num { color: var(--coral-dark); }
.stat-card.c2 .num { color: var(--turquoise-dark); }
.stat-card.c3 .num { color: var(--sky-dark); }
.stat-card.c4 .num { color: var(--purple-dark); }

.table-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

.data-table th {
  text-align: left;
  background: var(--cream-2);
  color: var(--ink-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 13px 16px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr.row-clickable { cursor: pointer; }
.data-table tr.row-clickable:hover { background: var(--cream-2); }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-yes { background: #FFE9D6; color: #C6690A; }
.badge-no { background: #E7F5EC; color: #2E8B57; }
.badge-agree { background: #E1F7EA; color: #1F8B4C; }
.badge-disagree { background: #FFEAEA; color: var(--coral-dark); }

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--ink-soft);
}

.empty-state .emoji { font-size: 2.4rem; margin-bottom: 10px; }

/* modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 42, 69, 0.45);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  z-index: 200;
}

.modal-overlay.show { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  padding: 34px;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--cream-2);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.detail-item { }
.detail-item .k { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-soft); font-weight: 700; margin-bottom: 3px; }
.detail-item .v { font-size: 0.96rem; color: var(--ink); }
.detail-item.full { grid-column: 1 / -1; }

.detail-item .v.sig-img { border: 1px solid var(--line); border-radius: 10px; background: var(--cream); padding: 8px; }
.detail-item .v.sig-img img { max-height: 90px; }

.checkbox-select {
  width: 18px;
  height: 18px;
  accent-color: var(--coral);
  cursor: pointer;
}

.compose-shell {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.recipient-summary {
  background: var(--cream-2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 20px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.pagination button {
  border: 2px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-heading);
}

.pagination button.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

.spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.spinner.dark { border-color: rgba(46,42,69,0.2); border-top-color: var(--ink); }

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

/* =========================================================
   Homepage redesign (calcolor.com-inspired layout)
   ========================================================= */

/* Announcement bar */
.announce-bar {
  background: var(--sky);
  color: var(--ink);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 20px;
}

.announce-bar a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 6px;
  white-space: nowrap;
}

.nav-login {
  color: var(--ink) !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Hero (centered) ---------- */
.home-hero {
  position: relative;
  padding: 70px 24px 90px;
  overflow: hidden;
}

.home-hero-grid {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.home-hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  text-align: center;
  margin: 0 0 18px;
}

.home-hero-copy .lead {
  text-align: center;
  margin: 0 auto 30px;
  max-width: 560px;
  font-size: 1.08rem;
}

.home-hero-copy .hero-actions {
  justify-content: center;
}

/* Flat geometric accent shapes */
.home-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.home-shape.circle { border-radius: 50%; }
.home-shape.square { border-radius: 8px; }
.home-shape.tri {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.home-shape.quarter {
  border-radius: 0 100% 0 0;
}

/* ---------- Program cards (image-forward) ---------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.program-card {
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: transform 0.15s ease;
}

.program-card:hover { transform: translateY(-3px); }
.program-card:hover .program-tile { box-shadow: var(--shadow); }
.program-card:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }

.age-modal-body {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.program-tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-tile .emoji { font-size: 3.2rem; position: relative; z-index: 1; }

.program-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.program-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; }

.program-age {
  display: inline-block;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

/* ---------- Tinted band (why choose us) ---------- */
.home-band {
  background: #EAF0FB;
  padding: 76px 24px;
  position: relative;
  overflow: hidden;
}

.home-band-content {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.home-band .eyebrow { color: var(--purple-dark); }

.home-band h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  text-align: left;
  margin-bottom: 16px;
  max-width: 780px;
}

.home-band p.lead2 {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 620px;
  margin-bottom: 30px;
}

.home-band .link-more {
  font-weight: 700;
  color: var(--purple-dark);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 8px;
}

.feature-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-list-item .emoji {
  font-size: 1.3rem;
  background: var(--white);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.feature-list-item .txt h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  margin: 0 0 3px;
}

.feature-list-item .txt p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
}

.home-band-visual {
  position: relative;
  min-height: 320px;
}

.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
}

.quote-card .mark {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}

.quote-card p {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 18px;
}

.quote-card .sig {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 700;
}

/* ---------- Stats row ---------- */
.home-stats-section {
  padding: 70px 24px 30px;
  text-align: center;
}

.home-stats {
  max-width: 1000px;
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.home-stat .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink);
}

.home-stat .num .accent { color: var(--sky-dark); }

.home-stat .label {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 700;
  margin-top: 6px;
}

.home-stat .dot {
  width: 14px;
  height: 14px;
  margin: 14px auto 0;
}

/* ---------- CTA band (full bleed split) ---------- */
.home-cta {
  background: var(--cream-2);
  padding: 0;
  overflow: hidden;
}

.home-cta-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 64px 24px;
}

.home-cta h2 {
  text-align: left;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 14px;
}

.home-cta p {
  color: var(--ink-soft);
  margin-bottom: 26px;
  max-width: 420px;
}

.home-cta-visual {
  position: relative;
  aspect-ratio: 5/3;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .home-cta-grid { grid-template-columns: 1fr; text-align: center; }
  .home-cta h2, .home-cta p { text-align: center; margin-left: auto; margin-right: auto; }
  .home-cta .hero-actions { justify-content: center; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 3px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-shell { padding: 28px 20px; }
  .cta-band { margin: 0 16px; padding: 40px 24px; }
  .program-grid { grid-template-columns: 1fr; }
  .home-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .feature-list { grid-template-columns: 1fr; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .admin-topbar { flex-direction: column; gap: 12px; align-items: flex-start; }
}
