/* ========================================================================
   MS5 — Home page (light, modern, with subtle 3D motion)
   ======================================================================== */

body.ms5-home {
  background: #fafafa;
  color: #0a0a0a;
}

body.ms5-home h1, body.ms5-home h2, body.ms5-home h3 { color: #0a0a0a; }
body.ms5-home p { color: #3f3f46; }
body.ms5-home .eyebrow { color: #525252; }
body.ms5-home .eyebrow::before { background: #525252; }

/* Light nav */
body.ms5-home .nav { --nav-text: #0a0a0a; }
body.ms5-home .nav.scrolled {
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.06);
}
body.ms5-home .nav-links a { color: #525252; }
body.ms5-home .nav-links a:hover { color: #0a0a0a; }
body.ms5-home .nav-links a::after { background: #0a0a0a; }
body.ms5-home .nav .btn-light {
  background: #0a0a0a;
  color: white;
  border-color: #0a0a0a;
}
body.ms5-home .nav .btn-light:hover { background: #262626; }
body.ms5-home .nav-toggle span { background: #0a0a0a; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 9rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 60% at 75% 20%, rgba(79, 124, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(167, 139, 250, 0.08), transparent 60%),
    radial-gradient(ellipse 90% 80% at 50% 50%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(180deg, #fafafa, #f4f4f5);
  perspective: 1400px;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-aurora::before, .hero-aurora::after {
  content: ""; position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  filter: blur(80px); opacity: 0.5;
  mix-blend-mode: multiply;
}
.hero-aurora::before {
  background: radial-gradient(circle, rgba(79, 124, 255, 0.18), transparent 60%);
  top: -20vw; right: -10vw;
  animation: aurora-a 22s ease-in-out infinite;
}
.hero-aurora::after {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15), transparent 60%);
  bottom: -25vw; left: -10vw;
  animation: aurora-b 28s ease-in-out infinite;
}
@keyframes aurora-a { 0%,100%{transform:translate(0,0);} 50%{transform:translate(-6vw,8vw);} }
@keyframes aurora-b { 0%,100%{transform:translate(0,0);} 50%{transform:translate(8vw,-8vw);} }

.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(10, 10, 10, 0.07) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

#hero-canvas {
  position: absolute;
  top: 50%;
  right: -4%;
  transform: translateY(-50%);
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  color: #0a0a0a;
}

/* Big plain MS5 hero mark */
.hero h1.hero-mark {
  margin-bottom: 1.5rem;
  line-height: 1;
  color: #0a0a0a;
  display: block;
}

.hero-tagline {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: #404040;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero .btn-primary { background: #0a0a0a; color: white; }
.hero .btn-primary:hover { background: #262626; }
.hero .btn-ghost {
  background: transparent;
  color: #0a0a0a;
  border: 1.5px solid rgba(10, 10, 10, 0.18);
}
.hero .btn-ghost:hover { background: rgba(10, 10, 10, 0.04); border-color: rgba(10, 10, 10, 0.4); }

@media (max-width: 900px) {
  #hero-canvas {
    position: relative;
    top: auto; right: auto; transform: none;
    width: 90vw;
    height: 60vw;
    margin: 2rem auto 0;
  }
  .hero { padding-top: 7rem; }
}

/* ===== Stats strip ===== */
.stats {
  background: #0a0a0a;
  color: white;
  padding: 4rem 0;
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 820px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 6px;
  display: block;
}
.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
}

/* ===== About ===== */
.about {
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: #fafafa;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.about-grid h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}
.about-grid p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: #404040;
}
.about-meta {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
.about-meta .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #e5e5e5;
}
.about-meta .row:last-child { border-bottom: 1px solid #e5e5e5; }
.about-meta .label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #737373;
}
.about-meta .value {
  font-size: 0.98rem;
  color: #0a0a0a;
}

/* ===== Programs ===== */
.programs {
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: white;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}
.section-header {
  max-width: 720px;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-header p {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: #404040;
  max-width: 580px;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 980px) {
  .biz-grid { grid-template-columns: 1fr; }
}

.biz-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  overflow: hidden;
  text-decoration: none;
  color: #0a0a0a;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
  border: 1px solid #e5e5e5;
  background: white;
}
.biz-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--card-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}
.biz-card:hover::before { opacity: 1; }
.biz-card:hover {
  transform: translateY(-6px);
  border-color: #0a0a0a;
  box-shadow: 0 24px 60px rgba(10, 10, 10, 0.08);
}

.biz-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--card-icon-bg);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.biz-icon svg { width: 26px; height: 26px; stroke: white; fill: none; stroke-width: 1.8; }

.biz-card[data-biz="hrsn"]     { --card-glow: rgba(245, 158, 11, 0.10); --card-icon-bg: linear-gradient(135deg, #0b1530, #d97706); }
.biz-card[data-biz="wellness"] { --card-glow: rgba(11, 21, 48, 0.10);   --card-icon-bg: linear-gradient(135deg, #1a2547, #4f7cff); }
.biz-card[data-biz="preschool"]{ --card-glow: rgba(13, 148, 136, 0.10); --card-icon-bg: linear-gradient(135deg, #0d9488, #fbbf24); }

.biz-card h3 { font-size: 1.55rem; margin-bottom: 0.6rem; position: relative; z-index: 1; color: #0a0a0a; }
.biz-card .biz-sub { font-size: 0.95rem; color: #525252; margin-bottom: 1.5rem; line-height: 1.55; position: relative; z-index: 1; }

.biz-points { list-style: none; margin: auto 0 1.8rem 0; position: relative; z-index: 1; }
.biz-points li { font-size: 0.92rem; color: #404040; padding: 6px 0 6px 22px; position: relative; }
.biz-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 12px; height: 1.5px;
  background: #0a0a0a;
}

.biz-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  color: #0a0a0a;
  position: relative; z-index: 1;
}
.biz-cta .arrow { transition: transform 0.3s var(--ease-out); }
.biz-card:hover .biz-cta .arrow { transform: translateX(6px); }

.biz-tag {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  background: #f4f4f5;
  border: 1px solid #e5e5e5;
  color: #525252;
  z-index: 2;
}
.biz-tag.live { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.biz-tag.soon { background: #fef3c7; color: #92400e; border-color: #fde68a; }

/* ===== Approach (dark, high-contrast) ===== */
body.ms5-home .approach {
  padding: clamp(5rem, 12vw, 9rem) 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(79, 124, 255, 0.20), transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #111422 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
body.ms5-home .approach .section-header h2 { color: #ffffff; font-weight: 800; }
body.ms5-home .approach .section-header p { color: rgba(255, 255, 255, 0.85); }
body.ms5-home .approach .eyebrow { color: #a4b5ff; }
body.ms5-home .approach .eyebrow::before { background: #a4b5ff; }

body.ms5-home .approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 820px) {
  body.ms5-home .approach-grid { grid-template-columns: 1fr; }
}
body.ms5-home .value {
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
body.ms5-home .value:hover {
  border-color: rgba(124, 155, 255, 0.45);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}
body.ms5-home .value-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #a4b5ff;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}
body.ms5-home .value h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: #ffffff;
  font-weight: 700;
}
body.ms5-home .value p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

/* ===== Contact CTA ===== */
.cta-strip {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: #fafafa;
  text-align: center;
}
.cta-strip h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 1rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.cta-strip p {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: #404040;
}
.cta-strip .btn-primary { background: #0a0a0a; color: white; }
.cta-strip .btn-primary:hover { background: #262626; }
.cta-strip .btn-light { background: white; color: #0a0a0a; border: 1.5px solid #d4d4d4; }
.cta-strip .btn-light:hover { background: #f4f4f5; border-color: #0a0a0a; }
