/* Milestones Child Care — Check-In/Out Kiosk */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #2d6e4d;          /* forest green — growth, trust */
  --primary-dark: #1f4d36;
  --primary-light: #4a8c6b;
  --accent: #f0884a;           /* warm orange */
  --accent-light: #fcb98e;
  --sky: #5b9bb5;              /* secondary blue */
  --sun: #ffc857;              /* sunshine yellow for highlights */
  --bg: #fdf9f3;               /* cream */
  --bg-card: #ffffff;
  --bg-soft: #f5efe5;
  --ink: #1f2d24;
  --text: #2c3a30;
  --text-soft: #5a6960;
  --border: #e6ddcd;
  --border-strong: #c9bca5;
  --success: #4caf50;
  --success-bg: #e8f5e9;
  --warn: #f57c00;
  --warn-bg: #fff3e0;
  --danger: #d65a5a;
  --danger-bg: #fde8e8;
  --shadow: 0 4px 16px rgba(45, 110, 77, 0.08);
  --shadow-lg: 0 12px 36px rgba(45, 110, 77, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
button { font-family: inherit; cursor: pointer; }

/* ============ KIOSK SHELL (parent-facing) ============ */

.kiosk-app {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse at top right, rgba(255,200,87,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(91,155,181,0.10) 0%, transparent 50%),
    var(--bg);
}

.kiosk-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 1rem;
}
.brand-logo {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 2rem;
  box-shadow: 0 4px 12px rgba(45,110,77,0.25);
}
.brand-name {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--ink); line-height: 1.1;
}
.brand-tag {
  font-size: .85rem; color: var(--text-soft);
  margin-top: .15rem;
}
.kiosk-clock {
  text-align: right;
}
.kiosk-clock .time {
  font-family: 'Quicksand', sans-serif;
  font-size: 2rem; font-weight: 700;
  color: var(--primary); line-height: 1;
}
.kiosk-clock .date {
  font-size: .9rem; color: var(--text-soft);
  margin-top: .2rem;
}

.kiosk-main {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem;
}

/* ===== Welcome screen — two big buttons ===== */

.welcome {
  width: 100%; max-width: 900px;
  text-align: center;
}
.welcome h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: .5rem;
  color: var(--ink);
}
.welcome .sub {
  color: var(--text-soft);
  font-size: 1.15rem;
  margin-bottom: 3rem;
}
.action-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.big-action {
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: 24px;
  text-align: center;
  transition: all .18s;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.big-action:hover, .big-action:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  outline: none;
}
.big-action.signin { border-color: var(--primary); }
.big-action.signin:hover { background: var(--success-bg); border-color: var(--primary-dark); }
.big-action.signout { border-color: var(--accent); }
.big-action.signout:hover { background: var(--warn-bg); }
.big-action .icon {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 1rem;
}
.big-action.signin .icon { color: var(--primary); }
.big-action.signout .icon { color: var(--accent); }
.big-action h2 {
  font-size: 2.5rem;
  letter-spacing: -.01em;
  margin-bottom: .25rem;
}
.big-action .desc {
  color: var(--text-soft);
  font-size: 1rem;
}

/* Welcome footer with status */
.welcome-status {
  margin-top: 3rem;
  display: flex; gap: 2rem; justify-content: center;
  flex-wrap: wrap;
}
.status-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--text-soft);
  display: flex; align-items: center; gap: .5rem;
}
.status-pill .num { color: var(--primary); font-weight: 700; font-size: 1.05rem; }

/* ===== Modal screens (PIN, child select, signature, photo) ===== */

.modal {
  position: fixed; inset: 0;
  background: rgba(31, 45, 36, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
  z-index: 100;
  animation: fadein .25s ease;
}
.modal.show { display: flex; }
@keyframes fadein { from {opacity:0} to {opacity:1} }

.modal-card {
  background: var(--bg-card);
  border-radius: 24px;
  width: 100%; max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  position: relative;
  animation: slidein .25s ease;
}
@keyframes slidein { from {transform: translateY(20px); opacity:0} to {transform: translateY(0); opacity:1} }
.modal-card.large { max-width: 900px; }

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  background: var(--bg-soft);
  border: none; border-radius: 50%;
  font-size: 1.4rem; color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--border); }

.modal-title {
  font-size: 1.8rem;
  margin-bottom: .3rem;
  color: var(--ink);
}
.modal-title .accent { color: var(--primary); }
.modal-title .pickup { color: var(--accent); }
.modal-sub {
  color: var(--text-soft);
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
}

/* ===== PIN keypad ===== */

.pin-display {
  background: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 3rem;
  letter-spacing: 1.2rem;
  padding-left: 2rem;
  color: var(--primary);
  margin-bottom: 1.4rem;
  min-height: 5rem;
  font-weight: 700;
}
.pin-display.error { background: var(--danger-bg); color: var(--danger); animation: shake .3s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-8px)} 75%{transform:translateX(8px)} }

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.key {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.4rem; font-weight: 600;
  background: var(--bg-card);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: 16px;
  height: 78px;
  cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all .1s;
}
.key:hover { background: var(--bg-soft); border-color: var(--border-strong); }
.key:active, .key.pressed {
  transform: scale(.96);
  background: var(--primary); color: white; border-color: var(--primary);
}
.key.action {
  background: var(--danger-bg); color: var(--danger);
  border-color: var(--danger); font-size: 1.4rem; font-weight: 700;
}
.key.action:hover { background: var(--danger); color: white; }
.key.confirm {
  background: var(--success-bg); color: var(--success);
  border-color: var(--success);
}
.key.confirm:hover { background: var(--success); color: white; }

/* ===== Child selection cards ===== */

.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.child-card {
  border: 3px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  background: var(--bg-card);
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.child-card:hover { border-color: var(--primary-light); }
.child-card.selected {
  border-color: var(--primary);
  background: var(--success-bg);
  transform: scale(1.02);
}
.child-card.unavailable {
  opacity: .45;
  cursor: not-allowed;
}
.child-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--bg-soft);
  margin: 0 auto .8rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 2.5rem; color: var(--primary);
  font-weight: 700;
  border: 3px solid var(--bg-card);
  background-size: cover; background-position: center;
}
.child-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600; font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: .2rem;
}
.child-meta {
  font-size: .85rem; color: var(--text-soft);
}
.child-status-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: .7rem; font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.child-status-badge.in { background: var(--success); color: white; }
.child-status-badge.out { background: var(--bg-soft); color: var(--text-soft); }
.child-card .alert-marker {
  position: absolute; top: 8px; left: 8px;
  background: var(--danger);
  color: white;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}

/* ===== Alert / info panels ===== */

.alert-panel {
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  display: flex; gap: .8rem;
  align-items: flex-start;
  font-size: .95rem;
}
.alert-panel.allergy { background: var(--danger-bg); border-left: 4px solid var(--danger); color: #7a1f1f; }
.alert-panel.medical { background: var(--warn-bg); border-left: 4px solid var(--warn); color: #6e3a00; }
.alert-panel.note { background: var(--bg-soft); border-left: 4px solid var(--sky); }
.alert-panel.custody { background: var(--danger-bg); border-left: 4px solid var(--danger); color: #7a1f1f; font-weight: 600; }
.alert-panel .alert-icon { font-size: 1.4rem; flex-shrink: 0; }
.alert-panel strong { display: block; margin-bottom: .2rem; }

/* ===== Health check & confirmation ===== */

.health-check {
  background: var(--success-bg);
  border: 2px solid var(--primary-light);
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.health-check.confirmed {
  background: var(--success-bg);
  border-color: var(--success);
}
.health-check .check-box {
  width: 36px; height: 36px;
  border: 3px solid var(--primary);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: white; font-weight: 700;
  background: white;
}
.health-check.confirmed .check-box {
  background: var(--success); border-color: var(--success);
}
.health-check h4 { color: var(--ink); margin-bottom: .3rem; }
.health-check p { color: var(--text-soft); font-size: .9rem; line-height: 1.5; }

/* ===== Signature pad ===== */

.signature-block {
  margin-bottom: 1.5rem;
}
.signature-block label {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--ink);
}
.signature-canvas-wrap {
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
}
canvas.signature {
  display: block;
  width: 100%;
  height: 180px;
  cursor: crosshair;
  touch-action: none;
}
.signature-clear {
  position: absolute; top: 8px; right: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: .4rem .8rem;
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text-soft);
}
.signature-line {
  position: absolute; bottom: 30px; left: 20px; right: 20px;
  border-bottom: 1px solid var(--border-strong);
  pointer-events: none;
}
.signature-hint {
  position: absolute; bottom: 12px; left: 20px;
  color: var(--text-soft);
  font-size: .85rem;
  pointer-events: none;
}

/* ===== Photo capture ===== */

.photo-block {
  margin-bottom: 1.5rem;
}
.photo-block label {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--ink);
}
.photo-stage {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--ink);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.photo-stage video, .photo-stage img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-stage .placeholder {
  color: white;
  text-align: center;
}
.photo-stage button.capture-btn {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: white;
  border: 4px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
}
.photo-stage button.capture-btn::before {
  content: ''; width: 50px; height: 50px; border-radius: 50%; background: white;
}
.photo-stage button.retake-btn {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.6); color: white;
  border: none; padding: .5rem 1rem;
  border-radius: 8px; font-size: .85rem;
}

/* ===== Buttons ===== */

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .01em;
  flex: 1;
  min-height: 56px;
}
.btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn.primary:disabled { background: var(--border); border-color: var(--border); color: var(--text-soft); cursor: not-allowed; }
.btn.accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn.accent:hover { background: #de7235; }
.btn.outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn.outline:hover { background: var(--bg-soft); }
.btn.danger {
  background: var(--danger); color: white; border-color: var(--danger);
}

/* ===== Success screen ===== */

.success-screen {
  text-align: center;
  padding: 2rem;
}
.success-icon {
  width: 120px; height: 120px;
  background: var(--success);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 4.5rem;
  animation: pop .4s ease;
}
.success-icon.signout { background: var(--accent); }
@keyframes pop { 0%{transform:scale(0)} 60%{transform:scale(1.15)} 100%{transform:scale(1)} }
.success-screen h2 {
  font-size: 2.2rem; margin-bottom: .5rem;
  color: var(--ink);
}
.success-screen p {
  color: var(--text-soft);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}
.success-screen .countdown {
  font-size: .9rem;
  color: var(--text-soft);
}

/* ============ DIRECTOR ADMIN ============ */

.admin-shell {
  min-height: 100vh;
  padding: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding-bottom: 1.5rem; margin-bottom: 2rem;
  border-bottom: 2px solid var(--primary);
}
.admin-header .title-block { display: flex; align-items: center; gap: 1rem; }
.admin-header h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2rem;
  color: var(--ink);
}
.admin-header .badge {
  background: var(--primary); color: white;
  padding: .3rem 1rem; border-radius: 999px;
  font-size: .8rem; letter-spacing: 1px;
  font-weight: 700; text-transform: uppercase;
}

.tabs {
  display: flex; gap: .3rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tab {
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-soft);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: -2px;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.panel h2 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--border);
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.4rem;
  border-radius: 14px;
  text-align: center;
  border-top: 4px solid var(--primary);
}
.stat-card.warn { border-top-color: var(--warn); }
.stat-card.danger { border-top-color: var(--danger); }
.stat-card .num {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  color: var(--ink); line-height: 1;
}
.stat-card .lbl {
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-soft); font-size: .75rem;
  margin-top: .4rem; font-weight: 600;
}

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .8rem .6rem; text-align: left; border-bottom: 1px solid var(--border); }
th {
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-soft); font-size: .75rem;
  font-weight: 700;
}
td.name { font-weight: 600; color: var(--ink); }

.tag-pill {
  display: inline-block;
  padding: .2rem .7rem;
  font-size: .75rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-right: .3rem;
}
.tag-pill.in { background: var(--success-bg); color: var(--success); }
.tag-pill.out { background: var(--bg-soft); color: var(--text-soft); }
.tag-pill.late { background: var(--danger-bg); color: var(--danger); }
.tag-pill.allergy { background: var(--danger-bg); color: var(--danger); }
.tag-pill.medical { background: var(--warn-bg); color: var(--warn); }

.btn-sm {
  padding: .35rem 1rem;
  font-size: .85rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.btn-sm:hover { background: var(--primary); border-color: var(--primary); color: white; }
.btn-sm.danger:hover { background: var(--danger); border-color: var(--danger); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid.full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink);
}
.form-group input, .form-group select, .form-group textarea {
  padding: .8rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: white;
  color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,110,77,.12);
}
.form-group .hint { font-size: .8rem; color: var(--text-soft); }

.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; }

.empty {
  padding: 2.5rem;
  text-align: center;
  color: var(--text-soft);
}

/* GATE (admin login) */
.gate {
  position: fixed; inset: 0;
  background: rgba(31,45,36,.92);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
}
.gate-box {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 460px; width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.gate-box h2 { font-size: 1.8rem; margin-bottom: .5rem; }
.gate-box p { color: var(--text-soft); margin-bottom: 1.5rem; }
.gate-box input {
  width: 100%; padding: 1rem;
  background: var(--bg-soft); border: 2px solid var(--border);
  color: var(--ink); border-radius: 12px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem; letter-spacing: 8px;
  text-align: center;
  margin-bottom: 1rem;
}
.gate-error { color: var(--danger); margin-top: .5rem; min-height: 1.4em; font-size: .9rem; }

/* Family expandable card */
.family-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.family-head {
  padding: 1.2rem 1.4rem;
  background: var(--bg-soft);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.family-head h3 { font-size: 1.15rem; }
.family-meta { color: var(--text-soft); font-size: .85rem; margin-top: .2rem; }
.family-body { padding: 1.4rem; display: none; background: var(--bg-card); }
.family-card.open .family-body { display: block; }
.family-body h4 { font-size: 1rem; margin: 1rem 0 .6rem; color: var(--primary); }
.family-body h4:first-child { margin-top: 0; }

.list-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: none; }

@media (max-width: 720px) {
  .action-pair { grid-template-columns: 1fr; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .modal-card { padding: 1.5rem; }
  .keypad .key { height: 64px; font-size: 2rem; }
}

/* ============================================================
   PUBLIC WEBSITE STYLES — Home, About, Enroll, Contact
   ============================================================ */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 249, 243, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.site-nav .brand-link { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.site-nav .brand-logo {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem;
  box-shadow: 0 3px 10px rgba(45,110,77,0.25);
}
.site-nav .brand-name {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 1.2rem; color: var(--ink); line-height: 1.1;
}
.site-nav .brand-tag { font-size: .75rem; color: var(--text-soft); }
.site-nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}
.site-nav-links a {
  color: var(--text); text-decoration: none;
  font-family: 'Quicksand', sans-serif; font-weight: 600;
  font-size: 1rem; padding: .4rem 0;
  position: relative; transition: color .15s;
}
.site-nav-links a:hover, .site-nav-links a.active { color: var(--primary); }
.site-nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 3px; background: var(--accent); border-radius: 2px;
}
.site-nav-links .enroll-cta {
  background: var(--primary); color: white;
  padding: .7rem 1.4rem; border-radius: 999px;
  transition: all .15s;
}
.site-nav-links .enroll-cta:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }
.site-nav-links .enroll-cta::after { display: none !important; }
.site-nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.6rem; color: var(--ink); cursor: pointer;
}

.site-hero {
  position: relative;
  padding: 5rem 2rem 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(255,200,87,0.20) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(91,155,181,0.12) 0%, transparent 50%),
    var(--bg);
}
.site-hero-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 3rem; align-items: center;
}
.site-hero h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.05; color: var(--ink); margin-bottom: 1.2rem;
}
.site-hero h1 .accent { color: var(--primary); }
.site-hero h1 .underline { color: var(--accent); position: relative; display: inline-block; }
.site-hero h1 .underline::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.05em;
  height: .15em; background: var(--sun); border-radius: 100px; opacity: .7;
}
.site-hero .lead {
  font-size: 1.2rem; color: var(--text-soft);
  max-width: 540px; margin-bottom: 2rem; line-height: 1.6;
}
.site-hero .ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-illustration {
  aspect-ratio: 4/5;
  background: var(--bg-card); border-radius: 24px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,200,87,.5), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(240,136,74,.35), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(91,155,181,.3), transparent 40%),
    linear-gradient(135deg, #fdf9f3, #f5efe5);
}
.hero-illustration::before {
  content: ''; position: absolute; inset: 1.5rem;
  border-radius: 18px; border: 3px dashed rgba(45,110,77,.25);
}
.hero-illustration .illust-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center;
  padding: 2rem; gap: .5rem;
}
.hero-illustration .big-emoji {
  font-size: 7rem; line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.1));
  animation: bobble 6s ease-in-out infinite;
}
@keyframes bobble {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
.hero-illustration .illust-caption {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  color: var(--primary); font-size: 1.2rem; margin-top: 1rem;
}
.hero-illustration .illust-replace {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  text-align: center; color: var(--text-soft);
  font-size: .75rem; font-style: italic;
}

.site-section { padding: 5rem 2rem; }
.site-section.tinted { background: var(--bg-soft); }
.site-section.primary { background: var(--primary); color: white; }
.site-section.primary h2, .site-section.primary h3 { color: white; }
.site-container { max-width: 1200px; margin: 0 auto; }

.site-eyebrow {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent); font-size: .85rem; margin-bottom: .5rem;
}
.site-h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--ink); margin-bottom: 1rem; line-height: 1.15;
}
.site-h2 .accent { color: var(--primary); }
.site-section.primary .site-eyebrow { color: var(--sun); }
.site-section.primary .site-h2 .accent { color: var(--sun); }

.programs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.program-card {
  background: var(--bg-card); border-radius: 20px;
  padding: 2rem 1.6rem; border: 1px solid var(--border);
  transition: all .2s; position: relative; overflow: hidden;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg); border-color: var(--primary-light);
}
.program-card .age-badge {
  display: inline-block; background: var(--bg-soft);
  color: var(--primary); font-family: 'Quicksand', sans-serif;
  font-weight: 700; padding: .3rem 1rem; border-radius: 999px;
  font-size: .8rem; letter-spacing: 1px; margin-bottom: 1rem;
}
.program-card .icon {
  width: 60px; height: 60px;
  background: var(--bg-soft); border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 1.2rem;
}
.program-card h3 {
  font-family: 'Quicksand', sans-serif; font-size: 1.4rem;
  color: var(--ink); margin-bottom: .5rem;
}
.program-card p { color: var(--text-soft); font-size: .95rem; line-height: 1.55; }
.program-card .ratio {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--primary); font-weight: 600; font-size: .9rem;
}

.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; margin-top: 2.5rem;
}
.why-card { display: flex; gap: 1rem; align-items: flex-start; }
.why-card .why-icon {
  flex-shrink: 0; width: 56px; height: 56px;
  border-radius: 16px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
}
.why-card.primary-icon .why-icon { background: var(--primary); color: white; }
.why-card.accent-icon .why-icon { background: var(--accent); color: white; }
.why-card.sky-icon .why-icon { background: var(--sky); color: white; }
.why-card.sun-icon .why-icon { background: var(--sun); color: var(--ink); }
.why-card h3 {
  font-family: 'Quicksand', sans-serif; font-size: 1.15rem;
  margin-bottom: .4rem; color: var(--ink);
}
.why-card p { color: var(--text-soft); font-size: .95rem; line-height: 1.55; }

.day-timeline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin-top: 2rem;
}
.day-block {
  background: rgba(255,255,255,.1);
  padding: 1.4rem; border-radius: 16px;
  text-align: center; border: 1px solid rgba(255,255,255,.15);
}
.day-block .time {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--sun); margin-bottom: .4rem;
}
.day-block .activity {
  font-size: 1rem; color: rgba(255,255,255,.92);
  margin-bottom: .3rem; font-weight: 500;
}
.day-block .detail { font-size: .8rem; color: rgba(255,255,255,.7); }

.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.testimonial {
  background: var(--bg-card); border-radius: 18px;
  padding: 2rem; border-left: 4px solid var(--primary);
  position: relative;
}
.testimonial::before {
  content: '"'; position: absolute; top: -.5rem; right: 1rem;
  font-family: 'Quicksand', sans-serif; font-size: 5rem;
  color: var(--accent); opacity: .25; line-height: 1;
}
.testimonial-text {
  color: var(--text); font-size: 1rem;
  font-style: italic; margin-bottom: 1.2rem; line-height: 1.6;
}
.testimonial-author { display: flex; align-items: center; gap: .8rem; font-size: .9rem; }
.testimonial-author .avatar {
  width: 40px; height: 40px;
  background: var(--bg-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  color: var(--primary);
}
.testimonial-author strong { display: block; color: var(--ink); }
.testimonial-author span { color: var(--text-soft); font-size: .85rem; }

.info-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; background: var(--bg-card);
  border-radius: 24px; padding: 2rem;
  margin: 0 auto; max-width: 1100px;
  box-shadow: var(--shadow);
}
.info-strip .info-item { text-align: center; padding: .5rem; }
.info-strip .info-value {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 1.8rem; color: var(--primary); margin-bottom: .3rem;
}
.info-strip .info-label {
  font-size: .85rem; color: var(--text-soft); letter-spacing: .5px;
}

.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; padding: 4rem 2rem;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,200,87,.25), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(240,136,74,.2), transparent 40%);
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem; color: white;
}
.cta-band p {
  font-size: 1.15rem; margin-bottom: 2rem;
  opacity: .92; max-width: 640px;
  margin-left: auto; margin-right: auto;
}
.cta-band .btn.primary {
  background: white; color: var(--primary); border-color: white;
}
.cta-band .btn.primary:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }

.about-poster {
  aspect-ratio: 4/5;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,200,87,.5), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(240,136,74,.35), transparent 50%),
    linear-gradient(135deg, var(--bg-soft), var(--bg-card));
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.about-poster::before {
  content: ''; position: absolute; inset: 1.5rem;
  border-radius: 16px; border: 3px dashed rgba(45,110,77,.25);
}
.about-poster .big-text {
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 4rem; color: var(--primary); line-height: 1;
}
.about-poster .small-text {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem; color: var(--accent); margin-top: .5rem;
}
.about-poster .since {
  margin-top: 1rem; letter-spacing: 4px;
  font-size: .8rem; color: var(--text-soft); text-transform: uppercase;
}

.about-grid-public {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 3rem; align-items: center;
}

.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.team-card {
  background: var(--bg-card); border-radius: 18px;
  padding: 1.8rem; text-align: center;
  border: 1px solid var(--border); transition: all .2s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-photo {
  width: 110px; height: 110px;
  border-radius: 50%; background: var(--bg-soft);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 2.5rem; color: var(--primary);
  border: 3px solid var(--bg-card);
  box-shadow: 0 4px 12px rgba(45,110,77,.15);
}
.team-card h3 { font-family: 'Quicksand', sans-serif; font-size: 1.2rem; color: var(--ink); margin-bottom: .2rem; }
.team-card .role {
  color: var(--accent); font-weight: 600; font-size: .85rem;
  margin-bottom: 1rem; letter-spacing: 1px; text-transform: uppercase;
}
.team-card p { color: var(--text-soft); font-size: .9rem; line-height: 1.5; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
.contact-info {
  background: var(--bg-card); padding: 2.5rem;
  border-radius: 20px; border-left: 4px solid var(--accent);
  box-shadow: var(--shadow); height: fit-content;
}
.contact-info h3 { color: var(--primary); font-size: 1.4rem; margin-bottom: 1.5rem; }
.info-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row .info-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--bg-soft); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.info-row strong {
  display: block; color: var(--ink);
  font-family: 'Quicksand', sans-serif; font-weight: 600;
  margin-bottom: .2rem;
}
.info-row span { color: var(--text-soft); font-size: .95rem; }
.info-row a { color: var(--primary); font-weight: 600; text-decoration: none; }

.contact-form-card {
  background: var(--bg-card); padding: 2.5rem;
  border-radius: 20px; box-shadow: var(--shadow);
}
.contact-form-card h3 { color: var(--ink); font-size: 1.4rem; margin-bottom: 1.5rem; }
.form-success-box {
  display: none; padding: 1.4rem; margin-top: 1.2rem;
  background: var(--success-bg);
  border-left: 4px solid var(--success);
  border-radius: 8px; color: var(--ink);
}
.form-success-box.show { display: block; }
.form-success-box strong { color: var(--success); }

.enroll-hero {
  background:
    linear-gradient(180deg, transparent 0%, rgba(45,110,77,.04) 100%),
    var(--bg);
  padding: 4rem 2rem 3rem; text-align: center;
}
.enroll-hero h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--ink); margin-bottom: .5rem;
}
.enroll-hero h1 .accent { color: var(--primary); }
.enroll-hero p {
  color: var(--text-soft); font-size: 1.15rem;
  max-width: 640px; margin: 0 auto;
}

.enroll-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 3rem; align-items: start;
}
.enroll-form-card {
  background: var(--bg-card); padding: 2.5rem;
  border-radius: 20px; box-shadow: var(--shadow);
}
.enroll-form-card h2 {
  color: var(--ink); font-size: 1.5rem;
  margin-bottom: 1.5rem; font-family: 'Quicksand', sans-serif;
}
.enroll-aside {
  background: var(--bg-card); padding: 2rem;
  border-radius: 20px; border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.enroll-aside h3 {
  color: var(--primary); font-family: 'Quicksand', sans-serif;
  margin-bottom: 1rem; font-size: 1.2rem;
}
.next-steps-list { list-style: none; counter-reset: step; }
.next-steps-list li {
  position: relative; padding-left: 50px;
  padding-bottom: 1.5rem; counter-increment: step;
}
.next-steps-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px;
  background: var(--primary); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1rem;
}
.next-steps-list li:not(:last-child)::after {
  content: ''; position: absolute;
  left: 17px; top: 36px;
  width: 2px; height: calc(100% - 36px);
  background: var(--border);
}
.next-steps-list strong {
  display: block; color: var(--ink);
  font-family: 'Quicksand', sans-serif; margin-bottom: .3rem;
}
.next-steps-list p {
  color: var(--text-soft); font-size: .9rem; line-height: 1.5; margin-bottom: 0;
}

.site-footer {
  background: #2a3a30; color: rgba(255,255,255,.85);
  padding: 3rem 2rem 1.5rem;
}
.site-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; max-width: 1200px; margin: 0 auto 2rem;
}
.site-footer h4 {
  color: var(--sun);
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer a {
  color: rgba(255,255,255,.7); text-decoration: none;
  transition: color .15s;
}
.site-footer a:hover { color: var(--sun); }
.site-footer .footer-brand {
  display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem;
}
.site-footer .footer-brand .brand-logo {
  width: 44px; height: 44px;
  background: var(--accent); color: white;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.site-footer .footer-brand strong {
  font-family: 'Quicksand', sans-serif; font-size: 1.1rem; color: white;
}
.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem; text-align: center;
  font-size: .85rem; color: rgba(255,255,255,.55);
}

@media (max-width: 880px) {
  .site-hero-grid, .about-grid-public, .contact-grid, .enroll-grid { grid-template-columns: 1fr; }
  .hero-illustration { aspect-ratio: 1/1; max-height: 400px; }
  .about-poster { aspect-ratio: 1/1; max-height: 360px; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-nav { padding: .8rem 1rem; }
  .site-nav-toggle { display: block; }
  .site-nav-links {
    display: none; position: absolute; top: 100%; left: 0; rig