/* ========================================================================
   MS5 Preschool — Teal + Yellow (matches logo)
   Warm, friendly, family-feeling
   ======================================================================== */

:root {
  --p-teal:       #0d9488;
  --p-teal-deep:  #0f766e;
  --p-teal-soft:  #2dd4bf;
  --p-yellow:     #fbbf24;
  --p-yellow-soft:#fcd34d;
  --p-cream:      #fefdf8;
  --p-warm-bg:    #fff8e6;
  --p-ink:        #134e48;
  --p-orange:     #f4845f;
  --p-purple:     #a78bfa;
}

body.ms5-preschool {
  --ms5-cut: var(--p-cream);   /* page bg used by the wordmark see-through cut */
  background: var(--p-cream);
  color: var(--p-ink);
}
body.ms5-preschool h1,
body.ms5-preschool h2,
body.ms5-preschool h3 { color: var(--p-teal-deep); }
body.ms5-preschool p { color: #3a5a55; }
body.ms5-preschool .eyebrow { color: var(--p-teal); }

/* ===== Hero ===== */
.p-hero {
  position: relative;
  padding: 10rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 50% at 85% 25%, rgba(251, 191, 36, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(45, 212, 191, 0.25), transparent 60%),
    linear-gradient(180deg, var(--p-cream), white);
  overflow: hidden;
}

.p-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(244, 132, 95, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 60%, rgba(167, 139, 250, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

/* Floating decorative shapes */
.p-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: drift 12s ease-in-out infinite;
}
.p-shape.s1 { width: 120px; height: 120px; top: 18%; left: 8%; background: radial-gradient(circle, var(--p-yellow), var(--p-yellow-soft)); opacity: 0.45; animation-delay: 0s; }
.p-shape.s2 { width: 80px; height: 80px; top: 70%; left: 15%; background: var(--p-orange); opacity: 0.35; animation-delay: -3s; }
.p-shape.s3 { width: 100px; height: 100px; top: 25%; right: 8%; background: var(--p-teal-soft); opacity: 0.35; animation-delay: -6s; }
.p-shape.s4 { width: 60px; height: 60px; top: 75%; right: 15%; background: var(--p-purple); opacity: 0.3; animation-delay: -9s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(20px, -15px); }
  50%      { transform: translate(-10px, 20px); }
  75%      { transform: translate(15px, 10px); }
}

.p-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .p-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.p-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: white;
  border: 2px solid var(--p-yellow);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--p-teal-deep);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.1);
}
.p-hero-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--p-yellow);
  animation: pulse 2s infinite;
}

.p-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--p-teal-deep);
}
.p-hero h1 .accent {
  color: var(--p-yellow);
  background: linear-gradient(135deg, var(--p-yellow), var(--p-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.p-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.p-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.p-hero .btn-primary {
  background: var(--p-teal);
  color: white;
}
.p-hero .btn-primary:hover { background: var(--p-teal-deep); }
.p-hero .btn-ghost { border-color: var(--p-teal); color: var(--p-teal-deep); }
.p-hero .btn-ghost:hover { background: rgba(13, 148, 136, 0.06); }

/* Logo stage */
.p-logo-stage {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(13, 148, 136, 0.18);
  position: relative;
  transform: rotate(-1deg);
  transition: transform 0.4s var(--ease-out);
}
.p-logo-stage:hover { transform: rotate(0deg) scale(1.02); }
.p-logo-stage img { width: 100%; height: auto; }
.p-logo-stage::before {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 72px;
  height: 72px;
  background: var(--p-yellow);
  border-radius: 50%;
  z-index: -1;
}
.p-logo-stage::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 60px;
  height: 60px;
  background: var(--p-orange);
  border-radius: 50%;
  z-index: -1;
}

/* ===== At-a-glance ===== */
.p-glance {
  padding: 5rem 0 3rem;
  background: white;
}
.p-glance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 900px) {
  .p-glance-grid { grid-template-columns: 1fr; }
}
.p-fact {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--p-warm-bg), white);
  border: 2px solid var(--p-yellow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}
.p-fact:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(251, 191, 36, 0.25);
}
.p-fact-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--p-teal);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.p-fact-icon svg { width: 26px; height: 26px; stroke: white; stroke-width: 2; fill: none; }
.p-fact h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.p-fact p { font-size: 0.95rem; line-height: 1.55; }

/* ===== Program details list ===== */
.p-details {
  padding: 5rem 0;
  background: var(--p-cream);
}
.p-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .p-details-grid { grid-template-columns: 1fr; }
}
.p-info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  padding: 1.2rem 0;
  border-bottom: 1px dashed rgba(13, 148, 136, 0.2);
  gap: 1rem;
}
.p-info-row:last-child { border-bottom: none; }
.p-info-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--p-teal-deep);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.p-info-value {
  color: #3a5a55;
  line-height: 1.55;
}

/* ===== Curriculum / domains ===== */
.p-curriculum {
  padding: 5rem 0;
  background: white;
}
.p-domains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
@media (max-width: 700px) {
  .p-domains { grid-template-columns: 1fr; }
}
.p-domain {
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 2px solid #e6f5f3;
  background: white;
  display: flex;
  gap: 1rem;
  transition: border-color 0.3s, transform 0.3s;
}
.p-domain:hover {
  border-color: var(--p-teal);
  transform: translateY(-3px);
}
.p-domain-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--p-yellow), var(--p-orange));
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.p-domain h4 { font-size: 1.05rem; margin-bottom: 4px; color: var(--p-teal-deep); }
.p-domain p { font-size: 0.9rem; color: #3a5a55; line-height: 1.5; margin: 0; }

/* ===== Schedule ===== */
.p-schedule {
  padding: 5rem 0;
  background: var(--p-cream);
}
.p-day {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.08);
  border: 1px solid #e6f5f3;
}
.p-time-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 1rem 0;
  border-bottom: 1px solid #f0fafa;
  gap: 1rem;
  align-items: center;
}
.p-time-row:last-child { border-bottom: none; }
.p-time {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--p-teal);
  font-size: 0.95rem;
}
.p-activity { color: #3a5a55; }

/* ===== Contact ===== */
.p-contact {
  padding: 6rem 0;
  background: linear-gradient(180deg, white, var(--p-warm-bg));
}
.p-contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .p-contact-wrap { grid-template-columns: 1fr; }
}
.p-info-list { list-style: none; margin-top: 1.5rem; }
.p-info-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(13, 148, 136, 0.15);
  display: flex;
  gap: 1rem;
}
.p-info-list svg { width: 20px; height: 20px; stroke: var(--p-teal); stroke-width: 1.8; fill: none; flex-shrink: 0; margin-top: 2px; }
.p-info-list strong { color: var(--p-teal-deep); display: block; margin-bottom: 2px; }
.p-info-list small { color: #3a5a55; font-size: 0.95rem; }

.p-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 24px 60px rgba(13, 148, 136, 0.15);
  border: 2px solid var(--p-yellow-soft);
}
.p-form h3 { margin-bottom: 0.4rem; }
.p-form .lead { font-size: 0.95rem; margin-bottom: 1.5rem; }
.p-form .btn-primary {
  background: var(--p-teal);
  color: white;
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  margin-top: 0.5rem;
}
.p-form .btn-primary:hover { background: var(--p-teal-deep); }
