/* ============================================================
   MUSE EARLY SCHOOL — Premium Upgrade Layer (2026)
   Yellow theme: #f8cc2a (gold) + #11b9c9 (teal) + #202e44 (navy)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ——— Override base fonts with more premium choices ——— */
:root {
  --ms-font-display: "Playfair Display", Georgia, serif;
  --ms-font-body: "DM Sans", system-ui, sans-serif;
  --ms-radius: 24px;
  --ms-radius-sm: 16px;
  --ms-btn-radius: 50px;
  --prem-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

html[data-theme="yellow"] {
  --ms-navy: #1a2640;
  --ms-navy-soft: #253555;
  --ms-gold: #f8cc2a;
  --ms-gold-soft: #ffe166;
  --ms-teal: #11b9c9;
  --ms-bg: #fdfaf0;
  --ms-pastel: #fff8d6;
  --ms-text: #1a2640;
  --ms-text-soft: #4a5870;
  --ms-section-y: clamp(5rem, 11vw, 7rem);
  --bg: #fdfaf0;
}

/* ——— Body base ——— */
body {
  font-family: var(--ms-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
  background: var(--bg);
}

/* ——— Premium nav ——— */
.ms-nav {
  padding: 0.5rem 0;
  background: rgba(255, 253, 240, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(248, 204, 42, 0.18);
  box-shadow: 0 1px 0 rgba(248, 204, 42, 0.1);
}

.ms-nav__brand img {
  height: clamp(56px, 6vw, 68px);
}

.ms-nav__menu a {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--ms-navy);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ms-nav__menu a:hover {
  background: rgba(248, 204, 42, 0.15);
  color: #1a2640;
}

.ms-nav__menu a.ms-nav__cta {
  background: linear-gradient(135deg, #f8cc2a 0%, #f0b800 100%);
  color: #1a2640;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.55rem 1.4rem;
  margin-left: 0.5rem;
  box-shadow: 0 4px 16px rgba(248, 204, 42, 0.4);
  letter-spacing: 0.01em;
}

.ms-nav__menu a.ms-nav__cta:hover {
  background: linear-gradient(135deg, #ffe166 0%, #f8cc2a 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(248, 204, 42, 0.5);
  color: #1a2640;
}

/* ——— Premium hero ——— */
.ms-hero {
  min-height: 95vh;
}

.ms-hero__overlay {
  background: linear-gradient(
    165deg,
    rgba(26, 38, 64, 0.82) 0%,
    rgba(26, 38, 64, 0.5) 50%,
    rgba(17, 185, 201, 0.2) 100%
  );
}

.ms-hero__content {
  gap: 0.25rem;
}

.ms-hero__logo img {
  width: clamp(110px, 18vw, 150px);
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3)) brightness(1.05);
}

.ms-hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: #ffffff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
  margin: 0 0 1.1rem;
}

.ms-hero__tagline {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f8cc2a;
  margin: 0 0 1.2rem;
}

.ms-hero__sub {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  max-width: 32rem;
  margin: 0 auto 2.2rem;
}

.ms-hero__dot.is-active {
  width: 32px;
  background: #f8cc2a;
}

/* ——— Buttons premium ——— */
.ms-btn {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 1rem 2rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ms-btn--primary {
  background: linear-gradient(135deg, #ffe166 0%, #f8cc2a 100%);
  color: #1a2640;
  box-shadow: 0 8px 32px rgba(248, 204, 42, 0.45);
}

.ms-btn--primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 40px rgba(248, 204, 42, 0.55);
}

.ms-btn--secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(12px);
}

.ms-btn--secondary:hover {
  background: rgba(255,255,255,0.95);
  color: #1a2640;
  border-color: transparent;
  transform: translateY(-3px);
}

.ms-btn--outline {
  color: #1a2640;
  border: 2px solid #1a2640;
  border-radius: 50px;
}

.ms-btn--outline:hover {
  background: #1a2640;
  color: #fff;
}

/* ——— Highlight strip ——— */
.ms-strip {
  background: linear-gradient(135deg, #1a2640 0%, #253555 100%);
  border: none;
  position: relative;
  overflow: hidden;
}

.ms-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(248, 204, 42, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.ms-strip__inner {
  padding: 2rem 0;
  gap: 1.5rem;
}

.ms-strip__inner article {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.ms-strip__inner article:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.ms-strip__inner h3 {
  margin: 0 0 0.3rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #f8cc2a;
}

.ms-strip__inner p {
  margin: 0;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

/* ——— Section eyebrow ——— */
.ms-section__eyebrow {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #11b9c9;
}

.ms-section__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  color: #1a2640;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.ms-section__lead {
  font-size: 1.06rem;
  font-weight: 300;
  color: var(--ms-text-soft);
  line-height: 1.75;
}

/* ——— Programs section ——— */
.ms-programs {
  background: #fdfaf0;
  position: relative;
}

.ms-programs::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248,204,42,0.3), transparent);
}

.ms-procard {
  background: #fff;
  border: 1px solid rgba(26, 38, 64, 0.06);
  border-radius: 24px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: 0 2px 20px rgba(26, 38, 64, 0.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.ms-procard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f8cc2a, #11b9c9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ms-procard:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(26, 38, 64, 0.1);
  border-color: rgba(248, 204, 42, 0.3);
}

.ms-procard:hover::before {
  opacity: 1;
}

.ms-procard__icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #fff8d6, #fff1a0);
  border-radius: 18px;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(248, 204, 42, 0.2);
}

.ms-procard h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a2640;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.ms-procard p {
  font-size: 0.93rem;
  color: #4a5870;
  font-weight: 400;
  line-height: 1.6;
}

/* ——— Why section ——— */
.ms-why {
  background: linear-gradient(180deg, #fff8d6 0%, #fdfaf0 100%);
  position: relative;
}

.ms-why__item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.6rem;
  border-bottom: none;
  background: #fff;
  border: 1px solid rgba(26, 38, 64, 0.06);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(26,38,64,0.04);
  transition: all 0.3s ease;
}

.ms-why__item:hover {
  box-shadow: 0 8px 32px rgba(26,38,64,0.08);
  transform: translateY(-4px);
  border-color: rgba(248,204,42,0.25);
}

.ms-why__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8d6, #ffe166);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(248,204,42,0.25);
}

.ms-why__item h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a2640;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.ms-why__item p {
  font-size: 0.93rem;
  color: #4a5870;
  line-height: 1.6;
  margin: 0;
}

/* ——— Activities ——— */
.ms-activities {
  background: #1a2640;
  position: relative;
  overflow: hidden;
}

.ms-activities::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(248,204,42,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(17,185,201,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.ms-activities .ms-section__eyebrow { color: #f8cc2a; }
.ms-activities .ms-section__title { color: #fff; }
.ms-activities .ms-section__lead { color: rgba(255,255,255,0.65); }

.ms-actcard {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ms-actcard:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.ms-actcard__label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(transparent, rgba(26,38,64,0.9));
}

/* ——— Facilities ——— */
.ms-facilities {
  background: #fdfaf0;
}

.ms-facilities__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .ms-facilities__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ms-facilities__grid {
    grid-template-columns: 1fr;
  }
}

.ms-facility-card {
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(26, 38, 64, 0.06);
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 20px rgba(26, 38, 64, 0.05);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.ms-facility-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #f8cc2a, #11b9c9);
  transition: width 0.4s ease;
}

.ms-facility-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26,38,64,0.09);
  border-color: rgba(248,204,42,0.2);
}

.ms-facility-card:hover::after {
  width: 100%;
}

.ms-facility-card h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a2640;
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
}

.ms-facility-card p {
  color: #4a5870;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ——— Gallery ——— */
.ms-gallery {
  background: #fff;
}

.ms-gallery__subtitle {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  color: #1a2640;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.ms-gallery__item {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,38,64,0.08);
  transition: all 0.35s ease;
}

.ms-gallery__item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(26,38,64,0.15);
}

/* ——— About ——— */
.ms-about {
  background: linear-gradient(165deg, #1a2640 0%, #253555 100%);
  position: relative;
  overflow: hidden;
}

.ms-about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 60%, rgba(248,204,42,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.ms-about .ms-section__eyebrow { color: #f8cc2a; }
.ms-about .ms-about__text h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: #fff;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
}

.ms-about .ms-about__text p {
  color: rgba(255,255,255,0.72);
  font-weight: 300;
  line-height: 1.8;
}

.ms-about .ms-btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.ms-about .ms-btn--outline:hover {
  background: #f8cc2a;
  color: #1a2640;
  border-color: #f8cc2a;
}

.ms-about__visual {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ——— Admissions steps ——— */
.ms-admissions {
  background: #fdfaf0;
}

.ms-step {
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 24px rgba(26,38,64,0.06);
  border: 1px solid rgba(26,38,64,0.05);
  transition: all 0.3s ease;
  position: relative;
}

.ms-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26,38,64,0.1);
}

.ms-step span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a2640;
  background: linear-gradient(135deg, #ffe166 0%, #f8cc2a 100%);
  box-shadow: 0 4px 14px rgba(248,204,42,0.35);
}

.ms-step h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a2640;
  margin: 1rem 0 0.4rem;
  letter-spacing: -0.01em;
}

.ms-step p {
  font-size: 0.92rem;
  color: #4a5870;
  margin: 0;
  line-height: 1.6;
}

/* ——— Testimonials ——— */
.ms-testimonials {
  background: #fff;
}

.ms-quote {
  background: #fdfaf0;
  border-radius: 24px;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(248,204,42,0.2);
  box-shadow: 0 2px 16px rgba(26,38,64,0.04);
  position: relative;
  transition: all 0.3s ease;
}

.ms-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.2rem;
  left: 1.5rem;
  font-size: 5rem;
  font-family: "Playfair Display", Georgia, serif;
  color: #f8cc2a;
  opacity: 0.4;
  line-height: 1;
}

.ms-quote:hover {
  box-shadow: 0 12px 40px rgba(26,38,64,0.08);
  border-color: rgba(248,204,42,0.35);
  transform: translateY(-4px);
}

.ms-quote p {
  font-style: italic;
  font-size: 1rem;
  color: #1a2640;
  line-height: 1.75;
  font-weight: 400;
  margin: 0.5rem 0 1.25rem;
}

.ms-quote h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.87rem;
  color: #11b9c9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

/* ——— CTA banner ——— */
.ms-cta {
  background: linear-gradient(135deg, #f8cc2a 0%, #f0b800 60%, #11b9c9 100%);
  padding: var(--ms-section-y) 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ms-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.ms-cta h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  color: #1a2640;
  margin: 0 0 1.75rem;
  letter-spacing: -0.03em;
}

.ms-cta .ms-btn--primary {
  background: #1a2640;
  color: #f8cc2a;
  box-shadow: 0 8px 32px rgba(26,38,64,0.3);
}

.ms-cta .ms-btn--primary:hover {
  background: #253555;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 48px rgba(26,38,64,0.4);
}

/* ——— Contact ——— */
.ms-contact {
  background: #fdfaf0;
}

.ms-contact__card {
  background: #fff;
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 28px rgba(26,38,64,0.07);
  border: 1px solid rgba(26,38,64,0.05);
}

.ms-contact__card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1a2640;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f8cc2a;
  display: inline-block;
}

.ms-contact__card strong {
  display: block;
  color: #1a2640;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.ms-contact__card p {
  margin: 0 0 1.25rem;
  color: #4a5870;
}

.ms-contact__card a {
  color: #1a2640;
  font-weight: 600;
}

.ms-contact__card a:hover {
  color: #11b9c9;
}

.ms-contact__map {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(26,38,64,0.1);
  border: 1px solid rgba(248,204,42,0.15);
}

/* ——— Footer ——— */
.ms-footer {
  background: #1a2640;
  padding: 4rem 0 2rem;
  position: relative;
}

.ms-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f8cc2a 0%, #11b9c9 100%);
}

.ms-footer__brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
}

.ms-footer__tag {
  color: #f8cc2a;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.ms-footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}

.ms-footer__links a:hover { color: #f8cc2a; }

.ms-footer__bottom {
  color: rgba(255,255,255,0.38);
  font-size: 0.82rem;
}

/* ——— Reveal animation refined ——— */
.ms-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ms-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Lightbox ——— */
.ms-lightbox__close {
  background: #f8cc2a;
  color: #1a2640;
  font-weight: 700;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ——— Scrollbar styling ——— */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdfaf0; }
::-webkit-scrollbar-thumb { background: rgba(248,204,42,0.4); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #f8cc2a; }

/* ——— Selection color ——— */
::selection {
  background: rgba(248, 204, 42, 0.3);
  color: #1a2640;
}

/* ——— Theme FAB ——— */
.ms-theme-fab {
  background: #1a2640;
  color: #f8cc2a;
  box-shadow: 0 4px 24px rgba(26,38,64,0.3);
}
